Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitPainter.cs
1
using
System;
2
using
System.Collections.Generic;
3
4
// Token: 0x02000457 RID: 1111
5
public
class
TraitPainter
:
TraitItem
6
{
7
// Token: 0x170009A5 RID: 2469
8
// (get) Token: 0x06001F0E RID: 7950 RVA: 0x000B0FE2 File Offset: 0x000AF1E2
9
public
virtual
TraitPainter.Type PaintType
10
{
11
get
12
{
13
return
TraitPainter
.Type.Paint;
14
}
15
}
16
17
// Token: 0x06001F0F RID: 7951 RVA: 0x000B0FE5 File Offset: 0x000AF1E5
18
public
override
bool
CanUse(
Chara
c)
19
{
20
return
this.GetCanvas() !=
null
;
21
}
22
23
// Token: 0x06001F10 RID: 7952 RVA: 0x000B0FF0 File Offset: 0x000AF1F0
24
public
override
bool
OnUse(
Chara
c)
25
{
26
ActionMode
.Paint.SetPainter(
this
);
27
return
false
;
28
}
29
30
// Token: 0x06001F11 RID: 7953 RVA: 0x000B1000 File Offset: 0x000AF200
31
public
TraitCanvas
GetCanvas()
32
{
33
List<Thing> list =
EClass
.pc.things.List((
Thing
t) => t.trait is
TraitCanvas
&& (t.trait as
TraitCanvas
).CanvasType ==
this
.PaintType && t.c_textureData ==
null
,
false
);
34
if
(list.Count <= 0)
35
{
36
return
null
;
37
}
38
return
list[0].trait as
TraitCanvas
;
39
}
40
41
// Token: 0x020009D1 RID: 2513
42
public
enum
Type
43
{
44
// Token: 0x040028C6 RID: 10438
45
Paint,
46
// Token: 0x040028C7 RID: 10439
47
Camera,
48
// Token: 0x040028C8 RID: 10440
49
Paper
50
}
51
}
ActionMode
Definition
ActionMode.cs:8
Chara
Definition
Chara.cs:12
EClass
Definition
EClass.cs:7
Thing
Definition
Thing.cs:10
TraitCanvas
Definition
TraitCanvas.cs:7
TraitItem
Definition
TraitItem.cs:5
TraitPainter
Definition
TraitPainter.cs:6
Elin
TraitPainter.cs
Generated by
1.12.0