combat

package
v0.1.111 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DamageEvent

type DamageEvent struct {

	// Victim is the entity taking the hit.
	Victim uint32 `protobuf:"varint,1,opt,name=victim,proto3" json:"victim,omitempty"`
	// Attacker is the entity credited with the hit. Zero makes the hit a
	// hazard, such as poison gas, which credits no one and ignores the
	// inflictor and hit group.
	Attacker uint32 `protobuf:"varint,2,opt,name=attacker,proto3" json:"attacker,omitempty"`
	// Inflictor is what delivered the hit, such as a projectile.
	Inflictor uint32 `protobuf:"varint,3,opt,name=inflictor,proto3" json:"inflictor,omitempty"`
	// Ability is the ability that dealt the hit.
	Ability uint32 `protobuf:"varint,4,opt,name=ability,proto3" json:"ability,omitempty"`
	// Flags are the game's damage flags.
	Flags uint64 `protobuf:"varint,5,opt,name=flags,proto3" json:"flags,omitempty"`
	// HitGroup is the body part hit; 1 is the head and -1 means none.
	HitGroup int32 `protobuf:"varint,6,opt,name=hit_group,json=hitGroup,proto3" json:"hitGroup,omitempty"`
	// Amount is the hit's damage before resistances.
	Amount float32 `protobuf:"fixed32,7,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

DamageEvent is one hit before the game applies it. Handles are zero when the game names no such entity.

func (*DamageEvent) CloneMessageVT

func (m *DamageEvent) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*DamageEvent) CloneVT

func (m *DamageEvent) CloneVT() *DamageEvent

func (*DamageEvent) EqualMessageVT

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

func (*DamageEvent) EqualVT

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

func (*DamageEvent) GetAbility

func (x *DamageEvent) GetAbility() uint32

func (*DamageEvent) GetAmount

func (x *DamageEvent) GetAmount() float32

func (*DamageEvent) GetAttacker

func (x *DamageEvent) GetAttacker() uint32

func (*DamageEvent) GetFlags

func (x *DamageEvent) GetFlags() uint64

func (*DamageEvent) GetHitGroup

func (x *DamageEvent) GetHitGroup() int32

func (*DamageEvent) GetInflictor

func (x *DamageEvent) GetInflictor() uint32

func (*DamageEvent) GetVictim

func (x *DamageEvent) GetVictim() uint32

func (*DamageEvent) MarshalJSON

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

MarshalJSON marshals the DamageEvent to JSON.

func (*DamageEvent) MarshalProtoJSON

func (x *DamageEvent) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DamageEvent message to JSON.

func (*DamageEvent) MarshalProtoText

func (x *DamageEvent) MarshalProtoText() string

func (*DamageEvent) MarshalToSizedBufferVT

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

func (*DamageEvent) MarshalToVT

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

func (*DamageEvent) MarshalVT

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

func (*DamageEvent) ProtoMessage

func (*DamageEvent) ProtoMessage()

func (*DamageEvent) Reset

func (x *DamageEvent) Reset()

func (*DamageEvent) SizeVT

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

func (*DamageEvent) String

func (x *DamageEvent) String() string

func (*DamageEvent) UnmarshalJSON

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

UnmarshalJSON unmarshals the DamageEvent from JSON.

func (*DamageEvent) UnmarshalProtoJSON

func (x *DamageEvent) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DamageEvent message from JSON.

func (*DamageEvent) UnmarshalVT

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

type DamageResult

type DamageResult struct {

	// Block cancels the hit's health loss, force, effects and procs.
	Block *bool `protobuf:"varint,1,opt,name=block,proto3,oneof" json:"block,omitempty"`
	// Amount replaces the hit's damage when present.
	Amount *float32 `protobuf:"fixed32,2,opt,name=amount,proto3,oneof" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

DamageResult answers a DamageEvent. An empty result lets the hit through.

func (*DamageResult) CloneMessageVT

func (m *DamageResult) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*DamageResult) CloneVT

func (m *DamageResult) CloneVT() *DamageResult

func (*DamageResult) EqualMessageVT

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

func (*DamageResult) EqualVT

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

func (*DamageResult) GetAmount

func (x *DamageResult) GetAmount() float32

func (*DamageResult) GetBlock

func (x *DamageResult) GetBlock() bool

func (*DamageResult) MarshalJSON

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

MarshalJSON marshals the DamageResult to JSON.

func (*DamageResult) MarshalProtoJSON

func (x *DamageResult) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DamageResult message to JSON.

func (*DamageResult) MarshalProtoText

func (x *DamageResult) MarshalProtoText() string

func (*DamageResult) MarshalToSizedBufferVT

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

func (*DamageResult) MarshalToVT

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

func (*DamageResult) MarshalVT

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

func (*DamageResult) ProtoMessage

func (*DamageResult) ProtoMessage()

func (*DamageResult) Reset

func (x *DamageResult) Reset()

func (*DamageResult) SizeVT

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

func (*DamageResult) String

func (x *DamageResult) String() string

func (*DamageResult) UnmarshalJSON

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

UnmarshalJSON unmarshals the DamageResult from JSON.

func (*DamageResult) UnmarshalProtoJSON

func (x *DamageResult) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DamageResult message from JSON.

func (*DamageResult) UnmarshalVT

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

type DamagedEvent

type DamagedEvent struct {

	// Victim is the entity that took the hit.
	Victim uint32 `protobuf:"varint,1,opt,name=victim,proto3" json:"victim,omitempty"`
	// Attacker is the entity credited with the hit, or zero for a hazard.
	Attacker uint32 `protobuf:"varint,2,opt,name=attacker,proto3" json:"attacker,omitempty"`
	// Ability is the ability that dealt the hit.
	Ability uint32 `protobuf:"varint,3,opt,name=ability,proto3" json:"ability,omitempty"`
	// HealthLost is the health the hit removed, after resistances.
	HealthLost int32 `protobuf:"varint,4,opt,name=health_lost,json=healthLost,proto3" json:"healthLost,omitempty"`
	// HealthBefore is the victim's health before the hit; a hit that removes
	// all of it kills.
	HealthBefore int32 `protobuf:"varint,5,opt,name=health_before,json=healthBefore,proto3" json:"healthBefore,omitempty"`
	// Dealt is the hit's damage after resistances, before the victim's health
	// capped it.
	Dealt int32 `protobuf:"varint,6,opt,name=dealt,proto3" json:"dealt,omitempty"`
	// contains filtered or unexported fields
}

