Elin Modding Docs Doc
Loading...
Searching...
No Matches
ElementContainer Class Reference
Inheritance diagram for ElementContainer:
EClass ElementContainerCard ElementContainerFaction ElementContainerZone

Public Types

enum  NoteMode {
  Default , CharaMake , CharaMakeAttributes , Domain ,
  Trait
}
 

Public Member Functions

void ApplyElementMap (int uid, SourceValueType type, Dictionary< int, int > map, int lv, bool invert=false, bool applyFeat=false)
 
void ApplyMaterialElementMap (Thing t, bool invert=false)
 
void ImportElementMap (Dictionary< int, int > map)
 
ElementContainer ImportElementMap (int[] ints)
 
void ApplyPotential (int mode=0)
 
int Value (int ele)
 
virtual int ValueBonus (Element e)
 
int ValueWithoutLink (int ele)
 
int ValueWithoutLink (string alias)
 
int GetFeatRef (int ele, int idx=0)
 
int Exp (int ele)
 
bool Has (int ele)
 
bool Has (SourceElement.Row row)
 
bool Has (string alias)
 
bool HasBase (int ele)
 
int Base (int ele)
 
void Learn (int ele, int v=1)
 
void Train (int ele, int a=10)
 
void ModExp (int ele, int a, bool chain=false)
 
virtual void OnLearn (int ele)
 
virtual void OnTrain (int ele)
 
virtual void OnLevelUp (Element e, int lastValue)
 
virtual void OnLevelDown (Element e, int lastValue)
 
Element SetBase (string alias, int v, int potential=0)
 
Element SetBase (int id, int v, int potential=0)
 
void SetTo (int id, int v)
 
void Remove (int id)
 
Element ModBase (int ele, int v)
 
virtual void OnChangeValue ()
 
Element ModPotential (int ele, int v)
 
Element ModTempPotential (int ele, int v, int threshMsg=0)
 
virtual void OnModTempPotential (Element e, int v, int threshMsg)
 
int GetSpellExp (Chara c, Element e, int costMod=100)
 
Element GetElement (string alias)
 
Element GetElement (int id)
 
Element CreateElement (int id)
 
Element GetOrCreateElement (Element ele)
 
Element GetOrCreateElement (string alias)
 
Element GetOrCreateElement (int id)
 
void SetParent (Card c)
 
void SetParent (ElementContainer newParent=null)
 
List< ElementListElements (Func< Element, bool > shoudList=null, Comparison< Element > comparison=null)
 
List< ElementListBestAttributes ()
 
List< ElementListBestSkills ()
 
List< ElementListGeneFeats ()
 
List< ElementListLearnable (Chara c)
 
void CopyTo (ElementContainer container)
 
void AddNote (UINote n, Func< Element, bool > isValid=null, Action onAdd=null, ElementContainer.NoteMode mode=ElementContainer.NoteMode.Default, bool addRaceFeat=false, Func< Element, string, string > funcText=null, Action< UINote, Element > onAddNote=null)
 
void AddNoteAll (UINote n)
 

Static Public Member Functions

static int GetSortVal (Element a)
 
- 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

Dictionary< int, Elementdict = new Dictionary<int, Element>()
 
ElementContainer parent
 
List< int > list
 

Static Public Attributes

const int sizeElement = 5
 
- Static Public Attributes inherited from EClass
static Core core
 

Properties

virtual Card Card [get]
 
virtual Chara Chara [get]
 
