代码拉取完成,页面将自动刷新
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 + ")!");
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。