DamagedEvent reports one hit the game applied.

func (*DamagedEvent) CloneMessageVT

func (m *DamagedEvent) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*DamagedEvent) CloneVT

func (m *DamagedEvent) CloneVT() *DamagedEvent

func (*DamagedEvent) EqualMessageVT

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

func (*DamagedEvent) EqualVT

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

func (*DamagedEvent) GetAbility

func (x *DamagedEvent) GetAbility() uint32

func (*DamagedEvent) GetAttacker

func (x *DamagedEvent) GetAttacker() uint32

func (*DamagedEvent) GetDealt

func (x *DamagedEvent) GetDealt() int32

func (*DamagedEvent) GetHealthBefore

func (x *DamagedEvent) GetHealthBefore() int32

func (*DamagedEvent) GetHealthLost

func (x *DamagedEvent) GetHealthLost() int32

func (*DamagedEvent) GetVictim

func (x *DamagedEvent) GetVictim() uint32

func (*DamagedEvent) MarshalJSON

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

MarshalJSON marshals the DamagedEvent to JSON.

func (*DamagedEvent) MarshalProtoJSON

func (x *DamagedEvent) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DamagedEvent message to JSON.

func (*DamagedEvent) MarshalProtoText

func (x *DamagedEvent) MarshalProtoText() string

func (*DamagedEvent) MarshalToSizedBufferVT

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

func (*DamagedEvent) MarshalToVT

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

func (*DamagedEvent) MarshalVT

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

func (*DamagedEvent) ProtoMessage

func (*DamagedEvent) ProtoMessage()

func (*DamagedEvent) Reset

func (x *DamagedEvent) Reset()

func (*DamagedEvent) SizeVT

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

func (*DamagedEvent) String

func (x *DamagedEvent) String() string

func (*DamagedEvent) UnmarshalJSON

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

UnmarshalJSON unmarshals the DamagedEvent from JSON.

func (*DamagedEvent) UnmarshalProtoJSON

func (x *DamagedEvent) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DamagedEvent message from JSON.

func (*DamagedEvent) UnmarshalVT

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

type HealEvent added in v0.1.84

type HealEvent struct {

	// Target is the entity healed.
	Target uint32 `protobuf:"varint,1,opt,name=target,proto3" json:"target,omitempty"`
	// TargetPlayer is the slot of the player whose hero was healed, or -1 for
	// a unit.
	TargetPlayer int32 `protobuf:"varint,2,opt,name=target_player,json=targetPlayer,proto3" json:"targetPlayer,omitempty"`
	// Healer is the entity the heal came from, or zero when the game names
	// none.
	Healer uint32 `protobuf:"varint,3,opt,name=healer,proto3" json:"healer,omitempty"`
	// HealerPlayer is the slot of the player whose hero the healer is, or -1.
	HealerPlayer int32 `protobuf:"varint,4,opt,name=healer_player,json=healerPlayer,proto3" json:"healerPlayer,omitempty"`
	// Ability is the ability or item that healed, or zero.
	Ability uint32 `protobuf:"varint,5,opt,name=ability,proto3" json:"ability,omitempty"`
	// Applied is the health the heal restored.
	Applied int32 `protobuf:"varint,6,opt,name=applied,proto3" json:"applied,omitempty"`
	// Requested is the heal's whole amount; it exceeds applied when the target
	// reached full health.
	Requested int32 `protobuf:"varint,7,opt,name=requested,proto3" json:"requested,omitempty"`
	// contains filtered or unexported fields
}

HealEvent reports health an ability, item or lifesteal restored at once to a hero or unit. Regeneration reports none, including what abilities such as Siphon Life restore as regeneration, and neither do Modlock's own heal and a heal at full health.

func (*HealEvent) CloneMessageVT added in v0.1.84

func (m *HealEvent) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*HealEvent) CloneVT added in v0.1.84

func (m *HealEvent) CloneVT() *HealEvent

func (*HealEvent) EqualMessageVT added in v0.1.84

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

func (*HealEvent) EqualVT added in v0.1.84

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

func (*HealEvent) GetAbility added in v0.1.84

func (x *HealEvent) GetAbility() uint32

func (*HealEvent) GetApplied added in v0.1.84

func (x *HealEvent) GetApplied() int32

func (*HealEvent) GetHealer added in v0.1.84

func (x *HealEvent) GetHealer() uint32

func (*HealEvent) GetHealerPlayer added in v0.1.84

func (x *HealEvent) GetHealerPlayer() int32

func (*HealEvent) GetRequested added in v0.1.84

func (x *HealEvent) GetRequested() int32

func (*HealEvent) GetTarget added in v0.1.84

func (x *HealEvent) GetTarget() uint32

func (*HealEvent) GetTargetPlayer added in v0.1.84

func (x *HealEvent) GetTargetPlayer() int32

func (*HealEvent) MarshalJSON added in v0.1.84

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

MarshalJSON marshals the HealEvent to JSON.

func (*HealEvent) MarshalProtoJSON added in v0.1.84

func (x *HealEvent) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the HealEvent message to JSON.

func (*HealEvent) MarshalProtoText added in v0.1.84

func (x *HealEvent) MarshalProtoText() string

func (*HealEvent) MarshalToSizedBufferVT added in v0.1.84

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

func (*HealEvent) MarshalToVT added in v0.1.84

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

func (*HealEvent) MarshalVT added in v0.1.84

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

func (*HealEvent) ProtoMessage added in v0.1.84

func (*HealEvent) ProtoMessage()

func (*HealEvent) Reset added in v0.1.84

func (x *HealEvent) Reset()

func (*HealEvent) SizeVT added in v0.1.84

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

func (*HealEvent) String added in v0.1.84

func (x *HealEvent) String() string

func (*HealEvent) UnmarshalJSON added in v0.1.84

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

UnmarshalJSON unmarshals the HealEvent from JSON.

func (*HealEvent) UnmarshalProtoJSON added in v0.1.84

