|
Wing Commander
Reconstructed Win32 source (1996)
|
Game data enumerations and on-disk record layouts. More...
#include <stddef.h>Go to the source code of this file.
Macros | |
| #define | NAV_RECORD_BYTES 77 |
| #define | SHIP_RECORD_BYTES 42 |
| #define | MAP_RECORD_BYTES 64 |
| #define | SPACE_OBJECT_COUNT 64 |
| #define | SPACE_LAST_MOVING_OBJECT 60 |
| #define | EYE_OBJECT 61 |
| #define | DIRECTION_VIEW_COUNT 62 |
| #define | DIRECTION_SHAPE_TABLE_COUNT 3 |
| #define | MISSION_SHIP_STORAGE_COUNT 48 |
| #define | MISSION_SHIP_SCAN_LIMIT 64 |
| #define | ACTIVE_MISSION_SHIP_COUNT 32 |
| #define | MISSION_NAV_POINT_COUNT 20 |
| #define | ACTIVE_MISSION_NAV_POINT_COUNT 16 |
| #define | MISSION_OBJECTIVE_COUNT 16 |
Typedefs | |
| typedef struct FixedVector | FixedVector |
| typedef struct NearHeapBlock | NearHeapBlock |
| typedef struct FireworkState | FireworkState |
| typedef char | FireworkState_size_must_be_0x0c[sizeof(FireworkState)==0x0c ? 1 :-1] |
| typedef struct CampaignVictoryProjectile | CampaignVictoryProjectile |
| typedef char | CampaignVictoryProjectile_size_must_be_0x16[sizeof(CampaignVictoryProjectile)==0x16 ? 1 :-1] |
| typedef struct ObjectTypeData | ObjectTypeData |
| typedef char | ObjectTypeData_size_must_be_0x87[sizeof(ObjectTypeData)==0x87 ? 1 :-1] |
| typedef char | ObjectTypeData_objectClass_must_be_at_0x04[offsetof(ObjectTypeData, objectClass)==0x04 ? 1 :-1] |
| typedef char | ObjectTypeData_weaponLoadout_must_be_at_0x2c[offsetof(ObjectTypeData, weaponLoadout)==0x2c ? 1 :-1] |
| typedef struct ShipWeaponSlot | ShipWeaponSlot |
| typedef struct ShortPoint | ShortPoint |
| typedef struct CockpitBarDefinition | CockpitBarDefinition |
| typedef struct ShortVector | ShortVector |
| typedef struct ShortRect | ShortRect |
| typedef struct CockpitScannerGeometry | CockpitScannerGeometry |
| typedef struct CockpitLayout | CockpitLayout |
| typedef struct ScreenViewportGeometry | ScreenViewportGeometry |
| typedef struct ScreenViewportPacket | ScreenViewportPacket |
| typedef struct DiskFileRecord | DiskFileRecord |
| typedef struct BriefingPacketHeader | BriefingPacketHeader |
| typedef struct PacketDecompressionWorkspace | PacketDecompressionWorkspace |
| typedef char | CockpitLayout_size_must_be_0x118[sizeof(CockpitLayout)==0x118 ? 1 :-1] |
| typedef char | ScreenViewportGeometry_size_must_be_0x10[sizeof(ScreenViewportGeometry)==0x10 ? 1 :-1] |
| typedef char | DiskFileRecord_size_must_be_0x10[sizeof(DiskFileRecord)==0x10 ? 1 :-1] |
| typedef char | BriefingPacketHeader_size_must_be_0x28[sizeof(BriefingPacketHeader)==0x28 ? 1 :-1] |
| typedef struct NavMapLabel | NavMapLabel |
| typedef char | NavMapLabel_size_must_be_0x0a[sizeof(NavMapLabel)==0x0a ? 1 :-1] |
| typedef struct NavMapObjectiveStyle | NavMapObjectiveStyle |
| typedef char | NavMapObjectiveStyle_size_must_be_0x10[sizeof(NavMapObjectiveStyle)==0x10 ? 1 :-1] |
| typedef struct TitleMenuRegion | TitleMenuRegion |
| typedef struct MissionHeaderDisk | MissionHeaderDisk |
| typedef char | MissionHeaderDisk_size_must_be_0x18[sizeof(MissionHeaderDisk)==0x18 ? 1 :-1] |
| typedef struct PacketResourceDescriptor | PacketResourceDescriptor |
| typedef struct HighScoreEntry | HighScoreEntry |
| typedef struct PilotRecord | PilotRecord |
| typedef struct CampaignDate | CampaignDate |
| typedef struct ConversationSceneRecord | ConversationSceneRecord |
| typedef struct BriefingCharacterLayout | BriefingCharacterLayout |
| typedef struct SceneAnimationObject | SceneAnimationObject |
| typedef struct ScrambleAnimationActor | ScrambleAnimationActor |
| typedef struct ScrambleShipDetail | ScrambleShipDetail |
| typedef struct CampaignState | CampaignState |
| typedef struct SaveGameDiskCampaignState | SaveGameDiskCampaignState |
| typedef struct PacketSectionHandle | PacketSectionHandle |
| typedef char | PilotRecord_size_must_be_0x26[sizeof(PilotRecord)==0x26 ? 1 :-1] |
| typedef char | CampaignState_size_must_be_0x58[sizeof(CampaignState)==0x58 ? 1 :-1] |
| typedef char | SaveGameDiskCampaignState_size_must_be_0x44[sizeof(SaveGameDiskCampaignState)==0x44 ? 1 :-1] |
| typedef char | ConversationSceneRecord_size_must_be_0x0d[sizeof(ConversationSceneRecord)==0x0d ? 1 :-1] |
| typedef char | BriefingCharacterLayout_size_must_be_0x12[sizeof(BriefingCharacterLayout)==0x12 ? 1 :-1] |
| typedef char | SceneAnimationObject_size_must_be_0x36[sizeof(SceneAnimationObject)==0x36 ? 1 :-1] |
| typedef char | ScrambleAnimationActor_size_must_be_0x18[sizeof(ScrambleAnimationActor)==0x18 ? 1 :-1] |
| typedef char | ScrambleShipDetail_size_must_be_0x05[sizeof(ScrambleShipDetail)==0x05 ? 1 :-1] |
| typedef char | PacketSectionHandle_size_must_be_0x14[sizeof(PacketSectionHandle)==0x14 ? 1 :-1] |
| typedef struct SphericalVector | SphericalVector |
| typedef struct HazardField | HazardField |
| typedef struct ManeuverChoice | ManeuverChoice |
| typedef struct TalkingHeadOrigin | TalkingHeadOrigin |
| typedef struct ConstellationStar | ConstellationStar |
| typedef struct ConstellationParticle | ConstellationParticle |
| typedef struct ConstellationObjectDefinition | ConstellationObjectDefinition |
| typedef char | TalkingHeadOrigin_size_must_be_0x08[sizeof(TalkingHeadOrigin)==0x08 ? 1 :-1] |
| typedef char | ConstellationStar_size_must_be_0x06[sizeof(ConstellationStar)==0x06 ? 1 :-1] |
| typedef char | ConstellationParticle_size_must_be_0x08[sizeof(ConstellationParticle)==0x08 ? 1 :-1] |
| typedef char | ConstellationObjectDefinition_size_must_be_0x08[sizeof(ConstellationObjectDefinition)==0x08 ? 1 :-1] |
| typedef struct MissionNavPoint | MissionNavPoint |
| typedef union MissionShipBehaviour | MissionShipBehaviour |
| typedef struct MissionShipRecord | MissionShipRecord |
| typedef struct MissionObjectiveSource | MissionObjectiveSource |
| typedef struct ObjectResourceSlot | ObjectResourceSlot |
| typedef struct MissionObjective | MissionObjective |
| typedef struct SaveGameDiskObjective | SaveGameDiskObjective |
| typedef struct SaveGameRecord | SaveGameRecord |
| typedef struct SaveGameDiskRecord | SaveGameDiskRecord |
| typedef struct BarracksBunkState | BarracksBunkState |
| typedef struct BarracksAnimationState | BarracksAnimationState |
| typedef char | MissionNavPoint_size_must_be_0x51[sizeof(MissionNavPoint)==0x51 ? 1 :-1] |
| typedef char | MissionShipRecord_size_must_be_0x36[sizeof(MissionShipRecord)==0x36 ? 1 :-1] |
| typedef char | MissionObjectiveSource_size_must_be_0x42[sizeof(MissionObjectiveSource)==0x42 ? 1 :-1] |
| typedef char | MissionObjective_size_must_be_0x1f[sizeof(MissionObjective)==0x1f ? 1 :-1] |
| typedef char | SaveGameDiskObjective_size_must_be_0x19[sizeof(SaveGameDiskObjective)==0x19 ? 1 :-1] |
| typedef char | SaveGameRecord_size_must_be_0x3b0[sizeof(SaveGameRecord)==0x3b0 ? 1 :-1] |
| typedef char | SaveGameDiskRecord_size_must_be_0x33c[sizeof(SaveGameDiskRecord)==0x33c ? 1 :-1] |
| typedef char | BarracksBunkState_size_must_be_0x0a[sizeof(BarracksBunkState)==0x0a ? 1 :-1] |
| typedef char | BarracksAnimationState_size_must_be_0x68[sizeof(BarracksAnimationState)==0x68 ? 1 :-1] |
Game data enumerations and on-disk record layouts.
Sources, in descending order of trust:
The MODULE record layouts below are the ON-DISK format. The in-memory tables are different sizes (the per-object table at 0x0046C97A has a 0x36-byte stride against the 42-byte disk ship record, and the nav table a 0x1F-byte stride against the 77-byte disk nav record), so a disk field offset is a hint about what exists, never about where it lives at runtime.
Definition in file wcdata.h.
| #define ACTIVE_MISSION_NAV_POINT_COUNT 16 |
Definition at line 1013 of file wcdata.h.
Referenced by find_ships_sphere(), FindNearestNavPoint(), and LoadMissionData().
| #define ACTIVE_MISSION_SHIP_COUNT 32 |
Definition at line 1011 of file wcdata.h.
Referenced by init_personalities().
| #define DIRECTION_VIEW_COUNT 62 |
Definition at line 1007 of file wcdata.h.
Referenced by get_right_shape().
| #define EYE_OBJECT 61 |
Definition at line 1006 of file wcdata.h.
Referenced by draw_nav_pointer(), ejection_sequence(), generate_stars(), get_right_shape(), HandleFleetOverviewInput(), IsPointWithinEyeViewCone(), look_at(), new_view(), PlaySfxWaveFileByNumber(), servicetrack(), set_background_objects_rotation(), set_eye_direction_and_position(), SetFleetOverviewView(), ShowGameOverScreen(), start_dust(), transform_objects_to_your_view(), and update_star_field().
| #define MISSION_OBJECTIVE_COUNT 16 |
Definition at line 1014 of file wcdata.h.
Referenced by LoadMissionData().
| #define MISSION_SHIP_SCAN_LIMIT 64 |
Definition at line 1010 of file wcdata.h.
Referenced by prepare_mission().
| #define SPACE_LAST_MOVING_OBJECT 60 |
Definition at line 1005 of file wcdata.h.
Referenced by check_for_collision(), free_ship(), house_keep_objects(), load_ship(), reposition_fixed_child_objects(), transform_objects_to_your_view(), and update_objects_in_space().
| #define SPACE_OBJECT_COUNT 64 |
Definition at line 1004 of file wcdata.h.
Referenced by draw_sorted_objects_to_buffer(), find_child_object(), fire(), intro_drawbackgroundships(), servicetrack(), and sort_object_depth().
| typedef struct BarracksAnimationState BarracksAnimationState |
| typedef char BarracksAnimationState_size_must_be_0x68[ sizeof(BarracksAnimationState)==0x68 ? 1 :-1] |
| typedef struct BarracksBunkState BarracksBunkState |
| typedef char BarracksBunkState_size_must_be_0x0a[ sizeof(BarracksBunkState)==0x0a ? 1 :-1] |
| typedef struct BriefingCharacterLayout BriefingCharacterLayout |
| typedef char BriefingCharacterLayout_size_must_be_0x12[ sizeof(BriefingCharacterLayout)==0x12 ? 1 :-1] |
| typedef struct BriefingPacketHeader BriefingPacketHeader |
| typedef char BriefingPacketHeader_size_must_be_0x28[ sizeof(BriefingPacketHeader)==0x28 ? 1 :-1] |
| typedef struct CampaignDate CampaignDate |
| typedef struct CampaignState CampaignState |
| typedef char CampaignState_size_must_be_0x58[ sizeof(CampaignState)==0x58 ? 1 :-1] |
| typedef struct CampaignVictoryProjectile CampaignVictoryProjectile |
| typedef char CampaignVictoryProjectile_size_must_be_0x16[ sizeof(CampaignVictoryProjectile)==0x16 ? 1 :-1] |
| typedef struct CockpitBarDefinition CockpitBarDefinition |
| typedef struct CockpitLayout CockpitLayout |
| typedef char CockpitLayout_size_must_be_0x118[ sizeof(CockpitLayout)==0x118 ? 1 :-1] |
| typedef struct CockpitScannerGeometry CockpitScannerGeometry |
| typedef struct ConstellationObjectDefinition ConstellationObjectDefinition |
| typedef char ConstellationObjectDefinition_size_must_be_0x08[ sizeof(ConstellationObjectDefinition)==0x08 ? 1 :-1] |
| typedef struct ConstellationParticle ConstellationParticle |
| typedef char ConstellationParticle_size_must_be_0x08[ sizeof(ConstellationParticle)==0x08 ? 1 :-1] |
| typedef struct ConstellationStar ConstellationStar |
| typedef char ConstellationStar_size_must_be_0x06[ sizeof(ConstellationStar)==0x06 ? 1 :-1] |
| typedef struct ConversationSceneRecord ConversationSceneRecord |
| typedef char ConversationSceneRecord_size_must_be_0x0d[ sizeof(ConversationSceneRecord)==0x0d ? 1 :-1] |
| typedef struct DiskFileRecord DiskFileRecord |
| typedef char DiskFileRecord_size_must_be_0x10[ sizeof(DiskFileRecord)==0x10 ? 1 :-1] |
| typedef struct FireworkState FireworkState |
| typedef char FireworkState_size_must_be_0x0c[ sizeof(FireworkState)==0x0c ? 1 :-1] |
| typedef struct FixedVector FixedVector |
| typedef struct HazardField HazardField |
| typedef struct HighScoreEntry HighScoreEntry |
| typedef struct ManeuverChoice ManeuverChoice |
| typedef struct MissionHeaderDisk MissionHeaderDisk |
| typedef char MissionHeaderDisk_size_must_be_0x18[ sizeof(MissionHeaderDisk)==0x18 ? 1 :-1] |
| typedef struct MissionNavPoint MissionNavPoint |
| typedef char MissionNavPoint_size_must_be_0x51[ sizeof(MissionNavPoint)==0x51 ? 1 :-1] |
| typedef struct MissionObjective MissionObjective |
| typedef char MissionObjective_size_must_be_0x1f[ sizeof(MissionObjective)==0x1f ? 1 :-1] |
| typedef struct MissionObjectiveSource MissionObjectiveSource |
| typedef char MissionObjectiveSource_size_must_be_0x42[ sizeof(MissionObjectiveSource)==0x42 ? 1 :-1] |
| typedef union MissionShipBehaviour MissionShipBehaviour |
| typedef struct MissionShipRecord MissionShipRecord |
| typedef char MissionShipRecord_size_must_be_0x36[ sizeof(MissionShipRecord)==0x36 ? 1 :-1] |
| typedef struct NavMapLabel NavMapLabel |
| typedef char NavMapLabel_size_must_be_0x0a[ sizeof(NavMapLabel)==0x0a ? 1 :-1] |
| typedef struct NavMapObjectiveStyle NavMapObjectiveStyle |
| typedef char NavMapObjectiveStyle_size_must_be_0x10[ sizeof(NavMapObjectiveStyle)==0x10 ? 1 :-1] |
| typedef struct NearHeapBlock NearHeapBlock |
| typedef struct ObjectResourceSlot ObjectResourceSlot |
| typedef struct ObjectTypeData ObjectTypeData |
| typedef char ObjectTypeData_objectClass_must_be_at_0x04[ offsetof(ObjectTypeData, objectClass)==0x04 ? 1 :-1] |
| typedef char ObjectTypeData_size_must_be_0x87[ sizeof(ObjectTypeData)==0x87 ? 1 :-1] |
| typedef char ObjectTypeData_weaponLoadout_must_be_at_0x2c[ offsetof(ObjectTypeData, weaponLoadout)==0x2c ? 1 :-1] |
| typedef struct PacketDecompressionWorkspace PacketDecompressionWorkspace |
| typedef struct PacketResourceDescriptor PacketResourceDescriptor |
| typedef struct PacketSectionHandle PacketSectionHandle |
| typedef char PacketSectionHandle_size_must_be_0x14[ sizeof(PacketSectionHandle)==0x14 ? 1 :-1] |
| typedef struct PilotRecord PilotRecord |
| typedef char PilotRecord_size_must_be_0x26[ sizeof(PilotRecord)==0x26 ? 1 :-1] |
| typedef struct SaveGameDiskCampaignState SaveGameDiskCampaignState |
| typedef char SaveGameDiskCampaignState_size_must_be_0x44[ sizeof(SaveGameDiskCampaignState)==0x44 ? 1 :-1] |
| typedef struct SaveGameDiskObjective SaveGameDiskObjective |
| typedef char SaveGameDiskObjective_size_must_be_0x19[ sizeof(SaveGameDiskObjective)==0x19 ? 1 :-1] |
| typedef struct SaveGameDiskRecord SaveGameDiskRecord |
| typedef char SaveGameDiskRecord_size_must_be_0x33c[ sizeof(SaveGameDiskRecord)==0x33c ? 1 :-1] |
| typedef struct SaveGameRecord SaveGameRecord |
| typedef char SaveGameRecord_size_must_be_0x3b0[ sizeof(SaveGameRecord)==0x3b0 ? 1 :-1] |
| typedef struct SceneAnimationObject SceneAnimationObject |
| typedef char SceneAnimationObject_size_must_be_0x36[ sizeof(SceneAnimationObject)==0x36 ? 1 :-1] |
| typedef struct ScrambleAnimationActor ScrambleAnimationActor |
| typedef char ScrambleAnimationActor_size_must_be_0x18[ sizeof(ScrambleAnimationActor)==0x18 ? 1 :-1] |
| typedef struct ScrambleShipDetail ScrambleShipDetail |
| typedef char ScrambleShipDetail_size_must_be_0x05[ sizeof(ScrambleShipDetail)==0x05 ? 1 :-1] |
| typedef struct ScreenViewportGeometry ScreenViewportGeometry |
| typedef char ScreenViewportGeometry_size_must_be_0x10[ sizeof(ScreenViewportGeometry)==0x10 ? 1 :-1] |
| typedef struct ScreenViewportPacket ScreenViewportPacket |
| typedef struct ShipWeaponSlot ShipWeaponSlot |
| typedef struct ShortPoint ShortPoint |
| typedef struct ShortRect ShortRect |
| typedef struct ShortVector ShortVector |
| typedef struct SphericalVector SphericalVector |
| typedef struct TalkingHeadOrigin TalkingHeadOrigin |
| typedef char TalkingHeadOrigin_size_must_be_0x08[ sizeof(TalkingHeadOrigin)==0x08 ? 1 :-1] |
| typedef struct TitleMenuRegion TitleMenuRegion |
| enum CampaignBadgeIndex |
| enum CommMenuEntry |
| enum ObjectClass |
| enum ObjectType |
| enum Rating |
| enum ShipManeuver |
| enum ShipMissionType |
| enum ShipObjective |
| enum ShipTactic |
| enum Side |
| enum SpecialManeuver |