Friday, August 12, 2016

PlayerSession, static data

Pretty simple today. I finally worked out all my remaining failing unit tests and got a full lifecycle of the PlayerSession working. It turns out the serialization bug I thought I understood was a little more interesting. verbum sap: if you're using Type.GetField, you won't get back private fields from parent types even with the BindingFlags.NonPublic attribute set! That doesn't make a lot of sense to me; they're still private fields in the type, and you can see the other private fields. Whatever--easy enough to fix once understood.

Now I'm on to blocking out the pattern for static data, although I think it will be a while before there actually is any (i.e. files, instead of things hardcoded in classes).

No comments:

Post a Comment

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