Documentation
¶
Index ¶
- type AddComponentErrors
- type ComponentNotFoundError
- type ComponentTypeMismatchError
- type EmptySetError
- type EntityExistsError
- type EntityNotFoundError
- type EntityTypeNotRegisteredError
- type HasComponentError
- type MapHasKeyError
- type MapKeyMissingError
- type MapKeyNotFoundError
- type MapValueTypeMismatchError
- type MissingComponentError
- type SetValueTypeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddComponentErrors ¶
type AddComponentErrors struct {
Errors []error
}
AddComponentErrors is a collection of errors that occurred while adding components to an entity.
func (AddComponentErrors) Error ¶
func (e AddComponentErrors) Error() string
type ComponentNotFoundError ¶
ComponentNotFoundError is returned when a component is not found.
func (ComponentNotFoundError) Error ¶
func (e ComponentNotFoundError) Error() string
type ComponentTypeMismatchError ¶
ComponentTypeMismatchError is an error type that is returned when the component type does not match the entity type.
func (ComponentTypeMismatchError) Error ¶
func (e ComponentTypeMismatchError) Error() string
type EmptySetError ¶
type EmptySetError struct {
ID string
}
EmptySetError is an error type that is returned when an empty set is attempted to be added to an entity .
func (EmptySetError) Error ¶
func (e EmptySetError) Error() string
type EntityExistsError ¶
type EntityExistsError struct {
ID string
}
EntityExistsError is an error type that is returned when an entity with the given id already exists.
func (EntityExistsError) Error ¶
func (e EntityExistsError) Error() string
type EntityNotFoundError ¶
type EntityNotFoundError struct {
ID string
}
EntityNotFoundError is an error type that is returned when an entity with the given id does not exist.
func (EntityNotFoundError) Error ¶
func (e EntityNotFoundError) Error() string
type EntityTypeNotRegisteredError ¶
type EntityTypeNotRegisteredError struct {
Type string
}
EntityTypeNotRegisteredError is called when an entity type is not registered.
func (EntityTypeNotRegisteredError) Error ¶
func (e EntityTypeNotRegisteredError) Error() string
type HasComponentError ¶
HasComponentError is an error type that is returned when the entity already has the given component.
func (HasComponentError) Error ¶
func (e HasComponentError) Error() string
type MapHasKeyError ¶
MapHasKeyError is an error type that is returned when the map already has the given key.
func (MapHasKeyError) Error ¶
func (e MapHasKeyError) Error() string
type MapKeyMissingError ¶
func (MapKeyMissingError) Error ¶
func (e MapKeyMissingError) Error() string
type MapKeyNotFoundError ¶
func (MapKeyNotFoundError) Error ¶
func (e MapKeyNotFoundError) Error() string
type MapValueTypeMismatchError ¶
type MapValueTypeMismatchError struct { ID string Name string Key string Expected string Actual string }
MapValueTypeMismatchError is an error type that is returned when the map key does not match the entity type.
func (MapValueTypeMismatchError) Error ¶
func (e MapValueTypeMismatchError) Error() string
type MissingComponentError ¶
MissingComponentError is an error type that is returned when the entity does not have the given component.
func (MissingComponentError) Error ¶
func (e MissingComponentError) Error() string
type SetValueTypeError ¶
func (SetValueTypeError) Error ¶
func (e SetValueTypeError) Error() string
Source Files
¶
- add_component_errors.go
- component_not_found_error.go
- component_type_mismatch_error.go
- empty_set_error.go
- entity_exists_error.go
- entity_not_found_error.go
- entity_type_not_registered_error.go
- has_component_error.go
- map_has_key_error.go
- map_key_missing_error.go
- map_key_not_found_error.go
- map_value_type_mismatch_error.go
- missing_component_error.go
- set_value_type_error.go