Nebula
Loading...
Searching...
No Matches
streamnavmeshcache.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
10
11#include "core/refcounted.h"
14#include "flat/navigation/navmesh.h"
15#include "ids/idallocator.h"
16
17class dtNavMesh;
18class dtNavMeshQuery;
19
20#define MAX_NAV_NODES 8192
21
22namespace Navigation
23{
24
29
31
33{
35
36public:
37
41 virtual ~StreamNavMeshCache();
42
44 dtNavMesh* GetDetourMesh(NavMeshId id);
45
48
49private:
50
54 void Unload(const Resources::ResourceId id);
55
56 enum
57 {
62 };
65 dtNavMesh*,
66 dtNavMeshQuery*,
67 NavMeshT> allocator;
68};
69}
70
Definition idallocator.h:105
Util::Array< NavMeshId > GetLoadedMeshes()
Definition streamnavmeshcache.cc:48
ResourceLoader::ResourceInitOutput InitializeResource(const ResourceLoadJob &job, const Ptr< IO::Stream > &stream) override
perform actual load, override in subclass
Definition streamnavmeshcache.cc:63
void Unload(const Resources::ResourceId id)
unload resource
Definition streamnavmeshcache.cc:115
virtual ~StreamNavMeshCache()
destructor
Definition streamnavmeshcache.cc:28
dtNavMesh * GetDetourMesh(NavMeshId id)
Definition streamnavmeshcache.cc:37
__DeclareClass(StreamNavMeshCache)
@ Nav_MeshInfo
Definition streamnavmeshcache.h:61
@ Nav_Query
Definition streamnavmeshcache.h:60
@ Nav_Mesh
Definition streamnavmeshcache.h:59
@ Nav_Name
Definition streamnavmeshcache.h:58
Ids::IdAllocatorSafe< 0xff, Util::StringAtom, dtNavMesh *, dtNavMeshQuery *, NavMeshT > allocator
Definition streamnavmeshcache.h:67
StreamNavMeshCache()
constructor
Definition streamnavmeshcache.cc:20
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Definition resourceloader.h:60
Nebula's dynamic array class.
Definition array.h:60
A StringAtom.
Definition stringatom.h:22
Navigation::Recast.
Definition detourdebug.cc:9
NavigationIdType
Definition streamnavmeshcache.h:26
@ NavMeshIdType
Definition streamnavmeshcache.h:27
#define RESOURCE_ID_TYPE(type)
Definition resourceid.h:41
Definition streamnavmeshcache.h:30
Definition resourceloader.h:143
Definition resourceloader.h:167