Nuclide
Software Development Kit for id Tech
NSIO.h File Reference

Go to the source code of this file.

Classes

class  NSIO
 This class is responsible for handling core entity functionality. More...
 

Macros

#define EntLog(...)   if (autocvar_g_logLevel >= LOGLEVEL_DEBUG) _NSEntLog(classname, __FUNC__, num_for_edict(this), sprintf(__VA_ARGS__))
 Logs an entity class specific log message, with detailed info. More...
 
#define EntWarning(...)   if (autocvar_g_logLevel >= LOGLEVEL_WARNINGS) _NSEntWarning(classname, __FUNC__, num_for_edict(this), sprintf(__VA_ARGS__))
 Logs an entity class specific warning message, with detailed info. More...
 
#define EntError(...)   if (autocvar_g_logLevel >= LOGLEVEL_ERRORS) _NSEntError(classname, __FUNC__, num_for_edict(this), sprintf(__VA_ARGS__))
 Logs an entity class specific error message, with detailed info. More...
 

Functions

void _NSEntLog (string className, string functionName, float edictNum, string warnMessage)
 
void _NSEntWarning (string className, string functionName, float edictNum, string warnMessage)
 
void _NSEntError (string className, string functionName, float edictNum, string warnMessage)
 

Variables

bool _mapspawned
 

Macro Definition Documentation

◆ EntError

#define EntError (   ...)    if (autocvar_g_logLevel >= LOGLEVEL_ERRORS) _NSEntError(classname, __FUNC__, num_for_edict(this), sprintf(__VA_ARGS__))

Logs an entity class specific error message, with detailed info.

The console variable entity_developer has to be 1 for them to be visible.

Parameters
description(...)contains a formatted string containing a description.

◆ EntLog

#define EntLog (   ...)    if (autocvar_g_logLevel >= LOGLEVEL_DEBUG) _NSEntLog(classname, __FUNC__, num_for_edict(this), sprintf(__VA_ARGS__))

Logs an entity class specific log message, with detailed info.

The console variable entity_developer has to be 1 for them to be visible.

Parameters
description(...)contains a formatted string containing a description.

◆ EntWarning

#define EntWarning (   ...)    if (autocvar_g_logLevel >= LOGLEVEL_WARNINGS) _NSEntWarning(classname, __FUNC__, num_for_edict(this), sprintf(__VA_ARGS__))

Logs an entity class specific warning message, with detailed info.

The console variable entity_developer has to be 1 for them to be visible.

Parameters
description(...)contains a formatted string containing a description.

Function Documentation

◆ _NSEntError()

void _NSEntError ( string  className,
string  functionName,
float  edictNum,
string  warnMessage 
)

◆ _NSEntLog()

void _NSEntLog ( string  className,
string  functionName,
float  edictNum,
string  warnMessage 
)

◆ _NSEntWarning()

void _NSEntWarning ( string  className,
string  functionName,
float  edictNum,
string  warnMessage 
)

Variable Documentation

◆ _mapspawned

bool _mapspawned