FrameworkZ API - FrameworkZ.Classes

FrameworkZ.Classes

module
0
Functions
3
Methods
1
Fields

Fields

1
FrameworkZ.Classes 📋 table
Initial value: {}

Methods

3

FrameworkZ.Classes:GetClassByID(factionID)

method
Lookup a CLASS by ID.

Parameters

factionID 📝 string
The class ID to fetch.

Returns

❔ table?
The CLASS object or nil if missing.

FrameworkZ.Classes:Initialize(id, object)

method
Register a CLASS object into the module list.

Parameters

id 📝 string
Class ID.
object 📋 table
CLASS instance to register.

Returns

📝 string
Registered class ID.

FrameworkZ.Classes:New(name)

method
Create a new class object definition.

Parameters

name 📝 string
Class ID/name.

Returns

📋 table
The CLASS instance.