Documentation
¶
Index ¶
- type MoveNpcRequest
- func (m *MoveNpcRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *MoveNpcRequest) CloneVT() *MoveNpcRequest
- func (this *MoveNpcRequest) EqualMessageVT(thatMsg any) bool
- func (this *MoveNpcRequest) EqualVT(that *MoveNpcRequest) bool
- func (x *MoveNpcRequest) GetFacing() *geometry.EulerAngles
- func (x *MoveNpcRequest) GetNpc() uint32
- func (x *MoveNpcRequest) GetPosition() *geometry.Vec3
- func (x *MoveNpcRequest) GetVelocity() *geometry.Vec3
- func (x *MoveNpcRequest) MarshalJSON() ([]byte, error)
- func (x *MoveNpcRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *MoveNpcRequest) MarshalProtoText() string
- func (m *MoveNpcRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *MoveNpcRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *MoveNpcRequest) MarshalVT() (dAtA []byte, err error)
- func (*MoveNpcRequest) ProtoMessage()
- func (x *MoveNpcRequest) Reset()
- func (m *MoveNpcRequest) SizeVT() (n int)
- func (x *MoveNpcRequest) String() string
- func (x *MoveNpcRequest) UnmarshalJSON(b []byte) error
- func (x *MoveNpcRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *MoveNpcRequest) UnmarshalVT(dAtA []byte) error
- type NpcOptions
- func (m *NpcOptions) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *NpcOptions) CloneVT() *NpcOptions
- func (this *NpcOptions) EqualMessageVT(thatMsg any) bool
- func (this *NpcOptions) EqualVT(that *NpcOptions) bool
- func (x *NpcOptions) GetClassName() string
- func (x *NpcOptions) GetFacing() *geometry.EulerAngles
- func (x *NpcOptions) GetFields() []*fields.FieldWrite
- func (x *NpcOptions) GetHealth() int32
- func (x *NpcOptions) GetLane() uint32
- func (x *NpcOptions) GetMaxHealth() int32
- func (x *NpcOptions) GetPosition() *geometry.Vec3
- func (x *NpcOptions) GetTeam() int32
- func (x *NpcOptions) GetUnit() string
- func (x *NpcOptions) MarshalJSON() ([]byte, error)
- func (x *NpcOptions) MarshalProtoJSON(s *json.MarshalState)
- func (x *NpcOptions) MarshalProtoText() string
- func (m *NpcOptions) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *NpcOptions) MarshalToVT(dAtA []byte) (int, error)
- func (m *NpcOptions) MarshalVT() (dAtA []byte, err error)
- func (*NpcOptions) ProtoMessage()
- func (x *NpcOptions) Reset()
- func (m *NpcOptions) SizeVT() (n int)
- func (x *NpcOptions) String() string
- func (x *NpcOptions) UnmarshalJSON(b []byte) error
- func (x *NpcOptions) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *NpcOptions) UnmarshalVT(dAtA []byte) error
- type NpcRequest
- func (m *NpcRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *NpcRequest) CloneVT() *NpcRequest
- func (this *NpcRequest) EqualMessageVT(thatMsg any) bool
- func (this *NpcRequest) EqualVT(that *NpcRequest) bool
- func (x *NpcRequest) GetNpc() uint32
- func (x *NpcRequest) MarshalJSON() ([]byte, error)
- func (x *NpcRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *NpcRequest) MarshalProtoText() string
- func (m *NpcRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *NpcRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *NpcRequest) MarshalVT() (dAtA []byte, err error)
- func (*NpcRequest) ProtoMessage()
- func (x *NpcRequest) Reset()
- func (m *NpcRequest) SizeVT() (n int)
- func (x *NpcRequest) String() string
- func (x *NpcRequest) UnmarshalJSON(b []byte) error
- func (x *NpcRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *NpcRequest) UnmarshalVT(dAtA []byte) error
- type NpcResponse
- func (m *NpcResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *NpcResponse) CloneVT() *NpcResponse
- func (this *NpcResponse) EqualMessageVT(thatMsg any) bool
- func (this *NpcResponse) EqualVT(that *NpcResponse) bool
- func (x *NpcResponse) GetNpc() uint32
- func (x *NpcResponse) MarshalJSON() ([]byte, error)
- func (x *NpcResponse) MarshalProtoJSON(s *json.MarshalState)
- func (x *NpcResponse) MarshalProtoText() string
- func (m *NpcResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *NpcResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *NpcResponse) MarshalVT() (dAtA []byte, err error)
- func (*NpcResponse) ProtoMessage()
- func (x *NpcResponse) Reset()
- func (m *NpcResponse) SizeVT() (n int)
- func (x *NpcResponse) String() string
- func (x *NpcResponse) UnmarshalJSON(b []byte) error
- func (x *NpcResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *NpcResponse) UnmarshalVT(dAtA []byte) error
- type NpcState
- func (m *NpcState) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *NpcState) CloneVT() *NpcState
- func (this *NpcState) EqualMessageVT(thatMsg any) bool
- func (this *NpcState) EqualVT(that *NpcState) bool
- func (x *NpcState) GetFacing() *geometry.EulerAngles
- func (x *NpcState) GetHealth() int32
- func (x *NpcState) GetMaxHealth() int32
- func (x *NpcState) GetPosition() *geometry.Vec3
- func (x *NpcState) GetTeam() int32
- func (x *NpcState) MarshalJSON() ([]byte, error)
- func (x *NpcState) MarshalProtoJSON(s *json.MarshalState)
- func (x *NpcState) MarshalProtoText() string
- func (m *NpcState) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *NpcState) MarshalToVT(dAtA []byte) (int, error)
- func (m *NpcState) MarshalVT() (dAtA []byte, err error)
- func (*NpcState) ProtoMessage()
- func (x *NpcState) Reset()
- func (m *NpcState) SizeVT() (n int)
- func (x *NpcState) String() string
- func (x *NpcState) UnmarshalJSON(b []byte) error
- func (x *NpcState) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *NpcState) UnmarshalVT(dAtA []byte) error
- type NpcStateResponse
- func (m *NpcStateResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *NpcStateResponse) CloneVT() *NpcStateResponse
- func (this *NpcStateResponse) EqualMessageVT(thatMsg any) bool
- func (this *NpcStateResponse) EqualVT(that *NpcStateResponse) bool
- func (x *NpcStateResponse) GetState() *NpcState
- func (x *NpcStateResponse) MarshalJSON() ([]byte, error)
- func (x *NpcStateResponse) MarshalProtoJSON(s *json.MarshalState)
- func (x *NpcStateResponse) MarshalProtoText() string
- func (m *NpcStateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *NpcStateResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *NpcStateResponse) MarshalVT() (dAtA []byte, err error)
- func (*NpcStateResponse) ProtoMessage()
- func (x *NpcStateResponse) Reset()
- func (m *NpcStateResponse) SizeVT() (n int)
- func (x *NpcStateResponse) String() string
- func (x *NpcStateResponse) UnmarshalJSON(b []byte) error
- func (x *NpcStateResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *NpcStateResponse) UnmarshalVT(dAtA []byte) error
- type NpcTarget
- func (m *NpcTarget) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *NpcTarget) CloneVT() *NpcTarget
- func (this *NpcTarget) EqualMessageVT(thatMsg any) bool
- func (this *NpcTarget) EqualVT(that *NpcTarget) bool
- func (x *NpcTarget) GetClassName() string
- func (x *NpcTarget) GetFacing() *geometry.EulerAngles
- func (x *NpcTarget) GetHealth() int32
- func (x *NpcTarget) GetId() uint32
- func (x *NpcTarget) GetLane() uint32
- func (x *NpcTarget) GetMaxHealth() int32
- func (x *NpcTarget) GetPosition() *geometry.Vec3
- func (x *NpcTarget) GetTeam() int32
- func (x *NpcTarget) GetVelocity() *geometry.Vec3
- func (x *NpcTarget) MarshalJSON() ([]byte, error)
- func (x *NpcTarget) MarshalProtoJSON(s *json.MarshalState)
- func (x *NpcTarget) MarshalProtoText() string
- func (m *NpcTarget) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *NpcTarget) MarshalToVT(dAtA []byte) (int, error)
- func (m *NpcTarget) MarshalVT() (dAtA []byte, err error)
- func (*NpcTarget) ProtoMessage()
- func (x *NpcTarget) Reset()
- func (m *NpcTarget) SizeVT() (n int)
- func (x *NpcTarget) String() string
- func (x *NpcTarget) UnmarshalJSON(b []byte) error
- func (x *NpcTarget) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *NpcTarget) UnmarshalVT(dAtA []byte) error
- type NpcsRestoredEvent
- func (m *NpcsRestoredEvent) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *NpcsRestoredEvent) CloneVT() *NpcsRestoredEvent
- func (this *NpcsRestoredEvent) EqualMessageVT(thatMsg any) bool
- func (this *NpcsRestoredEvent) EqualVT(that *NpcsRestoredEvent) bool
- func (x *NpcsRestoredEvent) GetError() string
- func (x *NpcsRestoredEvent) MarshalJSON() ([]byte, error)
- func (x *NpcsRestoredEvent) MarshalProtoJSON(s *json.MarshalState)
- func (x *NpcsRestoredEvent) MarshalProtoText() string
- func (m *NpcsRestoredEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *NpcsRestoredEvent) MarshalToVT(dAtA []byte) (int, error)
- func (m *NpcsRestoredEvent) MarshalVT() (dAtA []byte, err error)
- func (*NpcsRestoredEvent) ProtoMessage()
- func (x *NpcsRestoredEvent) Reset()
- func (m *NpcsRestoredEvent) SizeVT() (n int)
- func (x *NpcsRestoredEvent) String() string
- func (x *NpcsRestoredEvent) UnmarshalJSON(b []byte) error
- func (x *NpcsRestoredEvent) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *NpcsRestoredEvent) UnmarshalVT(dAtA []byte) error
- type RestoreNpcsRequest
- func (m *RestoreNpcsRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *RestoreNpcsRequest) CloneVT() *RestoreNpcsRequest
- func (this *RestoreNpcsRequest) EqualMessageVT(thatMsg any) bool
- func (this *RestoreNpcsRequest) EqualVT(that *RestoreNpcsRequest) bool
- func (x *RestoreNpcsRequest) GetNpcs() []*NpcTarget
- func (x *RestoreNpcsRequest) MarshalJSON() ([]byte, error)
- func (x *RestoreNpcsRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *RestoreNpcsRequest) MarshalProtoText() string
- func (m *RestoreNpcsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RestoreNpcsRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *RestoreNpcsRequest) MarshalVT() (dAtA []byte, err error)
- func (*RestoreNpcsRequest) ProtoMessage()
- func (x *RestoreNpcsRequest) Reset()
- func (m *RestoreNpcsRequest) SizeVT() (n int)
- func (x *RestoreNpcsRequest) String() string
- func (x *RestoreNpcsRequest) UnmarshalJSON(b []byte) error
- func (x *RestoreNpcsRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *RestoreNpcsRequest) UnmarshalVT(dAtA []byte) error
- type SetNpcHealthRequest
- func (m *SetNpcHealthRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *SetNpcHealthRequest) CloneVT() *SetNpcHealthRequest
- func (this *SetNpcHealthRequest) EqualMessageVT(thatMsg any) bool
- func (this *SetNpcHealthRequest) EqualVT(that *SetNpcHealthRequest) bool
- func (x *SetNpcHealthRequest) GetHealth() int32
- func (x *SetNpcHealthRequest) GetMaxHealth() int32
- func (x *SetNpcHealthRequest) GetNpc() uint32
- func (x *SetNpcHealthRequest) MarshalJSON() ([]byte, error)
- func (x *SetNpcHealthRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *SetNpcHealthRequest) MarshalProtoText() string
- func (m *SetNpcHealthRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SetNpcHealthRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *SetNpcHealthRequest) MarshalVT() (dAtA []byte, err error)
- func (*SetNpcHealthRequest) ProtoMessage()
- func (x *SetNpcHealthRequest) Reset()
- func (m *SetNpcHealthRequest) SizeVT() (n int)
- func (x *SetNpcHealthRequest) String() string
- func (x *SetNpcHealthRequest) UnmarshalJSON(b []byte) error
- func (x *SetNpcHealthRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *SetNpcHealthRequest) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MoveNpcRequest ¶
type MoveNpcRequest struct {
Npc uint32 `protobuf:"varint,1,opt,name=npc,proto3" json:"npc,omitempty"`
// Position is the unit's new origin.
Position *geometry.Vec3 `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
// Facing is where the unit faces afterwards.
Facing *geometry.EulerAngles `protobuf:"bytes,3,opt,name=facing,proto3,oneof" json:"facing,omitempty"`
// Velocity is the unit's motion, which drives its walk animation.
Velocity *geometry.Vec3 `protobuf:"bytes,4,opt,name=velocity,proto3,oneof" json:"velocity,omitempty"`
// contains filtered or unexported fields
}
MoveNpcRequest places one unit.
func (*MoveNpcRequest) CloneMessageVT ¶
func (m *MoveNpcRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*MoveNpcRequest) CloneVT ¶
func (m *MoveNpcRequest) CloneVT() *MoveNpcRequest
func (*MoveNpcRequest) EqualMessageVT ¶
func (this *MoveNpcRequest) EqualMessageVT(thatMsg any) bool
func (*MoveNpcRequest) EqualVT ¶
func (this *MoveNpcRequest) EqualVT(that *MoveNpcRequest) bool
func (*MoveNpcRequest) GetFacing ¶
func (x *MoveNpcRequest) GetFacing() *geometry.EulerAngles
func (*MoveNpcRequest) GetNpc ¶
func (x *MoveNpcRequest) GetNpc() uint32
func (*MoveNpcRequest) GetPosition ¶
func (x *MoveNpcRequest) GetPosition() *geometry.Vec3
func (*MoveNpcRequest) GetVelocity ¶
func (x *MoveNpcRequest) GetVelocity() *geometry.Vec3
func (*MoveNpcRequest) MarshalJSON ¶
func (x *MoveNpcRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals the MoveNpcRequest to JSON.
func (*MoveNpcRequest) MarshalProtoJSON ¶
func (x *MoveNpcRequest) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the MoveNpcRequest message to JSON.
func (*MoveNpcRequest) MarshalProtoText ¶
func (x *MoveNpcRequest) MarshalProtoText() string
func (*MoveNpcRequest) MarshalToSizedBufferVT ¶
func (m *MoveNpcRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*MoveNpcRequest) MarshalToVT ¶
func (m *MoveNpcRequest) MarshalToVT(dAtA []byte) (int, error)
func (*MoveNpcRequest) MarshalVT ¶
func (m *MoveNpcRequest) MarshalVT() (dAtA []byte, err error)
func (*MoveNpcRequest) ProtoMessage ¶
func (*MoveNpcRequest) ProtoMessage()
func (*MoveNpcRequest) Reset ¶
func (x *MoveNpcRequest) Reset()
func (*MoveNpcRequest) SizeVT ¶
func (m *MoveNpcRequest) SizeVT() (n int)
func (*MoveNpcRequest) String ¶
func (x *MoveNpcRequest) String() string
func (*MoveNpcRequest) UnmarshalJSON ¶
func (x *MoveNpcRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the MoveNpcRequest from JSON.
func (*MoveNpcRequest) UnmarshalProtoJSON ¶
func (x *MoveNpcRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the MoveNpcRequest message from JSON.
func (*MoveNpcRequest) UnmarshalVT ¶
func (m *MoveNpcRequest) UnmarshalVT(dAtA []byte) error
type NpcOptions ¶
type NpcOptions struct {
// ClassName is the unit's entity class, such as npc_trooper or
// npc_trooper_boss.
ClassName string `protobuf:"bytes,1,opt,name=class_name,json=className,proto3" json:"className,omitempty"`
// Unit names the unit's game data entry, such as trooper_melee, or is empty
// for a unit that needs none.
Unit string `protobuf:"bytes,2,opt,name=unit,proto3" json:"unit,omitempty"`
// Team is the unit's team number; 4 is neutral.
Team int32 `protobuf:"varint,3,opt,name=team,proto3" json:"team,omitempty"`
// Position is the unit's origin, at its feet.
Position *geometry.Vec3 `protobuf:"bytes,4,opt,name=position,proto3" json:"position,omitempty"`
// Facing is where the unit faces.
Facing *geometry.EulerAngles `protobuf:"bytes,5,opt,name=facing,proto3,oneof" json:"facing,omitempty"`
// Health is the unit's health; the default is the unit's own.
Health *int32 `protobuf:"varint,6,opt,name=health,proto3,oneof" json:"health,omitempty"`
// MaxHealth is the unit's maximum health; the default is health.
MaxHealth *int32 `protobuf:"varint,7,opt,name=max_health,json=maxHealth,proto3,oneof" json:"maxHealth,omitempty"`
// Lane is the lane the unit walks. A unit whose class walks none, unlike a
// trooper, refuses it.
Lane *uint32 `protobuf:"varint,8,opt,name=lane,proto3,oneof" json:"lane,omitempty"`
// Fields are schema fields the host writes after it creates the unit and
// before the unit spawns, such as m_iInitialTeamNum, which the game reads
// only while spawning. A write that fails cancels the spawn.
Fields []*fields.FieldWrite `protobuf:"bytes,9,rep,name=fields,proto3" json:"fields,omitempty"`
// contains filtered or unexported fields
}
NpcOptions describes a unit that is not a player, such as a trooper.
func (*NpcOptions) CloneMessageVT ¶
func (m *NpcOptions) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*NpcOptions) CloneVT ¶
func (m *NpcOptions) CloneVT() *NpcOptions
func (*NpcOptions) EqualMessageVT ¶
func (this *NpcOptions) EqualMessageVT(thatMsg any) bool
func (*NpcOptions) EqualVT ¶
func (this *NpcOptions) EqualVT(that *NpcOptions) bool
func (*NpcOptions) GetClassName ¶
func (x *NpcOptions) GetClassName() string
func (*NpcOptions) GetFacing ¶
func (x *NpcOptions) GetFacing() *geometry.EulerAngles
func (*NpcOptions) GetFields ¶
func (x *NpcOptions) GetFields() []*fields.FieldWrite
func (*NpcOptions) GetHealth ¶
func (x *NpcOptions) GetHealth() int32
func (*NpcOptions) GetLane ¶
func (x *NpcOptions) GetLane() uint32
func (*NpcOptions) GetMaxHealth ¶
func (x *NpcOptions) GetMaxHealth() int32
func (*NpcOptions) GetPosition ¶
func (x *NpcOptions) GetPosition() *geometry.Vec3
func (*NpcOptions) GetTeam ¶
func (x *NpcOptions) GetTeam() int32
func (*NpcOptions) GetUnit ¶
func (x *NpcOptions) GetUnit() string
func (*NpcOptions) MarshalJSON ¶
func (x *NpcOptions) MarshalJSON() ([]byte, error)
MarshalJSON marshals the NpcOptions to JSON.
func (*NpcOptions) MarshalProtoJSON ¶
func (x *NpcOptions) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the NpcOptions message to JSON.
func (*NpcOptions) MarshalProtoText ¶
func (x *NpcOptions) MarshalProtoText() string
func (*NpcOptions) MarshalToSizedBufferVT ¶
func (m *NpcOptions) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*NpcOptions) MarshalToVT ¶
func (m *NpcOptions) MarshalToVT(dAtA []byte) (int, error)
func (*NpcOptions) MarshalVT ¶
func (m *NpcOptions) MarshalVT() (dAtA []byte, err error)
func (*NpcOptions) ProtoMessage ¶
func (*NpcOptions) ProtoMessage()
func (*NpcOptions) Reset ¶
func (x *NpcOptions) Reset()
func (*NpcOptions) SizeVT ¶
func (m *NpcOptions) SizeVT() (n int)
func (*NpcOptions) String ¶
func (x *NpcOptions) String() string
func (*NpcOptions) UnmarshalJSON ¶
func (x *NpcOptions) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the NpcOptions from JSON.
func (*NpcOptions) UnmarshalProtoJSON ¶
func (x *NpcOptions) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the NpcOptions message from JSON.
func (*NpcOptions) UnmarshalVT ¶
func (m *NpcOptions) UnmarshalVT(dAtA []byte) error
type NpcRequest ¶
type NpcRequest struct {
// Npc is the unit's entity handle, as damage events report it.
Npc uint32 `protobuf:"varint,1,opt,name=npc,proto3" json:"npc,omitempty"`
// contains filtered or unexported fields
}
NpcRequest addresses one unit the mod spawned.
func (*NpcRequest) CloneMessageVT ¶
func (m *NpcRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*NpcRequest) CloneVT ¶
func (m *NpcRequest) CloneVT() *NpcRequest
func (*NpcRequest) EqualMessageVT ¶
func (this *NpcRequest) EqualMessageVT(thatMsg any) bool
func (*NpcRequest) EqualVT ¶
func (this *NpcRequest) EqualVT(that *NpcRequest) bool
func (*NpcRequest) GetNpc ¶
func (x *NpcRequest) GetNpc() uint32
func (*NpcRequest) MarshalJSON ¶
func (x *NpcRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals the NpcRequest to JSON.
func (*NpcRequest) MarshalProtoJSON ¶
func (x *NpcRequest) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the NpcRequest message to JSON.
func (*NpcRequest) MarshalProtoText ¶
func (x *NpcRequest) MarshalProtoText() string
func (*NpcRequest) MarshalToSizedBufferVT ¶
func (m *NpcRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*NpcRequest) MarshalToVT ¶
func (m *NpcRequest) MarshalToVT(dAtA []byte) (int, error)
func (*NpcRequest) MarshalVT ¶
func (m *NpcRequest) MarshalVT() (dAtA []byte, err error)
func (*NpcRequest) ProtoMessage ¶
func (*NpcRequest) ProtoMessage()
func (*NpcRequest) Reset ¶
func (x *NpcRequest) Reset()
func (*NpcRequest) SizeVT ¶
func (m *NpcRequest) SizeVT() (n int)
func (*NpcRequest) String ¶
func (x *NpcRequest) String() string
func (*NpcRequest) UnmarshalJSON ¶
func (x *NpcRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the NpcRequest from JSON.
func (*NpcRequest) UnmarshalProtoJSON ¶
func (x *NpcRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the NpcRequest message from JSON.
func (*NpcRequest) UnmarshalVT ¶
func (m *NpcRequest) UnmarshalVT(dAtA []byte) error
type NpcResponse ¶
type NpcResponse struct {
Npc uint32 `protobuf:"varint,1,opt,name=npc,proto3" json:"npc,omitempty"`
// contains filtered or unexported fields
}
NpcResponse holds the unit SpawnNpc added.
func (*NpcResponse) CloneMessageVT ¶
func (m *NpcResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*NpcResponse) CloneVT ¶
func (m *NpcResponse) CloneVT() *NpcResponse
func (*NpcResponse) EqualMessageVT ¶
func (this *NpcResponse) EqualMessageVT(thatMsg any) bool
func (*NpcResponse) EqualVT ¶
func (this *NpcResponse) EqualVT(that *NpcResponse) bool
func (*NpcResponse) GetNpc ¶
func (x *NpcResponse) GetNpc() uint32
func (*NpcResponse) MarshalJSON ¶
func (x *NpcResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals the NpcResponse to JSON.
func (*NpcResponse) MarshalProtoJSON ¶
func (x *NpcResponse) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the NpcResponse message to JSON.
func (*NpcResponse) MarshalProtoText ¶
func (x *NpcResponse) MarshalProtoText() string
func (*NpcResponse) MarshalToSizedBufferVT ¶
func (m *NpcResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*NpcResponse) MarshalToVT ¶
func (m *NpcResponse) MarshalToVT(dAtA []byte) (int, error)
func (*NpcResponse) MarshalVT ¶
func (m *NpcResponse) MarshalVT() (dAtA []byte, err error)
func (*NpcResponse) ProtoMessage ¶
func (*NpcResponse) ProtoMessage()
func (*NpcResponse) Reset ¶
func (x *NpcResponse) Reset()
func (*NpcResponse) SizeVT ¶
func (m *NpcResponse) SizeVT() (n int)
func (*NpcResponse) String ¶
func (x *NpcResponse) String() string
func (*NpcResponse) UnmarshalJSON ¶
func (x *NpcResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the NpcResponse from JSON.
func (*NpcResponse) UnmarshalProtoJSON ¶
func (x *NpcResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the NpcResponse message from JSON.
func (*NpcResponse) UnmarshalVT ¶
func (m *NpcResponse) UnmarshalVT(dAtA []byte) error
type NpcState ¶
type NpcState struct {
// Position is the unit's origin.
Position *geometry.Vec3 `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
// Facing is where the unit faces.
Facing *geometry.EulerAngles `protobuf:"bytes,2,opt,name=facing,proto3" json:"facing,omitempty"`
// Health is the unit's health.
Health int32 `protobuf:"varint,3,opt,name=health,proto3" json:"health,omitempty"`
// MaxHealth is the unit's maximum health.
MaxHealth int32 `protobuf:"varint,4,opt,name=max_health,json=maxHealth,proto3" json:"maxHealth,omitempty"`
// Team is the unit's team number.
Team int32 `protobuf:"varint,5,opt,name=team,proto3" json:"team,omitempty"`
// contains filtered or unexported fields
}
NpcState is a unit's state this frame.
func (*NpcState) CloneMessageVT ¶
func (m *NpcState) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*NpcState) EqualMessageVT ¶
func (*NpcState) GetFacing ¶
func (x *NpcState) GetFacing() *geometry.EulerAngles
func (*NpcState) GetMaxHealth ¶
func (*NpcState) GetPosition ¶
func (*NpcState) MarshalJSON ¶
MarshalJSON marshals the NpcState to JSON.
func (*NpcState) MarshalProtoJSON ¶
func (x *NpcState) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the NpcState message to JSON.
func (*NpcState) MarshalProtoText ¶
func (*NpcState) MarshalToSizedBufferVT ¶
func (*NpcState) ProtoMessage ¶
func (*NpcState) ProtoMessage()
func (*NpcState) UnmarshalJSON ¶
UnmarshalJSON unmarshals the NpcState from JSON.
func (*NpcState) UnmarshalProtoJSON ¶
func (x *NpcState) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the NpcState message from JSON.
func (*NpcState) UnmarshalVT ¶
type NpcStateResponse ¶
type NpcStateResponse struct {
State *NpcState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
// contains filtered or unexported fields
}
NpcStateResponse holds a live unit's state, absent once it is gone.
func (*NpcStateResponse) CloneMessageVT ¶
func (m *NpcStateResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*NpcStateResponse) CloneVT ¶
func (m *NpcStateResponse) CloneVT() *NpcStateResponse
func (*NpcStateResponse) EqualMessageVT ¶
func (this *NpcStateResponse) EqualMessageVT(thatMsg any) bool
func (*NpcStateResponse) EqualVT ¶
func (this *NpcStateResponse) EqualVT(that *NpcStateResponse) bool
func (*NpcStateResponse) GetState ¶
func (x *NpcStateResponse) GetState() *NpcState
func (*NpcStateResponse) MarshalJSON ¶
func (x *NpcStateResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals the NpcStateResponse to JSON.
func (*NpcStateResponse) MarshalProtoJSON ¶
func (x *NpcStateResponse) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the NpcStateResponse message to JSON.
func (*NpcStateResponse) MarshalProtoText ¶
func (x *NpcStateResponse) MarshalProtoText() string
func (*NpcStateResponse) MarshalToSizedBufferVT ¶
func (m *NpcStateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*NpcStateResponse) MarshalToVT ¶
func (m *NpcStateResponse) MarshalToVT(dAtA []byte) (int, error)
func (*NpcStateResponse) MarshalVT ¶
func (m *NpcStateResponse) MarshalVT() (dAtA []byte, err error)
func (*NpcStateResponse) ProtoMessage ¶
func (*NpcStateResponse) ProtoMessage()
func (*NpcStateResponse) Reset ¶
func (x *NpcStateResponse) Reset()
func (*NpcStateResponse) SizeVT ¶
func (m *NpcStateResponse) SizeVT() (n int)
func (*NpcStateResponse) String ¶
func (x *NpcStateResponse) String() string
func (*NpcStateResponse) UnmarshalJSON ¶
func (x *NpcStateResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the NpcStateResponse from JSON.
func (*NpcStateResponse) UnmarshalProtoJSON ¶
func (x *NpcStateResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the NpcStateResponse message from JSON.
func (*NpcStateResponse) UnmarshalVT ¶
func (m *NpcStateResponse) UnmarshalVT(dAtA []byte) error
type NpcTarget ¶
type NpcTarget struct {
// ClassName is the unit's entity class: npc_trooper, npc_trooper_neutral,
// npc_boss_tier2, npc_boss_tier3, npc_barrack_boss,
// npc_base_defense_sentry, npc_super_neutral or
// npc_neutral_sinners_sacrifice.
ClassName string `protobuf:"bytes,1,opt,name=class_name,json=className,proto3" json:"className,omitempty"`
// Id identifies the unit's game data entry.
Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
// Team is the unit's team number; 4 is neutral.
Team int32 `protobuf:"varint,3,opt,name=team,proto3" json:"team,omitempty"`
// Position is the unit's origin, at its feet.
Position *geometry.Vec3 `protobuf:"bytes,4,opt,name=position,proto3" json:"position,omitempty"`
// Facing is where the unit faces.
Facing *geometry.EulerAngles `protobuf:"bytes,5,opt,name=facing,proto3" json:"facing,omitempty"`
// Velocity is the unit's motion in units per second.
Velocity *geometry.Vec3 `protobuf:"bytes,6,opt,name=velocity,proto3,oneof" json:"velocity,omitempty"`
// Health and MaxHealth are the unit's health.
Health int32 `protobuf:"varint,7,opt,name=health,proto3" json:"health,omitempty"`
MaxHealth int32 `protobuf:"varint,8,opt,name=max_health,json=maxHealth,proto3" json:"maxHealth,omitempty"`
// Lane is the lane a trooper walks; troopers need one.
Lane *uint32 `protobuf:"varint,9,opt,name=lane,proto3,oneof" json:"lane,omitempty"`
// contains filtered or unexported fields
}
NpcTarget is one unit or objective RestoreNpcs places, as replays record it.
func (*NpcTarget) CloneMessageVT ¶
func (m *NpcTarget) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*NpcTarget) EqualMessageVT ¶
func (*NpcTarget) GetClassName ¶
func (*NpcTarget) GetFacing ¶
func (x *NpcTarget) GetFacing() *geometry.EulerAngles
func (*NpcTarget) GetMaxHealth ¶
func (*NpcTarget) GetPosition ¶
func (*NpcTarget) GetVelocity ¶
func (*NpcTarget) MarshalJSON ¶
MarshalJSON marshals the NpcTarget to JSON.
func (*NpcTarget) MarshalProtoJSON ¶
func (x *NpcTarget) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the NpcTarget message to JSON.
func (*NpcTarget) MarshalProtoText ¶
func (*NpcTarget) MarshalToSizedBufferVT ¶
func (*NpcTarget) ProtoMessage ¶
func (*NpcTarget) ProtoMessage()
func (*NpcTarget) UnmarshalJSON ¶
UnmarshalJSON unmarshals the NpcTarget from JSON.
func (*NpcTarget) UnmarshalProtoJSON ¶
func (x *NpcTarget) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the NpcTarget message from JSON.
func (*NpcTarget) UnmarshalVT ¶
type NpcsRestoredEvent ¶
type NpcsRestoredEvent struct {
// Error describes the unit that does not match its target, or is empty
// when every target was found in place.
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
NpcsRestoredEvent reports how a RestoreNpcs ended.
func (*NpcsRestoredEvent) CloneMessageVT ¶
func (m *NpcsRestoredEvent) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*NpcsRestoredEvent) CloneVT ¶
func (m *NpcsRestoredEvent) CloneVT() *NpcsRestoredEvent
func (*NpcsRestoredEvent) EqualMessageVT ¶
func (this *NpcsRestoredEvent) EqualMessageVT(thatMsg any) bool
func (*NpcsRestoredEvent) EqualVT ¶
func (this *NpcsRestoredEvent) EqualVT(that *NpcsRestoredEvent) bool
func (*NpcsRestoredEvent) GetError ¶
func (x *NpcsRestoredEvent) GetError() string
func (*NpcsRestoredEvent) MarshalJSON ¶
func (x *NpcsRestoredEvent) MarshalJSON() ([]byte, error)
MarshalJSON marshals the NpcsRestoredEvent to JSON.
func (*NpcsRestoredEvent) MarshalProtoJSON ¶
func (x *NpcsRestoredEvent) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the NpcsRestoredEvent message to JSON.
func (*NpcsRestoredEvent) MarshalProtoText ¶
func (x *NpcsRestoredEvent) MarshalProtoText() string
func (*NpcsRestoredEvent) MarshalToSizedBufferVT ¶
func (m *NpcsRestoredEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*NpcsRestoredEvent) MarshalToVT ¶
func (m *NpcsRestoredEvent) MarshalToVT(dAtA []byte) (int, error)
func (*NpcsRestoredEvent) MarshalVT ¶
func (m *NpcsRestoredEvent) MarshalVT() (dAtA []byte, err error)
func (*NpcsRestoredEvent) ProtoMessage ¶
func (*NpcsRestoredEvent) ProtoMessage()
func (*NpcsRestoredEvent) Reset ¶
func (x *NpcsRestoredEvent) Reset()
func (*NpcsRestoredEvent) SizeVT ¶
func (m *NpcsRestoredEvent) SizeVT() (n int)
func (*NpcsRestoredEvent) String ¶
func (x *NpcsRestoredEvent) String() string
func (*NpcsRestoredEvent) UnmarshalJSON ¶
func (x *NpcsRestoredEvent) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the NpcsRestoredEvent from JSON.
func (*NpcsRestoredEvent) UnmarshalProtoJSON ¶
func (x *NpcsRestoredEvent) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the NpcsRestoredEvent message from JSON.
func (*NpcsRestoredEvent) UnmarshalVT ¶
func (m *NpcsRestoredEvent) UnmarshalVT(dAtA []byte) error
type RestoreNpcsRequest ¶
type RestoreNpcsRequest struct {
Npcs []*NpcTarget `protobuf:"bytes,1,rep,name=npcs,proto3" json:"npcs,omitempty"`
// contains filtered or unexported fields
}
RestoreNpcsRequest lists the units the map should hold.
func (*RestoreNpcsRequest) CloneMessageVT ¶
func (m *RestoreNpcsRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*RestoreNpcsRequest) CloneVT ¶
func (m *RestoreNpcsRequest) CloneVT() *RestoreNpcsRequest
func (*RestoreNpcsRequest) EqualMessageVT ¶
func (this *RestoreNpcsRequest) EqualMessageVT(thatMsg any) bool
func (*RestoreNpcsRequest) EqualVT ¶
func (this *RestoreNpcsRequest) EqualVT(that *RestoreNpcsRequest) bool
func (*RestoreNpcsRequest) GetNpcs ¶
func (x *RestoreNpcsRequest) GetNpcs() []*NpcTarget
func (*RestoreNpcsRequest) MarshalJSON ¶
func (x *RestoreNpcsRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals the RestoreNpcsRequest to JSON.
func (*RestoreNpcsRequest) MarshalProtoJSON ¶
func (x *RestoreNpcsRequest) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the RestoreNpcsRequest message to JSON.
func (*RestoreNpcsRequest) MarshalProtoText ¶
func (x *RestoreNpcsRequest) MarshalProtoText() string
func (*RestoreNpcsRequest) MarshalToSizedBufferVT ¶
func (m *RestoreNpcsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RestoreNpcsRequest) MarshalToVT ¶
func (m *RestoreNpcsRequest) MarshalToVT(dAtA []byte) (int, error)
func (*RestoreNpcsRequest) MarshalVT ¶
func (m *RestoreNpcsRequest) MarshalVT() (dAtA []byte, err error)
func (*RestoreNpcsRequest) ProtoMessage ¶
func (*RestoreNpcsRequest) ProtoMessage()
func (*RestoreNpcsRequest) Reset ¶
func (x *RestoreNpcsRequest) Reset()
func (*RestoreNpcsRequest) SizeVT ¶
func (m *RestoreNpcsRequest) SizeVT() (n int)
func (*RestoreNpcsRequest) String ¶
func (x *RestoreNpcsRequest) String() string
func (*RestoreNpcsRequest) UnmarshalJSON ¶
func (x *RestoreNpcsRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the RestoreNpcsRequest from JSON.
func (*RestoreNpcsRequest) UnmarshalProtoJSON ¶
func (x *RestoreNpcsRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the RestoreNpcsRequest message from JSON.
func (*RestoreNpcsRequest) UnmarshalVT ¶
func (m *RestoreNpcsRequest) UnmarshalVT(dAtA []byte) error
type SetNpcHealthRequest ¶
type SetNpcHealthRequest struct {
Npc uint32 `protobuf:"varint,1,opt,name=npc,proto3" json:"npc,omitempty"`
// Health is the unit's new health.
Health int32 `protobuf:"varint,2,opt,name=health,proto3" json:"health,omitempty"`
// MaxHealth is the unit's new maximum health; the default is health.
MaxHealth *int32 `protobuf:"varint,3,opt,name=max_health,json=maxHealth,proto3,oneof" json:"maxHealth,omitempty"`
// contains filtered or unexported fields
}
SetNpcHealthRequest sets one unit's health.
func (*SetNpcHealthRequest) CloneMessageVT ¶
func (m *SetNpcHealthRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SetNpcHealthRequest) CloneVT ¶
func (m *SetNpcHealthRequest) CloneVT() *SetNpcHealthRequest
func (*SetNpcHealthRequest) EqualMessageVT ¶
func (this *SetNpcHealthRequest) EqualMessageVT(thatMsg any) bool
func (*SetNpcHealthRequest) EqualVT ¶
func (this *SetNpcHealthRequest) EqualVT(that *SetNpcHealthRequest) bool
func (*SetNpcHealthRequest) GetHealth ¶
func (x *SetNpcHealthRequest) GetHealth() int32
func (*SetNpcHealthRequest) GetMaxHealth ¶
func (x *SetNpcHealthRequest) GetMaxHealth() int32
func (*SetNpcHealthRequest) GetNpc ¶
func (x *SetNpcHealthRequest) GetNpc() uint32
func (*SetNpcHealthRequest) MarshalJSON ¶
func (x *SetNpcHealthRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals the SetNpcHealthRequest to JSON.
func (*SetNpcHealthRequest) MarshalProtoJSON ¶
func (x *SetNpcHealthRequest) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SetNpcHealthRequest message to JSON.
func (*SetNpcHealthRequest) MarshalProtoText ¶
func (x *SetNpcHealthRequest) MarshalProtoText() string
func (*SetNpcHealthRequest) MarshalToSizedBufferVT ¶
func (m *SetNpcHealthRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SetNpcHealthRequest) MarshalToVT ¶
func (m *SetNpcHealthRequest) MarshalToVT(dAtA []byte) (int, error)
func (*SetNpcHealthRequest) MarshalVT ¶
func (m *SetNpcHealthRequest) MarshalVT() (dAtA []byte, err error)
func (*SetNpcHealthRequest) ProtoMessage ¶
func (*SetNpcHealthRequest) ProtoMessage()
func (*SetNpcHealthRequest) Reset ¶
func (x *SetNpcHealthRequest) Reset()
func (*SetNpcHealthRequest) SizeVT ¶
func (m *SetNpcHealthRequest) SizeVT() (n int)
func (*SetNpcHealthRequest) String ¶
func (x *SetNpcHealthRequest) String() string
func (*SetNpcHealthRequest) UnmarshalJSON ¶
func (x *SetNpcHealthRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the SetNpcHealthRequest from JSON.
func (*SetNpcHealthRequest) UnmarshalProtoJSON ¶
func (x *SetNpcHealthRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SetNpcHealthRequest message from JSON.
func (*SetNpcHealthRequest) UnmarshalVT ¶
func (m *SetNpcHealthRequest) UnmarshalVT(dAtA []byte) error