コード例 #1
0
        public override void Load(asStream stream)
        {
            Resolution = stream.GetShort();
            Stride     = stream.GetShort();

            Unknown = stream.GetShort();

            Flags = stream.GetShort();

            Material = stream.GetShort();
            Texture  = stream.GetShort();
            Physics  = stream.GetShort();

            var numVerts = (Resolution * Stride);

            Vertices = new List <DLPVertex>(numVerts);

            for (int i = 0; i < numVerts; i++)
            {
                var vertex = new DLPVertex(stream);
                Vertices.Add(vertex);
            }

            UserData = stream.GetString();
        }
コード例 #2
0
        public override void Load(asStream stream)
        {
            Name = stream.GetString(32);

            Flags = stream.GetByte();

            Unknown1 = stream.GetByte();
            Unknown2 = stream.GetByte();

            // ignore alignment
            stream.Skip(1);
        }
コード例 #3
0
        public override void Load(asStream stream)
        {
            Name = stream.GetString(32);

            Emission = new ColorRGBA(stream);

            Ambient = new ColorRGBA(stream);
            Diffuse = new ColorRGBA(stream);

            Specular = new ColorRGBA(stream);

            Shininess = stream.GetFloat();

            Reserved = stream.GetShort();
        }
コード例 #4
0
ファイル: Group.cs プロジェクト: Fireboyd78/ARTSManager
        public override void Load(asStream stream)
        {
            int strLen = stream.GetByte();

            Name = stream.GetString(strLen);

            var vertsCount   = stream.GetInt();
            var patchesCount = stream.GetInt();

            Vertices = new short[vertsCount];
            Patches  = new short[patchesCount];

            stream.Get(Vertices, vertsCount);
            stream.Get(Patches, patchesCount);
        }
コード例 #5
0
        public override void Load(asStream stream)
        {
            Name = stream.GetString(32);

            Friction   = stream.GetFloat();
            Elasticity = stream.GetFloat();
            Drag       = stream.GetFloat();

            BumpHeight = stream.GetFloat();
            BumpWidth  = stream.GetFloat();

            SinkDepth = stream.GetFloat();
            PtxRate   = stream.GetFloat();

            Type  = stream.GetInt();
            Sound = stream.GetInt();

            Velocity = new Vector2(stream);
            PtxColor = new ColorRGB(stream);
        }