예제 #1
0
    //失败界面
    //失败界面
    #endregion

    //初始化参数
    static GlobalSetting()
    {
        //初始化TILE信息
        TILE_MOUNTAIN_OUTPUT_EFFECT = StaticDataHelper.GetShortArrayGSV("TILE_MOUNTAIN_OUTPUT_EFFECT");
        TILE_HILLS_OUTPUT_EFFECT    = StaticDataHelper.GetShortArrayGSV("TILE_HILLS_OUTPUT_EFFECT");
        TILE_PlAIN_OUTPUT_EFFECT    = StaticDataHelper.GetShortArrayGSV("TILE_PlAIN_OUTPUT_EFFECT");
        TILE_LAKES_OUTPUT_EFFECT    = StaticDataHelper.GetShortArrayGSV("TILE_LAKES_OUTPUT_EFFECT");
        TILE_MOUNTAIN_WALKABLE      = StaticDataHelper.GetUshortGSV("TILE_MOUNTAIN_WALKABLE");
        TILE_HILLS_WALKABLE         = StaticDataHelper.GetUshortGSV("TILE_HILLS__WALKABLE");
        TILE_PlAIN_WALKABLE         = StaticDataHelper.GetUshortGSV("TILE_PlAIN_WALKABLE");
        TILE_LAKES_WALKABLE         = StaticDataHelper.GetUshortGSV("TILE_LAKES_WALKABLE");

        //初始化建筑信息
        BUILDING_MAINBASE_AREA              = StaticDataHelper.GetByteArrayGSV("BUILDING_MAINBASE_AREA");
        BUILDING_MAINBASE_OFFSET            = StaticDataHelper.GetByteArrayGSV("BUILDING_MAINBASE_OFFSET");
        BUILDING_FARMLAND_AREA              = StaticDataHelper.GetByteArrayGSV("BUILDING_FARMLAND_AREA");
        BUILDING_FARMLAND_OFFSET            = StaticDataHelper.GetByteArrayGSV("BUILDING_FARMLAND_OFFSET");
        BUILDING_GOLDMINE_AREA              = StaticDataHelper.GetByteArrayGSV("BUILDING_GOLDMINE_AREA");
        BUILDING_GOLDMINE_OFFSET            = StaticDataHelper.GetByteArrayGSV("BUILDING_GOLDMINE_OFFSET");
        BUILDING_MILITARYCAMP_AREA          = StaticDataHelper.GetByteArrayGSV("BUILDING_MILITARYCAMP_AREA");
        BUILDING_MILITARYCAMP_OFFSET        = StaticDataHelper.GetByteArrayGSV("BUILDING_MILITARYCAMP_OFFSET");
        BUILDING_MAINBASE_GRAIN_INTERVAL    = StaticDataHelper.GetFloatGSV("BUILDING_MAINBASE_GRAIN_INTERVAL");
        BUILDING_MAINBASE_GOLD_INTERVAL     = StaticDataHelper.GetFloatGSV("BUILDING_MAINBASE_GOLD_INTERVAL");
        BUILDING_MAINBASE_TRAIN_INTERVAL    = StaticDataHelper.GetFloatGSV("BUILDING_MAINBASE_TRAIN_INTERVAL");
        BUILDING_MAINBASE_GOLD_OUTPUT       = StaticDataHelper.GetUshortGSV("BUILDING_MAINBASE_GOLD_OUTPUT");
        BUILDING_MAINBASE_GRAIN_OUTPUT      = StaticDataHelper.GetUshortGSV("BUILDING_MAINBASE_GRAIN_OUTPUT");
        BUILDING_MAINBASE_SOLDIER_OUTPUT    = StaticDataHelper.GetUshortGSV("BUILDING_MAINBASE_SOLDIER_OUTPUT");
        BUILDING_FARMLAND_OUTPUT            = StaticDataHelper.GetUshortGSV("BUILDING_FARMLAND_OUTPUT");
        BUILDING_GOLDMINE_OUTPUT            = StaticDataHelper.GetUshortGSV("BUILDING_GOLDMINE_OUTPUT");
        BUILDING_MILITARYCAMP_OUTPUT        = StaticDataHelper.GetUshortGSV("BUILDING_MILITARYCAMP_OUTPUT");
        BULDING_MAINBASE_OCCUPIED_TIME      = StaticDataHelper.GetFloatGSV("BULDING_MAINBASE_OCCUPIED_TIME");
        BUILDING_FARMLAND_CREATE_COST       = StaticDataHelper.GetUshortArrayGSV("BUILDING_FARMLAND_CREATE_COST");
        BUILDING_GOLDMINE_CREATE_COST       = StaticDataHelper.GetUshortArrayGSV("BUILDING_GOLDMINE_CREATE_COST");
        BUILDING_SUBBASE_CREATE_COST        = StaticDataHelper.GetUshortArrayGSV("BUILDING_SUBBASE_CREATE_COST");
        BUILDING_MILITARYCAMP_CREATE_COST   = StaticDataHelper.GetUshortArrayGSV("BUILDING_MILITARYCAMP_CREATE_COST");
        BUILDING_SUBBASE_GOLD_OUTPUT        = StaticDataHelper.GetUshortGSV("BUILDING_SUBBASE_GOLD_OUTPUT");
        BUILDING_SUBBASE_GRAIN_OUTPUT       = StaticDataHelper.GetUshortGSV("BUILDING_SUBBASE_GRAIN_OUTPUT");
        BUILDING_SUBBASE_SOLDIER_OUTPUT     = StaticDataHelper.GetUshortGSV("BUILDING_SUBBASE_SOLDIER_OUTPUT");
        BUILDING_MILITARYCAMP_SOLDIER_LIMIT = StaticDataHelper.GetUshortGSV("BUILDING_MILITARYCAMP_SOLDIER_LIMIT");
        BUILDING_FARMLAND_GRAIN_LIMIT       = StaticDataHelper.GetUshortGSV("BUILDING_FARMLAND_GRAIN_LIMIT");
        BUILDING_GOLDMINE_GOLD_LIMIT        = StaticDataHelper.GetUshortGSV("BUILDING_GOLDMINE_GOLD_LIMIT");
        BUILDING_MAINBASE_BUILD_MIN_LENGTH  = StaticDataHelper.GetUshortGSV("BUILDING_MAINBASE_BUILD_MIN_LENGTH");



        //初始化Player信息
        PLAYER_ORIGINAL_GRAIN   = StaticDataHelper.GetUshortGSV("PLAYER_ORIGINAL_GRAIN");
        PLAYER_ORIGINAL_GOLD    = StaticDataHelper.GetUshortGSV("PLAYER_ORIGINAL_GOLD");
        PLAYER_ORIGINAL_SOLDIER = StaticDataHelper.GetUshortGSV("PLAYER_ORIGINAL_SOLDIER");

        //初始化士兵信息
        SOLDIER_PREFABE_NAME = StaticDataHelper.GetGlobalSettingValue("SOLDIER_PREFABE_NAME");
        SOLDIER_MOVE_SPEED   = StaticDataHelper.GetFloatGSV("SOLDIER_MOVE_SPEED");
        SOLDIER_CREATE_COST  = StaticDataHelper.GetUshortArrayGSV("SOLDIER_CREATE_COST");

        //初始化地图信息
        MAP_SMALL_LENGTH  = StaticDataHelper.GetUshortGSV("MAP_SMALL_LENGTH");
        MAP_NORMAL_LENGTH = StaticDataHelper.GetUshortGSV("MAP_NORMAL_LENGTH");
        MAP_BIG_LENGTH    = StaticDataHelper.GetUshortGSV("MAP_BIG_LENGTH");
        MAP_HUGE_LENGTH   = StaticDataHelper.GetUshortGSV("MAP_HUGE_LENGTH");

        //Others
        //TAG_TILE_PARENT_NAME = "_TagTileParent";
        //TAG_BATTLE_SCENE_CAMERA_NAME = "_TagBattleSceneCamera";
        //TAG_BUILDING_PARENT_NAME = "_TagBuildingParent";
        //TAG_SOLDIERS_PARENT_NAME = "_TagSoldiersParent";
        //LAYER_MASK_NAME_GROUND = "Ground";
    }