Standardise and make ECS more robust
This commit is contained in:
parent
b9aaeb62c9
commit
2ba1022f79
13 changed files with 245 additions and 232 deletions
|
|
@ -2,15 +2,15 @@ package ecs
|
|||
|
||||
Signature :: bit_set[0..<COMPONENT_MAX]
|
||||
|
||||
signature_create :: proc() -> Signature {
|
||||
signature_make :: proc() -> Signature {
|
||||
return Signature{}
|
||||
}
|
||||
|
||||
signature_set :: proc(signature: ^Signature, type: ComponentType) {
|
||||
signature_set :: proc(signature: ^Signature, type: ComponentID) {
|
||||
signature^ += {cast(int)type}
|
||||
}
|
||||
|
||||
signature_unset :: proc(signature: ^Signature, type: ComponentType) {
|
||||
signature_unset :: proc(signature: ^Signature, type: ComponentID) {
|
||||
signature^ -= {cast(int)type}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue