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

abilities

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbilitiesResponse

type AbilitiesResponse struct {
	Abilities []*Ability `protobuf:"bytes,1,rep,name=abilities,proto3" json:"abilities,omitempty"`
	// contains filtered or unexported fields
}

AbilitiesResponse lists a hero's abilities in the hero's order.

func (*AbilitiesResponse) CloneMessageVT

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

func (*AbilitiesResponse) CloneVT

func (m *AbilitiesResponse) CloneVT() *AbilitiesResponse

func (*AbilitiesResponse) EqualMessageVT

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

func (*AbilitiesResponse) EqualVT

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

func (*AbilitiesResponse) GetAbilities

func (x *AbilitiesResponse) GetAbilities() []*Ability

func (*AbilitiesResponse) MarshalJSON

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

MarshalJSON marshals the AbilitiesResponse to JSON.

func (*AbilitiesResponse) MarshalProtoJSON

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

MarshalProtoJSON marshals the AbilitiesResponse message to JSON.

func (*AbilitiesResponse) MarshalProtoText

func (x *AbilitiesResponse) MarshalProtoText() string

func (*AbilitiesResponse) MarshalToSizedBufferVT

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

func (*AbilitiesResponse) MarshalToVT

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

func (*AbilitiesResponse) MarshalVT

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

func (*AbilitiesResponse) ProtoMessage

func (*AbilitiesResponse) ProtoMessage()

func (*AbilitiesResponse) Reset

func (x *AbilitiesResponse) Reset()

func (*AbilitiesResponse) SizeVT

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

func (*AbilitiesResponse) String

func (x *AbilitiesResponse) String() string

func (*AbilitiesResponse) UnmarshalJSON

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

UnmarshalJSON unmarshals the AbilitiesResponse from JSON.

func (*AbilitiesResponse) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the AbilitiesResponse message from JSON.

func (*AbilitiesResponse) UnmarshalVT

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

type Ability

type Ability struct {

	// Name is the ability's name, such as citadel_ability_hornet_snipe.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Slot is the ability's place on the hero: 0 to 3 are the ability keys.
	Slot int32 `protobuf:"varint,2,opt,name=slot,proto3" json:"slot,omitempty"`
	// Entity is the ability's entity handle, as DamageEvent.ability reports
	// it.
	Entity uint32 `protobuf:"varint,3,opt,name=entity,proto3" json:"entity,omitempty"`
	// Upgrades holds the bought tiers: bit 0 unlocks it and bits 1 to 3 are
	// its upgrades.
	Upgrades uint32 `protobuf:"varint,4,opt,name=upgrades,proto3" json:"upgrades,omitempty"`
	// Charges is the charges the ability holds.
	Charges int32 `protobuf:"varint,5,opt,name=charges,proto3" json:"charges,omitempty"`
	// CooldownEnd is the game time its cooldown ends, or zero without one.
	CooldownEnd float32 `protobuf:"fixed32,6,opt,name=cooldown_end,json=cooldownEnd,proto3" json:"cooldownEnd,omitempty"`
	// Id identifies the ability's definition, as replays record it.
	Id uint32 `protobuf:"varint,7,opt,name=id,proto3" json:"id,omitempty"`
	// State is the packed upgrade word; its high half is upgrades.
	State uint32 `protobuf:"varint,8,opt,name=state,proto3" json:"state,omitempty"`
	// CooldownStart is the game time its cooldown began.
	CooldownStart float32 `protobuf:"fixed32,9,opt,name=cooldown_start,json=cooldownStart,proto3" json:"cooldownStart,omitempty"`
	// RechargeStart is the game time its next charge began recovering.
	RechargeStart float32 `protobuf:"fixed32,10,opt,name=recharge_start,json=rechargeStart,proto3" json:"rechargeStart,omitempty"`
	// RechargeEnd is the game time its next charge returns, or zero without
	// one.
	RechargeEnd float32 `protobuf:"fixed32,11,opt,name=recharge_end,json=rechargeEnd,proto3" json:"rechargeEnd,omitempty"`
	// contains filtered or unexported fields
}

