コード例 #1
0
 public override void OnBegin()
 {
     if (DestroyZoneTool == null)
     {
         DestroyZoneTool = new DestroyZoneTool(World);
     }
 }
コード例 #2
0
        public override void OnBegin()
        {
            Player.Faction.RoomBuilder.OnEnter();

            if (DestroyZoneTool == null)
            {
                DestroyZoneTool = new DestroyZoneTool()
                {
                    Player = this.Player
                }
            }
            ;
        }
コード例 #3
0
        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");
        }