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)); } }
public void RegisterLuaCommand(ILuaCommnad luaCommand) { m_luaController.RegisterCommand(luaCommand); }