public ItemBase(string image, string caption, bool givable = true, bool combinable = true) { Sprite .Create(this) .SetRenderStage(RenderStage.PostBloom) .SetImage(image); Transform .Create(this); Interaction .Create(this) .SetGetInteractionsFn(GetInteractions); HotspotSprite .Create(this) .SetCaption(caption); if (givable) { Givable .Create(this); } if (combinable) { Combinable .Create(this); } }
public DrillingMachine() { Interaction .Create(this) .SetPosition(408, 261) .SetDirection(Directions8.Up) .SetGetInteractionsFn(GetInteractions); HotspotRectangle .Create(this) .SetCaption(Basement_Res.drilling_machine) .AddRectangle(411, 154, 21, 22); Transform .Create(this) .SetPosition(426, 152) .SetZ(Workbench.Z + 1); Sprite .Create(this) .SetImage(content.rooms.basement.drillholesaw) .SetVisible(false); Combinable .Create(this); Enabled = false; }
public DrillingMachineCable() { Interaction .Create(this) .SetPosition(408, 261) .SetDirection(Directions8.Up) .SetGetInteractionsFn(GetInteractions); HotspotRectangle .Create(this) .SetCaption(Basement_Res.cable) .AddRectangle(387, 224, 28, 13); Transform .Create(this) .SetPosition(234, 203) .SetZ(-1.5f); Sprite .Create(this) .SetImage(content.rooms.basement.cable) .SetVisible(false); Combinable .Create(this); Enabled = false; }