3 Star 3 Fork 1

Gitee 极速下载/kbengine-unity3d-plugins

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/kbengine/kbengine_unity3d_plugins
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ScriptModule.cs 1.67 KB
一键复制 编辑 原始数据 按行查看 历史
liquidx 提交于 11年前 . 增加注释
namespace KBEngine
{
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
/*
一个entitydef中定义的脚本模块的描述类
包含了某个entity定义的属性与方法以及该entity脚本模块的名称与模块ID
*/
public class ScriptModule
{
public string name;
public bool usePropertyDescrAlias;
public bool useMethodDescrAlias;
public Dictionary<string, Property> propertys = new Dictionary<string, Property>();
public Dictionary<UInt16, Property> idpropertys = new Dictionary<UInt16, Property>();
public Dictionary<string, Method> methods = new Dictionary<string, Method>();
public Dictionary<string, Method> base_methods = new Dictionary<string, Method>();
public Dictionary<string, Method> cell_methods = new Dictionary<string, Method>();
public Dictionary<UInt16, Method> idmethods = new Dictionary<UInt16, Method>();
public Dictionary<UInt16, Method> idbase_methods = new Dictionary<UInt16, Method>();
public Dictionary<UInt16, Method> idcell_methods = new Dictionary<UInt16, Method>();
public Type script = null;
public ScriptModule(string modulename)
{
name = modulename;
foreach (System.Reflection.Assembly ass in AppDomain.CurrentDomain.GetAssemblies())
{
script = ass.GetType ("KBEngine." + modulename);
if(script == null)
{
script = ass.GetType (modulename);
}
if(script != null)
break;
}
usePropertyDescrAlias = false;
useMethodDescrAlias = false;
if(script == null)
Dbg.ERROR_MSG("can't load(KBEngine." + modulename + ")!");
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/mirrors/kbengine-unity3d-plugins.git
git@gitee.com:mirrors/kbengine-unity3d-plugins.git
mirrors
kbengine-unity3d-plugins
kbengine-unity3d-plugins
master

搜索帮助