Example #1
0
        public void onClick(MapViewWindow view, Location loc, Point ab)
        {
            MountainVoxel mv = World.world[loc] as MountainVoxel;

            if (mv == null)
            {
                MainWindow.showError("Can only be placed on mountainsides");
                //! MainWindow.showError("山肌にしか設置できません");
                return;
            }

            TerraceVoxel.create(mv);
        }
Example #2
0
        public void onClick(MapViewWindow view, Location loc, Point ab)
        {
            TerraceVoxel tv = World.world[loc] as TerraceVoxel;

            if (tv == null)
            {
                MainWindow.showError("This is not a terrace");
                //! MainWindow.showError("雛壇ではありません");
                return;
            }
            if (World.world[loc.x, loc.y, loc.z + 1] != null)
            {
                MainWindow.showError("There are obstacles uphill");
                //! MainWindow.showError("上に障害物が乗っています");
                return;
            }

            tv.remove();
        }