Exemple #1
0
 public void RegisterCommand(ILuaCommnad luaCommand)
 {
     lock ( m_syncRoot )
     {
         if (!m_luaCommands.ContainsKey(luaCommand.CommandName))
         {
             m_luaCommands[luaCommand.CommandName] = new List <ILuaCommnad>();
         }
         m_luaCommands[luaCommand.CommandName].Add(luaCommand);
         RegisterObserver(luaCommand.CommandName, new Observer(luaCommand.Execute));
     }
 }
Exemple #2
0
 public void RegisterLuaCommand(ILuaCommnad luaCommand)
 {
     m_luaController.RegisterCommand(luaCommand);
 }