Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(client/config): entities classes #110

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions config/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,14 @@ return {
---@field class table<VehicleClass, SkillCheckConfig | {}>
---@field model table<number, SkillCheckConfig>

---@class AnimConfigEntry
---@field default Anim
---@field class table<VehicleClass, Anim | {}>
---@field model table<number, Anim>
---@class SkillCheckEntities
---@field lockpick SkillCheckConfigEntry
---@field advancedLockpick SkillCheckConfigEntry
---@field hotwire SkillCheckConfigEntry
---@field advancedHotwire SkillCheckConfigEntry

---@type SkillCheckEntities
skillCheck = {
---@type SkillCheckConfigEntry
lockpick = {
default = normalLockpickSkillCheck,
class = {
Expand Down Expand Up @@ -179,7 +180,6 @@ return {
[`zombiea`] = normalLockpickSkillCheck
}
},
---@type SkillCheckConfigEntry
advancedLockpick = {
default = easyLockpickSkillCheck,
class = {
Expand Down Expand Up @@ -210,7 +210,6 @@ return {
[`zombiea`] = easyLockpickSkillCheck
}
},
---@type SkillCheckConfigEntry
hotwire = {
default = normalLockpickSkillCheck,
class = {
Expand Down Expand Up @@ -241,7 +240,6 @@ return {
[`zombiea`] = normalLockpickSkillCheck
}
},
---@type SkillCheckConfigEntry
advancedHotwire = {
default = easyLockpickSkillCheck,
class = {
Expand Down Expand Up @@ -274,8 +272,19 @@ return {
}
},

---@class AnimConfigEntry
---@field default Anim
---@field class table<VehicleClass, Anim | {}>
---@field model table<number, Anim>

---@class AnimConfigEntities
---@field hotwire AnimConfigEntry
---@field searchKeys AnimConfigEntry
---@field lockpick AnimConfigEntry
---@field holdup AnimConfigEntry

---@type AnimConfigEntities
anims = {
---@type AnimConfigEntry
hotwire = {
default = defaultHotwireAnim,
class = {
Expand Down Expand Up @@ -306,7 +315,6 @@ return {
[`zombiea`] = defaultHotwireAnim
}
},
---@type AnimConfigEntry
searchKeys = {
default = defaultSearchKeysAnim,
class = {
Expand Down Expand Up @@ -337,7 +345,6 @@ return {
[`zombiea`] = defaultSearchKeysAnim
}
},
---@type AnimConfigEntry
lockpick = {
default = defaultLockpickAnim,
class = {
Expand Down Expand Up @@ -368,7 +375,6 @@ return {
[`zombiea`] = defaultLockpickAnim
}
},
---@type AnimConfigEntry
holdup = {
default = defaultHoldupAnim,
class = {
Expand Down