forked from themrdemonized/xray-monolith
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatrol_path_storage.h
More file actions
45 lines (36 loc) · 1.3 KB
/
patrol_path_storage.h
File metadata and controls
45 lines (36 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
////////////////////////////////////////////////////////////////////////////
// Module : patrol_path_storage.h
// Created : 15.06.2004
// Modified : 15.06.2004
// Author : Dmitriy Iassenev
// Description : Patrol path storage
////////////////////////////////////////////////////////////////////////////
#pragma once
class CPatrolPath;
class CLevelGraph;
class CGameLevelCrossTable;
class CGameGraph;
#include "object_interfaces.h"
#include "associative_vector.h"
class CPatrolPathStorage : public IPureSerializeObject<IReader, IWriter>
{
private:
typedef IPureSerializeObject<IReader, IWriter> inherited;
public:
typedef associative_vector<shared_str, CPatrolPath*> PATROL_REGISTRY;
typedef PATROL_REGISTRY::iterator iterator;
typedef PATROL_REGISTRY::const_iterator const_iterator;
protected:
PATROL_REGISTRY m_registry;
public:
IC CPatrolPathStorage();
virtual ~CPatrolPathStorage();
virtual void load(IReader& stream);
virtual void load_from_config();
virtual void save(IWriter& stream);
public:
void load_raw(const CLevelGraph* level_graph, const CGameLevelCrossTable* cross, const CGameGraph* game_graph, IReader& stream);
IC const CPatrolPath* path(shared_str patrol_name, bool no_assert = false) const;
IC const PATROL_REGISTRY& patrol_paths() const;
};
#include "patrol_path_storage_inline.h"