Project Zomboid Lua Docs 29123
Unofficial documentation for Project Zomboid's Lua
Loading...
Searching...
No Matches
CTrapGlobalObject Class Reference
Inheritance diagram for CTrapGlobalObject:
CGlobalObject ISBaseObject

Public Member Functions

void fromModData (table modData)
boolean checkForWallExploit (IsoGridSquare square)
 CTrapGlobalObject (CTrapSystem luaSystem, GlobalObject globalObject)
Public Member Functions inherited from CGlobalObject
void noise (string message)
IsoObject getIsoObject ()
IsoGridSquare getSquare ()
void fromModData (table modData)
void updateFromIsoObject ()
 CGlobalObject (CGlobalObjectSystem luaSystem, GlobalObject globalObject)
Public Member Functions inherited from ISBaseObject
void initialise ()
ISBaseObject derive (string type)
void addEventListener (string _event, function _callback, unknown _target)
void removeEventListener (string _event, function _callback)
void triggerEvent (string _event, unknown ...)
void clearEventListeners ()
 ISBaseObject ()

Public Attributes

string bait
umbrella::TrapAnimalDefinition animal
Public Attributes inherited from CGlobalObject
CGlobalObjectSystem luaSystem
GlobalObject globalObject
number x
number y
number z
Public Attributes inherited from ISBaseObject
string Type
table< string, table< function, unknown > > __eventListeners

Constructor & Destructor Documentation

◆ CTrapGlobalObject()

CTrapGlobalObject::CTrapGlobalObject ( CTrapSystem luaSystem,
GlobalObject globalObject )

Member Function Documentation

◆ checkForWallExploit()

boolean CTrapGlobalObject::checkForWallExploit ( IsoGridSquare square)

◆ fromModData()

void CTrapGlobalObject::fromModData ( table modData)

Member Data Documentation

◆ animal

umbrella::TrapAnimalDefinition CTrapGlobalObject::animal

◆ bait

string CTrapGlobalObject::bait

The documentation for this class was generated from the following file: