-
Notifications
You must be signed in to change notification settings - Fork 0
Entity
RedRimmedBox edited this page Jan 4, 2025
·
10 revisions
In swift-ecs, instances of the Entity type are treated as Entities in the ECS.
Entitys are defined using Swift structs, inheriting the characteristics of value types.
struct EntityThe Entity type cannot be instantiated directly. Instead, it is created through an instance of the Commands type and is fully managed within the World.
func createEntity(commands: Commands) {
let entity: Entity = commands.spawn().id()
}現在 wiki は ecs-swift v0.2 に対応しています。