diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-08-22 12:40:58 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-08-22 12:40:58 -0400 |
| commit | 7c283bf98c54245e87c43aac100bb87cb04bb04e (patch) | |
| tree | e9d7f74e089e7e5c0fd7a71f302115a8fae59114 /editor/editor.cpp | |
| parent | a015e2b38edc4d5c3b18e5fa126d50b26fb5f473 (diff) | |
pke-editor: EntType create != collision callback
Diffstat (limited to 'editor/editor.cpp')
| -rw-r--r-- | editor/editor.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp index 4aa2c0c..e1c10d2 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -335,10 +335,14 @@ void PkeEditor_Tick(double delta) { EntityType_Load(entityTypeToCreate); + /* for (int64_t i = 0; i < entityTypeToCreate.detailsCount; ++i) { - strncpy(newEntType->details[i].grBinds->collisionCallback.name, entityTypeToCreate.details[i].grBinds->collisionCallback.name, CallbackSignatureLength); + if (entityTypeToCreate.details[i].grBinds == nullptr) continue; + // strncpy(newEntType->details[i].grBinds->collisionCallback.name, entityTypeToCreate.createInstanceCallback.name, CallbackSignatureLength); + // newEntType->details[i].grBinds->collisionCallback.func = entityTypeToCreate.createInstanceCallback.func; PkePlugin_SetSignatureFunc(&newEntType->details[i].grBinds->collisionCallback); } + */ } else { // TODO leaks entityTypeToCreate.entityTypeCode } @@ -1567,7 +1571,7 @@ void RecordImGuiModalCreateEntityType() { ImGui::OpenPopup("CallbackSelect"); } ImGui::SameLine(); - ImGui::Text("Collision Callback: '%s'", createInstanceSig); + ImGui::Text("Create Instance Callback: '%s'", createInstanceSig); if (RecordImGui_CallbackSelectModal(index)) { long x = 0; memcpy(createInstanceSig, PkePlugin_GetSortedSignatures(x)[index], CallbackSignatureLength); |
