public PlayerData(Player player) { Entity = new EntityData(player); ID = player.ID; flags = new PlayerFlags(); flags.directionRight = player.DirectionRight; }
public PlayerData(EntityData entityData, int id, PlayerFlags flags) { this.Entity = entityData; this.flags = flags; this.ID = id; }