clanner / cocdp

Clash of Clans Documentation Project
216 stars 64 forks source link

More lables and packobject #5

Closed clugh closed 9 years ago

clugh commented 9 years ago

I created a packobject function, but after seeing the messages about bitfields in the forum thread, I'm no longer as confident in that part of the function. It has worked for me, but that may be because I haven't encountered a problematic field yet.

Also, turns out json doesn't maintain field order, so I reenabled sorting.

clanner commented 9 years ago

Thanks.

I did not have much time recently, when i find time i want to improve my field name/type encoding, so the entire message can be encoded in one nicely formatted string.

Also i want to be able to define common structures, like the block of level arrays in OwnhomeData, or the clan record, seperately.

bitfields should be too hard to add, it is a matter of combining several absent fields in one shifted bitmask.

sir-barchable commented 9 years ago

Also i want to be able to define common structures, like the block of level arrays in OwnhomeData, or the clan record, seperately.

I've done some work along these lines in barchomat.