Formats/SSXTricky:PBD Level File: Difference between revisions

From SSX Modding Wiki
(Insert Header)
 
No edit summary
Line 1: Line 1:
=== PBD Header ===
<syntaxhighlight lang="c++" line="1">
<syntaxhighlight lang="c++" line="1">
enum class eDataFormatType : byte {
enum class eDataFormatType : byte {
Line 26: Line 27:
uint32 NumCameras;
uint32 NumCameras;
uint32 LightMapSize;
uint32 LightMapSize;

uint32 PlayerStartOffset;
uint32 PlayerStartOffset;
uint32 PatchOffset;
uint32 PatchOffset;

Revision as of 22:50, 24 October 2022

PBD Header

enum class eDataFormatType : byte {
    GenericFormat,
    Ps2Format,
    XboxFormat,
    NgcFormat
};

struct tPbdHeader {
    byte version[3];
    eDataFormatType format;

    uint32 NumPlayerStarts;
    uint32 NumPatches;
    uint32 NumInstances;
    uint32 NumParticleInstances;
    uint32 NumMaterials;
    uint32 NumMaterialBlocks;
    uint32 NumLights;
    uint32 NumSplines;
    uint32 NumSplineSegments;
    uint32 NumTextureFlips;
    uint32 NumModels;
    uint32 NumParticleModels;
    uint32 NumTextures;
    uint32 NumCameras;
    uint32 LightMapSize;

    uint32 PlayerStartOffset;
    uint32 PatchOffset;
    uint32 InstanceOffset;
    uint32 ParticleInstancesOffset;
    uint32 MaterialOffset;
    uint32 MaterialBlocksOffset;
    uint32 LightsOffset;
    uint32 SplineOffset;
    uint32 SplineSegmentOffset;
    uint32 TextureFlipOffset;
    uint32 ModelPointerOffset;
    uint32 ModelsOffset;
    uint32 ParticleModelPointerOffset;
    uint32 ParticleModelsOffset;
    uint32 CameraPointerOffset;
    uint32 CamerasOffset;
    uint32 HashOffset;
    uint32 MeshDataOffset
};