示例#1
0
        public WallBuildTool(HullDataManager hullData)
            : base(hullData)
        {
            _tempWallBuffer = new ObjectBuffer<ObjectIdentifier>(
                hullData.FloorVertexes[0].Count()*2,
                10,
                20,
                30,
                "InternalWallTex")
                              {UpdateBufferManually = true};

            _tempWallIdentifiers = new List<ObjectIdentifier>();
        }
示例#2
0
        public WallMenuTool(HullDataManager hullData)
        {
            _toolbar = new Toolbar("Templates/BuildToolbar.json");
            _toolbar.Enabled = false;

            _toolbar.BindButtonToTool(
                0,
                new WallBuildTool(hullData)
                );

            _toolbar.BindButtonToTool(
                1,
                new WallDeleteTool(hullData)
                );
        }
示例#3
0
 public WallDeleteTool(HullDataManager hullData)
     : base(hullData)
 {
     _tempWallBuffer = new ObjectBuffer<ObjectIdentifier>(5000, 10, 20, 30, "WallDeleteMarqueeTex"){UpdateBufferManually = true};
     _prevIdentifiers = new List<ObjectIdentifier>();
 }