コード例 #1
0
ファイル: PlayerSession.cs プロジェクト: mixxit/EverRPG
 public PlayerSession(World world, Guid guid, PlayerState playerstate)
 {
     this.world = world;
     this.guid = guid;
     this.playerstate = playerstate;
 }
コード例 #2
0
ファイル: World.cs プロジェクト: mixxit/EverRPG
        public PlayerState LoadPlayerState(Guid guid)
        {
            Location location = World.Instance.GetFreeLocation();
            PlayerState playerstate = new PlayerState(guid, location);
            World.Instance.playerstates.Add(playerstate);

            return playerstate;
        }