Ejemplo n.º 1
0
 public UIRoofer(VM vm, LotView.World world, ILotControl parent, List <int> parameters)
 {
     vm.SendCommand(new VMNetSetRoofCmd()
     {
         Pitch = vm.Context.Architecture.RoofPitch,
         Style = (uint)parameters[0]
     });
 }
Ejemplo n.º 2
0
        public UITerrainRaiser(VM vm, LotView.World world, ILotControl parent, List <int> parameters)
        {
            this.vm    = vm;
            World      = parent.World;
            Parent     = parent;
            WallCursor = vm.Context.CreateObjectInstance(0x2F39B7A6, LotTilePos.OUT_OF_WORLD, FSO.LotView.Model.Direction.NORTH, true);

            ((ObjectComponent)WallCursor.Objects[0].WorldUI).ForceDynamic = true;
        }
Ejemplo n.º 3
0
        public UIFloorPainter(VM vm, LotView.World world, ILotControl parent, List <int> parameters)
        {
            Pattern = (ushort)parameters[0];

            this.vm = vm;
            World   = parent.World;
            Parent  = parent;

            Commands = new List <VMArchitectureCommand>();
        }
Ejemplo n.º 4
0
        public UIWallPainter(VM vm, LotView.World world, ILotControl parent, List <int> parameters)
        {
            Pattern = (ushort)parameters[0];

            this.vm    = vm;
            World      = parent.World;
            Parent     = parent;
            WallCursor = vm.Context.CreateObjectInstance(0x00000439, LotTilePos.OUT_OF_WORLD, FSO.LotView.Model.Direction.NORTH, true);

            ((ObjectComponent)WallCursor.Objects[0].WorldUI).ForceDynamic = true;
            Commands = new List <VMArchitectureCommand>();

            SetCursorGraphic(2);
        }
Ejemplo n.º 5
0
        public UIWallPlacer(VM vm, LotView.World world, ILotControl parent, List <int> parameters)
        {
            Pattern = (ushort)parameters[0];
            Style   = (ushort)parameters[1];
            if (Style == 1)
            {
                DrawPattern = 255;
                DrawStyle   = 255;
            }
            else
            {
                DrawPattern = Pattern;
                DrawStyle   = Style;
            }

            this.vm    = vm;
            World      = parent.World;
            Parent     = parent;
            WallCursor = vm.Context.CreateObjectInstance(0x00000439, LotTilePos.OUT_OF_WORLD, FSO.LotView.Model.Direction.NORTH, true);

            ((ObjectComponent)WallCursor.Objects[0].WorldUI).ForceDynamic = true;
        }