Elin Modding Docs Doc
Loading...
Searching...
No Matches
CellDetail.cs
1using System;
2using System.Collections.Generic;
3
4// Token: 0x02000690 RID: 1680
5public class CellDetail
6{
7 // Token: 0x17000D6D RID: 3437
8 // (get) Token: 0x06002F8C RID: 12172 RVA: 0x0010C51E File Offset: 0x0010A71E
9 public static CellDetail Empty
10 {
11 get
12 {
13 return new CellDetail();
14 }
15 }
16
17 // Token: 0x06002F8D RID: 12173 RVA: 0x0010C525 File Offset: 0x0010A725
18 public static CellDetail Spawn()
19 {
20 if (CellDetail.cache.Count > 0)
21 {
22 return CellDetail.cache.Pop();
23 }
24 CellDetail.count++;
25 return new CellDetail();
26 }
27
28 // Token: 0x06002F8E RID: 12174 RVA: 0x0010C550 File Offset: 0x0010A750
29 public bool TryDespawn()
30 {
31 if (this.things.Count > 0 || this.charas.Count > 0 || this.area != null || this.footmark != null || this.designation != null || this.anime != null)
32 {
33 return false;
34 }
35 CellDetail.cache.Push(this);
36 return true;
37 }
38
39 // Token: 0x06002F8F RID: 12175 RVA: 0x0010C5A8 File Offset: 0x0010A7A8
40 public void MoveThingToBottom(Thing t)
41 {
42 if (this.things.Count == 1)
43 {
44 return;
45 }
46 this.things.Remove(t);
47 this.things.Insert(0, t);
48 int num = 0;
49 while (num < this.things.Count - 1 && this.things[num].IsInstalled)
50 {
51 t.stackOrder = num;
52 num++;
53 }
54 }
55
56 // Token: 0x06002F90 RID: 12176 RVA: 0x0010C610 File Offset: 0x0010A810
57 public void MoveThingToTop(Thing t)
58 {
59 if (this.things.Count == 1)
60 {
61 return;
62 }
63 int num = 0;
64 int num2 = 0;
65 while (num2 < this.things.Count - 1 && this.things[num2].IsInstalled)
66 {
67 num = num2 + 1;
68 num2++;
69 }
70 if (num >= this.things.Count)
71 {
72 num--;
73 }
74 this.things.Remove(t);
75 this.things.Insert(num, t);
76 t.stackOrder = num;
77 }
78
79 // Token: 0x04001ABE RID: 6846
80 public static int count;
81
82 // Token: 0x04001ABF RID: 6847
83 public static Map map;
84
85 // Token: 0x04001AC0 RID: 6848
86 public static Stack<CellDetail> cache = new Stack<CellDetail>();
87
88 // Token: 0x04001AC1 RID: 6849
89 public List<Thing> things = new List<Thing>(1);
90
91 // Token: 0x04001AC2 RID: 6850
92 public List<Chara> charas = new List<Chara>(1);
93
94 // Token: 0x04001AC3 RID: 6851
95 public Area area;
96
97 // Token: 0x04001AC4 RID: 6852
98 public Footmark footmark;
99
100 // Token: 0x04001AC5 RID: 6853
101 public TaskDesignation designation;
102
103 // Token: 0x04001AC6 RID: 6854
104 public TransAnime anime;
105}
Definition Area.cs:6
Definition Map.cs:15
Definition Thing.cs:10