func (x *HealEvent) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the HealEvent message from JSON.

func (*HealEvent) UnmarshalVT added in v0.1.84

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

type HitOptions

type HitOptions struct {

	// Victim is the hero or unit to hurt. The world, props and buildings are
	// refused: the client crashes on their damage events.
	Victim uint32 `protobuf:"varint,1,opt,name=victim,proto3" json:"victim,omitempty"`
	// Attacker is the entity credited with the hit. Without one the hit is a
	// hazard, such as poison gas, which credits no one and ignores the
	// inflictor and hit group.
	Attacker *uint32 `protobuf:"varint,2,opt,name=attacker,proto3,oneof" json:"attacker,omitempty"`
	// Inflictor is what delivered the hit; the default is the attacker.
	Inflictor *uint32 `protobuf:"varint,3,opt,name=inflictor,proto3,oneof" json:"inflictor,omitempty"`
	// Amount is the damage before resistances.
	Amount float32 `protobuf:"fixed32,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// HitGroup is the body part hit; 1 is the head. The default is the game's
	// choice.
	HitGroup *int32 `protobuf:"varint,5,opt,name=hit_group,json=hitGroup,proto3,oneof" json:"hitGroup,omitempty"`
	// Ability is the entity handle of the ability that dealt the hit, as
	// Ability.entity reports it.
	Ability *uint32 `protobuf:"varint,6,opt,name=ability,proto3,oneof" json:"ability,omitempty"`
	// contains filtered or unexported fields
}

HitOptions describes damage the mod deals.

func (*HitOptions) CloneMessageVT

func (m *HitOptions) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*HitOptions) CloneVT

func (m *HitOptions) CloneVT() *HitOptions

func (*HitOptions) EqualMessageVT

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

func (*HitOptions) EqualVT

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

func (*HitOptions) GetAbility

func (x *HitOptions) GetAbility() uint32

func (*HitOptions) GetAmount

func (x *HitOptions) GetAmount() float32

func (*HitOptions) GetAttacker

func (x *HitOptions) GetAttacker() uint32

func (*HitOptions) GetHitGroup

func (x *HitOptions) GetHitGroup() int32

func (*HitOptions) GetInflictor

func (x *HitOptions) GetInflictor() uint32

func (*HitOptions) GetVictim

func (x *HitOptions) GetVictim() uint32

func (*HitOptions) MarshalJSON

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

MarshalJSON marshals the HitOptions to JSON.

func (*HitOptions) MarshalProtoJSON

func (x *HitOptions) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the HitOptions message to JSON.

func (*HitOptions) MarshalProtoText

func (x *HitOptions) MarshalProtoText() string

func (*HitOptions) MarshalToSizedBufferVT

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

func (*HitOptions) MarshalToVT

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

func (*HitOptions) MarshalVT

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

func (*HitOptions) ProtoMessage

func (*HitOptions) ProtoMessage()

func (*HitOptions) Reset

func (x *HitOptions) Reset()

func (*HitOptions) SizeVT

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

func (*HitOptions) String

func (x *HitOptions) String() string

func (*HitOptions) UnmarshalJSON

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

UnmarshalJSON unmarshals the HitOptions from JSON.

func (*HitOptions) UnmarshalProtoJSON

func (x *HitOptions) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the HitOptions message from JSON.

func (*HitOptions) UnmarshalVT

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

type ImpactEvent

type ImpactEvent struct {

	// Entity is the projectile's entity handle.
	Entity uint32 `protobuf:"varint,1,opt,name=entity,proto3" json:"entity,omitempty"`
	// Name is the projectile's designer name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Owner is the entity that fired it, or zero.
	Owner uint32 `protobuf:"varint,3,opt,name=owner,proto3" json:"owner,omitempty"`
	// Player is the slot of the player whose hero fired it, or -1.
	Player int32 `protobuf:"varint,4,opt,name=player,proto3" json:"player,omitempty"`
	// Start and End are the projectile's movement this frame, which ended in
	// the strike.
	Start *geometry.Vec3 `protobuf:"bytes,5,opt,name=start,proto3" json:"start,omitempty"`
	End   *geometry.Vec3 `protobuf:"bytes,6,opt,name=end,proto3" json:"end,omitempty"`
	// Position is where it struck.
	Position *geometry.Vec3 `protobuf:"bytes,7,opt,name=position,proto3" json:"position,omitempty"`
	// Hit is the entity struck, or zero for the world.
	Hit uint32 `protobuf:"varint,8,opt,name=hit,proto3" json:"hit,omitempty"`
	// contains filtered or unexported fields
}

ImpactEvent is a watched projectile striking something.

func (*ImpactEvent) CloneMessageVT

func (m *ImpactEvent) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ImpactEvent) CloneVT

func (m *ImpactEvent) CloneVT() *ImpactEvent

func (*ImpactEvent) EqualMessageVT

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

func (*ImpactEvent) EqualVT

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

func (*ImpactEvent) GetEnd

func (x *ImpactEvent) GetEnd() *geometry.Vec3

func (*ImpactEvent) GetEntity

func (x *ImpactEvent) GetEntity() uint32

func (*ImpactEvent) GetHit

func (x *ImpactEvent) GetHit() uint32

func (*ImpactEvent) GetName

func (x *ImpactEvent) GetName() string

func (*ImpactEvent) GetOwner

func (x *ImpactEvent) GetOwner() uint32

func (*ImpactEvent) GetPlayer

func (x *ImpactEvent) GetPlayer() int32

func (*ImpactEvent) GetPosition

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

func (*ImpactEvent) GetStart

func (x *ImpactEvent) GetStart() *geometry.Vec3

func (*ImpactEvent) MarshalJSON

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

MarshalJSON marshals the ImpactEvent to JSON.

func (*ImpactEvent) MarshalProtoJSON

func (x *ImpactEvent) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ImpactEvent message to JSON.

func (*ImpactEvent) MarshalProtoText

func (x *ImpactEvent) MarshalProtoText() string

func (*ImpactEvent) MarshalToSizedBufferVT

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

func (*ImpactEvent) MarshalToVT

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

func (*ImpactEvent) MarshalVT

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

func (*ImpactEvent) ProtoMessage

func (*ImpactEvent) ProtoMessage()

func (*ImpactEvent) Reset

func (x *ImpactEvent) Reset()

func (*ImpactEvent) SizeVT

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

func (*ImpactEvent) String

func (x *ImpactEvent) String() string

func (*ImpactEvent) UnmarshalJSON

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

UnmarshalJSON unmarshals the ImpactEvent from JSON.

func (*ImpactEvent) UnmarshalProtoJSON

func (x *ImpactEvent) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ImpactEvent message from JSON.

func (*ImpactEvent) UnmarshalVT

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

type KillEvent added in v0.1.83

type KillEvent struct {

	// Victim is the entity that died.
	Victim uint32 `protobuf:"varint,1,opt,name=victim,proto3" json:"victim,omitempty"`
	// VictimPlayer is the slot of the player whose hero died, or -1 for a unit.
	VictimPlayer int32 `protobuf:"varint,2,opt,name=victim_player,json=victimPlayer,proto3" json:"victimPlayer,omitempty"`
	// Attacker is the entity credited with the killing hit, or zero for a
	// hazard.
	Attacker uint32 `protobuf:"varint,3,opt,name=attacker,proto3" json:"attacker,omitempty"`
	// AttackerPlayer is the slot of the player whose hero is the attacker, or
	// -1. It is the victim's own slot when a hero killed itself.
	AttackerPlayer int32 `protobuf:"varint,4,opt,name=attacker_player,json=attackerPlayer,proto3" json:"attackerPlayer,omitempty"`
	// Ability is the ability that dealt the killing hit, or zero.
	Ability uint32 `protobuf:"varint,5,opt,name=ability,proto3" json:"ability,omitempty"`
	// contains filtered or unexported fields
}

KillEvent reports one hero or unit that a hit killed.

func (*KillEvent) CloneMessageVT added in v0.1.83

func (m *KillEvent) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*KillEvent) CloneVT added in v0.1.83

func (m *KillEvent) CloneVT() *KillEvent

func (*KillEvent) EqualMessageVT added in v0.1.83

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

func (*KillEvent) EqualVT added in v0.1.83

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

func (*KillEvent) GetAbility added in v0.1.83

func (x *KillEvent) GetAbility() uint32

func (*KillEvent) GetAttacker added in v0.1.83

func (x *KillEvent) GetAttacker() uint32

func (*KillEvent) GetAttackerPlayer added in v0.1.83

func (x *KillEvent) GetAttackerPlayer() int32

func (*KillEvent) GetVictim added in v0.1.83

func (x *KillEvent) GetVictim() uint32

func (*KillEvent) GetVictimPlayer added in v0.1.83

func (x *KillEvent) GetVictimPlayer() int32

func (*KillEvent) MarshalJSON added in v0.1.83

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

MarshalJSON marshals the KillEvent to JSON.

func (*KillEvent) MarshalProtoJSON added in v0.1.83

func (x *KillEvent) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the KillEvent message to JSON.

func (*KillEvent) MarshalProtoText added in v0.1.83

func (x *KillEvent) MarshalProtoText() string

func (*KillEvent) MarshalToSizedBufferVT added in v0.1.83

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

func (*KillEvent) MarshalToVT added in v0.1.83

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

func (*KillEvent) MarshalVT added in v0.1.83

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

func (*KillEvent) ProtoMessage added in v0.1.83

func (*KillEvent) ProtoMessage()

func (*KillEvent) Reset added in v0.1.83

func (x *KillEvent) Reset()

func (*KillEvent) SizeVT added in v0.1.83

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

func (*KillEvent) String added in v0.1.83

func (x *KillEvent) String() string

func (*KillEvent) UnmarshalJSON added in v0.1.83

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

UnmarshalJSON unmarshals the KillEvent from JSON.

func (*KillEvent) UnmarshalProtoJSON added in v0.1.83

func (x *KillEvent) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the KillEvent message from JSON.

func (*KillEvent) UnmarshalVT added in v0.1.83

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

type KillOptions added in v0.1.72

type KillOptions struct {

	// Victim is the hero or unit to kill. World entities, props and buildings
	// are refused because their damage events crash clients.
	Victim uint32 `protobuf:"varint,1,opt,name=victim,proto3" json:"victim,omitempty"`
	// Attacker receives the game's kill credit and rewards. Without an attacker
	// the death is environmental and grants neither credit nor rewards.
	Attacker *uint32 `protobuf:"varint,2,opt,name=attacker,proto3,oneof" json:"attacker,omitempty"`
	// Inflictor delivered the killing blow; the default is the attacker.
	Inflictor *uint32 `protobuf:"varint,3,opt,name=inflictor,proto3,oneof" json:"inflictor,omitempty"`
	// Ability is the ability entity responsible for the kill, when applicable.
	Ability *uint32 `protobuf:"varint,4,opt,name=ability,proto3,oneof" json:"ability,omitempty"`
	// contains filtered or unexported fields
}

KillOptions forces a hero or unit's death through the game's damage path.

func (*KillOptions) CloneMessageVT added in v0.1.72

func (m *KillOptions) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*KillOptions) CloneVT added in v0.1.72

func (m *KillOptions) CloneVT() *KillOptions

func (*KillOptions) EqualMessageVT added in v0.1.72

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

func (*KillOptions) EqualVT added in v0.1.72

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

func (*KillOptions) GetAbility added in v0.1.72

func (x *KillOptions) GetAbility() uint32

func (*KillOptions) GetAttacker added in v0.1.72

func (x *KillOptions) GetAttacker() uint32

func (*KillOptions) GetInflictor added in v0.1.72

func (x *KillOptions) GetInflictor() uint32

func (*KillOptions) GetVictim added in v0.1.72

func (x *KillOptions) GetVictim() uint32

func (*KillOptions) MarshalJSON added in v0.1.72

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

MarshalJSON marshals the KillOptions to JSON.

func (*KillOptions) MarshalProtoJSON added in v0.1.72

func (x *KillOptions) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the KillOptions message to JSON.

func (*KillOptions) MarshalProtoText added in v0.1.72

func (x *KillOptions) MarshalProtoText() string

func (*KillOptions) MarshalToSizedBufferVT added in v0.1.72

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

func (*KillOptions) MarshalToVT added in v0.1.72

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

func (*KillOptions) MarshalVT added in v0.1.72

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

func (*KillOptions) ProtoMessage added in v0.1.72

func (*KillOptions) ProtoMessage()

func (*KillOptions) Reset added in v0.1.72

func (x *KillOptions) Reset()

func (*KillOptions) SizeVT added in v0.1.72

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

func (*KillOptions) String added in v0.1.72

func (x *KillOptions) String() string

func (*KillOptions) UnmarshalJSON added in v0.1.72

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

UnmarshalJSON unmarshals the KillOptions from JSON.

func (*KillOptions) UnmarshalProtoJSON added in v0.1.72

func (x *KillOptions) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the KillOptions message from JSON.

func (*KillOptions) UnmarshalVT added in v0.1.72

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

type LaunchEvent

type LaunchEvent struct {

	// Entity is the projectile's entity handle.
	Entity uint32 `protobuf:"varint,1,opt,name=entity,proto3" json:"entity,omitempty"`
	// Name is the projectile's designer name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Owner is the entity that fired it, or zero.
	Owner uint32 `protobuf:"varint,3,opt,name=owner,proto3" json:"owner,omitempty"`
	// Player is the slot of the player whose hero fired it, or -1.
	Player int32 `protobuf:"varint,4,opt,name=player,proto3" json:"player,omitempty"`
	// Position is where the projectile is.
	Position *geometry.Vec3 `protobuf:"bytes,5,opt,name=position,proto3" json:"position,omitempty"`
	// contains filtered or unexported fields
}

LaunchEvent is a watched projectile's first frame.

func (*LaunchEvent) CloneMessageVT

func (m *LaunchEvent) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*LaunchEvent) CloneVT

func (m *LaunchEvent) CloneVT() *LaunchEvent

func (*LaunchEvent) EqualMessageVT

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

func (*LaunchEvent) EqualVT

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

func (*LaunchEvent) GetEntity

func (x *LaunchEvent) GetEntity() uint32

func (*LaunchEvent) GetName

func (x *LaunchEvent) GetName() string

func (*LaunchEvent) GetOwner

func (x *LaunchEvent) GetOwner() uint32

func (*LaunchEvent) GetPlayer

func (x *LaunchEvent) GetPlayer() int32

func (*LaunchEvent) GetPosition

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

func (*LaunchEvent) MarshalJSON

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

MarshalJSON marshals the LaunchEvent to JSON.

func (*LaunchEvent) MarshalProtoJSON

func (x *LaunchEvent) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the LaunchEvent message to JSON.

func (*LaunchEvent) MarshalProtoText

func (x *LaunchEvent) MarshalProtoText() string

func (*LaunchEvent) MarshalToSizedBufferVT

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

func (*LaunchEvent) MarshalToVT

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

func (*LaunchEvent) MarshalVT

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

func (*LaunchEvent) ProtoMessage

func (*LaunchEvent) ProtoMessage()

func (*LaunchEvent) Reset

func (x *LaunchEvent) Reset()

func (*LaunchEvent) SizeVT

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

func (*LaunchEvent) String

func (x *LaunchEvent) String() string

func (*LaunchEvent) UnmarshalJSON

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

UnmarshalJSON unmarshals the LaunchEvent from JSON.

func (*LaunchEvent) UnmarshalProtoJSON

func (x *LaunchEvent) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the LaunchEvent message from JSON.

func (*LaunchEvent) UnmarshalVT

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

type LevelEvent added in v0.1.84

type LevelEvent struct {

	// Hero is the hero's entity.
	Hero uint32 `protobuf:"varint,1,opt,name=hero,proto3" json:"hero,omitempty"`
	// Player is the slot of the player whose hero it is, or -1.
	Player int32 `protobuf:"varint,2,opt,name=player,proto3" json:"player,omitempty"`
	// Level is the hero's new level.
	Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`
	// contains filtered or unexported fields
}

