Narwhal:Functions
From GMod Wiki
Go to: Narwhal Hooks |
Contents |
Functions
Narwhal comes with a small collection of functions.
Narwhal Functions
NARWHAL.GetModule
NARWHAL.GetModules
NARWHAL.GetTheme
NARWHAL.GetThemes
Global Functions
Methods
Narwhal has quite a few methods stored in the global NARWHAL table.
Narwhal Methods
There's a reason why there are more methods in the NARWHAL table than there are in the GAMEMODE table. The global NARWHAL table is actually a metatable. When a new index is added, the key value is sent to the GAMEMODE.__Narwhal table. When an index is accessed, it gets retrieved from the GAMEMODE.__Narwhal. Since NARWHAL is a custom table, it will never inherit from other gamemodes that use it, so we make it interface with the GM table which will inherit.