Module core.libraries.meska.metrics.server
Metrics-Skill-Achievement Framework (MESKA)
The metrics-system core functions.
Module Overview
Functions
| meska.metrics.initFor(ply[, cb]) | Provisions all metrics/stats for a player. |
| meska.metrics.track(ply, skill, metric, equ, tmp[, cb]) | Tracks metrics and stats for a prop and calculates skill exp and level. |
| meska.metrics.syncToDB([cb]) | Syncs metrics config to database. |
- meska.metrics.initFor(ply[, cb])
-
Provisions all metrics/stats for a player.
Parameters:
- ply Player Entity.
- cb func Callback Function. (optional)
- meska.metrics.track(ply, skill, metric, equ, tmp[, cb])
-
Tracks metrics and stats for a prop
and calculates skill exp and level.
Parameters:
- ply Player Entity.
- skill The skill.
- metric The property.
- equ Equotation.
- tmp If false, update in db. Default: false.
- cb func Callback Function with earned exp as return value. (optional)
- meska.metrics.syncToDB([cb])
-
Syncs metrics config to database.
Parameters:
- cb func Callback Function. (optional)