Elin Decompiled Documentation EA 23.315 Nightly
Loading...
Searching...
No Matches
CustomGunEffectSetting Class Reference
Inheritance diagram for CustomGunEffectSetting:
CustomFileContent CustomContent EClass

Public Member Functions

override string ToString ()
 
- Public Member Functions inherited from CustomFileContent
bool HasFileChanged ()
 
virtual void OnSetLang (string lang)
 
void Load ()
 
- Public Member Functions inherited from CustomContent
virtual void OnGameLoad (GameIOContext context)
 
virtual void OnGameSave (GameIOContext context)
 
override string ToString ()
 

Static Public Member Functions

static CustomGunEffectSetting CreateFromFile (FileInfo file, ModPackage owner=null)
 
- 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)
 

Public Attributes

Dictionary< string, CustomGunEffectDataitems
 

Protected Member Functions

override void LoadContent ()
 
abstract void LoadContent ()
 

Additional Inherited Members

- Static Public Attributes inherited from EClass
static Core core
 
- Properties inherited from CustomFileContent
DateTime LastModified = DateTime.MinValue [get, set]
 
FileInfo File [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]
 

Detailed Description

Definition at line 4 of file CustomGunEffectSetting.cs.

Member Function Documentation

◆ CreateFromFile()

static CustomGunEffectSetting CustomGunEffectSetting.CreateFromFile ( FileInfo  file,
ModPackage  owner = null 
)
inlinestatic

Definition at line 8 of file CustomGunEffectSetting.cs.

9 {
10 if (owner == null)
11 {
12 owner = ModUtil.FindFileProviderPackage(file);
13 }
14 return new CustomGunEffectSetting
15 {
16 ContentId = "GunEffect/" + owner.id,
17 Owner = owner,
18 File = file
19 };
20 }
string ContentId
Definition: CustomContent.cs:6

References CustomContent.ContentId, CustomFileContent.File, and CustomContent.Owner.

◆ LoadContent()

override void CustomGunEffectSetting.LoadContent ( )
inlineprotectedvirtual

Implements CustomFileContent.

Definition at line 22 of file CustomGunEffectSetting.cs.

23 {
24 Dictionary<string, CustomGunEffectData> dictionary = IO.LoadFile<Dictionary<string, CustomGunEffectData>>(base.File.FullName, compress: false, GameIOContext.Settings);
25 items = dictionary;
26 }
Dictionary< string, CustomGunEffectData > items
Definition: IO.cs:10

References items.

◆ ToString()

override string CustomGunEffectSetting.ToString ( )
inline

Definition at line 28 of file CustomGunEffectSetting.cs.

29 {
30 return $"{base.ContentId}/items({items.Count})";
31 }

References $.

Member Data Documentation

◆ items

Dictionary<string, CustomGunEffectData> CustomGunEffectSetting.items

Definition at line 6 of file CustomGunEffectSetting.cs.

Referenced by LoadContent().


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