Saturday, August 13, 2016

CVServer, SessionManager, staticdata stubs, LocalizedString, PostDeserialize method

I stayed up later than I meant to. Almost got a workday in despite starting around 7. Lots of pretty easy stuff. I stubbed out the main server class and the SessionManager class, and wrote the logic for kicking off and joining the SessionManager's worker thread. Then I started stubbing out static data. In doing so I realized I needed to stub out localized strings. In doing that I realized I finally needed to implement PostDeserialize in my serialization layer (the idea is that after an object unpacks, the serialization logic will call a method tagged with the 'PostDeserialize' attribute to let it do final setup; LocalizedString will use this to convert from the serialized string hash Id to the actual localized string literal by referencing the localized string pool). 

I finished PostDeserialize (with unit test). The rest is mostly stub. I'm very deliberately resisting the temptation to actually build out the resource model since that was explicitly a non-goal for the prototype. So all the static data is going to be populated with some hard coded values. 

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.