Elin Decompiled Documentation EA 23.198 Nightly Patch 1
Loading...
Searching...
No Matches
CorePath Class Reference

Classes

class  CorePackage
 
class  UI
 

Static Public Member Functions

static void Init ()
 

Static Public Attributes

const string Scene = "Scene/"
 
const string SceneProfile = "Scene/Profile/"
 
const string FowProfile = "Scene/Profile/Fow/"
 
const string SceneTemplate = "Scene/Template/"
 
const string Lut = "Scene/Profile/Lut/"
 
const string PostEffect = "Scene/Profile/PostEffect/"
 
const string Data_Raw = "Data/Raw/"
 
const string Map = "World/Map/"
 
const string MapGen = "World/Map/Gen/"
 
const string ZoneProfile = "World/Zone/Profile/"
 
const string Media = "Media/"
 
const string Gallery = "Media/Gallery/"
 
const string Anime = "Media/Anime/"
 
const string Sound = "Media/Sound/"
 
const string Effect = "Media/Effect/"
 
const string TextEffect = "Media/Text/"
 
const string Particle = "Media/Effect/Particle/"
 
const string Graphics = "Media/Graphics/"
 
const string Icon = "Media/Graphics/Icon/"
 
const string IconElement = "Media/Graphics/Icon/Element/"
 
const string IconAchievement = "Media/Graphics/Icon/Achievement/"
 
const string IconRecipe = "Media/Graphics/Icon/Recipe/"
 
const string Image = "Media/Graphics/Image/"
 
const string Deco = "Media/Graphics/Deco/"
 
const string Drama = "Media/Drama/"
 
const string DramaActor = "Media/Drama/Actor/"
 
const string BuildMenu = "UI/BuildMenu/"
 
const string Render = "Scene/Render/"
 
const string Actor = "Scene/Render/Actor/"
 
const string RenderData = "Scene/Render/Data/"
 
const string TC = "Scene/Render/Actor/Component/"
 
const string Hoard = "UI/Layer/Hoard/"
 
const string News = "UI/Layer/LayerNewspaper/"
 
static string packageCore
 
static string user
 
static string custom
 
static string modData
 
static string rootMod
 
static string rootExe
 

Properties

static string Text_Popup [get]
 
static string Text_DialogHelp [get]
 
static string DramaData [get]
 
static string DramaDataLocal [get]
 
static string ConfigFile [get]
 
static string VersionFile [get]
 
static string ShareSettingFile [get]
 
static string coreWidget [get]
 
static string WidgetSave [get]
 
static string LotTemplate [get]
 
static string SceneCustomizerSave [get]
 
static string ZoneSave [get]
 
static string ZoneSaveUser [get]
 
static string MapPieceSave [get]
 
static string MapPieceSaveUser [get]
 
static string RootData [get]
 
static string RootSave [get]
 
static string RootSaveCloud [get]
 
static string Temp [get]
 
static string PathIni [get]
 
static string PathBackupOld [get]
 
static string PathBackup [get]
 
static string PathBackupCloud [get]
 

Detailed Description

Definition at line 6 of file CorePath.cs.

Member Function Documentation

◆ Init()

static void CorePath.Init ( )
inlinestatic

Definition at line 220 of file CorePath.cs.

221 {
222 Debug.Log("Init CorePath");
223 rootMod = Application.dataPath + "/../Package/";
224 if (!Directory.Exists(rootMod))
225 {
226 rootMod = Application.streamingAssetsPath + "/Package/";
227 }
228 rootExe = Application.dataPath + "/../";
229 packageCore = rootMod + "_Elona/";
230 user = Application.persistentDataPath + "/User/";
231 custom = Application.persistentDataPath + "/Custom/";
232 modData = Application.persistentDataPath + "/Mod/";
233 if (!Application.isPlaying)
234 {
235 return;
236 }
237 if (!Directory.Exists(PathBackup))
238 {
239 if (Directory.Exists(PathBackupOld))
240 {
241 Directory.Move(PathBackupOld, PathBackup);
242 }
243 else
244 {
246 }
247 }
251 string text = (Application.isEditor ? (Application.streamingAssetsPath + "/User/") : (rootExe + "User/"));
252 if (!Application.isEditor || !Directory.Exists(user))
253 {
254 Debug.Log("Copy User Folder:" + text + " to " + user);
256 IO.CopyAll(text, user, overwrite: false);
258 }
259 text = (Application.isEditor ? (Application.streamingAssetsPath + "/Custom/") : (rootExe + "Custom/"));
260 Debug.Log("Copy Custom Folder:" + text + " to " + custom);
262 IO.CopyAll(text, custom, overwrite: false);
263 }
static string rootMod
Definition: CorePath.cs:169
static string custom
Definition: CorePath.cs:163
static string PathBackupOld
Definition: CorePath.cs:214
static string RootSave
Definition: CorePath.cs:206
static string packageCore
Definition: CorePath.cs:157
static string RootSaveCloud
Definition: CorePath.cs:208
static string SceneCustomizerSave
Definition: CorePath.cs:194
static string PathBackup
Definition: CorePath.cs:216
static string rootExe
Definition: CorePath.cs:172
static string PathBackupCloud
Definition: CorePath.cs:218
static string modData
Definition: CorePath.cs:166
static string user
Definition: CorePath.cs:160
Definition: IO.cs:11
static void CopyAll(string fromPath, string toPath, bool overwrite=true)
Definition: IO.cs:306
static void CreateDirectory(string path)
Definition: IO.cs:345

