/// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="document">Scene document.</param>
        /// <param name="entity">Entity owning this proxy.</param>
        /// <param name="quadTerrain">Quad terrain to proxy.</param>
        public QuadTerrainProxy(SceneDocument document, EntityProxy entity, QuadTerrainComponent quadTerrain)
            : base(document, entity)
        {
            base.name        = defaultName;
            this.quadTerrain = quadTerrain;

            // Add to entity
            base.Entity.Components.Add(quadTerrain);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="document">Scene document.</param>
        /// <param name="entity">Entity owning this proxy.</param>
        /// <param name="model">Model to proxy.</param>
        public DaggerfallModelProxy(SceneDocument document, EntityProxy entity, DaggerfallModelComponent model)
            : base(document, entity)
        {
            base.name  = defaultName;
            this.model = model;

            // Add to parent entity
            base.Entity.Components.Add(model);
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="document">Scene document.</param>
        /// <param name="entity">Entity owning this proxy.</param>
        /// <param name="block">Block to proxy.</param>
        public DaggerfallBlockProxy(SceneDocument document, EntityProxy entity, DaggerfallBlockComponent block)
            : base(document, entity)
        {
            base.name  = defaultName;
            this.block = block;

            // Add to parent entity
            base.Entity.Components.Add(block);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="document">Scene document.</param>
 /// <param name="entity">Entity owning this proxy.</param>
 public BaseEditorProxy(SceneDocument document, EntityProxy entity)
 {
     // Save references
     this.document    = document;
     this.entityProxy = entity;
     if (entity != null)
     {
         this.entity = entity.Entity;
     }
 }
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="document">Scene document.</param>
        /// <param name="entity">Parent entity</param>
        public BasePrimitiveProxy(SceneDocument document, EntityProxy entity)
            : base(document, entity)
        {
            primitive     = new GeometricPrimitiveComponent(document.EditorScene.Core);
            this.ColorRGB = System.Drawing.Color.White;
            this.ColorW   = 0.0f;
            UpdatePrimitive();

            base.Entity.Components.Add(primitive);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="document">Scene document.</param>
        /// <param name="entity">Parent entity</param>
        public LightProxy(SceneDocument document, EntityProxy entity)
            : base(document, entity)
        {
            base.Name              = defaultName;
            this.light             = new LightComponent(document.EditorScene.Core);
            this.light.PointRadius = 8f;
            this.light.Direction   = Vector3.Down;
            this.lightType         = LightProxyTypes.Ambient;
            UpdateLight();

            base.Entity.Components.Add(light);
        }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="document">Scene document.</param>
 /// <param name="entity">Entity owning this proxy.</param>
 public BaseComponentProxy(SceneDocument document, EntityProxy entity)
     : base(document, entity)
 {
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="document">Scene document.</param>
 /// <param name="entity">Parent entity</param>
 public SphereProxy(SceneDocument document, EntityProxy entity)
     : base(document, entity)
 {
     base.name = defaultName;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="document">Scene document.</param>
 /// <param name="entity">Entity owning this proxy.</param>
 public BaseTransformableProxy(SceneDocument document, EntityProxy entity)
     : base(document, entity)
 {
 }