コード例 #1
0
        public void OneTimeSetUp()
        {
            var matchInfo = new MatchInfo
            {
                Players = new List <Player>
                {
                    new Player
                    {
                        IsHost     = true,
                        MatchKey   = "test",
                        PlayerID   = 1,
                        PlayerName = "ばぬし",
                        Position   = 0,
                        Wait       = false
                    },
                    new Player
                    {
                        IsHost     = false,
                        MatchKey   = "test",
                        PlayerID   = 2,
                        PlayerName = "ねこ",
                        Position   = 0,
                        Wait       = false
                    }
                },
                CreatePlayerClosed = true,
                HostPlayerID       = 1,
                MatchKey           = "test",
                NextPlayerID       = 1,
                Turn = 0
            };

            _core = new MatchCore(matchInfo);
            _core.Start();
        }