Documentation
¶
Index ¶
- func Batch[U Component, V any](u *Update, op ops.RowOperation[Entity, V], fn func(Entity, V) (U, bool))
- func Execute[V any, U Component](u *Update, op ops.RowOperation[Entity, V], fn func(Entity, V) (U, bool))
- func IsEphemeral(col reflect.Type) bool
- func Set(store store.Store[Entity], entity Entity, components ...Component)
- type Attribute
- type AttributeType
- type Behavior
- type BehaviorType
- type Component
- type ComponentKey
- type Context
- type Entity
- type Ephemeral
- type EphemeralType
- type MultiSystem
- type NoSystem
- type SlottedComponent
- type Store
- type StoreRoot
- type StoreSnapshot
- type System
- type SystemFunc
- type SystemFunc2
- type Update
- type UpdateSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEphemeral ¶
Types ¶
type Attribute ¶
type Attribute[T AttributeType] struct{}
type AttributeType ¶
type AttributeType interface {
Component
// contains filtered or unexported methods
}
type Behavior ¶
type Behavior[T BehaviorType] struct{}
type BehaviorType ¶
type BehaviorType interface {
Component
// contains filtered or unexported methods
}
type ComponentKey ¶
type Entity ¶
type Entity int64
An Entity is an object in the [Surface]. This excludes terrain and built structures. Positive entities represent long-lived objects and negative entities represent transient objects, like projectiles.
The zero entity is not used.
type Ephemeral ¶
type Ephemeral[T EphemeralType] struct{}
type EphemeralType ¶
type EphemeralType interface {
Component
// contains filtered or unexported methods
}
type MultiSystem ¶
type MultiSystem []System
func (MultiSystem) Append ¶
func (s MultiSystem) Append(others ...System) MultiSystem
func (MultiSystem) Apply ¶
func (s MultiSystem) Apply(u *Update)
func (MultiSystem) InsertAfter ¶
func (s MultiSystem) InsertAfter(target System, others ...System) MultiSystem
func (MultiSystem) InsertBefore ¶
func (s MultiSystem) InsertBefore(target System, others ...System) MultiSystem
type SlottedComponent ¶
type StoreSnapshot ¶
type StoreSnapshot interface {
Store
Commit()
}
type SystemFunc ¶
type SystemFunc func(*Update)
func (SystemFunc) Apply ¶
func (f SystemFunc) Apply(update *Update)
type SystemFunc2 ¶
type SystemFunc2 func(update, next *Update)
func (SystemFunc2) Apply ¶
func (f SystemFunc2) Apply(update *Update)
Directories
¶
| Path | Synopsis |
|---|---|
|
2d
|
|
|
ebiten
|
|
|
examples
|
|
|
asset-library
command
|
|
|
bunnymark
command
|
|
|
chat
command
|
|
|
crawl
command
|
|
|
pong
command
|
|
|
punch
command
|
|
|
v0
Package store (v0) is a minimal, non-performant implementation store.Store.
|
Package store (v0) is a minimal, non-performant implementation store.Store. |
|
v1
Package store (v1) is the baseline implementation of store.Store.
|
Package store (v1) is the baseline implementation of store.Store. |
Click to show internal directories.
Click to hide internal directories.