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

Classes

class  Config
 
class  Flags
 

Public Member Functions

void OnUpdate ()
 
void OnLoad ()
 
void OnGameInstantiated ()
 
void _Create ()
 
void StartNewGame ()
 
void AddAdventurers ()
 
void GotoTitle (bool showDialog=true)
 
void Quit ()
 
void Save (bool isAutoSave=false, Action onComplete=null, bool silent=false)
 
void OnBeforeSave ()
 
void Kill ()
 
void Pause (Action onUnpause=null)
 

Static Public Member Functions

static new void Wait (float a, Point p)
 
static new void Wait (float a, Card c)
 
static void Wait (float a)
 
static void Load (string slot)
 
static void Create (string _id=null)
 
static void OnBeforeInstantiate ()
 
- 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)
 

Public Attributes

SpatialManager spatials = new SpatialManager()
 
CardManager cards = new CardManager()
 
ReligionManager religions = new ReligionManager()
 
FactionManager factions = new FactionManager()
 
DomainManager domains = new DomainManager()
 
global::Version version
 
PartyManager parties = new PartyManager()
 
new World world
 
new Player player = new Player()
 
QuestManager quests = new QuestManager()
 
RelationManager relations = new RelationManager()
 
MsgLog log
 
PCCUniformManager uniforms = new PCCUniformManager()
 
TeleportManager teleports = new TeleportManager()
 
int seed
 
int idPrologue
 
int idDifficulty
 
int dateScratch
 
Game.Flags flags = new Game.Flags()
 
Game.Config config = new Game.Config()
 
List< ThinglostThings = new List<Thing>()
 
int gameSpeedIndex = 1
 
int lastGameSpeedIndex = 1
 
int sessionMin
 
int countLoadedMaps
 
int saveCount
 
float timeSinceStart
 
bool isLoading
 
bool isKilling
 
GameBlueprint bp
 
GameUpdater updater = new GameUpdater()
 
Zone activeZone
 
Zone lastActiveZone
 
Dictionary< string, IGlobalValuereferenceMap = new Dictionary<string, IGlobalValue>()
 
HashSet< Texture2D > loadedTextures = new HashSet<Texture2D>()
 

Static Public Attributes

static Game Instance
 
static float waitTimer
 
static string id
 
static bool isPaused
 
- Static Public Attributes inherited from EClass
static Core core
 

Properties

static bool IsWaiting [get]
 
Prologue Prologue [get]
 
GameDifficulty Difficulty [get]
 
bool UseGrid [get]
 
bool altUI [get]
 
bool altInv [get]
 
bool altCraft [get]
 
bool altAbility [get]
 
