9 public override bool IsBuildMode
19 public override BaseTileSelector.HitType hitType
23 return EClass.core.screen.tileSelector.inspectHitType;
29 public override BaseTileSelector.SelectType selectType
38 public override void OnUpdateCursor()
40 base.SetCursorOnMap(CursorSystem.Picker);
54 public override HitResult HitTest(
Point point,
Point start)
56 if (!this.Test(point,
false).IsValid)
58 return HitResult.Default;
60 return HitResult.Valid;
64 public override void OnProcessTiles(
Point point,
int dir)
66 this.Test(point,
true);
70 public override void OnRenderTile(
Point point, HitResult result,
int dir)
72 if (point.cell.HasWallOrFence && (result == HitResult.Valid || result == HitResult.Invalid))
74 EClass.screen.guide.DrawWall(point, (result == HitResult.Valid) ?
EClass.Colors.blockColors.Valid :
EClass.Colors.blockColors.Warning,
false, 0f);
77 base.OnRenderTile(point, result, dir);
86 source = this.TryGetRecipe(point.sourceBlock.RecipeID)
94 if (point.cell._bridge == 0)
96 result.mat = point.matFloor;
97 result.source = this.TryGetRecipe(point.sourceFloor.RecipeID);
101 result.mat = point.cell.matBridge;
102 result.source = this.TryGetRecipe(point.cell.sourceBridge.RecipeID +
"-b");
111 if (t.trait.IsGround)
115 result.mat = t.material;
116 result.source = this.TryGetRecipe(t.sourceCard.RecipeID);
124 List<Card> list = point.ListCards(
true);
125 for (
int i = list.Count - 1; i >= 0; i--)
138 if (traitHouseBoard !=
null)
140 ActionMode.Build.houseBoard = traitHouseBoard;
153 this.Select(result2);
165 this.Select(result3);
176 return EClass.player.recipes.GetSource(
id);
182 ActionMode.ignoreSound =
true;
189 public bool CanActivate
193 return !base.IsActive && (EClass.debug.godBuild || (EClass.Branch !=
null &&
EClass.Branch.elements.Has(4005)));
206 return this.source !=
null;
211 public string GetText()
213 return string.Concat(
new string[]
216 EClass.debug.showExtra ? (
":" + this.source.id) :
"",
219 EClass.debug.showExtra ? (
":" + this.mat.id.ToString()) :
"",
221 EClass.player.recipes.IsKnown(this.source.id) ?
"" : (Environment.NewLine +
"noRecipe".lang())
227 public string category
231 return this.source.recipeCat;