Service
Noir.Classes.Service: NoirClass
Represents a Noir service.
Noir.Classes.Service:Init(name, isBuiltIn, shortDescription, longDescription, authors)Initializes service class objects.
Parameters
name: stringisBuiltIn: booleanshortDescription: stringlongDescription: stringauthors: table<integer, string>
Noir.Classes.Service:_Initialize()Initialize this service.
Used internally.
Noir.Classes.Service:_Start()Start this service.
Used internally.
Checks if g_savedata is intact.
Used internally.
Save a value to g_savedata under this service.
Parameters
index: stringdata: any
Load data from this service's g_savedata entry that was saved via the :Save() method.
Parameters
index: stringdefault: any
Returns
any
Similar to :Load(), this method loads a value from this service's g_savedata entry.
However, if the value doesn't exist, the default value provided to this method is saved then returned.
Parameters
index: stringdefault: any
Returns
any
Remove data from this service's g_savedata entry that was saved.
Parameters
index: string
Returns this service's g_savedata table for direct modification.
Returns
table
Last updated