Ability is one ability a hero owns.

func (*Ability) CloneMessageVT

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

func (*Ability) CloneVT

func (m *Ability) CloneVT() *Ability

func (*Ability) EqualMessageVT

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

func (*Ability) EqualVT

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

func (*Ability) GetCharges

func (x *Ability) GetCharges() int32

func (*Ability) GetCooldownEnd

func (x *Ability) GetCooldownEnd() float32

func (*Ability) GetCooldownStart

func (x *Ability) GetCooldownStart() float32

func (*Ability) GetEntity

func (x *Ability) GetEntity() uint32

func (*Ability) GetId

func (x *Ability) GetId() uint32

func (*Ability) GetName

func (x *Ability) GetName() string

func (*Ability) GetRechargeEnd

func (x *Ability) GetRechargeEnd() float32

func (*Ability) GetRechargeStart

func (x *Ability) GetRechargeStart() float32

func (*Ability) GetSlot

func (x *Ability) GetSlot() int32

func (*Ability) GetState

func (x *Ability) GetState() uint32

func (*Ability) GetUpgrades

func (x *Ability) GetUpgrades() uint32

func (*Ability) MarshalJSON

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

MarshalJSON marshals the Ability to JSON.

func (*Ability) MarshalProtoJSON

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

MarshalProtoJSON marshals the Ability message to JSON.

func (*Ability) MarshalProtoText

func (x *Ability) MarshalProtoText() string

func (*Ability) MarshalToSizedBufferVT

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

func (*Ability) MarshalToVT

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

func (*Ability) MarshalVT

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

func (*Ability) ProtoMessage

func (*Ability) ProtoMessage()

func (*Ability) Reset

func (x *Ability) Reset()

func (*Ability) SizeVT

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

func (*Ability) String

func (x *Ability) String() string

func (*Ability) UnmarshalJSON

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

UnmarshalJSON unmarshals the Ability from JSON.

func (*Ability) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the Ability message from JSON.

func (*Ability) UnmarshalVT

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

type AbilityOptions

type AbilityOptions struct {
	Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	// Ability is the ability's name.
	Ability string `protobuf:"bytes,2,opt,name=ability,proto3" json:"ability,omitempty"`
	// Upgrades replaces the bought tiers, as Ability.upgrades: 0b1111 unlocks
	// it with all three upgrades.
	Upgrades *uint32 `protobuf:"varint,3,opt,name=upgrades,proto3,oneof" json:"upgrades,omitempty"`
	// Charges replaces the charges the ability holds, keeping its timers.
	Charges *int32 `protobuf:"varint,4,opt,name=charges,proto3,oneof" json:"charges,omitempty"`
	// CooldownEnd replaces the game time its cooldown ends.
	CooldownEnd *float32 `protobuf:"fixed32,5,opt,name=cooldown_end,json=cooldownEnd,proto3,oneof" json:"cooldownEnd,omitempty"`
	// RechargeEnd replaces the game time its next charge returns.
	RechargeEnd *float32 `protobuf:"fixed32,6,opt,name=recharge_end,json=rechargeEnd,proto3,oneof" json:"rechargeEnd,omitempty"`
	// MaxCharges replaces the most charges the ability can hold, from 1 to 100;
	// 0 returns it to the game's own. The server applies it, so the hero's
	// screen can still show the game's maximum. Charges above the new maximum
	// are not removed; set them with charges.
	MaxCharges *int32 `protobuf:"varint,7,opt,name=max_charges,json=maxCharges,proto3,oneof" json:"maxCharges,omitempty"`
	// contains filtered or unexported fields
}

AbilityOptions changes one ability of a player's hero.

func (*AbilityOptions) CloneMessageVT

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

func (*AbilityOptions) CloneVT

func (m *AbilityOptions) CloneVT() *AbilityOptions

