fireplace icon indicating copy to clipboard operation
fireplace copied to clipboard

Implement pickling for GameState

Open smallnamespace opened this issue 8 years ago • 4 comments

Last time I tried, pickle errored out when trying to serialize a GameState.

Pickling is necessary if anyone wants to ship a state over the wire, etc., and might also be the fastest route to writing a fast __deepcopy__

smallnamespace avatar Apr 21 '16 16:04 smallnamespace

More generally I'd like to support a more streamlined gamestate (eg. tag-oriented or some such). Less magic attributes.

jleclanche avatar Apr 21 '16 19:04 jleclanche

So you'd like it to look more like an entity?

smallnamespace avatar Apr 21 '16 21:04 smallnamespace

What's the current status on this? It looks there's already a game state to entity function under utils. Is this lacking in some way?

cdennison avatar Jul 07 '16 17:07 cdennison

@cdennison I have a plan I've been trying to discuss with a couple of people who are interested working on it. If you're interested as well, hop in #hearthsim and ping me!

jleclanche avatar Jul 07 '16 17:07 jleclanche