OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
cg_archive.h
1/*
2===========================================================================
3Copyright (C) 2023 the OpenMoHAA team
4
5This file is part of OpenMoHAA source code.
6
7OpenMoHAA source code is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 2 of the License,
10or (at your option) any later version.
11
12OpenMoHAA source code is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with OpenMoHAA source code; if not, write to the Free Software
19Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20===========================================================================
21*/
22
23// DESCRIPTION:
24// Memory archiver
25
26#pragma once
27
28#ifdef __cplusplus
29
30#include "../qcommon/container.h"
31#include "../qcommon/str.h"
32
33class MemArchiver;
34
35extern "C" {
36#endif
37
38size_t CG_SaveStateToBuffer(void** out, int svsTime);
39qboolean CG_LoadStateToBuffer(void* state, size_t size, int svsTime);
40
41#ifdef __cplusplus
42void CG_ArchiveStuff(MemArchiver& archiver, int svsTime);
43void CG_ArchiveStringContainer(MemArchiver& archiver, Container<str>* container);
44void CG_ArchiveTikiPointer(MemArchiver& archiver, dtiki_t** pTiki);
45void CG_ArchiveModelHandle(MemArchiver& archiver, qhandle_t* handle);
46void CG_ArchiveShaderHandle(MemArchiver& archiver, qhandle_t* handle);
47void CG_ArchiveRefEntity(MemArchiver& archiver, refEntity_t* ref);
48#endif
49
50
51#ifdef __cplusplus
52}
53#endif
Definition container.h:85
Definition memarchiver.h:36
Definition tr_types.h:95
Definition puff.c:88