func (*AbilityOptions) EqualMessageVT

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

func (*AbilityOptions) EqualVT

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

func (*AbilityOptions) GetAbility

func (x *AbilityOptions) GetAbility() string

func (*AbilityOptions) GetCharges

func (x *AbilityOptions) GetCharges() int32

func (*AbilityOptions) GetCooldownEnd

func (x *AbilityOptions) GetCooldownEnd() float32

func (*AbilityOptions) GetMaxCharges

func (x *AbilityOptions) GetMaxCharges() int32

func (*AbilityOptions) GetPlayer

func (x *AbilityOptions) GetPlayer() int32

func (*AbilityOptions) GetRechargeEnd

func (x *AbilityOptions) GetRechargeEnd() float32

func (*AbilityOptions) GetUpgrades

func (x *AbilityOptions) GetUpgrades() uint32

func (*AbilityOptions) MarshalJSON

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

MarshalJSON marshals the AbilityOptions to JSON.

func (*AbilityOptions) MarshalProtoJSON

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

MarshalProtoJSON marshals the AbilityOptions message to JSON.

func (*AbilityOptions) MarshalProtoText

func (x *AbilityOptions) MarshalProtoText() string

func (*AbilityOptions) MarshalToSizedBufferVT

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

func (*AbilityOptions) MarshalToVT

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

func (*AbilityOptions) MarshalVT

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

func (*AbilityOptions) ProtoMessage

func (*AbilityOptions) ProtoMessage()

func (*AbilityOptions) Reset

func (x *AbilityOptions) Reset()

func (*AbilityOptions) SizeVT

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

func (*AbilityOptions) String

func (x *AbilityOptions) String() string

func (*AbilityOptions) UnmarshalJSON

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

UnmarshalJSON unmarshals the AbilityOptions from JSON.

func (*AbilityOptions) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the AbilityOptions message from JSON.

func (*AbilityOptions) UnmarshalVT

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

type ActiveResponse

type ActiveResponse struct {
	Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`
	// contains filtered or unexported fields
}

ActiveResponse reports whether a state is active.

func (*ActiveResponse) CloneMessageVT

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

func (*ActiveResponse) CloneVT

func (m *ActiveResponse) CloneVT() *ActiveResponse

func (*ActiveResponse) EqualMessageVT

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

func (*ActiveResponse) EqualVT

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

func (*ActiveResponse) GetActive

func (x *ActiveResponse) GetActive() bool

func (*ActiveResponse) MarshalJSON

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

MarshalJSON marshals the ActiveResponse to JSON.

func (*ActiveResponse) MarshalProtoJSON

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

MarshalProtoJSON marshals the ActiveResponse message to JSON.

func (*ActiveResponse) MarshalProtoText

func (x *ActiveResponse) MarshalProtoText() string

func (*ActiveResponse) MarshalToSizedBufferVT

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

func (*ActiveResponse) MarshalToVT

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

func (*ActiveResponse) MarshalVT

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

func (*ActiveResponse) ProtoMessage

func (*ActiveResponse) ProtoMessage()

func (*ActiveResponse) Reset

func (x *ActiveResponse) Reset()

func (*ActiveResponse) SizeVT

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

func (*ActiveResponse) String

func (x *ActiveResponse) String() string

func (*ActiveResponse) UnmarshalJSON

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

UnmarshalJSON unmarshals the ActiveResponse from JSON.

func (*ActiveResponse) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the ActiveResponse message from JSON.

func (*ActiveResponse) UnmarshalVT

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

type GiveItemRequest

type GiveItemRequest struct {
	Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	// Item is the item's name, such as upgrade_fleetfoot_boots.
	Item string `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"`
	// contains filtered or unexported fields
}

GiveItemRequest gives one player's hero an item.

func (*GiveItemRequest) CloneMessageVT

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

func (*GiveItemRequest) CloneVT

func (m *GiveItemRequest) CloneVT() *GiveItemRequest

func (*GiveItemRequest) EqualMessageVT

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

