Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
BackerContentInspector.cs
Go to the documentation of this file.
1
using
System;
2
3
public
class
BackerContentInspector
:
EMono
4
{
5
[Serializable]
6
public
class
Content
7
{
8
public
int
id
;
9
10
public
virtual
string
name
=>
id
.ToString() ??
""
;
11
12
public
virtual
void
OnValidate
()
13
{
14
}
15
16
public
virtual
void
Apply
()
17
{
18
}
19
20
public
virtual
void
Remove
()
21
{
22
}
23
}
24
25
public
class
ContentObj
:
Content
26
{
27
public
Point
p
;
28
29
public
override
string
name
=>
p
.
cell
.
GetObjName
();
30
31
public
override
void
Apply
()
32
{
33
EMono
.
_map
.
ApplyBackerObj
(
p
,
id
);
34
}
35
36
public
override
void
Remove
()
37
{
38
EMono
.
_map
.
backerObjs
.Remove(
p
.
index
);
39
}
40
}
41
42
public
class
ContentCard
:
Content
43
{
44
public
Card
c
;
45
46
public
override
string
name
=> c.id +
"/"
+
c
.
Name
;
47
48
public
override
void
Apply
()
49
{
50
c
.
ApplyBacker
(
id
);
51
}
52
53
public
override
void
Remove
()
54
{
55
c
.
RemoveBacker
();
56
}
57
}
58
59
public
static
BackerContentInspector
Instance
;
60
61
public
Content
content
;
62
63
private
void
Awake
()
64
{
65
Instance
=
this
;
66
}
67
68
public
void
Apply
()
69
{
70
content
.
Apply
();
71
}
72
73
public
void
Remove
()
74
{
75
content
.
Remove
();
76
}
77
}
BackerContentInspector.ContentCard
Definition:
BackerContentInspector.cs:43
BackerContentInspector.ContentCard.c
Card c
Definition:
BackerContentInspector.cs:44
BackerContentInspector.ContentCard.name
override string name
Definition:
BackerContentInspector.cs:46
BackerContentInspector.ContentCard.Remove
override void Remove()
Definition:
BackerContentInspector.cs:53
BackerContentInspector.ContentCard.Apply
override void Apply()
Definition:
BackerContentInspector.cs:48
BackerContentInspector.ContentObj
Definition:
BackerContentInspector.cs:26
BackerContentInspector.ContentObj.p
Point p
Definition:
BackerContentInspector.cs:27
BackerContentInspector.ContentObj.Apply
override void Apply()
Definition:
BackerContentInspector.cs:31
BackerContentInspector.ContentObj.Remove
override void Remove()
Definition:
BackerContentInspector.cs:36
BackerContentInspector.ContentObj.name
override string name
Definition:
BackerContentInspector.cs:29
BackerContentInspector.Content
Definition:
BackerContentInspector.cs:7
BackerContentInspector.Content.OnValidate
virtual void OnValidate()
Definition:
BackerContentInspector.cs:12
BackerContentInspector.Content.name
virtual string name
Definition:
BackerContentInspector.cs:10
BackerContentInspector.Content.Apply
virtual void Apply()
Definition:
BackerContentInspector.cs:16
BackerContentInspector.Content.Remove
virtual void Remove()
Definition:
BackerContentInspector.cs:20
BackerContentInspector.Content.id
int id
Definition:
BackerContentInspector.cs:8
BackerContentInspector
Definition:
BackerContentInspector.cs:4
BackerContentInspector.Awake
void Awake()
Definition:
BackerContentInspector.cs:63
BackerContentInspector.Instance
static BackerContentInspector Instance
Definition:
BackerContentInspector.cs:59
BackerContentInspector.Remove
void Remove()
Definition:
BackerContentInspector.cs:73
BackerContentInspector.content
Content content
Definition:
BackerContentInspector.cs:61
BackerContentInspector.Apply
void Apply()
Definition:
BackerContentInspector.cs:68
Card
Definition:
Card.cs:11
Card.Name
string Name
Definition:
Card.cs:2013
Card.RemoveBacker
void RemoveBacker()
Definition:
Card.cs:6229
Card.ApplyBacker
void ApplyBacker(int bid)
Definition:
Card.cs:6193
Cell.GetObjName
string GetObjName()
Definition:
Cell.cs:1600
EMono
Definition:
EMono.cs:4
EMono._map
static Map _map
Definition:
EMono.cs:17
Map.backerObjs
Dictionary< int, int > backerObjs
Definition:
Map.cs:67
Map.ApplyBackerObj
void ApplyBackerObj(Point p, int id=-1)
Definition:
Map.cs:1588
Point
Definition:
Point.cs:9
Point.index
int index
Definition:
Point.cs:49
Point.cell
Cell cell
Definition:
Point.cs:51
Elin
BackerContentInspector.cs
Generated by
1.9.6