|
Recently, I posted an article describing how you could use the State Machine workflow facility from the Workflow Foundation to simulate the "Tech Tree" functionality found in a lot of strategy and roleplaying games. This is a pretty short follow-up article that just includes a code download that corresponds to the original article - I want to make sure everyone has a chance to download it before I start blogging about more advanced stuff.
Secondly, I want to give some props to the folks over at the WF forums and community site. They pointed out that I don't have to (and in fact should not) send this as a parameter when I create a new instance of external data event args. Null is perfectly fine and preserves the loosely coupled relationship between the workflow and the local service (External Data Exchange Service derived class).
Click here for the download : StrategyDemo.zip.
Enjoy!
Kevin, I know this is off topic, but I am enjoying your VS C# 2005 book -
do you have a link to the source code?
Alex - go to http://www.samspublishing.com/search/support.asp?rl=1 and
enter the ISBN number of the book. You should then be taken to a link that
has the code download.
Thanks Kevin - fyi, for some reason SAMS does not appear to want to make it
available. There is a 2003 version available, but of course that is
missing many features and is troublesome to compile.