28 lines
711 B
Go
28 lines
711 B
Go
package models
|
|
|
|
import (
|
|
"encoding/json"
|
|
"sync"
|
|
)
|
|
|
|
var _ = json.RawMessage{}
|
|
var _ = sync.Mutex{}
|
|
|
|
//
|
|
// Typed factories for combat RPCs. Weapon/style/skill values come from the extracted build-4229938
|
|
// client tables; private-server.json only supplies private-server balance and identity values.
|
|
//
|
|
type CombatCodec struct {
|
|
Settings CombatSettings `json:"settings"`
|
|
MaxHp float32 `json:"maxHp"`
|
|
UltimateResourceId uint32 `json:"ultimateResourceId"`
|
|
UltimateResourceMax float32 `json:"ultimateResourceMax"`
|
|
AllResourceMaximums map[uint32]float32 `json:"allResourceMaximums"`
|
|
}
|
|
|
|
const (
|
|
CombatCodec_WeaponOperatorFlagsDiscardable uint32 = 1 << 8
|
|
CombatCodec_DiscardWeaponReasonRemove byte = 5
|
|
)
|
|
|