Custom Serialization
Posted: Fri Nov 11, 2016 10:57 pm
I'm creating an in-game level editor to streamline my development process. I'm running into a wall with serialization though.
I'm using the binser library. I have a Level class made up of a bunch of Tile instances. I want the Tile class to only store a reference to its TileType and its location so that it can generate its graphics stuff on deserialization, but I'm not sure how to write the custom serializer/deserializer functions and I can't find any examples. Has anyone done this before?
I'm using the binser library. I have a Level class made up of a bunch of Tile instances. I want the Tile class to only store a reference to its TileType and its location so that it can generate its graphics stuff on deserialization, but I'm not sure how to write the custom serializer/deserializer functions and I can't find any examples. Has anyone done this before?