Z
Z
Zefirot2021-06-09 11:19:45
C++ / C#
Zefirot, 2021-06-09 11:19:45

What is the best way to store different types of data?

I have randomly generated rooms, they have various static objects with coordinates and sizes (Vector3), as well as the number of opponents with their stats (int, float), etc.
The question is how best to store this data and where?
You also need to take into account that the generation will already be in the finished application and the data should be stored there on the phone ...
Tell me what are the best methods for this implementation?

And I forgot - new rooms can be added, so there is no static storage either, it should be dynamic...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-06-09
@Zefirot

My rooms are randomly generated

Can be stored as a seed, for example.
If you need to directly store the generated level, then you can serialize the data into some format and save

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question