LevelEvent reports a hero reaching a new level.

func (*LevelEvent) CloneMessageVT added in v0.1.84

func (m *LevelEvent) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*LevelEvent) CloneVT added in v0.1.84

func (m *LevelEvent) CloneVT() *LevelEvent

func (*LevelEvent) EqualMessageVT added in v0.1.84

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

func (*LevelEvent) EqualVT added in v0.1.84

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

func (*LevelEvent) GetHero added in v0.1.84

func (x *LevelEvent) GetHero() uint32

func (*LevelEvent) GetLevel added in v0.1.84

func (x *LevelEvent) GetLevel() int32

func (*LevelEvent) GetPlayer added in v0.1.84

func (x *LevelEvent) GetPlayer() int32

func (*LevelEvent) MarshalJSON added in v0.1.84

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

MarshalJSON marshals the LevelEvent to JSON.

func (*LevelEvent) MarshalProtoJSON added in v0.1.84

func (x *LevelEvent) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the LevelEvent message to JSON.

func (*LevelEvent) MarshalProtoText added in v0.1.84

func (x *LevelEvent) MarshalProtoText() string

func (*LevelEvent) MarshalToSizedBufferVT added in v0.1.84

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

func (*LevelEvent) MarshalToVT added in v0.1.84

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

func (*LevelEvent) MarshalVT added in v0.1.84

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

