Esempio n. 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public GeometryNode(Rcol parent) : base(parent)
        {
            ogn        = new ObjectGraphNode(null);
            this.sgres = new SGResource(null);

            version = 0x0c;
            BlockID = 0x7BA3838C;

            data = new IRcolBlock[0];
        }
Esempio n. 2
0
        /*public Rcol Parent
         * {
         *      get { return parent; }
         * }*/

        /// <summary>
        /// Constructor
        /// </summary>
        public Shape(Rcol parent) : base(parent)
        {
            sgres   = new SGResource(null);
            refnode = new ReferentNode(null);
            ogn     = new ObjectGraphNode(null);

            unknown = new uint[0];
            items   = new ShapeItem[0];
            parts   = new ShapePart[0];
            BlockID = 0xFC6EB1F7;
        }
Esempio n. 3
0
        /// <summary>
        /// Constructor
        /// </summary>
        public ResourceNode(Rcol parent) : base(parent)
        {
            sgres = new SGResource(null);
            ogn   = new ObjectGraphNode(null);
            ctn   = new CompositionTreeNode(null);
            items = new ResourceNodeItem[0];

            version  = 0x07;
            typecode = 0x01;
            BlockID  = 0xE519C933;
        }
Esempio n. 4
0
 public override void Dispose()
 {
     if (this.tTransformNode != null)
     {
         this.tTransformNode.Dispose();
     }
     tTransformNode = null;
     ctn            = null;
     ogn            = null;
     items          = null;
     trans          = null;
 }
Esempio n. 5
0
        /// <summary>
        /// Constructor
        /// </summary>
        public DirectionalLight(Rcol parent) : base(parent)
        {
            version = 1;
            BlockID = 0xC9C81BA3;

            slb   = new StandardLightBase(null);
            sgres = new SGResource(null);
            lt    = new LightT(null);
            rn    = new ReferentNode(null);
            ogn   = new ObjectGraphNode(null);

            unknown2 = "";
        }
Esempio n. 6
0
        /// <summary>
        /// Constructor
        /// </summary>
        public TransformNode(Rcol parent) : base(parent)
        {
            ctn = new CompositionTreeNode(parent);
            ogn = new ObjectGraphNode(parent);

            items = new TransformNodeItems();

            trans = new VectorTransformation(VectorTransformation.TransformOrder.TranslateRotate);

            version = 0x07;
            BlockID = 0x65246462;

            unknown = NO_JOINT;
        }
Esempio n. 7
0
 public override void Dispose()
 {
     if (this.tResourceNode != null)
     {
         this.tResourceNode.Dispose();
     }
     tResourceNode = null;
     if (tCres != null)
     {
         tCres.Dispose();
     }
     tCres = null;
     sgres = null;
     ogn   = null;
     ctn   = null;
     items = new ResourceNodeItem[0];
 }