Imports the current Win32 source for the pod-racing game 'Red Planet', built on the MUNGA engine and its L4 (Win32/DirectX) platform layer: - MUNGA / MUNGA_L4: cross-platform engine core and Win32 backend - RP / RP_L4: Red Planet game logic and Win32 application - DivLoader, Setup1: asset loader and installer project - lib, MUNGA_L4/openal, MUNGA_L4/sos: third-party audio dependencies Removed stale Subversion metadata and added .gitignore/.gitattributes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
67 lines
1.4 KiB
C++
67 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include "appmgr.h"
|
|
|
|
//##########################################################################
|
|
//########################### SpoolFile ################################
|
|
//##########################################################################
|
|
|
|
class SpoolFile:
|
|
public MemoryStream
|
|
{
|
|
public:
|
|
SpoolFile(
|
|
void *stream_start,
|
|
size_t stream_size,
|
|
size_t initial_offset=0
|
|
);
|
|
SpoolFile(SpoolFile& spool);
|
|
~SpoolFile();
|
|
|
|
enum SpoolState {
|
|
Empty,
|
|
Spooling,
|
|
Stored,
|
|
Playing
|
|
};
|
|
SpoolState
|
|
spoolState;
|
|
|
|
void
|
|
SaveAs(const char *name);
|
|
void
|
|
Read(const char *name);
|
|
|
|
void
|
|
SpoolPacket(NetworkPacket *packet);
|
|
NetworkPacket*
|
|
NextPacket();
|
|
};
|
|
|
|
//##########################################################################
|
|
//############## MissionReviewApplicationManager #####################
|
|
//##########################################################################
|
|
|
|
class MissionReviewApplicationManager:
|
|
public ApplicationManager
|
|
{
|
|
public:
|
|
MissionReviewApplicationManager(HINSTANCE hInstance, HWND hWnd, Scalar frame_rate, int spool_count, size_t spool_size);
|
|
~MissionReviewApplicationManager();
|
|
|
|
SpoolFile*
|
|
GetEmptySpoolFile();
|
|
SpoolFile*
|
|
GetStoredSpoolFile(CString spoolFileName);
|
|
void
|
|
StoreSpoolFile(SpoolFile *spool_file);
|
|
void
|
|
ReleaseSpoolFile(SpoolFile *spool_file);
|
|
|
|
protected:
|
|
int spoolCount;
|
|
SpoolFile **spoolFiles;
|
|
char **spoolBuffers;
|
|
size_t spoolSize;
|
|
};
|