mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-31 14:39:19 +00:00
upload "kind" alien swarm
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
@@ -13,6 +13,10 @@
|
||||
|
||||
#include "mapentities_shared.h"
|
||||
|
||||
|
||||
class CPointTemplate;
|
||||
|
||||
|
||||
// This class provides hooks into the map-entity loading process that allows CS to do some tricks
|
||||
// when restarting the round. The main trick it tries to do is recreate all
|
||||
abstract_class IMapEntityFilter
|
||||
@@ -42,6 +46,36 @@ struct HierarchicalSpawn_t
|
||||
const char *m_pDeferredParentAttachment; // so defer setting them up until the second pass
|
||||
};
|
||||
|
||||
struct HierarchicalSpawnMapData_t
|
||||
{
|
||||
const char *m_pMapData;
|
||||
int m_iMapDataLength;
|
||||
};
|
||||
|
||||
// Shared by mapentities.cpp and Foundry for spawning entities.
|
||||
class CMapEntitySpawner
|
||||
{
|
||||
public:
|
||||
CMapEntitySpawner();
|
||||
~CMapEntitySpawner();
|
||||
|
||||
void AddEntity( CBaseEntity *pEntity, const char *pMapData, int iMapDataLength );
|
||||
void HandleTemplates();
|
||||
void SpawnAndActivate( bool bActivateEntities );
|
||||
void PurgeRemovedEntities();
|
||||
|
||||
public:
|
||||
bool m_bFoundryMode;
|
||||
|
||||
private:
|
||||
|
||||
HierarchicalSpawnMapData_t *m_pSpawnMapData;
|
||||
HierarchicalSpawn_t *m_pSpawnList;
|
||||
CUtlVector< CPointTemplate* > m_PointTemplates;
|
||||
int m_nEntities;
|
||||
};
|
||||
|
||||
void SpawnHierarchicalList( int nEntities, HierarchicalSpawn_t *pSpawnList, bool bActivateEntities );
|
||||
void MapEntity_ParseAllEntites_SpawnTemplates( CPointTemplate **pTemplates, int iTemplateCount, CBaseEntity **pSpawnedEntities, HierarchicalSpawnMapData_t *pSpawnMapData, int iSpawnedEntityCount );
|
||||
|
||||
#endif // MAPENTITIES_H
|
||||
|
||||
Reference in New Issue
Block a user