コード例 #1
0
        public Tournament(string id, string name, WarpDestination hub)
        {
            this.id   = id;
            this.name = name;
            this.hub  = hub;

            registeredMembers = new TournamentMemberCollection();
            activeMatchups    = new List <MatchUp>();
            combatMaps        = new List <string>();

            rules = new TournamentRules();
        }
コード例 #2
0
        public Tournament(string id, string name, WarpDestination hub)
        {
            this.id = id;
            this.name = name;
            this.hub = hub;

            registeredMembers = new TournamentMemberCollection();
            activeMatchups = new List<MatchUp>();
            combatMaps = new List<string>();

            rules = new TournamentRules();
        }
コード例 #3
0
        public static TcpPacket CreateTournamentRulesEditorPacket(TournamentRules rules)
        {
            TcpPacket packet = new TcpPacket("tournamentruleseditor");

            packet.AppendParameters(
                rules.SleepClause.ToIntString(),
                rules.AccuracyClause.ToIntString(),
                rules.SpeciesClause.ToIntString(),
                rules.FreezeClause.ToIntString(),
                rules.OHKOClause.ToIntString(),
                rules.SelfKOClause.ToIntString());

            return packet;
        }