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_developer) _NSEntLog(classname, __FUNC__, num_for_edict(this), sprintf(__VA_ARGS__))
 Logs an entity class specific log message, with detailed info. More...
 
#define EntWarning(...)   _NSEntWarning(classname, __FUNC__, num_for_edict(this), sprintf(__VA_ARGS__))
 Logs an entity class specific warning message, with detailed info. More...
 
#define EntError(...)   _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 (   ...)    _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_developer) _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 (   ...)    _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