Ejemplo n.º 1
0
 public WorldObjectPlaceTool(IXNAGame _game, World _world, SimpleMeshRenderer _renderer, TileSnapInformationBuilder _builder, IMeshFactory meshFactory, ITileFaceTypeFactory tileFaceTypeFactory)
 {
     game                     = _game;
     World                    = _world;
     renderer                 = _renderer;
     builder                  = _builder;
     this.meshFactory         = meshFactory;
     this.tileFaceTypeFactory = tileFaceTypeFactory;
     worldTileSnapper         = new WorldTileSnapper(builder);
 }
        public WorldObjectMoveTool(XNAGame _game, World world, TileSnapInformationBuilder _builder, SimpleMeshRenderer _renderer)
        {
            game  = _game;
            World = world;
            translationGizmo.Position = new Vector3(0, 0, 0);
            translationGizmo.Enabled  = true;

            rotationGizmo.Position = new Vector3(0, 0, 0);
            rotationGizmo.Enabled  = true;



            //worldObjectList = world.WorldObjectList; DERIVED DATA!!!!!!!!
            snapper.AddSnapper(new SnapperPointPoint());
            builder          = _builder;
            worldTileSnapper = new WorldTileSnapper(builder);
            renderer         = _renderer;
        }