Elin Decompiled Documentation EA 23.130 Nightly
Loading...
Searching...
No Matches
SourcePrefInspector Class Reference
Inheritance diagram for SourcePrefInspector:
EMono

Public Member Functions

void ToggleUsePref ()
 
void ValidatePrefs ()
 

Public Attributes

string id
 
SourcePref pref
 
ShadowData.Item shadow
 
ShadowData shadowData
 

Static Public Attributes

static SourcePrefInspector Instance
 
static bool dirty
 
- Static Public Attributes inherited from EMono
static Core core
 

Properties

bool CanToggleUsePref [get]
 
- Properties inherited from EMono
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 Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Private Member Functions

void Awake ()
 
void OnValidate ()
 
void OnApplicationQuit ()
 

Private Attributes

Point lastPoint = new Point()
 
int index
 
int lastShadowIndex = -1
 
RenderRow target
 
Card card
 
List< RenderRowlist = new List<RenderRow>()
 

Additional Inherited Members

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 

Detailed Description

Definition at line 4 of file SourcePrefInspector.cs.

Member Function Documentation

◆ Awake()

void SourcePrefInspector.Awake ( )
inlineprivate

Definition at line 51 of file SourcePrefInspector.cs.

52 {
53 Instance = this;
54 ShadowData.Instance = shadowData;
55 }
static SourcePrefInspector Instance

References Instance, and shadowData.

◆ OnApplicationQuit()

void SourcePrefInspector.OnApplicationQuit ( )
inlineprivate

Definition at line 79 of file SourcePrefInspector.cs.

80 {
81 }

◆ OnValidate()

void SourcePrefInspector.OnValidate ( )
inlineprivate

Definition at line 57 of file SourcePrefInspector.cs.

58 {
59 if (card != null && card.ExistsOnMap)
60 {
61 card.isFloating = card.Pref.Float;
62 }
63 }
bool ExistsOnMap
Definition: Card.cs:1985
virtual SourcePref Pref
Definition: Card.cs:2007
bool Float
Definition: SourcePref.cs:312

References card, Card.ExistsOnMap, SourcePref.Float, and Card.Pref.

◆ ToggleUsePref()

void SourcePrefInspector.ToggleUsePref ( )
inline

Definition at line 43 of file SourcePrefInspector.cs.

44 {
46 {
47 (target as CardRow).pref.flags |= PrefFlag.UsePref;
48 }
49 }
PrefFlag
Definition: PrefFlag.cs:5
PrefFlag flags
Definition: SourcePref.cs:23

References CanToggleUsePref, SourcePref.flags, pref, and target.

◆ ValidatePrefs()

void SourcePrefInspector.ValidatePrefs ( )
inline

Definition at line 65 of file SourcePrefInspector.cs.

66 {
67 EMono.debug.validatePref = false;
70 EMono.sources.things.ValidatePref();
74 {
75 item.Validate();
76 }
77 }
Definition: EMono.cs:4
static SourceManager sources
Definition: EMono.cs:41
List< Item > items
Definition: ShadowData.cs:101
override void ValidatePref()
Definition: SourceChara.cs:211
SourceThingV thingV
SourceObj objs
SourceThing things
SourceFood foods
SourceChara charas
override void ValidatePref()
Definition: SourceObj.cs:141
override void ValidatePref()
Definition: SourceThingV.cs:82

References SourceManager.charas, SourceManager.foods, item, ShadowData.items, SourceManager.objs, shadowData, EMono.sources, SourceManager.things, SourceManager.thingV, SourceChara.ValidatePref(), SourceObj.ValidatePref(), and SourceThingV.ValidatePref().

Referenced by Core.Init().

Member Data Documentation

◆ card

Card SourcePrefInspector.card
private

Definition at line 21 of file SourcePrefInspector.cs.

Referenced by OnValidate().

◆ dirty

bool SourcePrefInspector.dirty
static

Definition at line 27 of file SourcePrefInspector.cs.

◆ id

string SourcePrefInspector.id

Definition at line 8 of file SourcePrefInspector.cs.

◆ index

int SourcePrefInspector.index
private

Definition at line 15 of file SourcePrefInspector.cs.

◆ Instance

SourcePrefInspector SourcePrefInspector.Instance
static

Definition at line 6 of file SourcePrefInspector.cs.

Referenced by Awake(), and Core.Init().

◆ lastPoint

Point SourcePrefInspector.lastPoint = new Point()
private

Definition at line 13 of file SourcePrefInspector.cs.

◆ lastShadowIndex

int SourcePrefInspector.lastShadowIndex = -1
private

Definition at line 17 of file SourcePrefInspector.cs.

◆ list

List<RenderRow> SourcePrefInspector.list = new List<RenderRow>()
private

Definition at line 29 of file SourcePrefInspector.cs.

◆ pref

SourcePref SourcePrefInspector.pref

Definition at line 11 of file SourcePrefInspector.cs.

Referenced by ToggleUsePref().

◆ shadow

ShadowData.Item SourcePrefInspector.shadow

Definition at line 23 of file SourcePrefInspector.cs.

◆ shadowData

ShadowData SourcePrefInspector.shadowData

Definition at line 25 of file SourcePrefInspector.cs.

Referenced by Awake(), and ValidatePrefs().

◆ target

RenderRow SourcePrefInspector.target
private

Definition at line 19 of file SourcePrefInspector.cs.

Referenced by ToggleUsePref().

Property Documentation

◆ CanToggleUsePref

bool SourcePrefInspector.CanToggleUsePref
get

Definition at line 31 of file SourcePrefInspector.cs.

32 {
33 get
34 {
35 if (target is CardRow { origin: not null } cardRow)
36 {
37 return !cardRow.pref.UsePref;
38 }
39 return false;
40 }
41 }

Referenced by ToggleUsePref().


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