コード例 #1
0
        protected override void onSelected(Cube cube)
        {
            PThreeDimStructure s = World.world.getEntityAt(cube.corner) as PThreeDimStructure;

            if (s == null || s.type != contrib)
            {
                MainWindow.showError("Wrong type");
                //! MainWindow.showError("種類が違います");
                return;
            }
            s.remove();
        }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="cube"></param>
        protected override void OnSelected(Cube cube)
        {
            PThreeDimStructure s = WorldDefinition.World.GetEntityAt(cube.Corner) as PThreeDimStructure;

            if (s == null || s.type != contrib)
            {
                MessageBox.Show("Wrong type");
                //! MessageBox.Show("種類が違います");
                return;
            }
            s.remove();
        }
コード例 #3
0
 internal StationaryVoxel(PThreeDimStructure _owner, WorldLocator wloc)
     : base(_owner, wloc)
 {
 }