Controller.RegisterCommand C# (CSharp) Method

RegisterCommand() public method

public RegisterCommand ( string commandName, Type commandType ) : void
commandName string
commandType Type
return void
    public virtual void RegisterCommand(string commandName, Type commandType)
    {
        lock (mSyncRoot)
        {
            mCommandMap[commandName] = commandType;
        }
    }

Usage Example

Esempio n. 1
0
 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));
     }
 }
All Usage Examples Of Controller::RegisterCommand