コード例 #1
0
ファイル: Village.cs プロジェクト: presidentofgoblin/UCS-1
        public Village(long playerId)
        {
            android_client = true;

            respawnVars = new RespawnVars
            {
                secondsFromLastRespawn = 10,
                respawnSeed            = 10,
                obstacleClearCounter   = 10,
                time_to_gembox_drop    = 10,
                time_in_gembox_period  = 10
            };
            newShopBuildings = new uint[]
            { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
            newShopTraps = new uint[] { 0, 0, 0, 0, 0, 0, 0, 0 };
            newShopDecos = new uint[]
            {
                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                0,
                0
            };
            last_league_rank    = 0;
            last_league_shuffle = 0;
            last_news_seen      = 10;
            edit_mode_shown     = false;
            war_tutorials_seen  = false;
            war_base            = false;
        }
コード例 #2
0
        public Village(long playerId)
        {
            android_client = true;
            active_layout  = 0;
            layout_state   = new uint[] { 0, 0, 0, 0, 0, 0 };

            respawnVars = new RespawnVars
            {
                secondsFromLastRespawn = 10,
                respawnSeed            = 10,
                obstacleClearCounter   = 10,
                time_to_gembox_drop    = 10,
                time_in_gembox_period  = 10,
                time_to_special_drop   = 248205,
                time_to_special_period = 97079
            };

            cooldown         = new Cooldown();
            newShopBuildings = new uint[]
            { 1, 0, 1, 1, 1, 1, 1, 0, 2, 0, 0, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
            newShopTraps = new uint[] { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
            newShopDecos = new uint[]
            {
                1, 4, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                0,
                0
            };
            last_league_rank             = 0;
            last_alliance_level          = 1;
            last_league_shuffle          = 0;
            last_season_seen             = -1;
            last_news_seen               = 13;
            edit_mode_shown              = false;
            war_tutorials_seen           = 0;
            war_base                     = false;
            help_opened                  = false;
            bool_layout_edit_shown_erase = false;
        }