func (*LevelEvent) ProtoMessage added in v0.1.84

func (*LevelEvent) ProtoMessage()

func (*LevelEvent) Reset added in v0.1.84

func (x *LevelEvent) Reset()

func (*LevelEvent) SizeVT added in v0.1.84

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

func (*LevelEvent) String added in v0.1.84

func (x *LevelEvent) String() string

func (*LevelEvent) UnmarshalJSON added in v0.1.84

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

UnmarshalJSON unmarshals the LevelEvent from JSON.

func (*LevelEvent) UnmarshalProtoJSON added in v0.1.84

func (x *LevelEvent) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the LevelEvent message from JSON.

func (*LevelEvent) UnmarshalVT added in v0.1.84

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

type MeleeEvent added in v0.1.84

type MeleeEvent struct {

	// Attacker is the hero or unit that swung.
	Attacker uint32 `protobuf:"varint,1,opt,name=attacker,proto3" json:"attacker,omitempty"`
	// AttackerPlayer is the slot of the player whose hero swung, or -1.
	AttackerPlayer int32 `protobuf:"varint,2,opt,name=attacker_player,json=attackerPlayer,proto3" json:"attackerPlayer,omitempty"`
	// Heavy is true for a charged swing and false for a light one.
	Heavy bool `protobuf:"varint,3,opt,name=heavy,proto3" json:"heavy,omitempty"`
	// Hits are the entities the swing struck, empty for a miss.
	Hits []uint32 `protobuf:"varint,4,rep,packed,name=hits,proto3" json:"hits,omitempty"`
	// contains filtered or unexported fields
}

