Documentation ¶
Overview ¶
Package pdef parses Titanfall 2 player data definitions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pdef ¶
type Pdef struct { Root []Field `json:"root"` Enum map[string][]string `json:"enum"` Struct map[string][]Field `json:"struct"` }
Pdef describes the format of Titanfall 2 player data. Player data structures must not be recursive.
type TypeInfo ¶
type TypeInfo struct { Int *TypeInfoPrimitive `json:"int,omitempty"` Bool *TypeInfoPrimitive `json:"bool,omitempty"` Float *TypeInfoPrimitive `json:"float,omitempty"` String *TypeInfoString `json:"string,omitempty"` Array *TypeInfoArray `json:"array,omitempty"` MappedArray *TypeInfoMappedArray `json:"mapped_array,omitempty"` Enum *TypeInfoEnum `json:"enum,omitempty"` Struct *TypeInfoStruct `json:"struct,omitempty"` }
TypeInfo describes a type. Exactly one of these struct fields will be set.
type TypeInfoArray ¶
TypeInfoArray is used for a fixed-length array.
type TypeInfoEnum ¶
type TypeInfoEnum struct {
Name string `json:"name"`
}
TypeInfoEnum refers to a defined enum.
type TypeInfoMappedArray ¶
TypeInfoArray is used for a fixed-length array mapping from an enum.
type TypeInfoPrimitive ¶
type TypeInfoPrimitive struct { }
TypeInfoPrimitive is used for an unconfigurable type.
type TypeInfoString ¶
type TypeInfoString struct {
Length int `json:"length"`
}
TypeInfoString is used for fixed-length strings. Note that nothing stops arbitrary binary data from being stored in a string.
type TypeInfoStruct ¶
type TypeInfoStruct struct {
Name string `json:"name"`
}
TypeInfoEnum refers to a defined struct.
Click to show internal directories.
Click to hide internal directories.