Custom Type RPC
Options
Hi,
First post here,
I'm French student, Sorry if my english is not perfect.
For a school project, I have to create a multiplayer game for the first time, and i'm a little confused about custom type serialization.
I'm creating a turn based versus tactical RPG, so I architectured my game like this :
- BattleManager : Singleton that contains
- a List of Team
- A Timeline instance (that manage characters turns)
- a team contains :
- a List of Character
- a reference to the owner Player
- a character contains :
- Stats
- name
- Skills
- etc...
This architecture is nice to manage the battle and track the game state.
But I don't know how to properly synchronize my manager : Do I have to implement a custom type serialization ? I can't find a way to serialize a List now... Or is there a simpler method? Generally, how do you synchronize your custom types?
Sorry, I know my question is realy vague.
Thank you very much.
Félix
First post here,
I'm French student, Sorry if my english is not perfect.
For a school project, I have to create a multiplayer game for the first time, and i'm a little confused about custom type serialization.
I'm creating a turn based versus tactical RPG, so I architectured my game like this :
- BattleManager : Singleton that contains
- a List of Team
- A Timeline instance (that manage characters turns)
- a team contains :
- a List of Character
- a reference to the owner Player
- a character contains :
- Stats
- name
- Skills
- etc...
This architecture is nice to manage the battle and track the game state.
But I don't know how to properly synchronize my manager : Do I have to implement a custom type serialization ? I can't find a way to serialize a List now... Or is there a simpler method? Generally, how do you synchronize your custom types?
Sorry, I know my question is realy vague.
Thank you very much.
Félix
0