public PlayerSession(World world, Guid guid, PlayerState playerstate) { this.world = world; this.guid = guid; this.playerstate = playerstate; }
public PlayerState LoadPlayerState(Guid guid) { Location location = World.Instance.GetFreeLocation(); PlayerState playerstate = new PlayerState(guid, location); World.Instance.playerstates.Add(playerstate); return playerstate; }