MeleeEvent reports one melee swing as the game resolves it.

func (*MeleeEvent) CloneMessageVT added in v0.1.84

func (m *MeleeEvent) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*MeleeEvent) CloneVT added in v0.1.84

func (m *MeleeEvent) CloneVT() *MeleeEvent

func (*MeleeEvent) EqualMessageVT added in v0.1.84

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

func (*MeleeEvent) EqualVT added in v0.1.84

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

func (*MeleeEvent) GetAttacker added in v0.1.84

func (x *MeleeEvent) GetAttacker() uint32

func (*MeleeEvent) GetAttackerPlayer added in v0.1.84

func (x *MeleeEvent) GetAttackerPlayer() int32

func (*MeleeEvent) GetHeavy added in v0.1.84

func (x *MeleeEvent) GetHeavy() bool

func (*MeleeEvent) GetHits added in v0.1.84

func (x *MeleeEvent) GetHits() []uint32

func (*MeleeEvent) MarshalJSON added in v0.1.84

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

MarshalJSON marshals the MeleeEvent to JSON.

func (*MeleeEvent) MarshalProtoJSON added in v0.1.84

func (x *MeleeEvent) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the MeleeEvent message to JSON.

func (*MeleeEvent) MarshalProtoText added in v0.1.84

func (x *MeleeEvent) MarshalProtoText() string

func (*MeleeEvent) MarshalToSizedBufferVT added in v0.1.84

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

func (*MeleeEvent) MarshalToVT added in v0.1.84

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

func (*MeleeEvent) MarshalVT added in v0.1.84

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

func (*MeleeEvent) ProtoMessage added in v0.1.84

func (*MeleeEvent) ProtoMessage()

func (*MeleeEvent) Reset added in v0.1.84

func (x *MeleeEvent) Reset()

func (*MeleeEvent) SizeVT added in v0.1.84

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

func (*MeleeEvent) String added in v0.1.84

func (x *MeleeEvent) String() string

func (*MeleeEvent) UnmarshalJSON added in v0.1.84

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

UnmarshalJSON unmarshals the MeleeEvent from JSON.

func (*MeleeEvent) UnmarshalProtoJSON added in v0.1.84

func (x *MeleeEvent) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the MeleeEvent message from JSON.

func (*MeleeEvent) UnmarshalVT added in v0.1.84

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

type ModifierFiredEvent added in v0.1.83

type ModifierFiredEvent struct {

	// Name is the event as the mod named it in StartResult.modifier_events.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Caster is the entity the event is about, such as the hero that parried
	// or respawned, or zero.
	Caster uint32 `protobuf:"varint,2,opt,name=caster,proto3" json:"caster,omitempty"`
	// Player is the slot of the player whose hero the caster is, or -1.
	Player int32 `protobuf:"varint,3,opt,name=player,proto3" json:"player,omitempty"`
	// Target is the other entity of the event, such as the victim of a kill,
	// or zero.
	Target uint32 `protobuf:"varint,4,opt,name=target,proto3" json:"target,omitempty"`
	// Ability is the ability or other entity the event names as its source, or
	// zero.
	Ability uint32 `protobuf:"varint,5,opt,name=ability,proto3" json:"ability,omitempty"`
	// contains filtered or unexported fields
}

ModifierFiredEvent reports one of the game's modifier events the mod watches, with the entities the game fired it with. Which of them an event fills depends on the event.

func (*ModifierFiredEvent) CloneMessageVT added in v0.1.83

func (m *ModifierFiredEvent) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ModifierFiredEvent) CloneVT added in v0.1.83

func (m *ModifierFiredEvent) CloneVT() *ModifierFiredEvent

func (*ModifierFiredEvent) EqualMessageVT added in v0.1.83

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

func (*ModifierFiredEvent) EqualVT added in v0.1.83

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

func (*ModifierFiredEvent) GetAbility added in v0.1.83

func (x *ModifierFiredEvent) GetAbility() uint32

func (*ModifierFiredEvent) GetCaster added in v0.1.83

func (x *ModifierFiredEvent) GetCaster() uint32

func (*ModifierFiredEvent) GetName added in v0.1.83

func (x *ModifierFiredEvent) GetName() string

func (*ModifierFiredEvent) GetPlayer added in v0.1.83

func (x *ModifierFiredEvent) GetPlayer() int32

func (*ModifierFiredEvent) GetTarget added in v0.1.83

func (x *ModifierFiredEvent) GetTarget() uint32

func (*ModifierFiredEvent) MarshalJSON added in v0.1.83

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

MarshalJSON marshals the ModifierFiredEvent to JSON.

func (*ModifierFiredEvent) MarshalProtoJSON added in v0.1.83

func (x *ModifierFiredEvent) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ModifierFiredEvent message to JSON.

func (*ModifierFiredEvent) MarshalProtoText added in v0.1.83

func (x *ModifierFiredEvent) MarshalProtoText() string

func (*ModifierFiredEvent) MarshalToSizedBufferVT added in v0.1.83

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

func (*ModifierFiredEvent) MarshalToVT added in v0.1.83

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

func (*ModifierFiredEvent) MarshalVT added in v0.1.83

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

func (*ModifierFiredEvent) ProtoMessage added in v0.1.83

func (*ModifierFiredEvent) ProtoMessage()

func (*ModifierFiredEvent) Reset added in v0.1.83

func (x *ModifierFiredEvent) Reset()

func (*ModifierFiredEvent) SizeVT added in v0.1.83

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

func (*ModifierFiredEvent) String added in v0.1.83

func (x *ModifierFiredEvent) String() string

func (*ModifierFiredEvent) UnmarshalJSON added in v0.1.83

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