References custom, Debug, modData, packageCore, PathBackup, PathBackupCloud, PathBackupOld, rootExe, rootMod, RootSave, RootSaveCloud, SceneCustomizerSave, and user.

Referenced by CoreEmu.Awake(), and Core.SetReferences().

Member Data Documentation

◆ Actor

const string CorePath.Actor = "Scene/Render/Actor/"
static

Definition at line 146 of file CorePath.cs.

◆ Anime

const string CorePath.Anime = "Media/Anime/"
static

Definition at line 114 of file CorePath.cs.

◆ BuildMenu

const string CorePath.BuildMenu = "UI/BuildMenu/"
static

Definition at line 142 of file CorePath.cs.

◆ custom

string CorePath.custom
static

Definition at line 163 of file CorePath.cs.

Referenced by Init(), ModManager.Init(), SpriteReplacer.ListSkins(), and HotItemContext.Show().

◆ Data_Raw

const string CorePath.Data_Raw = "Data/Raw/"
static

Definition at line 102 of file CorePath.cs.

◆ Deco

const string CorePath.Deco = "Media/Graphics/Deco/"
static

Definition at line 136 of file CorePath.cs.

◆ Drama

const string CorePath.Drama = "Media/Drama/"
static

Definition at line 138 of file CorePath.cs.

◆ DramaActor

const string CorePath.DramaActor = "Media/Drama/Actor/"
static

Definition at line 140 of file CorePath.cs.

◆ Effect

const string CorePath.Effect = "Media/Effect/"
static

Definition at line 118 of file CorePath.cs.

◆ FowProfile

const string CorePath.FowProfile = "Scene/Profile/Fow/"
static

Definition at line 94 of file CorePath.cs.

◆ Gallery

const string CorePath.Gallery = "Media/Gallery/"
static

Definition at line 112 of file CorePath.cs.

◆ Graphics

const string CorePath.Graphics = "Media/Graphics/"
static

Definition at line 124 of file CorePath.cs.

◆ Hoard

const string CorePath.Hoard = "UI/Layer/Hoard/"
static

Definition at line 152 of file CorePath.cs.

◆ Icon

const string CorePath.Icon = "Media/Graphics/Icon/"
static

Definition at line 126 of file CorePath.cs.

◆ IconAchievement

const string CorePath.IconAchievement = "Media/Graphics/Icon/Achievement/"
static

Definition at line 130 of file CorePath.cs.

◆ IconElement

const string CorePath.IconElement = "Media/Graphics/Icon/Element/"
static

Definition at line 128 of file CorePath.cs.

◆ IconRecipe

const string CorePath.IconRecipe = "Media/Graphics/Icon/Recipe/"
static

Definition at line 132 of file CorePath.cs.

◆ Image

const string CorePath.Image = "Media/Graphics/Image/"
static

Definition at line 134 of file CorePath.cs.

◆ Lut

const string CorePath.Lut = "Scene/Profile/Lut/"
static

Definition at line 98 of file CorePath.cs.

◆ Map

const string CorePath.Map = "World/Map/"
static

Definition at line 104 of file CorePath.cs.

◆ MapGen

const string CorePath.MapGen = "World/Map/Gen/"
static

Definition at line 106 of file CorePath.cs.

◆ Media

const string CorePath.Media = "Media/"
static

Definition at line 110 of file CorePath.cs.

◆ modData

string CorePath.modData
static

Definition at line 166 of file CorePath.cs.

Referenced by Init().

◆ News

const string CorePath.News = "UI/Layer/LayerNewspaper/"
static

Definition at line 154 of file CorePath.cs.

◆ packageCore

string CorePath.packageCore
static

Definition at line 157 of file CorePath.cs.

Referenced by Init(), and ModManager.ParseExtra().

◆ Particle

const string CorePath.Particle = "Media/Effect/Particle/"
static

Definition at line 122 of file CorePath.cs.

◆ PostEffect

