public RegisterCommand ( string commandName, Type commandType ) : void | ||
commandName | string | |
commandType | Type | |
Результат | void |
public virtual void RegisterCommand(string commandName, Type commandType)
{
lock (mSyncRoot)
{
mCommandMap[commandName] = commandType;
}
}
static int RegisterCommand(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); Controller obj = (Controller)ToLua.CheckObject <Controller>(L, 1); string arg0 = ToLua.CheckString(L, 2); System.Type arg1 = ToLua.CheckMonoType(L, 3); obj.RegisterCommand(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }