public void RegisterCommand(ICheatEngineCommand command) { if (commandHandler.ContainsKey(command.CommandType)) { commandHandler.Remove(command.CommandType); } commandHandler.Add(command.CommandType, command); }
public byte[] ProcessAndGetBytes(ICheatEngineCommand command) { if (!command.initialized) { throw new C2S.Exceptions.CommandNotInitializedException(); } var ret = command.ProcessAndGetBytes(); command.Unintialize(); return(ret); }
public void RegisterCommandHandler(ICheatEngineCommand command) { this.packetManager.RegisterCommand(command); }