UnmarshalJSON unmarshals the ModifierFiredEvent from JSON.

func (*ModifierFiredEvent) UnmarshalProtoJSON added in v0.1.83

func (x *ModifierFiredEvent) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ModifierFiredEvent message from JSON.

func (*ModifierFiredEvent) UnmarshalVT added in v0.1.83

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

type ParryEvent added in v0.1.84

type ParryEvent struct {

	// Parrier is the hero that parried.
	Parrier uint32 `protobuf:"varint,1,opt,name=parrier,proto3" json:"parrier,omitempty"`
	// Player is the slot of the player whose hero parried, or -1.
	Player int32 `protobuf:"varint,2,opt,name=player,proto3" json:"player,omitempty"`
	// Attacker is the hero or unit whose swing was caught.
	Attacker uint32 `protobuf:"varint,3,opt,name=attacker,proto3" json:"attacker,omitempty"`
	// AttackerPlayer is the slot of the player whose hero swung, or -1.
	AttackerPlayer int32 `protobuf:"varint,4,opt,name=attacker_player,json=attackerPlayer,proto3" json:"attackerPlayer,omitempty"`
	// contains filtered or unexported fields
}

ParryEvent reports a parry that caught a melee swing.

func (*ParryEvent) CloneMessageVT added in v0.1.84

func (m *ParryEvent) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ParryEvent) CloneVT added in v0.1.84

func (m *ParryEvent) CloneVT() *ParryEvent

func (*ParryEvent) EqualMessageVT added in v0.1.84

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

func (*ParryEvent) EqualVT added in v0.1.84

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

func (*ParryEvent) GetAttacker added in v0.1.84

func (x *ParryEvent) GetAttacker() uint32

func (*ParryEvent) GetAttackerPlayer added in v0.1.84

func (x *ParryEvent) GetAttackerPlayer() int32

func (*ParryEvent) GetParrier added in v0.1.84

func (x *ParryEvent) GetParrier() uint32

func (*ParryEvent) GetPlayer added in v0.1.84

func (x *ParryEvent) GetPlayer() int32

func (*ParryEvent) MarshalJSON added in v0.1.84

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

MarshalJSON marshals the ParryEvent to JSON.

func (*ParryEvent) MarshalProtoJSON added in v0.1.84

func (x *ParryEvent) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ParryEvent message to JSON.

func (*ParryEvent) MarshalProtoText added in v0.1.84

func (x *ParryEvent) MarshalProtoText() string

func (*ParryEvent) MarshalToSizedBufferVT added in v0.1.84

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

func (*ParryEvent) MarshalToVT added in v0.1.84

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

func (*ParryEvent) MarshalVT added in v0.1.84

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

func (*ParryEvent) ProtoMessage added in v0.1.84

func (*ParryEvent) ProtoMessage()

func (*ParryEvent) Reset added in v0.1.84

func (x *ParryEvent) Reset()

func (*ParryEvent) SizeVT added in v0.1.84

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

func (*ParryEvent) String added in v0.1.84

func (x *ParryEvent) String() string

func (*ParryEvent) UnmarshalJSON added in v0.1.84

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

UnmarshalJSON unmarshals the ParryEvent from JSON.

func (*ParryEvent) UnmarshalProtoJSON added in v0.1.84

func (x *ParryEvent) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ParryEvent message from JSON.

func (*ParryEvent) UnmarshalVT added in v0.1.84

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

type ProjectileOptions

type ProjectileOptions struct {

	// Names lists designer names, such as rocket_launcher_rocket_projectile.
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// KeepMomentum gives each live hero back the motion it had before a
	// watched projectile's explosion, so the mod's Impact handler sets the
	// push.
	KeepMomentum *bool `protobuf:"varint,2,opt,name=keep_momentum,json=keepMomentum,proto3,oneof" json:"keepMomentum,omitempty"`
	// contains filtered or unexported fields
}

ProjectileOptions selects the projectiles a mod watches.

func (*ProjectileOptions) CloneMessageVT

func (m *ProjectileOptions) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ProjectileOptions) CloneVT

func (m *ProjectileOptions) CloneVT() *ProjectileOptions

func (*ProjectileOptions) EqualMessageVT

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

func (*ProjectileOptions) EqualVT

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

func (*ProjectileOptions) GetKeepMomentum

func (x *ProjectileOptions) GetKeepMomentum() bool

func (*ProjectileOptions) GetNames

func (x *ProjectileOptions) GetNames() []string

func (*ProjectileOptions) MarshalJSON

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

MarshalJSON marshals the ProjectileOptions to JSON.

func (*ProjectileOptions) MarshalProtoJSON

func (x *ProjectileOptions) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ProjectileOptions message to JSON.

func (*ProjectileOptions) MarshalProtoText

func (x *ProjectileOptions) MarshalProtoText() string

func (*ProjectileOptions) MarshalToSizedBufferVT

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

func (*ProjectileOptions) MarshalToVT

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

func (*ProjectileOptions) MarshalVT

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

func (*ProjectileOptions) ProtoMessage

func (*ProjectileOptions) ProtoMessage()

func (*ProjectileOptions) Reset

func (x *ProjectileOptions) Reset()

func (*ProjectileOptions) SizeVT

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

func (*ProjectileOptions) String

func (x *ProjectileOptions) String() string

func (*ProjectileOptions) UnmarshalJSON

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

UnmarshalJSON unmarshals the ProjectileOptions from JSON.

func (*ProjectileOptions) UnmarshalProtoJSON

func (x *ProjectileOptions) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ProjectileOptions message from JSON.

func (*ProjectileOptions) UnmarshalVT

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

type TraceHit

