| 21 | namespace dmGameObject |
| 22 | { |
| 23 | static Result CompScriptcInit(const ComponentTypeCreateCtx* ctx, ComponentType* type) |
| 24 | { |
| 25 | ComponentTypeSetPrio(type, 200); |
| 26 | ComponentTypeSetContext(type, ctx->m_Script); |
| 27 | ComponentTypeSetHasUserData(type, true); |
| 28 | ComponentTypeSetReadsTransforms(type, true); |
| 29 | |
| 30 | ComponentTypeSetNewWorldFn(type, CompScriptNewWorld); |
| 31 | ComponentTypeSetDeleteWorldFn(type, CompScriptDeleteWorld); |
| 32 | ComponentTypeSetCreateFn(type, CompScriptCreate); |
| 33 | ComponentTypeSetDestroyFn(type, CompScriptDestroy); |
| 34 | ComponentTypeSetInitFn(type, CompScriptInit); |
| 35 | ComponentTypeSetFinalFn(type, CompScriptFinal); |
| 36 | ComponentTypeSetAddToUpdateFn(type, CompScriptAddToUpdate); |
| 37 | ComponentTypeSetUpdateFn(type, CompScriptUpdate); |
| 38 | ComponentTypeSetFixedUpdateFn(type, CompScriptFixedUpdate); |
| 39 | ComponentTypeSetLateUpdateFn(type, CompScriptLateUpdate); |
| 40 | ComponentTypeSetOnMessageFn(type, CompScriptOnMessage); |
| 41 | ComponentTypeSetOnInputFn(type, CompScriptOnInput); |
| 42 | ComponentTypeSetOnReloadFn(type, CompScriptOnReload); |
| 43 | ComponentTypeSetSetPropertiesFn(type, CompScriptSetProperties); |
| 44 | ComponentTypeSetGetPropertyFn(type, CompScriptGetProperty); |
| 45 | ComponentTypeSetSetPropertyFn(type, CompScriptSetProperty); |
| 46 | ComponentTypeSetPropertyIteratorFn(type, CompScriptIterProperties); |
| 47 | |
| 48 | return dmGameObject::RESULT_OK; |
| 49 | } |
| 50 | |
| 51 | static Result CompAnimcInit(const ComponentTypeCreateCtx* ctx, ComponentType* type) |
| 52 | { |
nothing calls this directly
no test coverage detected