Zone StartZone [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 Game.cs.

Member Function Documentation

◆ _Create()

void Game._Create ( )

Definition at line 409 of file Game.cs.

◆ AddAdventurers()

void Game.AddAdventurers ( )

Definition at line 568 of file Game.cs.

◆ Create()

static void Game.Create ( string _id = null)
static

Definition at line 365 of file Game.cs.

◆ GotoTitle()

void Game.GotoTitle ( bool showDialog = true)

Definition at line 606 of file Game.cs.

◆ Kill()

void Game.Kill ( )

Definition at line 697 of file Game.cs.

◆ Load()

static void Game.Load ( string slot)
static

Definition at line 140 of file Game.cs.

◆ OnBeforeInstantiate()

static void Game.OnBeforeInstantiate ( )
static

Definition at line 376 of file Game.cs.

◆ OnBeforeSave()

void Game.OnBeforeSave ( )

Definition at line 682 of file Game.cs.

◆ OnGameInstantiated()

void Game.OnGameInstantiated ( )

Definition at line 382 of file Game.cs.

◆ OnLoad()

void Game.OnLoad ( )

Definition at line 170 of file Game.cs.

◆ OnUpdate()

void Game.OnUpdate ( )

Definition at line 127 of file Game.cs.

◆ Pause()

void Game.Pause ( Action onUnpause = null)

Definition at line 720 of file Game.cs.

◆ Quit()

void Game.Quit ( )

Definition at line 623 of file Game.cs.

◆ Save()

void Game.Save ( bool isAutoSave = false,
Action onComplete = null,
bool silent = false )

Definition at line 635 of file Game.cs.

◆ StartNewGame()

void Game.StartNewGame ( )

Definition at line 439 of file Game.cs.

◆ Wait() [1/3]

static void Game.Wait ( float a)
static

Definition at line 41 of file Game.cs.

◆ Wait() [2/3]

static new void Game.Wait ( float a,
Card c )
static

Definition at line 31 of file Game.cs.

◆ Wait() [3/3]

static new void Game.Wait ( float a,
Point p )
static

Definition at line 22 of file Game.cs.

Member Data Documentation

◆ activeZone

Zone Game.activeZone

Definition at line 895 of file Game.cs.

◆ bp

GameBlueprint Game.bp

Definition at line 889 of file Game.cs.

◆ cards

CardManager Game.cards = new CardManager()

Definition at line 783 of file Game.cs.

◆ config

Game.Config Game.config = new Game.Config()

Definition at line 858 of file Game.cs.

◆ countLoadedMaps

int Game.countLoadedMaps

Definition at line 874 of file Game.cs.

◆ dateScratch

int Game.dateScratch

Definition at line 850 of file Game.cs.

◆ domains

DomainManager Game.domains = new DomainManager()

Definition at line 795 of file Game.cs.

◆ factions

FactionManager Game.factions = new FactionManager()

Definition at line 791 of file Game.cs.

◆ flags

Game.Flags Game.flags = new Game.Flags()

Definition at line 854 of file Game.cs.

◆ gameSpeedIndex

int Game.gameSpeedIndex = 1

Definition at line 865 of file Game.cs.

◆ id

string Game.id
static

Definition at line 772 of file Game.cs.

◆ idDifficulty

int Game.idDifficulty

Definition at line 846 of file Game.cs.

◆ idPrologue

int Game.idPrologue

Definition at line 842 of file Game.cs.

◆ Instance

Game Game.Instance
static

Definition at line 766 of file Game.cs.

◆ isKilling

bool Game.isKilling

Definition at line 886 of file Game.cs.

◆ isLoading

bool Game.isLoading

Definition at line 883 of file Game.cs.

◆ isPaused

bool Game.isPaused
static

Definition at line 775 of file Game.cs.

◆ lastActiveZone

Zone Game.lastActiveZone

Definition at line 898 of file Game.cs.

◆ lastGameSpeedIndex

int Game.lastGameSpeedIndex = 1

Definition at line 868 of file Game.cs.

◆ loadedTextures

HashSet<Texture2D> Game.loadedTextures = new HashSet<Texture2D>()

Definition at line 904 of file Game.cs.

◆ log

MsgLog Game.log
Initial value:
= new MsgLog
{
id = "log"
}

Definition at line 823 of file Game.cs.

◆ lostThings

List<Thing> Game.lostThings = new List<Thing>()

Definition at line 862 of file Game.cs.

◆ parties

PartyManager Game.parties = new PartyManager()

Definition at line 803 of file Game.cs.

◆ player

new Player Game.player = new Player()

Definition at line 811 of file Game.cs.

◆ quests

QuestManager Game.quests = new QuestManager()

Definition at line 815 of file Game.cs.

◆ referenceMap

Dictionary<string, IGlobalValue> Game.referenceMap = new Dictionary<string, IGlobalValue>()

Definition at line 901 of file Game.cs.

◆ relations

RelationManager Game.relations = new RelationManager()

Definition at line 819 of file Game.cs.

◆ religions

ReligionManager Game.religions = new ReligionManager()

Definition at line 787 of file Game.cs.

◆ saveCount

int Game.saveCount

Definition at line 877 of file Game.cs.

◆ seed

int Game.seed

Definition at line 838 of file Game.cs.

◆ sessionMin

int Game.sessionMin

Definition at line 871 of file Game.cs.

◆ spatials

SpatialManager Game.spatials = new SpatialManager()

Definition at line 779 of file Game.cs.

◆ teleports

TeleportManager Game.teleports = new TeleportManager()

Definition at line 834 of file Game.cs.

◆ timeSinceStart

float Game.timeSinceStart

Definition at line 880 of file Game.cs.

◆ uniforms

PCCUniformManager Game.uniforms = new PCCUniformManager()

Definition at line 830 of file Game.cs.

◆ updater

GameUpdater Game.updater = new GameUpdater()

Definition at line 892 of file Game.cs.

◆ version

global.Version Game.version

Definition at line 799 of file Game.cs.

◆ waitTimer

float Game.waitTimer
static

Definition at line 769 of file Game.cs.

◆ world

new World Game.world

Definition at line 807 of file Game.cs.

Property Documentation

◆ altAbility

bool Game.altAbility
get

Definition at line 108 of file Game.cs.

◆ altCraft

bool Game.altCraft
get

Definition at line 98 of file Game.cs.

◆ altInv

bool Game.altInv
get

Definition at line 88 of file Game.cs.

◆ altUI

bool Game.altUI
get

Definition at line 78 of file Game.cs.

◆ Difficulty

GameDifficulty Game.Difficulty
get

Definition at line 58 of file Game.cs.

◆ IsWaiting

bool Game.IsWaiting
staticget

Definition at line 13 of file Game.cs.

◆ Prologue

Prologue Game.Prologue
get

Definition at line 48 of file Game.cs.

◆ StartZone

Zone Game.StartZone
get

Definition at line 118 of file Game.cs.

◆ UseGrid

bool Game.UseGrid
get

Definition at line 68 of file Game.cs.


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