OpenMoHAA
0.82.0
Loading...
Searching...
No Matches
navigation_bsp_lump.h
1
/*
2
===========================================================================
3
Copyright (C) 2025 the OpenMoHAA team
4
5
This file is part of OpenMoHAA source code.
6
7
OpenMoHAA source code is free software; you can redistribute it
8
and/or modify it under the terms of the GNU General Public License as
9
published by the Free Software Foundation; either version 2 of the License,
10
or (at your option) any later version.
11
12
OpenMoHAA source code is distributed in the hope that it will be
13
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with OpenMoHAA source code; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
===========================================================================
21
*/
22
23
#pragma once
24
25
#include "g_local.h"
26
#include "../qcommon/qfiles.h"
27
28
class
gameLump_c
29
{
30
public
:
31
gameLump_c()
32
: buffer(NULL)
33
, length(0)
34
{}
35
36
gameLump_c(
void
*inBuffer,
int
inLength)
37
: buffer(inBuffer)
38
, length(inLength)
39
{}
40
41
gameLump_c(
const
gameLump_c&) =
delete
;
42
gameLump_c& operator=(
const
gameLump_c&) =
delete
;
43
gameLump_c(gameLump_c&& other)
noexcept
;
44
gameLump_c& operator=(gameLump_c&& other)
noexcept
;
45
~gameLump_c();
46
47
static
gameLump_c LoadLump(fileHandle_t handle,
const
lump_t
& lump);
48
void
FreeLump();
49
50
public
:
51
void
*buffer;
52
int
length;
53
};
54
55
class
bspMap_c {
56
public
:
57
bspMap_c();
58
~bspMap_c();
59
60
bspMap_c(
const
char
* inMapName, fileHandle_t inHandle,
int
inLength);
61
gameLump_c
LoadLump(
int
index);
62
63
public
:
64
const
char
* mapname;
65
fileHandle_t h;
66
dheader_t
header;
67
int
length;
68
};
gameLump_c
Definition
navigation_bsp_lump.h:29
dheader_t
Definition
qfiles.h:517
lump_t
Definition
qfiles.h:474
code
fgame
navigation_bsp_lump.h
Generated by
1.13.2