Elin Modding Docs Doc
Loading...
Searching...
No Matches
GameIO Class Reference
Inheritance diagram for GameIO:
EClass

Static Public Member Functions

static void ResetTemp ()
 
static void ClearTemp ()
 
static void SaveGame ()
 
static void MakeBackup ()
 
static void MakeBackup (string id, string suffix="")
 
static Game LoadGame (string id)
 
static void SaveFile (string path, object obj)
 
static T LoadFile< T > (string path)
 
static bool FileExist (string id)
 
static void DeleteGame (string id)
 
static void MakeDirectories (string id)
 
static GameIndex LoadIndex (string id)
 
static List< GameIndexGetGameList ()
 
static void DeleteEmptyGameFolders ()
 
static string GetNewId ()
 
- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 

Static Public Attributes

static JsonSerializerSettings jsReadGame
 
static JsonSerializerSettings jsWriteGame
 
static Formatting formatting = Formatting.Indented
 
- Static Public Attributes inherited from EClass
static Core core
 

Properties

static string pathBackup [get]
 
static string pathSaveRoot [get]
 
static string pathCurrentSave [get]
 
static string pathTemp [get]
 
static bool compressSave [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Detailed Description

Definition at line 9 of file GameIO.cs.

Member Function Documentation

◆ ClearTemp()

static void GameIO.ClearTemp ( )
static

Definition at line 73 of file GameIO.cs.

◆ DeleteEmptyGameFolders()

static void GameIO.DeleteEmptyGameFolders ( )
static

Definition at line 228 of file GameIO.cs.

◆ DeleteGame()

static void GameIO.DeleteGame ( string id)
static

Definition at line 171 of file GameIO.cs.

◆ FileExist()

static bool GameIO.FileExist ( string id)
static

Definition at line 158 of file GameIO.cs.

◆ GetGameList()

static List< GameIndex > GameIO.GetGameList ( )
static

Definition at line 204 of file GameIO.cs.

◆ GetNewId()

static string GameIO.GetNewId ( )
static

Definition at line 244 of file GameIO.cs.

◆ LoadFile< T >()

static T GameIO.LoadFile< T > ( string path)
static
Type Constraints
T :new() 

Definition at line 152 of file GameIO.cs.

◆ LoadGame()

static Game GameIO.LoadGame ( string id)
static

Definition at line 137 of file GameIO.cs.

◆ LoadIndex()

static GameIndex GameIO.LoadIndex ( string id)
static

Definition at line 198 of file GameIO.cs.

◆ MakeBackup() [1/2]

static void GameIO.MakeBackup ( )
static

Definition at line 122 of file GameIO.cs.

◆ MakeBackup() [2/2]

static void GameIO.MakeBackup ( string id,
string suffix = "" )
static

Definition at line 128 of file GameIO.cs.

◆ MakeDirectories()

static void GameIO.MakeDirectories ( string id)
static

Definition at line 185 of file GameIO.cs.

◆ ResetTemp()

static void GameIO.ResetTemp ( )
static

Definition at line 62 of file GameIO.cs.

◆ SaveFile()

static void GameIO.SaveFile ( string path,
object obj )
static

Definition at line 146 of file GameIO.cs.

◆ SaveGame()

static void GameIO.SaveGame ( )
static

Definition at line 92 of file GameIO.cs.

Member Data Documentation

◆ formatting

Formatting GameIO.formatting = Formatting.Indented
static

Definition at line 280 of file GameIO.cs.

◆ jsReadGame

JsonSerializerSettings GameIO.jsReadGame
static
Initial value:
= new JsonSerializerSettings
{
NullValueHandling = NullValueHandling.Ignore,
DefaultValueHandling = DefaultValueHandling.Ignore,
PreserveReferencesHandling = PreserveReferencesHandling.Objects,
TypeNameHandling = TypeNameHandling.Auto,
Error = new EventHandler<Newtonsoft.Json.Serialization.ErrorEventArgs>(IO.OnError)
}

Definition at line 259 of file GameIO.cs.

◆ jsWriteGame

JsonSerializerSettings GameIO.jsWriteGame
static
Initial value:
= new JsonSerializerSettings
{
NullValueHandling = NullValueHandling.Ignore,
DefaultValueHandling = DefaultValueHandling.Ignore,
PreserveReferencesHandling = PreserveReferencesHandling.Objects,
TypeNameHandling = TypeNameHandling.Auto,
ContractResolver = ShouldSerializeContractResolver.Instance,
Error = new EventHandler<Newtonsoft.Json.Serialization.ErrorEventArgs>(IO.OnError)
}

Definition at line 269 of file GameIO.cs.

Property Documentation

◆ compressSave

bool GameIO.compressSave
staticget

Definition at line 53 of file GameIO.cs.

◆ pathBackup

string GameIO.pathBackup
staticget

Definition at line 13 of file GameIO.cs.

◆ pathCurrentSave

string GameIO.pathCurrentSave
staticget

Definition at line 33 of file GameIO.cs.

◆ pathSaveRoot

string GameIO.pathSaveRoot
staticget

Definition at line 23 of file GameIO.cs.

◆ pathTemp

string GameIO.pathTemp
staticget

Definition at line 43 of file GameIO.cs.


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