mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-20 20:50:58 +02:00
Quake 4 integrated with DoomRTX
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
//----------------------------------------------------------------
|
||||
// Instance.h
|
||||
//
|
||||
// Copyright 2002-2005 Raven Software
|
||||
//----------------------------------------------------------------
|
||||
|
||||
#ifndef __INSTANCE_H__
|
||||
#define __INSTANCE_H__
|
||||
|
||||
#include "Game_local.h"
|
||||
|
||||
class rvInstance {
|
||||
public:
|
||||
rvInstance( int id, bool deferPopulate = false );
|
||||
~rvInstance();
|
||||
|
||||
void Populate( int serverChecksum = 0 );
|
||||
void PopulateFromMessage( const idBitMsg& msg );
|
||||
void Restart( void );
|
||||
|
||||
void JoinInstance( idPlayer* player );
|
||||
int GetInstanceID( void );
|
||||
|
||||
void SetSpawnInstanceID( int newInstance );
|
||||
|
||||
void PrintMapNumbers( void );
|
||||
int GetNumMapEntities( void ) { return numMapEntities; }
|
||||
unsigned short GetMapEntityNumber( int i ) { return mapEntityNumbers[ i ]; }
|
||||
|
||||
private:
|
||||
void BuildInstanceMessage( void );
|
||||
|
||||
int instanceID;
|
||||
int spawnInstanceID;
|
||||
unsigned short* mapEntityNumbers;
|
||||
int numMapEntities;
|
||||
int initialSpawnCount;
|
||||
|
||||
idBitMsg mapEntityMsg;
|
||||
byte mapEntityMsgBuf[ MAX_GAME_MESSAGE_SIZE ];
|
||||
};
|
||||
|
||||
ID_INLINE int rvInstance::GetInstanceID( void ) {
|
||||
return instanceID;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user