Skip to content

Commit

Permalink
chore(client/config): entities classes
Browse files Browse the repository at this point in the history
  • Loading branch information
artur-michalak committed Aug 26, 2024
1 parent 91778f2 commit 600cb68
Showing 1 changed file with 18 additions and 12 deletions.
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

0 comments on commit 600cb68

Please sign in to comment.