Game Engine Ep.70 - Getting Into Serialization - Part #1 - JSON and Component Serializers
Вставка
- Опубліковано 11 лют 2025
- Don't forget to check out the github repo:
github.com/dwj...
Welcome back everyone, my name is Dustin, and in this video we start looking into how we are going to serialize our tilemaps and data to files so we can save and load.
In this video, we create the JSONSerializer class using rapidjson and start the ComponentSerializer.
There is a challenge at the end to finish the Save/Load functions for the Tilemap Loader. Give the challenge a try and leave a comment below if you need any tips/hints. We will go over the solution in the next video.
We also do a Deserialize function for the components and it uses constexpr checks to determine the component type. There is another way that we can accomplish this by passing the component in as a reference and deserialize it that way. If we do that, we no longer have to have the constexpr checks and we can just overload based on the component type and the serializer.
I will go over how to do that in the next video as well. Maybe try that as a challenge.
rapidjson:
github.com/Ten...
Please Like and Subscribe! If you have any questions or concerns, please leave a comment below and I will make sure to answer them to the best of my ability.
Also, if you know a better way to implement something, please share! I always love to learn and grow.
Check out the playlist here:
• New Game Engine