const string CorePath.PostEffect = "Scene/Profile/PostEffect/"
static

Definition at line 100 of file CorePath.cs.

◆ Render

const string CorePath.Render = "Scene/Render/"
static

Definition at line 144 of file CorePath.cs.

◆ RenderData

const string CorePath.RenderData = "Scene/Render/Data/"
static

Definition at line 148 of file CorePath.cs.

◆ rootExe

string CorePath.rootExe
static

Definition at line 172 of file CorePath.cs.

Referenced by Init(), LayerFeedback.OnInit(), and ModManager.SaveLoadOrder().

◆ rootMod

string CorePath.rootMod
static

Definition at line 169 of file CorePath.cs.

Referenced by Init(), ContentConfigOther.OpenPackage(), and Core.StartCase().

◆ Scene

const string CorePath.Scene = "Scene/"
static

Definition at line 90 of file CorePath.cs.

◆ SceneProfile

const string CorePath.SceneProfile = "Scene/Profile/"
static

Definition at line 92 of file CorePath.cs.

◆ SceneTemplate

const string CorePath.SceneTemplate = "Scene/Template/"
static

Definition at line 96 of file CorePath.cs.

◆ Sound

const string CorePath.Sound = "Media/Sound/"
static

Definition at line 116 of file CorePath.cs.

◆ TC

const string CorePath.TC = "Scene/Render/Actor/Component/"
static

Definition at line 150 of file CorePath.cs.

◆ TextEffect

const string CorePath.TextEffect = "Media/Text/"
static

Definition at line 120 of file CorePath.cs.

◆ user

string CorePath.user
static

◆ ZoneProfile

const string CorePath.ZoneProfile = "World/Zone/Profile/"
static

Definition at line 108 of file CorePath.cs.

Property Documentation

◆ ConfigFile

string CorePath.ConfigFile
staticget

Definition at line 182 of file CorePath.cs.

◆ coreWidget

string CorePath.coreWidget
staticget

Definition at line 188 of file CorePath.cs.

Referenced by WidgetMascot.OnActivate().

◆ DramaData

string CorePath.DramaData
staticget

Definition at line 178 of file CorePath.cs.

Referenced by Chara.ShowDialog().

◆ DramaDataLocal

string CorePath.DramaDataLocal
staticget

Definition at line 180 of file CorePath.cs.

◆ LotTemplate

string CorePath.LotTemplate
staticget

Definition at line 192 of file CorePath.cs.

Referenced by LayerEditHouse.OnInit(), and LayerEditHouse.RefreshTemplates().

◆ MapPieceSave

string CorePath.MapPieceSave
staticget

◆ MapPieceSaveUser

string CorePath.MapPieceSaveUser
staticget

◆ PathBackup

string CorePath.PathBackup
staticget

◆ PathBackupCloud

string CorePath.PathBackupCloud
staticget

Definition at line 218 of file CorePath.cs.

Referenced by GameIO.DeleteGame(), Init(), GameIO.MakeBackup(), and LayerLoadGame.RefreshInfo().

◆ PathBackupOld

string CorePath.PathBackupOld
staticget

Definition at line 214 of file CorePath.cs.

Referenced by Init().

◆ PathIni

string CorePath.PathIni
staticget

Definition at line 212 of file CorePath.cs.

Referenced by Core.GetElinIni(), and Core.SaveElinIni().

◆ RootData

string CorePath.RootData
staticget

◆ RootSave

◆ RootSaveCloud

string CorePath.RootSaveCloud
staticget

◆ SceneCustomizerSave

string CorePath.SceneCustomizerSave
staticget

◆ ShareSettingFile

string CorePath.ShareSettingFile
staticget

Definition at line 186 of file CorePath.cs.

◆ Temp

string CorePath.Temp
staticget

Definition at line 210 of file CorePath.cs.

Referenced by Core.Awake(), and Core.OnApplicationQuit().

◆ Text_DialogHelp

string CorePath.Text_DialogHelp
staticget

Definition at line 176 of file CorePath.cs.

◆ Text_Popup

string CorePath.Text_Popup
staticget

Definition at line 174 of file CorePath.cs.

Referenced by PopupManager.Add().

◆ VersionFile

string CorePath.VersionFile
staticget

Definition at line 184 of file CorePath.cs.

Referenced by CoreConfig.Save(), and CoreConfig.TryLoadConfig().

◆ WidgetSave

string CorePath.WidgetSave
staticget

Definition at line 190 of file CorePath.cs.

Referenced by WidgetManager.DialogLoad(), and WidgetManager.DialogSave().

◆ ZoneSave

string CorePath.ZoneSave
staticget

◆ ZoneSaveUser

string CorePath.ZoneSaveUser
staticget

The documentation for this class was generated from the following file: