Documentation
¶
Index ¶
- func AttackPlayerSystem(state *AttackPlayerSystemState)
- func CallExternalSystem(state *CallExternalSystemState)
- func CreatePlayerSystem(state *CreatePlayerSystemState)
- func GraveyardSystem(state *GraveyardSystemState)
- func PlayerSpawnerSystem(state *PlayerSpawnerSystemState)
- func RegenSystem(state *RegenSystemState)
- type AttackPlayerCommand
- 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) ToProto() *pbsystem.AttackPlayerCommand
- func (c AttackPlayerCommand) UnmarshalWire(data []byte) (any, error)
- type AttackPlayerSystemState
- type CallExternalCommand
- 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) ToProto() *pbsystem.CallExternalCommand
- func (c CallExternalCommand) UnmarshalWire(data []byte) (any, error)
- type CallExternalSystemState
- type CreatePlayerCommand
- 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) ToProto() *pbsystem.CreatePlayerCommand
- func (c CreatePlayerCommand) UnmarshalWire(data []byte) (any, error)
- type CreatePlayerSystemState
- type ExternalCommand
- type GraveSearch
- type GraveyardSystemState
- type PlayerSearch
- type PlayerSpawnerSystemState
- type RegenSystemState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttackPlayerSystem ¶
func AttackPlayerSystem(state *AttackPlayerSystemState)
func CallExternalSystem ¶
func CallExternalSystem(state *CallExternalSystemState)
func CreatePlayerSystem ¶
func CreatePlayerSystem(state *CreatePlayerSystemState)
func GraveyardSystem ¶
func GraveyardSystem(state *GraveyardSystemState)
func PlayerSpawnerSystem ¶
func PlayerSpawnerSystem(state *PlayerSpawnerSystemState)
func RegenSystem ¶
func RegenSystem(state *RegenSystemState)
Types ¶
type AttackPlayerCommand ¶
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) 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 AttackPlayerSystemState ¶
type AttackPlayerSystemState struct {
cardinal.BaseSystemState
AttackPlayerCommands cardinal.WithCommand[AttackPlayerCommand]
PlayerDeathSystemEvents cardinal.WithSystemEventEmitter[systemevent.PlayerDeath]
PlayerDeathEvents cardinal.WithEvent[event.PlayerDeath]
Players PlayerSearch
}
type CallExternalCommand ¶
type CallExternalCommand struct {
Message string
}
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) 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 CallExternalSystemState ¶
type CallExternalSystemState struct {
cardinal.BaseSystemState
CallExternalCommands cardinal.WithCommand[CallExternalCommand]
}
type CreatePlayerCommand ¶
type CreatePlayerCommand struct {
Nickname string `json:"nickname"`
}
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) 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 CreatePlayerSystemState ¶
type CreatePlayerSystemState struct {
cardinal.BaseSystemState
CreatePlayerCommands cardinal.WithCommand[CreatePlayerCommand]
NewPlayerEvents cardinal.WithEvent[event.NewPlayer]
Players PlayerSearch
}
type ExternalCommand ¶
type ExternalCommand struct {
Message string
}
ExternalCommand should originate from another game shard.
func (ExternalCommand) Name ¶
func (ExternalCommand) Name() string
type GraveSearch ¶
type GraveyardSystemState ¶
type GraveyardSystemState struct {
cardinal.BaseSystemState
PlayerDeathSystemEvents cardinal.WithSystemEventReceiver[systemevent.PlayerDeath]
Graves GraveSearch
}
type PlayerSearch ¶
type PlayerSpawnerSystemState ¶
type PlayerSpawnerSystemState struct {
cardinal.BaseSystemState
Players PlayerSearch
}
type RegenSystemState ¶
Click to show internal directories.
Click to hide internal directories.