INNER CODE UNIT · Go

Remove

yohamta0/donburi-ecs · entry.go:60

func Remove[T any](e *Entry, ctype component.IComponentType) {
	e.RemoveComponent(ctype)
}

// Valid returns true if the entry is valid.
func Valid(e *Entry) bool {
	if e == nil {
		return false
	}
	return e.Valid()
}

// Id returns the entity id.
func (e *Entry) Id() storage.EntityId {
	return e.id
}

// Entity returns the entity.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…