func (*GiveItemRequest) EqualVT

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

func (*GiveItemRequest) GetItem

func (x *GiveItemRequest) GetItem() string

func (*GiveItemRequest) GetPlayer

func (x *GiveItemRequest) GetPlayer() int32

func (*GiveItemRequest) MarshalJSON

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

MarshalJSON marshals the GiveItemRequest to JSON.

func (*GiveItemRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the GiveItemRequest message to JSON.

func (*GiveItemRequest) MarshalProtoText

func (x *GiveItemRequest) MarshalProtoText() string

func (*GiveItemRequest) MarshalToSizedBufferVT

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

func (*GiveItemRequest) MarshalToVT

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

func (*GiveItemRequest) MarshalVT

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

func (*GiveItemRequest) ProtoMessage

func (*GiveItemRequest) ProtoMessage()

func (*GiveItemRequest) Reset

func (x *GiveItemRequest) Reset()

func (*GiveItemRequest) SizeVT

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

func (*GiveItemRequest) String

func (x *GiveItemRequest) String() string

func (*GiveItemRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the GiveItemRequest from JSON.

func (*GiveItemRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the GiveItemRequest message from JSON.

func (*GiveItemRequest) UnmarshalVT

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

type GiveModifierRequest

type GiveModifierRequest struct {
	Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	// Modifier names the modifier as "<ability>/<modifier>", such as
	// ability_smoke_bomb/smokebomb_modifier_invis.
	Modifier string `protobuf:"bytes,2,opt,name=modifier,proto3" json:"modifier,omitempty"`
	// Seconds is how long the modifier lasts.
	Seconds float32 `protobuf:"fixed32,3,opt,name=seconds,proto3" json:"seconds,omitempty"`
	// contains filtered or unexported fields
}

GiveModifierRequest gives one player's living hero an ability's modifier.

func (*GiveModifierRequest) CloneMessageVT

func (*GiveModifierRequest) CloneVT

func (*GiveModifierRequest) EqualMessageVT

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

func (*GiveModifierRequest) EqualVT

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

func (*GiveModifierRequest) GetModifier

func (x *GiveModifierRequest) GetModifier() string

func (*GiveModifierRequest) GetPlayer

func (x *GiveModifierRequest) GetPlayer() int32

func (*GiveModifierRequest) GetSeconds

func (x *GiveModifierRequest) GetSeconds() float32

func (*GiveModifierRequest) MarshalJSON

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

MarshalJSON marshals the GiveModifierRequest to JSON.

func (*GiveModifierRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the GiveModifierRequest message to JSON.

func (*GiveModifierRequest) MarshalProtoText

func (x *GiveModifierRequest) MarshalProtoText() string

func (*GiveModifierRequest) MarshalToSizedBufferVT

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

func (*GiveModifierRequest) MarshalToVT

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

func (*GiveModifierRequest) MarshalVT

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

func (*GiveModifierRequest) ProtoMessage

func (*GiveModifierRequest) ProtoMessage()

func (*GiveModifierRequest) Reset

func (x *GiveModifierRequest) Reset()

func (*GiveModifierRequest) SizeVT

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

func (*GiveModifierRequest) String

func (x *GiveModifierRequest) String() string

func (*GiveModifierRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the GiveModifierRequest from JSON.

func (*GiveModifierRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the GiveModifierRequest message from JSON.

func (*GiveModifierRequest) UnmarshalVT

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

type HoldModifierRequest

type HoldModifierRequest struct {
	Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	// Modifier names the modifier as "<ability>/<modifier>", such as
	// upgrade_fleetfoot_boots/modifier_fleetfoot_boots.
	Modifier string `protobuf:"bytes,2,opt,name=modifier,proto3" json:"modifier,omitempty"`
	// Active holds the modifier when true or omitted; false releases the hold.
	Active *bool `protobuf:"varint,3,opt,name=active,proto3,oneof" json:"active,omitempty"`
	// contains filtered or unexported fields
}

HoldModifierRequest holds or releases an ability's modifier on one player's hero.

func (*HoldModifierRequest) CloneMessageVT

func (*HoldModifierRequest) CloneVT

func (*HoldModifierRequest) EqualMessageVT

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

func (*HoldModifierRequest) EqualVT

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

func (*HoldModifierRequest) GetActive

func (x *HoldModifierRequest) GetActive() bool

func (*HoldModifierRequest) GetModifier

func (x *HoldModifierRequest) GetModifier() string

func (*HoldModifierRequest) GetPlayer

func (x *HoldModifierRequest) GetPlayer() int32

func (*HoldModifierRequest) MarshalJSON

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

MarshalJSON marshals the HoldModifierRequest to JSON.

func (*HoldModifierRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the HoldModifierRequest message to JSON.

func (*HoldModifierRequest) MarshalProtoText

func (x *HoldModifierRequest) MarshalProtoText() string

func (*HoldModifierRequest) MarshalToSizedBufferVT

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

func (*HoldModifierRequest) MarshalToVT

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

func (*HoldModifierRequest) MarshalVT

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

func (*HoldModifierRequest) ProtoMessage

func (*HoldModifierRequest) ProtoMessage()

func (*HoldModifierRequest) Reset

func (x *HoldModifierRequest) Reset()

func (*HoldModifierRequest) SizeVT

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

func (*HoldModifierRequest) String

func (x *HoldModifierRequest) String() string

func (*HoldModifierRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the HoldModifierRequest from JSON.

func (*HoldModifierRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the HoldModifierRequest message from JSON.

func (*HoldModifierRequest) UnmarshalVT

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

type HoldModifierStateRequest

type HoldModifierStateRequest struct {

	// Entity is the entity handle, such as Pawn.entity.
	Entity uint32 `protobuf:"varint,1,opt,name=entity,proto3" json:"entity,omitempty"`
	// State is the state's name, such as MODIFIER_STATE_ITEMS_DISABLED.
	State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// Active holds the state when true or omitted; false releases the hold.
	Active *bool `protobuf:"varint,3,opt,name=active,proto3,oneof" json:"active,omitempty"`
	// contains filtered or unexported fields
}

HoldModifierStateRequest holds one modifier state on an entity, or releases it.

func (*HoldModifierStateRequest) CloneMessageVT

func (*HoldModifierStateRequest) CloneVT

func (*HoldModifierStateRequest) EqualMessageVT

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

func (*HoldModifierStateRequest) EqualVT

func (*HoldModifierStateRequest) GetActive

func (x *HoldModifierStateRequest) GetActive() bool

func (*HoldModifierStateRequest) GetEntity

func (x *HoldModifierStateRequest) GetEntity() uint32

func (*HoldModifierStateRequest) GetState

func (x *HoldModifierStateRequest) GetState() string

func (*HoldModifierStateRequest) MarshalJSON

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

MarshalJSON marshals the HoldModifierStateRequest to JSON.

func (*HoldModifierStateRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the HoldModifierStateRequest message to JSON.

func (*HoldModifierStateRequest) MarshalProtoText

func (x *HoldModifierStateRequest) MarshalProtoText() string

func (*HoldModifierStateRequest) MarshalToSizedBufferVT

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

func (*HoldModifierStateRequest) MarshalToVT

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

func (*HoldModifierStateRequest) MarshalVT

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

func (*HoldModifierStateRequest) ProtoMessage

func (*HoldModifierStateRequest) ProtoMessage()

func (*HoldModifierStateRequest) Reset

func (x *HoldModifierStateRequest) Reset()

func (*HoldModifierStateRequest) SizeVT

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

func (*HoldModifierStateRequest) String

func (x *HoldModifierStateRequest) String() string

func (*HoldModifierStateRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the HoldModifierStateRequest from JSON.

func (*HoldModifierStateRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the HoldModifierStateRequest message from JSON.

func (*HoldModifierStateRequest) UnmarshalVT

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

type HoldReloadRequest

type HoldReloadRequest struct {

	// Held is true to keep the running build through a reload, and false to
	// let a waiting reload apply.
	Held bool `protobuf:"varint,1,opt,name=held,proto3" json:"held,omitempty"`
	// contains filtered or unexported fields
}

HoldReloadRequest holds or releases the mod's running build.

func (*HoldReloadRequest) CloneMessageVT

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

func (*HoldReloadRequest) CloneVT

func (m *HoldReloadRequest) CloneVT() *HoldReloadRequest

func (*HoldReloadRequest) EqualMessageVT

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

func (*HoldReloadRequest) EqualVT

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

func (*HoldReloadRequest) GetHeld

func (x *HoldReloadRequest) GetHeld() bool

func (*HoldReloadRequest) MarshalJSON

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

MarshalJSON marshals the HoldReloadRequest to JSON.

func (*HoldReloadRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the HoldReloadRequest message to JSON.

func (*HoldReloadRequest) MarshalProtoText

func (x *HoldReloadRequest) MarshalProtoText() string

func (*HoldReloadRequest) MarshalToSizedBufferVT

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

func (*HoldReloadRequest) MarshalToVT

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

func (*HoldReloadRequest) MarshalVT

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

func (*HoldReloadRequest) ProtoMessage

func (*HoldReloadRequest) ProtoMessage()

func (*HoldReloadRequest) Reset

func (x *HoldReloadRequest) Reset()

func (*HoldReloadRequest) SizeVT

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

func (*HoldReloadRequest) String

func (x *HoldReloadRequest) String() string

func (*HoldReloadRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the HoldReloadRequest from JSON.

func (*HoldReloadRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the HoldReloadRequest message from JSON.

func (*HoldReloadRequest) UnmarshalVT

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

type ModifierStateRequest

type ModifierStateRequest struct {

	// Entity is the entity's handle.
	Entity uint32 `protobuf:"varint,1,opt,name=entity,proto3" json:"entity,omitempty"`
	// State is the EModifierState name, such as MODIFIER_STATE_PARRY_ACTIVE.
	State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

ModifierStateRequest asks whether a modifier state is active on an entity.

func (*ModifierStateRequest) CloneMessageVT

func (*ModifierStateRequest) CloneVT

func (*ModifierStateRequest) EqualMessageVT

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

func (*ModifierStateRequest) EqualVT

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

func (*ModifierStateRequest) GetEntity

func (x *ModifierStateRequest) GetEntity() uint32

func (*ModifierStateRequest) GetState

func (x *ModifierStateRequest) GetState() string

func (*ModifierStateRequest) MarshalJSON

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

MarshalJSON marshals the ModifierStateRequest to JSON.

func (*ModifierStateRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the ModifierStateRequest message to JSON.

func (*ModifierStateRequest) MarshalProtoText

func (x *ModifierStateRequest) MarshalProtoText() string

func (*ModifierStateRequest) MarshalToSizedBufferVT

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

func (*ModifierStateRequest) MarshalToVT

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

func (*ModifierStateRequest) MarshalVT

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

func (*ModifierStateRequest) ProtoMessage

func (*ModifierStateRequest) ProtoMessage()

func (*ModifierStateRequest) Reset

func (x *ModifierStateRequest) Reset()

func (*ModifierStateRequest) SizeVT

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

func (*ModifierStateRequest) String

func (x *ModifierStateRequest) String() string

func (*ModifierStateRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the ModifierStateRequest from JSON.

func (*ModifierStateRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the ModifierStateRequest message from JSON.

func (*ModifierStateRequest) UnmarshalVT

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

type RefreshAbilityRequest

type RefreshAbilityRequest struct {
	Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	// Ability is the ability's name.
	Ability string `protobuf:"bytes,2,opt,name=ability,proto3" json:"ability,omitempty"`
	// contains filtered or unexported fields
}

RefreshAbilityRequest names one ability of a player's hero.

func (*RefreshAbilityRequest) CloneMessageVT

func (*RefreshAbilityRequest) CloneVT

func (*RefreshAbilityRequest) EqualMessageVT

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

func (*RefreshAbilityRequest) EqualVT

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

func (*RefreshAbilityRequest) GetAbility

func (x *RefreshAbilityRequest) GetAbility() string

func (*RefreshAbilityRequest) GetPlayer

func (x *RefreshAbilityRequest) GetPlayer() int32

func (*RefreshAbilityRequest) MarshalJSON

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

MarshalJSON marshals the RefreshAbilityRequest to JSON.

func (*RefreshAbilityRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the RefreshAbilityRequest message to JSON.

func (*RefreshAbilityRequest) MarshalProtoText

func (x *RefreshAbilityRequest) MarshalProtoText() string

func (*RefreshAbilityRequest) MarshalToSizedBufferVT

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

func (*RefreshAbilityRequest) MarshalToVT

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

func (*RefreshAbilityRequest) MarshalVT

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

func (*RefreshAbilityRequest) ProtoMessage

func (*RefreshAbilityRequest) ProtoMessage()

func (*RefreshAbilityRequest) Reset

func (x *RefreshAbilityRequest) Reset()

func (*RefreshAbilityRequest) SizeVT

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

func (*RefreshAbilityRequest) String

func (x *RefreshAbilityRequest) String() string

func (*RefreshAbilityRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the RefreshAbilityRequest from JSON.

func (*RefreshAbilityRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the RefreshAbilityRequest message from JSON.

func (*RefreshAbilityRequest) UnmarshalVT

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

type ReplaceAbilityRequest

type ReplaceAbilityRequest struct {
	Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	// Index is the ability slot, as Ability.slot.
	Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	// Ability is the new ability's name, such as ability_viper_slide.
	Ability string `protobuf:"bytes,3,opt,name=ability,proto3" json:"ability,omitempty"`
	// contains filtered or unexported fields
}

ReplaceAbilityRequest puts an ability in one of a player's ability slots.

func (*ReplaceAbilityRequest) CloneMessageVT

func (*ReplaceAbilityRequest) CloneVT

func (*ReplaceAbilityRequest) EqualMessageVT

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

func (*ReplaceAbilityRequest) EqualVT

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

func (*ReplaceAbilityRequest) GetAbility

func (x *ReplaceAbilityRequest) GetAbility() string

func (*ReplaceAbilityRequest) GetIndex

func (x *ReplaceAbilityRequest) GetIndex() uint32

func (*ReplaceAbilityRequest) GetPlayer

func (x *ReplaceAbilityRequest) GetPlayer() int32

func (*ReplaceAbilityRequest) MarshalJSON

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

MarshalJSON marshals the ReplaceAbilityRequest to JSON.

func (*ReplaceAbilityRequest) MarshalProtoJSON

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

MarshalProtoJSON marshals the ReplaceAbilityRequest message to JSON.

func (*ReplaceAbilityRequest) MarshalProtoText

func (x *ReplaceAbilityRequest) MarshalProtoText() string

func (*ReplaceAbilityRequest) MarshalToSizedBufferVT

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

func (*ReplaceAbilityRequest) MarshalToVT

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

func (*ReplaceAbilityRequest) MarshalVT

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

func (*ReplaceAbilityRequest) ProtoMessage

func (*ReplaceAbilityRequest) ProtoMessage()

func (*ReplaceAbilityRequest) Reset

func (x *ReplaceAbilityRequest) Reset()

func (*ReplaceAbilityRequest) SizeVT

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

func (*ReplaceAbilityRequest) String

func (x *ReplaceAbilityRequest) String() string

func (*ReplaceAbilityRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the ReplaceAbilityRequest from JSON.

func (*ReplaceAbilityRequest) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the ReplaceAbilityRequest message from JSON.

func (*ReplaceAbilityRequest) UnmarshalVT

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

Jump to

Keyboard shortcuts

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