RConDev / rcondevserver

RCon Development Server - A RCon Server Simulator for Battlefield 3
http://RConDev.github.com/rcondevserver
2 stars 0 forks source link

Refactoring command architecture #1

Open m4cx opened 11 years ago

m4cx commented 11 years ago

currently there is no real architecture concerning commands. commands only exist in Packet structure and are send this way through the whole bf3 protocol.

in order to clean this mess up, every command should be available as a single class

m4cx commented 11 years ago

when a command cannot be created from ICommandFactory implementation for the specific command, the response should be "InvalidArguments". The command's name has already been checked through registered handlers.

m4cx commented 11 years ago

after having created all commands and having attached them to the existing handlers other handlers in style of DDD CommandHandlers have to be implemented to have the commands processed on the server.

m4cx commented 11 years ago

a better way to send events and create a response to the command must also be found