1
0
mirror of synced 2024-12-04 20:08:00 +01:00
Switch-Toolbox/Switch_FileFormatsMain/Scenes/SMO_Scene.cs

58 lines
2.3 KiB
C#
Raw Normal View History

2019-07-13 15:58:44 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
2019-07-13 16:56:21 +02:00
using System.IO;
2019-07-13 15:58:44 +02:00
using System.Threading.Tasks;
2019-07-13 16:56:21 +02:00
using Switch_Toolbox.Library;
using ByamlExt.Byaml;
using OdysseyEditor;
2019-07-13 15:58:44 +02:00
namespace FirstPlugin
{
2019-07-13 16:56:21 +02:00
//Code off of https://github.com/exelix11/OdysseyEditor
//Note this will purely be for viewing, performance tests, and ripping
2019-07-13 15:58:44 +02:00
public class SMO_Scene
{
2019-07-13 16:56:21 +02:00
public static void LoadStage(string MapName)
{
if (File.Exists($"{Runtime.SmoGamePath}StageData\\{MapName}Map.szs"))
{
string StageByml = $"{Runtime.SmoGamePath}StageData\\{MapName}Map.szs";
new Level(StageByml, -1);
}
}
public static Dictionary<string, string> OdysseyStages = new Dictionary<string, string>()
2019-07-13 15:58:44 +02:00
{
//Main
{ "CapWorldHomeStage","Cap Kingdom" },
{ "WaterfallWorldHomeStage","Cascade Kingdom" },
{ "SandWorldHomeStage","Sand Kindom" },
2019-07-13 16:56:21 +02:00
{ "ForestWorldHomeStage","Wodded Kingdom" },
2019-07-13 15:58:44 +02:00
{ "SnowWorldHomeStage","Snow Kingdom" },
{ "SeaWorldHomeStage", "Seaside Kingdom" },
{ "ClashWorldHomeStage","Lost Kingdom" },
{ "CityWorldHomeStage","Metro Kingdom" },
{ "LakeWorldHomeStage","Lake Kingdom(Starting Area)" },
{ "SkyWorldHomeStage","Bowser\'s Kingdom" },
{ "BossRaidWorldHomeStage","Ruined Kingdom" },
{ "MoonWorldHomeStage","Moon Kingdom" },
{ "LavaWorldHomeStage","Luncheon Kingdom" },
{"PeachWorldHomeStage", "Mushroom Kingdom" },
{"Special1WorldHomeStage", "Dark Side of the Moon"},
{"Special2WorldHomeStage", "Darker Side of the Moon"},
//Sub areas
{ "MeganeLiftExStage","MoEye moving Platform" },
{ "SandWorldPyramid000Stage","Pyramid(Starting Area)" },
{ "SandWorldPyramid001Stage","Pyramid(Bullet Bill Parkour)" },
{ "SandWorldUnderground000Stage","Ice Underground before Boss" },
{ "SandWorldUnderground001Stage","Ice Underground Boss" },
{ "LakeWorldTownZone","LakeKingdom (Town Area)" },
{ "DemoCrashHomeFallStage","Cloud Kingdom(1. Bowser Fight)" },
{ "Theater2DExStage","Theater (smb 1-1)" },
};
}
}