コード例 #1
0
        public ResourceTroup(
            Server server,
            Profile profile,
            ResourceVillage resourceVillage)
        {
            _server          = server;
            _profile         = profile;
            _resourceVillage = resourceVillage;

            _unitType = new string[]
            {
                "eigene",
                "im Dorf",
                "auswärts",
                "unterwegs"
            };

            _parserMask = _server.Local.Config.Archer ?
                          @"\d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+" :
                          @"\d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+";

            _troupTable = _server.Local.Config.Archer ?
                          Enum.GetValues(typeof(TroupTable)).Cast <TroupTable>( ) :
                          Enum.GetValues(typeof(TroupTable)).Cast <TroupTable>( )
                          .Except(new TroupTable[] { TroupTable.UNIT_ARCHER, TroupTable.UNIT_MARCHER });

            _troupType = Enum.GetValues(typeof(TroupType)).Cast <TroupType>( );
        }
コード例 #2
0
ファイル: ResourceConquer.cs プロジェクト: iTzCrasy/Venom
 public ConquerData(
     ResourcePlayer resourcePlayer,
     ResourceVillage resourceVillage)
 {
     _resourcePlayer  = resourcePlayer;
     _resourceVillage = resourceVillage;
 }
コード例 #3
0
ファイル: ResourceConquer.cs プロジェクト: iTzCrasy/Venom
 public ResourceConquer(
     Server server,
     ResourcePlayer resourcePlayer,
     ResourceVillage resourceVillage)
 {
     _server          = server;
     _resourcePlayer  = resourcePlayer;
     _resourceVillage = resourceVillage;
 }