25 lines
463 B
Go
25 lines
463 B
Go
package sceneio
|
|
|
|
import (
|
|
"aego/format/aetext"
|
|
"aego/scene"
|
|
"aego/schema"
|
|
)
|
|
|
|
type UnknownComponent struct {
|
|
TypeName string
|
|
Version int
|
|
Fields []aetext.Field
|
|
Blocks []*aetext.Node
|
|
}
|
|
|
|
type Unknown struct {
|
|
Components []UnknownComponent `aego:"-"`
|
|
}
|
|
|
|
func RegisterUnknown(t *scene.Types) error {
|
|
return scene.RegisterComponent[Unknown](t,
|
|
schema.Name("engine.Unknown"),
|
|
schema.Doc("holds components whose type is not registered in this build"))
|
|
}
|