Nuclide
Software Development Kit for id Technology (BETA)
Main Page
Related Pages
Modules
Classes
SessionManager.h
1
/*
2
* Copyright (c) 2016-2025 Vera Visions LLC.
3
*
4
* Permission to use, copy, modify, and distribute this software for any
5
* purpose with or without fee is hereby granted, provided that the above
6
* copyright notice and this permission notice appear in all copies.
7
*
8
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
*/
16
23
class
24
ncSessionManager
25
{
26
public
:
27
void
ncSessionManager
(
void
);
28
29
const
string
GetGlobal(
string
);
30
const
void
SetGlobal(
string
,
string
);
31
const
void
HandleLevelTransition(
void
);
32
const
void
TransitionFromPVS(
ncEntity
pvsEnt);
33
const
void
TransitionFromVolume(
ncEntity
volumeEnt);
34
const
void
RestoreStateFromHandle(
float
saveHandle,
float
entityCount,
float
playerSlots);
35
const
void
SaveStateToHandle(
float
saveHandle,
float
entityCount,
float
playerSlots);
36
const
void
ListGlobals(
void
);
37
38
private
:
39
const
void
_LoadTransition(
void
);
40
const
void
_SaveTransition(
ncEntity
pvsTest,
bool
usePVS);
41
const
ncEntity
_FindCarrierEntity(
string
globalName);
42
};
ncEntity
ncEntity is the lowest of the user-accessible entity class.
Definition:
Entity.h:75
ncSessionManager
The gamestate, savegame manager.
Definition:
SessionManager.h:25
src
server
SessionManager.h
2009-2025 (C) Nuclide is a project by
Vera Visions, L.L.C.
and is available under the
ISC License
.