Files
FC1/CryGame/XSystemDummy.h
romkazvo 34d6c5d489 123
2023-08-07 19:29:24 +08:00

52 lines
1.4 KiB
C++

//////////////////////////////////////////////////////////////////////
//
// Game Source Code
//
// File: XSystemDummy.h
// Description: Dummy IXSystem interface.
//
// History:
// - August 8, 2001: Created by Alberto Demichelis
//
//////////////////////////////////////////////////////////////////////
#ifndef GAME_XSYSTEMDUMMY_H
#define GAME_XSYSTEMDUMMY_H
#if _MSC_VER > 1000
# pragma once
#endif
#include "XSystemBase.h"
///////////////////////////////////////////////
/*!Implements a dummy XSystem for a local client.
*/
class CXSystemDummy : public CXSystemBase
{
public:
CXSystemDummy(CXGame *pGame,ILog *pLog);
virtual ~CXSystemDummy();
//// IXSystem ///////////////////////////////
void Release();
bool LoadLevel(const char *szLevelDir,const char *szMissionName, bool bEditor=false);
IEntity* SpawnEntity(class CEntityDesc &ed);
void RemoveEntity(EntityId wID, bool bRemoveNow = false);
void DeleteAllEntities();
void Disconnected(const char *szCause);
void SetMyPlayer(EntityId wID);
virtual int AddTeam(string sTeamName, int nTeamId) { return -1; }
void RemoveTeam(int nTeamId) {}
void SetTeamScore(int nTeamId, short nScore) {}
void OnSpawn(IEntity *ent, CEntityDesc & ed){};
void OnSpawnContainer( CEntityDesc &ed,IEntity *pEntity ){};
bool WriteTeams(CStream &stm){return true;}
// void SetRandomSeed(BYTE seed){}
/////////////////////////////////////////////
};
#endif // GAME_XSYSTEMDUMMY_H