Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
SourcePrefInspector.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3
5{
7
8 public string id;
9
10 [NonSerialized]
12
13 private Point lastPoint = new Point();
14
15 private int index;
16
17 private int lastShadowIndex = -1;
18
20
21 private Card card;
22
24
26
27 public static bool dirty;
28
29 private List<RenderRow> list = new List<RenderRow>();
30
31 public bool CanToggleUsePref
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 }
42
43 public void ToggleUsePref()
44 {
46 {
47 (target as CardRow).pref.flags |= PrefFlag.UsePref;
48 }
49 }
50
51 private void Awake()
52 {
53 Instance = this;
54 ShadowData.Instance = shadowData;
55 }
56
57 private void OnValidate()
58 {
59 if (card != null && card.ExistsOnMap)
60 {
61 card.isFloating = card.Pref.Float;
62 }
63 }
64
65 public void ValidatePrefs()
66 {
67 EMono.debug.validatePref = false;
70 EMono.sources.things.ValidatePref();
74 {
75 item.Validate();
76 }
77 }
78
79 private void OnApplicationQuit()
80 {
81 }
82}
PrefFlag
Definition: PrefFlag.cs:5
Definition: Card.cs:11
bool ExistsOnMap
Definition: Card.cs:1961
virtual SourcePref Pref
Definition: Card.cs:1983
Definition: EMono.cs:4
static SourceManager sources
Definition: EMono.cs:41
Definition: Point.cs:9
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
static SourcePrefInspector Instance
ShadowData.Item shadow
List< RenderRow > list
bool Float
Definition: SourcePref.cs:312
PrefFlag flags
Definition: SourcePref.cs:23
override void ValidatePref()
Definition: SourceThingV.cs:82