INNER CODE UNIT · Go

GetValue

yohamta0/donburi-ecs · entry.go:55

func GetValue[T any](e *Entry, c component.IComponentType) T {
	return *Get[T](e, c)
}

// Remove removes the component from the entry.
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.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…