virtual bool IsMeleeWeapon [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 11 of file ElementContainer.cs.

Member Enumeration Documentation

◆ NoteMode

enum ElementContainer.NoteMode

Definition at line 958 of file ElementContainer.cs.

Member Function Documentation

◆ AddNote()

void ElementContainer.AddNote ( UINote n,
Func< Element, bool > isValid = null,
Action onAdd = null,
ElementContainer.NoteMode mode = ElementContainer::NoteMode::Default,
bool addRaceFeat = false,
Func< Element, string, string > funcText = null,
Action< UINote, Element > onAddNote = null )

Definition at line 735 of file ElementContainer.cs.

◆ AddNoteAll()

void ElementContainer.AddNoteAll ( UINote n)

Definition at line 899 of file ElementContainer.cs.

◆ ApplyElementMap()

void ElementContainer.ApplyElementMap ( int uid,
SourceValueType type,
Dictionary< int, int > map,
int lv,
bool invert = false,
bool applyFeat = false )

Definition at line 90 of file ElementContainer.cs.

◆ ApplyMaterialElementMap()

void ElementContainer.ApplyMaterialElementMap ( Thing t,
bool invert = false )

Definition at line 116 of file ElementContainer.cs.

◆ ApplyPotential()

void ElementContainer.ApplyPotential ( int mode = 0)

Definition at line 168 of file ElementContainer.cs.

◆ Base()

int ElementContainer.Base ( int ele)

Definition at line 294 of file ElementContainer.cs.

◆ CopyTo()

void ElementContainer.CopyTo ( ElementContainer container)

Definition at line 703 of file ElementContainer.cs.

◆ CreateElement()

Element ElementContainer.CreateElement ( int id)

Definition at line 571 of file ElementContainer.cs.

◆ Exp()

int ElementContainer.Exp ( int ele)

Definition at line 239 of file ElementContainer.cs.

◆ GetElement() [1/2]

Element ElementContainer.GetElement ( int id)

Definition at line 565 of file ElementContainer.cs.

◆ GetElement() [2/2]

Element ElementContainer.GetElement ( string alias)

Definition at line 559 of file ElementContainer.cs.

◆ GetFeatRef()

int ElementContainer.GetFeatRef ( int ele,
int idx = 0 )

Definition at line 227 of file ElementContainer.cs.

◆ GetOrCreateElement() [1/3]

Element ElementContainer.GetOrCreateElement ( Element ele)

Definition at line 584 of file ElementContainer.cs.

◆ GetOrCreateElement() [2/3]

Element ElementContainer.GetOrCreateElement ( int id)

Definition at line 596 of file ElementContainer.cs.

◆ GetOrCreateElement() [3/3]

Element ElementContainer.GetOrCreateElement ( string alias)

Definition at line 590 of file ElementContainer.cs.

◆ GetSortVal()

static int ElementContainer.GetSortVal ( Element a)
static

Definition at line 716 of file ElementContainer.cs.

◆ GetSpellExp()

int ElementContainer.GetSpellExp ( Chara c,
Element e,
int costMod = 100 )

Definition at line 534 of file ElementContainer.cs.

◆ Has() [1/3]

bool ElementContainer.Has ( int ele)

Definition at line 250 of file ElementContainer.cs.

◆ Has() [2/3]

bool ElementContainer.Has ( SourceElement.Row row)

Definition at line 257 of file ElementContainer.cs.

◆ Has() [3/3]

bool ElementContainer.Has ( string alias)

Definition at line 263 of file ElementContainer.cs.

◆ HasBase()

bool ElementContainer.HasBase ( int ele)

Definition at line 269 of file ElementContainer.cs.

◆ ImportElementMap() [1/2]

void ElementContainer.ImportElementMap ( Dictionary< int, int > map)

Definition at line 149 of file ElementContainer.cs.

◆ ImportElementMap() [2/2]

ElementContainer ElementContainer.ImportElementMap ( int[] ints)

Definition at line 158 of file ElementContainer.cs.

◆ Learn()

void ElementContainer.Learn ( int ele,
int v = 1 )

Definition at line 305 of file ElementContainer.cs.

◆ ListBestAttributes()

List< Element > ElementContainer.ListBestAttributes ( )

Definition at line 667 of file ElementContainer.cs.

◆ ListBestSkills()

List< Element > ElementContainer.ListBestSkills ( )

Definition at line 675 of file ElementContainer.cs.

◆ ListElements()

List< Element > ElementContainer.ListElements ( Func< Element, bool > shoudList = null,
Comparison< Element > comparison = null )

Definition at line 639 of file ElementContainer.cs.

◆ ListGeneFeats()

List< Element > ElementContainer.ListGeneFeats ( )

Definition at line 683 of file ElementContainer.cs.

◆ ListLearnable()

List< Element > ElementContainer.ListLearnable ( Chara c)

Definition at line 689 of file ElementContainer.cs.

◆ ModBase()

Element ElementContainer.ModBase ( int ele,
int v )

Definition at line 468 of file ElementContainer.cs.

◆ ModExp()

void ElementContainer.ModExp ( int ele,
int a,
bool chain = false )

Definition at line 319 of file ElementContainer.cs.

◆ ModPotential()

Element ElementContainer.ModPotential ( int ele,
int v )

Definition at line 491 of file ElementContainer.cs.

◆ ModTempPotential()

Element ElementContainer.ModTempPotential ( int ele,
int v,
int threshMsg = 0 )

Definition at line 503 of file ElementContainer.cs.

◆ OnChangeValue()

virtual void ElementContainer.OnChangeValue ( )
virtual

Definition at line 486 of file ElementContainer.cs.

◆ OnLearn()

virtual void ElementContainer.OnLearn ( int ele)
virtual

Definition at line 393 of file ElementContainer.cs.

◆ OnLevelDown()

virtual void ElementContainer.OnLevelDown ( Element e,
int lastValue )
virtual

Definition at line 408 of file ElementContainer.cs.

◆ OnLevelUp()

virtual void ElementContainer.OnLevelUp ( Element e,
int lastValue )
virtual

Definition at line 403 of file ElementContainer.cs.

◆ OnModTempPotential()

virtual void ElementContainer.OnModTempPotential ( Element e,
int v,
int threshMsg )
virtual

Definition at line 516 of file ElementContainer.cs.

◆ OnTrain()

virtual void ElementContainer.OnTrain ( int ele)
virtual

Definition at line 398 of file ElementContainer.cs.

◆ Remove()

void ElementContainer.Remove ( int id)

Definition at line 453 of file ElementContainer.cs.

◆ SetBase() [1/2]

Element ElementContainer.SetBase ( int id,
int v,
int potential = 0 )

Definition at line 419 of file ElementContainer.cs.

◆ SetBase() [2/2]

Element ElementContainer.SetBase ( string alias,
int v,
int potential = 0 )

Definition at line 413 of file ElementContainer.cs.

◆ SetParent() [1/2]

void ElementContainer.SetParent ( Card c)

Definition at line 607 of file ElementContainer.cs.

◆ SetParent() [2/2]

void ElementContainer.SetParent ( ElementContainer newParent = null)

Definition at line 613 of file ElementContainer.cs.

◆ SetTo()

void ElementContainer.SetTo ( int id,
int v )

Definition at line 438 of file ElementContainer.cs.

◆ Train()

void ElementContainer.Train ( int ele,
int a = 10 )

Definition at line 312 of file ElementContainer.cs.

◆ Value()

int ElementContainer.Value ( int ele)

Definition at line 180 of file ElementContainer.cs.

◆ ValueBonus()

virtual int ElementContainer.ValueBonus ( Element e)
virtual

Definition at line 199 of file ElementContainer.cs.

◆ ValueWithoutLink() [1/2]

int ElementContainer.ValueWithoutLink ( int ele)

Definition at line 205 of file ElementContainer.cs.

◆ ValueWithoutLink() [2/2]

int ElementContainer.ValueWithoutLink ( string alias)

Definition at line 216 of file ElementContainer.cs.

Member Data Documentation

◆ dict

Dictionary<int, Element> ElementContainer.dict = new Dictionary<int, Element>()

Definition at line 945 of file ElementContainer.cs.

◆ list

List<int> ElementContainer.list

Definition at line 955 of file ElementContainer.cs.

◆ parent

ElementContainer ElementContainer.parent

Definition at line 948 of file ElementContainer.cs.

◆ sizeElement

const int ElementContainer.sizeElement = 5
static

Definition at line 951 of file ElementContainer.cs.

Property Documentation

◆ Card

virtual Card ElementContainer.Card
get

Definition at line 15 of file ElementContainer.cs.

◆ Chara

virtual Chara ElementContainer.Chara
get

Definition at line 25 of file ElementContainer.cs.

◆ IsMeleeWeapon

virtual bool ElementContainer.IsMeleeWeapon
get

Definition at line 35 of file ElementContainer.cs.


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