Documentation
¶
Index ¶
- type AttackPlayerCommand
- func (c AttackPlayerCommand) AppendWire(b []byte) []byte
- func (c AttackPlayerCommand) FromProto(p *pbsystem.AttackPlayerCommand) AttackPlayerCommand
- func (c AttackPlayerCommand) MarshalWire() []byte
- func (a AttackPlayerCommand) Name() string
- func (c AttackPlayerCommand) ProtoDescriptor() protoreflect.MessageDescriptor
- func (c AttackPlayerCommand) SizeWire() int
- func (c AttackPlayerCommand) ToProto() *pbsystem.AttackPlayerCommand
- func (c AttackPlayerCommand) UnmarshalWire(data []byte) (any, error)
- type AttackPlayerSystem
- type CallExternalCommand
- func (c CallExternalCommand) AppendWire(b []byte) []byte
- func (c CallExternalCommand) FromProto(p *pbsystem.CallExternalCommand) CallExternalCommand
- func (c CallExternalCommand) MarshalWire() []byte
- func (CallExternalCommand) Name() string
- func (c CallExternalCommand) ProtoDescriptor() protoreflect.MessageDescriptor
- func (c CallExternalCommand) SizeWire() int
- func (c CallExternalCommand) ToProto() *pbsystem.CallExternalCommand
- func (c CallExternalCommand) UnmarshalWire(data []byte) (any, error)
- type CallExternalSystem
- type CreatePlayerCommand
- func (c CreatePlayerCommand) AppendWire(b []byte) []byte
- func (c CreatePlayerCommand) FromProto(p *pbsystem.CreatePlayerCommand) CreatePlayerCommand
- func (c CreatePlayerCommand) MarshalWire() []byte
- func (a CreatePlayerCommand) Name() string
- func (c CreatePlayerCommand) ProtoDescriptor() protoreflect.MessageDescriptor
- func (c CreatePlayerCommand) SizeWire() int
- func (c CreatePlayerCommand) ToProto() *pbsystem.CreatePlayerCommand
- func (c CreatePlayerCommand) UnmarshalWire(data []byte) (any, error)
- type CreatePlayerSystem
- type ExternalCommand
- type Grave
- type GraveyardSystem
- type Player
- type PlayerSpawnerSystem
- type RegenSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttackPlayerCommand ¶
func (AttackPlayerCommand) AppendWire ¶ added in v0.16.9
func (c AttackPlayerCommand) AppendWire(b []byte) []byte
func (AttackPlayerCommand) FromProto ¶ added in v0.14.0
func (c AttackPlayerCommand) FromProto(p *pbsystem.AttackPlayerCommand) AttackPlayerCommand
func (AttackPlayerCommand) MarshalWire ¶ added in v0.16.0
func (c AttackPlayerCommand) MarshalWire() []byte
func (AttackPlayerCommand) Name ¶
func (a AttackPlayerCommand) Name() string
func (AttackPlayerCommand) ProtoDescriptor ¶ added in v0.16.4
func (c AttackPlayerCommand) ProtoDescriptor() protoreflect.MessageDescriptor
func (AttackPlayerCommand) SizeWire ¶ added in v0.16.9
func (c AttackPlayerCommand) SizeWire() int
func (AttackPlayerCommand) ToProto ¶ added in v0.14.0
func (c AttackPlayerCommand) ToProto() *pbsystem.AttackPlayerCommand
func (AttackPlayerCommand) UnmarshalWire ¶ added in v0.16.0
func (c AttackPlayerCommand) UnmarshalWire(data []byte) (any, error)
type AttackPlayerSystem ¶
type AttackPlayerSystem struct{}
func (*AttackPlayerSystem) Run ¶ added in v0.17.0
func (s *AttackPlayerSystem) Run(w *cardinal.World)
type CallExternalCommand ¶
type CallExternalCommand struct {
Message string
}
func (CallExternalCommand) AppendWire ¶ added in v0.16.9
func (c CallExternalCommand) AppendWire(b []byte) []byte
func (CallExternalCommand) FromProto ¶ added in v0.14.0
func (c CallExternalCommand) FromProto(p *pbsystem.CallExternalCommand) CallExternalCommand
func (CallExternalCommand) MarshalWire ¶ added in v0.16.0
func (c CallExternalCommand) MarshalWire() []byte
func (CallExternalCommand) Name ¶
func (CallExternalCommand) Name() string
func (CallExternalCommand) ProtoDescriptor ¶ added in v0.16.4
func (c CallExternalCommand) ProtoDescriptor() protoreflect.MessageDescriptor
func (CallExternalCommand) SizeWire ¶ added in v0.16.9
func (c CallExternalCommand) SizeWire() int
func (CallExternalCommand) ToProto ¶ added in v0.14.0
func (c CallExternalCommand) ToProto() *pbsystem.CallExternalCommand
func (CallExternalCommand) UnmarshalWire ¶ added in v0.16.0
func (c CallExternalCommand) UnmarshalWire(data []byte) (any, error)
type CallExternalSystem ¶
type CallExternalSystem struct {
MatchmakingWorld cardinal.OtherWorld
}
func (*CallExternalSystem) Run ¶ added in v0.17.0
func (s *CallExternalSystem) Run(w *cardinal.World)
type CreatePlayerCommand ¶
type CreatePlayerCommand struct {
Nickname string `json:"nickname"`
}
func (CreatePlayerCommand) AppendWire ¶ added in v0.16.9
func (c CreatePlayerCommand) AppendWire(b []byte) []byte
func (CreatePlayerCommand) FromProto ¶ added in v0.14.0
func (c CreatePlayerCommand) FromProto(p *pbsystem.CreatePlayerCommand) CreatePlayerCommand
func (CreatePlayerCommand) MarshalWire ¶ added in v0.16.0
func (c CreatePlayerCommand) MarshalWire() []byte
func (CreatePlayerCommand) Name ¶
func (a CreatePlayerCommand) Name() string
func (CreatePlayerCommand) ProtoDescriptor ¶ added in v0.16.4
func (c CreatePlayerCommand) ProtoDescriptor() protoreflect.MessageDescriptor
func (CreatePlayerCommand) SizeWire ¶ added in v0.16.9
func (c CreatePlayerCommand) SizeWire() int
func (CreatePlayerCommand) ToProto ¶ added in v0.14.0
func (c CreatePlayerCommand) ToProto() *pbsystem.CreatePlayerCommand
func (CreatePlayerCommand) UnmarshalWire ¶ added in v0.16.0
func (c CreatePlayerCommand) UnmarshalWire(data []byte) (any, error)
type CreatePlayerSystem ¶
type CreatePlayerSystem struct{}
func (*CreatePlayerSystem) Run ¶ added in v0.17.0
func (s *CreatePlayerSystem) Run(w *cardinal.World)
type ExternalCommand ¶
type ExternalCommand struct {
Message string
}
ExternalCommand should originate from another game shard.
func (ExternalCommand) Name ¶
func (ExternalCommand) Name() string
type Grave ¶ added in v0.16.9
type Grave struct {
Grave component.Gravestone
}
Grave is the archetype of gravestone entities.
type GraveyardSystem ¶
type GraveyardSystem struct{}
func (*GraveyardSystem) Run ¶ added in v0.17.0
func (s *GraveyardSystem) Run(w *cardinal.World)
type Player ¶ added in v0.16.9
Player is the archetype of player entities, matched by w.Exact[Player]().
type PlayerSpawnerSystem ¶
type PlayerSpawnerSystem struct{}
func (*PlayerSpawnerSystem) Run ¶ added in v0.17.0
func (s *PlayerSpawnerSystem) Run(w *cardinal.World)
type RegenSystem ¶
type RegenSystem struct{}
func (*RegenSystem) Run ¶ added in v0.17.0
func (s *RegenSystem) Run(w *cardinal.World)
Click to show internal directories.
Click to hide internal directories.