Beispiel #1
0
 public void writeToDat(StreamWriter outputFile)
 {
     Utils.writeUInt32(ModelId, outputFile);
     Frame.writeRaw(outputFile);
     Utils.writeUInt32(NumLeaves, outputFile);
     Utils.writeInt32(Portals.Count, outputFile);
     foreach (cCBldPortal portal in Portals)
     {
         portal.writeToDat(outputFile);
     }
 }
Beispiel #2
0
 public void writeRaw(StreamWriter outputStream)
 {
     Utils.writeSingle(probability, outputStream);
     Utils.writeInt32(type, outputStream);
     Utils.writeDouble(delay, outputStream);
     Utils.writeInt32(initCreate, outputStream);
     Utils.writeInt32(maxNum, outputStream);
     Utils.writeInt32((int)whenCreate, outputStream);
     Utils.writeInt32((int)whereCreate, outputStream);
     Utils.writeInt32(stackSize, outputStream);
     Utils.writeInt32(ptid, outputStream);
     Utils.writeInt32(shade, outputStream);
     Utils.writeInt32(objcell_id, outputStream);
     frame.writeRaw(outputStream);
     Utils.writeInt32(slot, outputStream);
 }
Beispiel #3
0
        public void writeToDat(StreamWriter outputFile)
        {
            Utils.writeUInt32(Id, outputFile);
            Utils.writeUInt32(Bitfield, outputFile);
            Utils.writeUInt32(Id, outputFile);

            Utils.writeByte((byte)Textures.Count, outputFile);
            Utils.writeByte((byte)Portals.Count, outputFile);
            Utils.writeUInt16((ushort)Cells.Count, outputFile);

            foreach (ushort texture in Textures)
            {
                Utils.writeUInt16(texture, outputFile);
            }

            Utils.writeUInt16(EnvironmentId, outputFile);
            Utils.writeUInt16(StructId, outputFile);
            Position.writeRaw(outputFile);

            foreach (cCellPortal cellPortal in Portals)
            {
                cellPortal.writeToDat(outputFile);
            }

            foreach (ushort light in Cells)
            {
                Utils.writeUInt16(light, outputFile);
            }

            if ((Bitfield & 2) != 0)
            {
                Utils.writeInt32(Stabs.Count, outputFile);
                foreach (cStab stab in Stabs)
                {
                    stab.writeToDat(outputFile);
                }
            }

            if ((Bitfield & 8) != 0)
            {
                Utils.writeUInt32(RestrictionObj, outputFile);
            }
        }
Beispiel #4
0
 public void writeToDat(StreamWriter outputFile)
 {
     Utils.writeUInt32(id, outputFile);
     frame.writeRaw(outputFile);
 }
Beispiel #5
0
 public void writeRaw(StreamWriter outputStream)
 {
     Utils.writeInt32(key, outputStream);
     Utils.writeUInt32(objcell_id, outputStream);
     frame.writeRaw(outputStream);
 }