コード例 #1
0
ファイル: Fight.cs プロジェクト: Zaetic/Symbioz-2.38-RED
 public FightTeamInformations[] GetFightTeamInformations()
 {
     return(new FightTeamInformations[2] {
         RedTeam.GetFightTeamInformations(),
         BlueTeam.GetFightTeamInformations()
     });
 }
コード例 #2
0
        public override FightCommonInformations GetFightCommonInformations()
        {
            List <FightTeamInformations> teams = new List <FightTeamInformations>();

            teams.Add(BlueTeam.GetFightTeamInformations());
            teams.Add(RedTeam.GetFightTeamInformations());
            List <ushort> positions = new List <ushort>();

            positions.Add((ushort)FightCellId);
            positions.Add((ushort)Map.CloseCell(FightCellId));
            return(new FightCommonInformations(Id, (sbyte)FightType, teams, positions, new List <FightOptionsInformations>()
            {
                BlueTeam.TeamOptions, RedTeam.TeamOptions
            }));
        }