Help us shape the future of Go! Take the 2026 Go Developer Survey

npcs

package
v0.1.55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) CloneVT

func (m *NpcState) CloneVT() *NpcState

func (*NpcState) EqualMessageVT

func (this *NpcState) EqualMessageVT(thatMsg any) bool

func (*NpcState) EqualVT

func (this *NpcState) EqualVT(that *NpcState) bool

func (*NpcState) GetFacing

func (x *NpcState) GetFacing() *geometry.EulerAngles

func (*NpcState) GetHealth

func (x *NpcState) GetHealth() int32

func (*NpcState) GetMaxHealth

func (x *NpcState) GetMaxHealth() int32

func (*NpcState) GetPosition

func (x *NpcState) GetPosition() *geometry.Vec3

func (*NpcState) GetTeam

func (x *NpcState) GetTeam() int32

func (*NpcState) MarshalJSON

func (x *NpcState) MarshalJSON() ([]byte, error)

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 (x *NpcState) MarshalProtoText() string

func (*NpcState) MarshalToSizedBufferVT

func (m *NpcState) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*NpcState) MarshalToVT

func (m *NpcState) MarshalToVT(dAtA []byte) (int, error)

func (*NpcState) MarshalVT

func (m *NpcState) MarshalVT() (dAtA []byte, err error)

func (*NpcState) ProtoMessage

func (*NpcState) ProtoMessage()

func (*NpcState) Reset

func (x *NpcState) Reset()

func (*NpcState) SizeVT

func (m *NpcState) SizeVT() (n int)

func (*NpcState) String

func (x *NpcState) String() string

func (*NpcState) UnmarshalJSON

func (x *NpcState) UnmarshalJSON(b []byte) error

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

func (m *NpcState) UnmarshalVT(dAtA []byte) error

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) CloneVT

func (m *NpcTarget) CloneVT() *NpcTarget

func (*NpcTarget) EqualMessageVT

func (this *NpcTarget) EqualMessageVT(thatMsg any) bool

func (*NpcTarget) EqualVT

func (this *NpcTarget) EqualVT(that *NpcTarget) bool

func (*NpcTarget) GetClassName

func (x *NpcTarget) GetClassName() string

func (*NpcTarget) GetFacing

func (x *NpcTarget) GetFacing() *geometry.EulerAngles

func (*NpcTarget) GetHealth

func (x *NpcTarget) GetHealth() int32

func (*NpcTarget) GetId

func (x *NpcTarget) GetId() uint32

func (*NpcTarget) GetLane

func (x *NpcTarget) GetLane() uint32

func (*NpcTarget) GetMaxHealth

func (x *NpcTarget) GetMaxHealth() int32

func (*NpcTarget) GetPosition

func (x *NpcTarget) GetPosition() *geometry.Vec3

func (*NpcTarget) GetTeam

func (x *NpcTarget) GetTeam() int32

func (*NpcTarget) GetVelocity

func (x *NpcTarget) GetVelocity() *geometry.Vec3

func (*NpcTarget) MarshalJSON

func (x *NpcTarget) MarshalJSON() ([]byte, error)

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 (x *NpcTarget) MarshalProtoText() string

func (*NpcTarget) MarshalToSizedBufferVT

func (m *NpcTarget) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*NpcTarget) MarshalToVT

func (m *NpcTarget) MarshalToVT(dAtA []byte) (int, error)

func (*NpcTarget) MarshalVT

func (m *NpcTarget) MarshalVT() (dAtA []byte, err error)

func (*NpcTarget) ProtoMessage

func (*NpcTarget) ProtoMessage()

func (*NpcTarget) Reset

func (x *NpcTarget) Reset()

func (*NpcTarget) SizeVT

func (m *NpcTarget) SizeVT() (n int)

func (*NpcTarget) String

func (x *NpcTarget) String() string

func (*NpcTarget) UnmarshalJSON

func (x *NpcTarget) UnmarshalJSON(b []byte) error

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

func (m *NpcTarget) UnmarshalVT(dAtA []byte) error

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 (*SetNpcHealthRequest) CloneVT

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL