FrameworkZ
10.8.3
Provides a framework for Project Zomboid with various systems.
Loading...
Searching...
No Matches
Sub_Classes.lua
Go to the documentation of this file.
1
FrameworkZ
=
FrameworkZ
or {}
2
3
FrameworkZ
.
SubClasses
= {}
4
FrameworkZ
.
SubClasses
.__index =
FrameworkZ
.
SubClasses
5
FrameworkZ
.
SubClasses
.List = {}
6
FrameworkZ
.
SubClasses
=
FrameworkZ
.
Foundation
:NewModule(
FrameworkZ
.
SubClasses
,
"SubClasses"
)
7
8
local
SUBCLASS
= {}
9
SUBCLASS
.__index =
SUBCLASS
10
11
function
SUBCLASS
:
Initialize
()
12
return
FrameworkZ
.
SubClasses
:Initialize(
self
.
name
,
self
)
13
end
14
15
function
FrameworkZ
.
SubClasses
:New(
name
)
16
local
object
= {
17
id
=
name
,
18
name
=
name
,
19
description
=
"No description available."
,
20
limit = 0,
21
members = {}
22
}
23
24
setmetatable(
object
,
SUBCLASS
)
25
26
return
object
27
end
28
29
function
FrameworkZ
.
SubClasses
:Initialize(
id
,
object
)
30
self
.
List
[
id
] =
object
31
32
return
id
33
end
34
35
function
FrameworkZ
.Factions:GetClassByID(factionID)
36
local class =
self
.
List
[factionID] or
nil
37
38
return class
39
end
description
void description()
nil
void self FrameworkZ UI self nil
Definition
MainMenu.lua:95
self
void self self
Definition
MainMenu.lua:89
SUBCLASS
void local SUBCLASS()
SubClasses
void FrameworkZ SubClasses()
List
void FrameworkZ SubClasses List()
FrameworkZ
void FrameworkZ()
name
void local name()
FrameworkZ::Factions::GetClassByID
void GetClassByID(factionID)
FrameworkZ::Foundation
Foundation for FrameworkZ.
Definition
__Foundation.lua:85
FrameworkZ::SubClasses
Definition
Sub_Classes.lua:2
FrameworkZ
Definition
__Boot.lua:2
SUBCLASS
Definition
Sub_Classes.lua:9
SUBCLASS::Initialize
void Initialize()
FrameworkZ
Contents
mods
FrameworkZ
media
lua
shared
_FrameworkZ
_Modules
Sub_Classes.lua
Generated on Fri Jul 25 2025 08:47:10 for FrameworkZ by
1.10.0