/**
 * \file 3D Pinball PINBALL.DAT archive definitions
 */
 
#ifdef _PARTOUT_H
#define _PARTOUT_H

#include <cstdint>

#define PINBALL_MAGIC "PARTOUT(4.0)RESOURCE\0"

struct PinHeader {
	char name[50];
	char desc[100];
	
	std::uint32_t size;
	std::uint16_t group_count;
	
	// TODO(modeco80): what are these?
	std::uint16_t unk1_do_not_use_;
	std::uint32_t unk2_do_not_use_;
};

struct PinGroup {
	std::uint8_t count;
	// NOTE(modeco80): linked list head here?
};

struct PinEntry {
	// TODO(modeco80): jot notes on types or make an enum for 'em here
	
	std::uint8_t type;
	
	std::uint32_t data_length;
	
	
	// NOTE(modeco80): linked list other nodes (and NULL tail)  ere?
};

#endif
