Ejemplo n.º 1
0
 public PlayerSession(World world, Guid guid, PlayerState playerstate)
 {
     this.world = world;
     this.guid = guid;
     this.playerstate = playerstate;
 }
Ejemplo n.º 2
0
        public PlayerState LoadPlayerState(Guid guid)
        {
            Location location = World.Instance.GetFreeLocation();
            PlayerState playerstate = new PlayerState(guid, location);
            World.Instance.playerstates.Add(playerstate);

            return playerstate;
        }