Skip to content

package reflect_helpers

import "kaijuengine.com/editor/codegen/reflect_helpers"

Functions

CanonicalTypeName

func CanonicalTypeName(typeName string) string

CanonicalTypeName maps the runtime names of the generic matrix vector and color implementations back to the public aliases used in entity-data source. reflect reports matrix.Vec3 as "Vec3T[float32]", for example, because Vec3 is an alias, and matrix.Color as "ColorT[float32]". The editor's field classification and default parser should continue to treat those types as "Vec3" and "Color".

StringToTypeValue

func StringToTypeValue(typeName, v string) any