public override void OnBegin() { if (DestroyZoneTool == null) { DestroyZoneTool = new DestroyZoneTool(World); } }
public override void OnBegin() { Player.Faction.RoomBuilder.OnEnter(); if (DestroyZoneTool == null) { DestroyZoneTool = new DestroyZoneTool() { Player = this.Player } } ; }
public override void OnBegin(Object Arguments) { if (DestroyZoneTool == null) { DestroyZoneTool = new DestroyZoneTool(World); } CurrentZoneType = Arguments as ZoneType; if (CurrentZoneType == null) { throw new InvalidOperationException("Invalid zone type passed to BuildZoneTool"); } World.UserInterface.VoxSelector.SelectionType = VoxelSelectionType.SelectFilled; World.UserInterface.VoxSelector.DrawVoxel = true; World.UserInterface.VoxSelector.DrawBox = true; World.UserInterface.ShowToolPopup("Click and drag to build " + CurrentZoneType.Name); World.Tutorial("build rooms"); }