Elin Decompiled Documentation EA 23.183 Nightly Patch 1
Loading...
Searching...
No Matches
CellDetail Class Reference

Public Member Functions

bool TryDespawn ()
 
void MoveThingToBottom (Thing t)
 
void MoveThingToTop (Thing t)
 

Static Public Member Functions

static CellDetail Spawn ()
 

Public Attributes

List< Thingthings = new List<Thing>(1)
 
List< Characharas = new List<Chara>(1)
 
Area area
 
Footmark footmark
 
TaskDesignation designation
 
TransAnime anime
 

Static Public Attributes

static int count
 
static Map map
 
static Stack< CellDetailcache = new Stack<CellDetail>()
 

Properties

static CellDetail Empty [get]
 

Detailed Description

Definition at line 3 of file CellDetail.cs.

Member Function Documentation

◆ MoveThingToBottom()

void CellDetail.MoveThingToBottom ( Thing  t)
inline

Definition at line 45 of file CellDetail.cs.

46 {
47 if (things.Count != 1)
48 {
49 things.Remove(t);
50 things.Insert(0, t);
51 for (int i = 0; i < things.Count && things[i].IsInstalled; i++)
52 {
53 things[i].stackOrder = i;
54 }
55 }
56 }
List< Thing > things
Definition: CellDetail.cs:11

References things.

Referenced by Card.SetPlaceState().

◆ MoveThingToTop()

void CellDetail.MoveThingToTop ( Thing  t)
inline

Definition at line 58 of file CellDetail.cs.

59 {
60 if (things.Count != 1)
61 {
62 int num = 0;
63 for (int i = 0; i < things.Count && things[i].IsInstalled; i++)
64 {
65 num = i + 1;
66 }
67 if (num >= things.Count)
68 {
69 num--;
70 }
71 things.Remove(t);
72 things.Insert(num, t);
73 t.stackOrder = num;
74 }
75 }

References things.

Referenced by Card.SetPlaceState().

◆ Spawn()

static CellDetail CellDetail.Spawn ( )
inlinestatic

Definition at line 25 of file CellDetail.cs.

26 {
27 if (cache.Count > 0)
28 {
29 return cache.Pop();
30 }
31 count++;
32 return new CellDetail();
33 }
static int count
Definition: CellDetail.cs:5
static Stack< CellDetail > cache
Definition: CellDetail.cs:9

References cache, and count.

Referenced by Cell.GetOrCreateDetail().

◆ TryDespawn()

bool CellDetail.TryDespawn ( )
inline

Definition at line 35 of file CellDetail.cs.

36 {
37 if (things.Count > 0 || charas.Count > 0 || area != null || footmark != null || designation != null || anime != null)
38 {
39 return false;
40 }
41 cache.Push(this);
42 return true;
43 }
TaskDesignation designation
Definition: CellDetail.cs:19
TransAnime anime
Definition: CellDetail.cs:21
List< Chara > charas
Definition: CellDetail.cs:13
Area area
Definition: CellDetail.cs:15
Footmark footmark
Definition: CellDetail.cs:17

References anime, area, cache, charas, designation, footmark, and things.

Referenced by Cell.TryDespawnDetail().

Member Data Documentation

◆ anime

◆ area

Area CellDetail.area

◆ cache

Stack<CellDetail> CellDetail.cache = new Stack<CellDetail>()
static

Definition at line 9 of file CellDetail.cs.

Referenced by Spawn(), TryDespawn(), and WidgetDebug.UpdateText().

◆ charas

◆ count

int CellDetail.count
static

Definition at line 5 of file CellDetail.cs.

Referenced by Spawn(), and WidgetDebug.UpdateText().

◆ designation

◆ footmark

Footmark CellDetail.footmark

◆ map

Map CellDetail.map
static

Definition at line 7 of file CellDetail.cs.

◆ things

Property Documentation

◆ Empty

CellDetail CellDetail.Empty
staticget

Definition at line 23 of file CellDetail.cs.


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