Skip to content

Commit

Permalink
campaignd: Refactor request handling blocks into separate methods
Browse files Browse the repository at this point in the history
These methods are tried and run in sequence by looking them up from a
request handler registry maintained as part of the server object. Since
every campaignd request is a single WML node with an identifying name, I
feel this approach makes things more readable than the previous massive
deeply-nested if-else-if chain approach, but that might be just me.

(Backported c164cb2 from master.)

Conflicts:
	src/campaign_server/campaign_server.cpp
  • Loading branch information
irydacea committed Oct 11, 2014
1 parent 52337f9 commit 8f6d82b
Show file tree
Hide file tree
Showing 2 changed files with 429 additions and 314 deletions.

0 comments on commit 8f6d82b

Please sign in to comment.