Documentation ¶
Index ¶
- Constants
- type CamData
- type Cordinates
- type Enrichment
- type Enrichments
- type EntityNumEnrichment
- type EventKey
- type GameEventData
- type GameEventDescription
- type HLAEServer
- func (h *HLAEServer) BroadcastRCON(cmd string) error
- func (h *HLAEServer) RegisterCamHandler(handler func(*CamData))
- func (h *HLAEServer) RegisterEventHandler(handler func(*GameEventData))
- func (h *HLAEServer) RegisterHandler(handler func(string))
- func (h *HLAEServer) SendRCON(k int, cmd string) error
- func (h *HLAEServer) Start() error
- func (h *HLAEServer) TransBegin() error
- func (h *HLAEServer) TransEnd() error
- type UserIDEnrichment
Constants ¶
const ( KEYTYPE_STRING int32 KEYTYPE_FLOAT32 KEYTYPE_INT32 KEYTYPE_INT16 KEYTYPE_INT8 KEYTYPE_BOOLEAN KEYTYPE_BIGUINT64 KEYTYPE_UNKNOWN )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CamData ¶
type CamData struct { Time float32 XPos float32 YPos float32 ZPos float32 XRot float32 YRot float32 Zrot float32 Fov float32 }
CamData Camera datas
type Cordinates ¶
Cordinates include float32 X/Y/Z Pos cordinates.
type Enrichment ¶
type Enrichments ¶
type Enrichments map[string]map[string]Enrichment
type EntityNumEnrichment ¶
type EntityNumEnrichment struct { Origin Cordinates Angles Cordinates KeyValue string // contains filtered or unexported fields }
EntityNumEnrichment containns Entity's Origin/Angles.
func (*EntityNumEnrichment) GetEnrichment ¶
func (e *EntityNumEnrichment) GetEnrichment() []string
func (*EntityNumEnrichment) GetMap ¶
func (e *EntityNumEnrichment) GetMap() map[string]interface{}
GetMap EntityNum Enrichment
func (*EntityNumEnrichment) SetEnrichment ¶
func (e *EntityNumEnrichment) SetEnrichment(en []string)
func (*EntityNumEnrichment) Unserialize ¶
func (e *EntityNumEnrichment) Unserialize(r io.Reader) error
GetMap EntityNum Enrichment
type GameEventData ¶
type GameEventData struct { Name string ClientTime float32 Keys map[string]string // Even value is float32 or int etc. convert to string }
GameEventData Game event keys and time
type GameEventDescription ¶
type GameEventDescription struct { EventID int32 EventName string Keys []EventKey // KeyName->Key type // contains filtered or unexported fields }
GameEventDescription include Event ID,Name, Keys etc.
func (*GameEventDescription) Unserialize ¶
func (e *GameEventDescription) Unserialize(r io.Reader) (*GameEventData, error)
Unserialize parse EventDescription
type HLAEServer ¶
type HLAEServer struct {
// contains filtered or unexported fields
}
HLAEServer Main struct
func (*HLAEServer) BroadcastRCON ¶
func (h *HLAEServer) BroadcastRCON(cmd string) error
BroadcastRCON broadcast command
func (*HLAEServer) RegisterCamHandler ¶
func (h *HLAEServer) RegisterCamHandler(handler func(*CamData))
RegisterCamHandler to handle each requests
func (*HLAEServer) RegisterEventHandler ¶
func (h *HLAEServer) RegisterEventHandler(handler func(*GameEventData))
RegisterEventHandler to handle each requests
func (*HLAEServer) RegisterHandler ¶
func (h *HLAEServer) RegisterHandler(handler func(string))
RegisterHandler to handle each requests
func (*HLAEServer) SendRCON ¶
func (h *HLAEServer) SendRCON(k int, cmd string) error
SendRCON Send RCON to specific client
func (*HLAEServer) TransBegin ¶
func (h *HLAEServer) TransBegin() error
TransBegin Start transaction
type UserIDEnrichment ¶
type UserIDEnrichment struct { XUID *big.Int EyeOrigin Cordinates EyeAngles Cordinates KeyValue string // contains filtered or unexported fields }
UserIDEnrichment contains User informations with XUID/Eyeorigins(Cordinates)/EyeAngles(Cordinates)
func (*UserIDEnrichment) GetEnrichment ¶
func (u *UserIDEnrichment) GetEnrichment() []string
func (*UserIDEnrichment) GetMap ¶
func (u *UserIDEnrichment) GetMap() map[string]interface{}
GetMap UserID Enrichment to map
func (*UserIDEnrichment) SetEnrichment ¶
func (u *UserIDEnrichment) SetEnrichment(en []string)
func (*UserIDEnrichment) Unserialize ¶
func (u *UserIDEnrichment) Unserialize(r io.Reader) error
Unserialize Unserialize into u