- int animationId(TypeDescription::GetTypeId("Animation"));
- int boolId(TypeDescription::GetTypeId("Boolean"));
- int frameId(TypeDescription::GetTypeId("ComplexAnimationFrame"));
- int numberId(TypeDescription::GetTypeId("Number"));
- int spriteId(TypeDescription::GetTypeId("Sprite"));
- int vectorId(TypeDescription::GetTypeId("Vector"));
-
- TypeDescription &td(TypeDescription::CreateOrGet("ComplexAnimation"));
+ TypeDescription &td(TypeDescription::Create(TYPE_ID, "ComplexAnimation"));
+ td.SetDescription("Complex animation type that supports per-frame disposition and non-linear sprite offset selection.");