Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitTile.cs
1using System;
2
3// Token: 0x02000477 RID: 1143
4public class TraitTile : Trait
5{
6 // Token: 0x170009F0 RID: 2544
7 // (get) Token: 0x06001FB0 RID: 8112 RVA: 0x000B2C5F File Offset: 0x000B0E5F
8 public virtual TileRow source
9 {
10 get
11 {
12 return null;
13 }
14 }
15
16 // Token: 0x170009F1 RID: 2545
17 // (get) Token: 0x06001FB1 RID: 8113 RVA: 0x000B2C62 File Offset: 0x000B0E62
18 public virtual string suffix
19 {
20 get
21 {
22 return "";
23 }
24 }
25
26 // Token: 0x170009F2 RID: 2546
27 // (get) Token: 0x06001FB2 RID: 8114 RVA: 0x000B2C69 File Offset: 0x000B0E69
28 public override bool CanExtendBuild
29 {
30 get
31 {
32 return true;
33 }
34 }
35
36 // Token: 0x170009F3 RID: 2547
37 // (get) Token: 0x06001FB3 RID: 8115 RVA: 0x000B2C6C File Offset: 0x000B0E6C
38 public override bool CanBuildInTown
39 {
40 get
41 {
42 return false;
43 }
44 }
45
46 // Token: 0x06001FB4 RID: 8116 RVA: 0x000B2C6F File Offset: 0x000B0E6F
47 public override void SetName(ref string s)
48 {
49 s = this.source.GetName();
50 }
51
52 // Token: 0x06001FB5 RID: 8117 RVA: 0x000B2C7E File Offset: 0x000B0E7E
53 public override Recipe GetRecipe()
54 {
55 return Recipe.Create(RecipeManager.dict[this.source.RecipeID + this.suffix], this.owner.material.id, null);
56 }
57
58 // Token: 0x06001FB6 RID: 8118 RVA: 0x000B2CB6 File Offset: 0x000B0EB6
59 public override Recipe GetBuildModeRecipe()
60 {
61 return Recipe.Create(RecipeManager.dict[this.source.RecipeID + this.suffix], -1, this.owner.Thing);
62 }
63}
Definition Trait.cs:9