Example #1
0
        public void FromModel(ObjectInputSettings ObjSettings, Pilz.S3DFileParser.Object3D vmap, Pilz.S3DFileParser.Object3D colmap, Fast3D.TextureFormatSettings texFormatSettings, Collision.CollisionSettings colSettings = null)
        {
            // Add Collision
            Collision = new Collision.CollisionMap();
            Collision.FromObject3D(ObjSettings, colmap, colSettings);

            // Add Fast3DBuffer (replacement for 'Add Displaylists')
            if (Fast3DBuffer is object)
            {
                Fast3DBuffer.Close();
            }
            Fast3DBuffer = new Fast3D.Fast3DBuffer();
            Fast3DBuffer.FromModel(ObjSettings, vmap, texFormatSettings);
        }
Example #2
0
        public void FromBinaryData(BinaryData data, int BankRomStart, int BankRamStart, int Fast3DStart, int Fast3DLength, Geopointer[] DisplayListpointer, int Collisionpointer = -1)
        {
            // Load Collision
            if (Collisionpointer > -1)
            {
                Collision = new Collision.CollisionMap();
                int cRomStart = Collisionpointer - BankRamStart + BankRomStart;
                Collision.FromBinaryData(data, cRomStart);
            }
            else
            {
                Collision = null;
            }

            // Read Fast3D Buffer
            if (Fast3DBuffer is object)
            {
                Fast3DBuffer.Close();
            }
            Fast3DBuffer = new Fast3D.Fast3DBuffer();
            Fast3DBuffer.FromBinaryData(data, BankRomStart, BankRamStart, Fast3DStart, Fast3DLength, DisplayListpointer);
        }