type TraceHit struct {

	// Position is the hit point.
	Position *geometry.Vec3 `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	// Normal is the surface's direction at the hit point.
	Normal *geometry.Vec3 `protobuf:"bytes,2,opt,name=normal,proto3" json:"normal,omitempty"`
	// StartSolid is true when the line began inside something solid.
	StartSolid bool `protobuf:"varint,3,opt,name=start_solid,json=startSolid,proto3" json:"startSolid,omitempty"`
	// Entity is the entity hit, or zero for the world.
	Entity uint32 `protobuf:"varint,4,opt,name=entity,proto3" json:"entity,omitempty"`
	// contains filtered or unexported fields
}

TraceHit is where a traced line first hit something.

func (*TraceHit) CloneMessageVT

func (m *TraceHit) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*TraceHit) CloneVT

func (m *TraceHit) CloneVT() *TraceHit

func (*TraceHit) EqualMessageVT

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

func (*TraceHit) EqualVT

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

func (*TraceHit) GetEntity

func (x *TraceHit) GetEntity() uint32

func (*TraceHit) GetNormal

func (x *TraceHit) GetNormal() *geometry.Vec3

func (*TraceHit) GetPosition

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

func (*TraceHit) GetStartSolid

func (x *TraceHit) GetStartSolid() bool

func (*TraceHit) MarshalJSON

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

MarshalJSON marshals the TraceHit to JSON.

func (*TraceHit) MarshalProtoJSON

func (x *TraceHit) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the TraceHit message to JSON.

func (*TraceHit) MarshalProtoText

func (x *TraceHit) MarshalProtoText() string

func (*TraceHit) MarshalToSizedBufferVT

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

func (*TraceHit) MarshalToVT

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

func (*TraceHit) MarshalVT

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

func (*TraceHit) ProtoMessage

func (*TraceHit) ProtoMessage()

func (*TraceHit) Reset

func (x *TraceHit) Reset()

func (*TraceHit) SizeVT

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

func (*TraceHit) String

func (x *TraceHit) String() string

func (*TraceHit) UnmarshalJSON

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

UnmarshalJSON unmarshals the TraceHit from JSON.

func (*TraceHit) UnmarshalProtoJSON

func (x *TraceHit) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the TraceHit message from JSON.

func (*TraceHit) UnmarshalVT

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

type TraceOptions

type TraceOptions struct {

	// Start is where the line begins.
	Start *geometry.Vec3 `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	// End is where the line ends.
	End *geometry.Vec3 `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
	// Layers selects what the line can hit; the default is solid and
	// hitboxes.
	Layers *uint64 `protobuf:"varint,3,opt,name=layers,proto3,oneof" json:"layers,omitempty"`
	// Exclude removes things in these layers from the hits.
	Exclude *uint64 `protobuf:"varint,4,opt,name=exclude,proto3,oneof" json:"exclude,omitempty"`
	// Ignore lists entity handles the line passes through.
	Ignore []uint32 `protobuf:"varint,5,rep,packed,name=ignore,proto3" json:"ignore,omitempty"`
	// contains filtered or unexported fields
}

TraceOptions describes a line to test against the world. Layers are bits of the game's collision layers: bit 0 is solid, 2 trigger, 4 player clip, 18 player and 19 NPC.

func (*TraceOptions) CloneMessageVT

func (m *TraceOptions) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*TraceOptions) CloneVT

func (m *TraceOptions) CloneVT() *TraceOptions

func (*TraceOptions) EqualMessageVT

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

func (*TraceOptions) EqualVT

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

func (*TraceOptions) GetEnd

func (x *TraceOptions) GetEnd() *geometry.Vec3

func (*TraceOptions) GetExclude

func (x *TraceOptions) GetExclude() uint64

func (*TraceOptions) GetIgnore

func (x *TraceOptions) GetIgnore() []uint32

func (*TraceOptions) GetLayers

func (x *TraceOptions) GetLayers() uint64

func (*TraceOptions) GetStart

func (x *TraceOptions) GetStart() *geometry.Vec3

func (*TraceOptions) MarshalJSON

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

MarshalJSON marshals the TraceOptions to JSON.

func (*TraceOptions) MarshalProtoJSON

func (x *TraceOptions) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the TraceOptions message to JSON.

func (*TraceOptions) MarshalProtoText

func (x *TraceOptions) MarshalProtoText() string

func (*TraceOptions) MarshalToSizedBufferVT

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

func (*TraceOptions) MarshalToVT

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

func (*TraceOptions) MarshalVT

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

func (*TraceOptions) ProtoMessage

func (*TraceOptions) ProtoMessage()

func (*TraceOptions) Reset

func (x *TraceOptions) Reset()

func (*TraceOptions) SizeVT

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

func (*TraceOptions) String

func (x *TraceOptions) String() string

func (*TraceOptions) UnmarshalJSON

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

UnmarshalJSON unmarshals the TraceOptions from JSON.

func (*TraceOptions) UnmarshalProtoJSON

func (x *TraceOptions) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the TraceOptions message from JSON.

func (*TraceOptions) UnmarshalVT

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

type TraceResponse

type TraceResponse struct {
	Hit *TraceHit `protobuf:"bytes,1,opt,name=hit,proto3" json:"hit,omitempty"`
	// contains filtered or unexported fields
}

TraceResponse holds where a line hit, absent for a miss.

func (*TraceResponse) CloneMessageVT

func (m *TraceResponse) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*TraceResponse) CloneVT

func (m *TraceResponse) CloneVT() *TraceResponse

func (*TraceResponse) EqualMessageVT

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

func (*TraceResponse) EqualVT

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

func (*TraceResponse) GetHit

func (x *TraceResponse) GetHit() *TraceHit

func (*TraceResponse) MarshalJSON

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

MarshalJSON marshals the TraceResponse to JSON.

func (*TraceResponse) MarshalProtoJSON

func (x *TraceResponse) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the TraceResponse message to JSON.

func (*TraceResponse) MarshalProtoText

func (x *TraceResponse) MarshalProtoText() string

func (*TraceResponse) MarshalToSizedBufferVT

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

func (*TraceResponse) MarshalToVT

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

func (*TraceResponse) MarshalVT

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

func (*TraceResponse) ProtoMessage

func (*TraceResponse) ProtoMessage()

func (*TraceResponse) Reset

func (x *TraceResponse) Reset()

func (*TraceResponse) SizeVT

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

func (*TraceResponse) String

func (x *TraceResponse) String() string

func (*TraceResponse) UnmarshalJSON

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

UnmarshalJSON unmarshals the TraceResponse from JSON.

func (*TraceResponse) UnmarshalProtoJSON

func (x *TraceResponse) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the TraceResponse message from JSON.

func (*TraceResponse) UnmarshalVT

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

Jump to

Keyboard shortcuts

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