Exemple #1
0
        private static StageInfo GetStageInfo(ClassicStageInfo stage)
        {
            StageInfo stageInfo = new StageInfo
            {
                stage           = Stage.Custom,
                CustomStageName = "",
            };
            var info = stage.GetComponent <SceneInfo>();

            if (!info)
            {
                return(stageInfo);
            }
            var scene = info.sceneDef;

            if (!scene)
            {
                return(stageInfo);
            }
            switch (scene.baseSceneName)
            {
            case "golemplains":
                stageInfo.stage = Stage.TitanicPlains;
                break;

            case "blackbeach":
                stageInfo.stage = Stage.DistantRoost;
                break;

            case "goolake":
                stageInfo.stage = Stage.AbandonedAqueduct;
                break;

            case "foggyswamp":
                stageInfo.stage = Stage.WetlandAspect;
                break;

            case "frozenwall":
                stageInfo.stage = Stage.RallypointDelta;
                break;

            case "wispgraveyard":
                stageInfo.stage = Stage.ScorchedAcres;
                break;

            case "dampcavesimple":
                stageInfo.stage = Stage.AbyssalDepths;
                break;

            case "shipgraveyard":
                stageInfo.stage = Stage.SirensCall;
                break;

            case "goldshores":
                stageInfo.stage = Stage.GildedCoast;
                break;

            case "arena":
                stageInfo.stage = Stage.VoidCell;
                break;

            case "limbo":
                stageInfo.stage = Stage.MomentWhole;
                break;

            case "skymeadow":
                stageInfo.stage = Stage.SkyMeadow;
                break;

            case "artifactworld":
                stageInfo.stage = Stage.ArtifactReliquary;
                break;

            default:
                stageInfo.stage           = Stage.Custom;
                stageInfo.CustomStageName = scene.baseSceneName;
                break;
            }
            return(stageInfo);
        }
        private static StageInfo GetStage(ClassicStageInfo stage)
        {
            StageInfo stageInfo = new StageInfo
            {
                stage           = Stage.Custom,
                customStageName = "",
            };
            SceneInfo info = stage.GetComponent <SceneInfo>();

            if (!info)
            {
                return(stageInfo);
            }
            SceneDef scene = info.sceneDef;

            if (!scene)
            {
                return(stageInfo);
            }

            switch (scene.sceneName)
            {
            case "golemplains":
                stageInfo.stage = Stage.TitanicPlains;
                break;

            case "blackbeach":
                stageInfo.stage = Stage.DistantRoost;
                break;

            case "goolake":
                stageInfo.stage = Stage.AbandonedAqueduct;
                break;

            case "foggyswamp":
                stageInfo.stage = Stage.WetlandAspect;
                break;

            case "frozenwall":
                stageInfo.stage = Stage.RallypointDelta;
                break;

            case "wispgraveyard":
                stageInfo.stage = Stage.ScorchedAcres;
                break;

            case "dampcavesimple":
                stageInfo.stage = Stage.AbyssalDepths;
                break;

            case "shipgraveyard":
                stageInfo.stage = Stage.SirensCall;
                break;

            case "goldshores":
                stageInfo.stage = Stage.GildedCoast;
                break;

            default:
                stageInfo.stage           = Stage.Custom;
                stageInfo.customStageName = scene.sceneName;
                break;
            }
            return(stageInfo);
        }