Elin Decompiled Documentation EA 23.312 Nightly Patch 4
Loading...
Searching...
No Matches
CustomMaterialContent Class Reference
Inheritance diagram for CustomMaterialContent:
CustomSourceContent CustomContent EClass

Static Public Member Functions

static CustomMaterialContent CreateFromRow (SourceMaterial.Row r, ModPackage owner=null)
 
- Static Public Member Functions inherited from CustomSourceContent
static string string string[] kv GetParams (string tag)
 
- Static Public Member Functions inherited from EClass
static int rndSeed (int a, int seed)
 
static int rnd (long a)
 
static int rnd (int a)
 
static int curve (long _a, int start, int step, int rate=75)
 
static int sqrt (int a)
 
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)
 

Properties

override string SourceType [get]
 
- Properties inherited from CustomSourceContent
virtual string SourceType [get]
 
string SourceId [get, set]
 
- Properties inherited from CustomContent
string ContentId [get, protected set]
 
EMod Owner [get, protected 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

- Public Member Functions inherited from CustomContent
virtual void OnGameLoad (GameIOContext context)
 
virtual void OnGameSave (GameIOContext context)
 
override string ToString ()
 
- Static Public Attributes inherited from CustomSourceContent
static string action
 
static string string spec
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 1 of file CustomMaterialContent.cs.

Member Function Documentation

◆ CreateFromRow()

static CustomMaterialContent CustomMaterialContent.CreateFromRow ( SourceMaterial::Row  r,
ModPackage  owner = null 
)
inlinestatic

Definition at line 5 of file CustomMaterialContent.cs.

6 {
7 if (owner == null)
8 {
9 owner = ModUtil.FindSourceRowPackage(r);
10 }
11 return new CustomMaterialContent
12 {
13 ContentId = "Material/" + r.alias,
14 SourceId = r.alias,
15 Owner = owner
16 };
17 }
string ContentId
Definition: CustomContent.cs:6

References CustomContent.ContentId, CustomContent.Owner, and CustomSourceContent.SourceId.

Referenced by ModPackage.GenerateCustomContentProfiles().

Property Documentation

◆ SourceType

override string CustomMaterialContent.SourceType
get

Definition at line 3 of file CustomMaterialContent.cs.


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