Elin Modding Docs Doc
Loading...
Searching...
No Matches
Props Class Reference
Inheritance diagram for Props:
EClass PropsInstalled PropsRoaming PropsStocked

Public Member Functions

void Init ()
 
void Add (Card t)
 
void Remove (Card t)
 
void OnNumChange (Card c, int a)
 
Thing GetAvailableThing (string id, int idMat)
 
ThingStack ListThingStack (Recipe.Ingredient ing, StockSearchMode searchMode)
 
List< ThingListThingsInCategory (SourceCategory.Row cat)
 
Dictionary< string, ThingStackListThingStacksInCategory (SourceCategory.Row cat)
 
Thing Find< T > ()
 
Thing FindEmptyContainer< T > ()
 
Thing FindEmptyContainer< T > (Thing target)
 
Thing Find (int uid)
 
Thing FindShared (string id)
 
Thing Find (string id, string idMat)
 
Thing Find (string id, int idMat=-1, int refVal=-1, bool shared=false)
 
int GetNum (string id, bool onlyShared=false)
 
void Validate ()
 

Static Public Member Functions

static int GetNumStockedAndRoaming (string id)
 
- 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

PropSet all = new PropSet()
 
Dictionary< string, PropSetcardMap = new Dictionary<string, PropSet>()
 
Dictionary< string, PropSetCategorycategoryMap = new Dictionary<string, PropSetCategory>()
 
Dictionary< string, PropSetraceMap = new Dictionary<string, PropSet>()
 
Dictionary< string, PropSetworkMap = new Dictionary<string, PropSet>()
 
TraitManager traits = new TraitManager()
 
List< Thingthings = new List<Thing>()
 
List< Thingcontainers = new List<Thing>()
 
int maxWeight = 100
 
int weight
 

Properties

virtual bool IsStocked [get]
 
virtual bool IsRoaming [get]
 
virtual bool IsInstalled [get]
 
virtual PlaceState state [get]
 
virtual List< ThingThings [get]
 
int Count [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]
 

Additional Inherited Members

- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 7 of file Props.cs.

Member Function Documentation

◆ Add()

void Props.Add ( Card t)

Definition at line 93 of file Props.cs.

◆ Find() [1/3]

Thing Props.Find ( int uid)

Definition at line 333 of file Props.cs.

◆ Find() [2/3]

Thing Props.Find ( string id,
int idMat = -1,
int refVal = -1,
bool shared = false )

Definition at line 358 of file Props.cs.

◆ Find() [3/3]

Thing Props.Find ( string id,
string idMat )

Definition at line 352 of file Props.cs.

◆ Find< T >()

Thing Props.Find< T > ( )
Type Constraints
T :Trait 

Definition at line 294 of file Props.cs.

◆ FindEmptyContainer< T >() [1/2]

Thing Props.FindEmptyContainer< T > ( )
Type Constraints
T :Trait 

Definition at line 307 of file Props.cs.

◆ FindEmptyContainer< T >() [2/2]

Thing Props.FindEmptyContainer< T > ( Thing target)
Type Constraints
T :Trait 

Definition at line 320 of file Props.cs.

◆ FindShared()

Thing Props.FindShared ( string id)

Definition at line 346 of file Props.cs.

◆ GetAvailableThing()

Thing Props.GetAvailableThing ( string id,
int idMat )

Definition at line 205 of file Props.cs.

◆ GetNum()

int Props.GetNum ( string id,
bool onlyShared = false )

Definition at line 384 of file Props.cs.

◆ GetNumStockedAndRoaming()

static int Props.GetNumStockedAndRoaming ( string id)
static

Definition at line 398 of file Props.cs.

◆ Init()

void Props.Init ( )

Definition at line 70 of file Props.cs.

◆ ListThingsInCategory()

List< Thing > Props.ListThingsInCategory ( SourceCategory.Row cat)

Definition at line 253 of file Props.cs.

◆ ListThingStack()

ThingStack Props.ListThingStack ( Recipe.Ingredient ing,
StockSearchMode searchMode )

Definition at line 223 of file Props.cs.

◆ ListThingStacksInCategory()

Dictionary< string, ThingStack > Props.ListThingStacksInCategory ( SourceCategory.Row cat)

Definition at line 267 of file Props.cs.

◆ OnNumChange()

void Props.OnNumChange ( Card c,
int a )

Definition at line 189 of file Props.cs.

◆ Remove()

void Props.Remove ( Card t)

Definition at line 143 of file Props.cs.

◆ Validate()

void Props.Validate ( )

Definition at line 404 of file Props.cs.

Member Data Documentation

◆ all

PropSet Props.all = new PropSet()

Definition at line 429 of file Props.cs.

◆ cardMap

Dictionary<string, PropSet> Props.cardMap = new Dictionary<string, PropSet>()

Definition at line 432 of file Props.cs.

◆ categoryMap

Dictionary<string, PropSetCategory> Props.categoryMap = new Dictionary<string, PropSetCategory>()

Definition at line 435 of file Props.cs.

◆ containers

List<Thing> Props.containers = new List<Thing>()

Definition at line 450 of file Props.cs.

◆ maxWeight

int Props.maxWeight = 100

Definition at line 454 of file Props.cs.

◆ raceMap

Dictionary<string, PropSet> Props.raceMap = new Dictionary<string, PropSet>()

Definition at line 438 of file Props.cs.

◆ things

List<Thing> Props.things = new List<Thing>()

Definition at line 447 of file Props.cs.

◆ traits

TraitManager Props.traits = new TraitManager()

Definition at line 444 of file Props.cs.

◆ weight

int Props.weight

Definition at line 457 of file Props.cs.

◆ workMap

Dictionary<string, PropSet> Props.workMap = new Dictionary<string, PropSet>()

Definition at line 441 of file Props.cs.

Property Documentation

◆ Count

int Props.Count
get

Definition at line 61 of file Props.cs.

◆ IsInstalled

virtual bool Props.IsInstalled
get

Definition at line 31 of file Props.cs.

◆ IsRoaming

virtual bool Props.IsRoaming
get

Definition at line 21 of file Props.cs.

◆ IsStocked

virtual bool Props.IsStocked
get

Definition at line 11 of file Props.cs.

◆ state

virtual PlaceState Props.state
get

Definition at line 41 of file Props.cs.

◆ Things

virtual List<Thing> Props.Things
get

Definition at line 51 of file Props.cs.


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