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

Public Types

enum  Type { Inferior , Default = 3 , Superior = 5 , Brain = 8 }
 

Public Member Functions

void Apply (Chara c)
 
void Apply (Chara c, bool reverse)
 
void GenerateWithGene (DNA.Type _type, Card gene, Chara model=null)
 
void Generate (DNA.Type _type, Chara model=null)
 
void CalcCost ()
 
string GetMaterialId (DNA.Type type)
 
int GetDurationHour ()
 
DNA.Type GetRandomType ()
 
string GetText ()
 
void WriteNote (UINote n)
 
Element GetInvalidFeat (Chara c)
 
Element GetInvalidAction (Chara c)
 

Static Public Member Functions

static Thing GenerateGene (Chara c, DNA.Type? type=null)
 
static Thing GenerateGene (CardRow r, DNA.Type? type=null, int lv=-1, int seed=-1)
 
static DNA.Type GetType (string idMat)
 
- 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

string id
 
int[] ints = new int[4]
 
List< int > vals = new List<int>()
 

Properties

DNA.Type type [get, set]
 
int cost [get, set]
 
int lv [get, set]
 
int seed [get, set]
 
- 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 8 of file DNA.cs.

Member Enumeration Documentation

◆ Type

enum DNA.Type

Definition at line 647 of file DNA.cs.

Member Function Documentation

◆ Apply() [1/2]

void DNA.Apply ( Chara c)

Definition at line 103 of file DNA.cs.

◆ Apply() [2/2]

void DNA.Apply ( Chara c,
bool reverse )

Definition at line 121 of file DNA.cs.

◆ CalcCost()

void DNA.CalcCost ( )

Definition at line 267 of file DNA.cs.

◆ Generate()

void DNA.Generate ( DNA.Type _type,
Chara model = null )

Definition at line 187 of file DNA.cs.

◆ GenerateGene() [1/2]

static Thing DNA.GenerateGene ( CardRow r,
DNA.Type? type = null,
int lv = -1,
int seed = -1 )
static

Definition at line 87 of file DNA.cs.

◆ GenerateGene() [2/2]

static Thing DNA.GenerateGene ( Chara c,
DNA.Type? type = null )
static

Definition at line 71 of file DNA.cs.

◆ GenerateWithGene()

void DNA.GenerateWithGene ( DNA.Type _type,
Card gene,
Chara model = null )

Definition at line 179 of file DNA.cs.

◆ GetDurationHour()

int DNA.GetDurationHour ( )

Definition at line 312 of file DNA.cs.

◆ GetInvalidAction()

Element DNA.GetInvalidAction ( Chara c)

Definition at line 440 of file DNA.cs.

◆ GetInvalidFeat()

Element DNA.GetInvalidFeat ( Chara c)

Definition at line 426 of file DNA.cs.

◆ GetMaterialId()

string DNA.GetMaterialId ( DNA.Type type)

Definition at line 294 of file DNA.cs.

◆ GetRandomType()

DNA.Type DNA.GetRandomType ( )

Definition at line 318 of file DNA.cs.

◆ GetText()

string DNA.GetText ( )

Definition at line 332 of file DNA.cs.

◆ GetType()

static DNA.Type DNA.GetType ( string idMat)
static

Definition at line 276 of file DNA.cs.

◆ WriteNote()

void DNA.WriteNote ( UINote n)

Definition at line 340 of file DNA.cs.

Member Data Documentation

◆ id

string DNA.id

Definition at line 636 of file DNA.cs.

◆ ints

int [] DNA.ints = new int[4]

Definition at line 640 of file DNA.cs.

◆ vals

List<int> DNA.vals = new List<int>()

Definition at line 644 of file DNA.cs.

Property Documentation

◆ cost

int DNA.cost
getset

Definition at line 28 of file DNA.cs.

◆ lv

int DNA.lv
getset

Definition at line 43 of file DNA.cs.

◆ seed

int DNA.seed
getset

Definition at line 58 of file DNA.cs.

◆ type

DNA.Type DNA.type
getset

Definition at line 13 of file DNA.cs.


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