Archival snapshot of the Virtual World Entertainment Tesla cockpit software, 1994-1996: MUNGA engine and L4 pod layer source (Borland C++ 5.0), BT/RP game code, and game content (models, audio, maps, gauges, Division renderer data). Includes third-party libraries: Division dVS/DPL graphics, HMI SOS audio, WATTCP networking. Files are preserved byte-for-byte (.gitattributes disables all line-ending conversion). README.md documents the layout, target hardware, and toolchain. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
77 lines
1.6 KiB
C++
77 lines
1.6 KiB
C++
#if !defined(SPOOLER_HPP)
|
|
# define SPOOLER_HPP
|
|
|
|
# if !defined(APPMGR_HPP)
|
|
# include <appmgr.hpp>
|
|
# endif
|
|
|
|
//##########################################################################
|
|
//########################### 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(
|
|
Scalar frame_rate,
|
|
int spool_count,
|
|
size_t spool_size
|
|
);
|
|
~MissionReviewApplicationManager();
|
|
|
|
SpoolFile*
|
|
GetEmptySpoolFile();
|
|
SpoolFile*
|
|
GetStoredSpoolFile();
|
|
void
|
|
StoreSpoolFile(SpoolFile *spool_file);
|
|
void
|
|
ReleaseSpoolFile(SpoolFile *spool_file);
|
|
|
|
protected:
|
|
int spoolCount;
|
|
SpoolFile **spoolFiles;
|
|
char **spoolBuffers;
|
|
size_t spoolSize;
|
|
};
|
|
|
|
#endif
|
|
|