UIEntityCollection::getitem returns mcrfpy.Entity, even if a derived class was submitted #76
Labels
No Label
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: john/McRogueFace#76
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mcrf_module, "Entity"should become:
where
py_typeis the (stored somewhere) derived class that was appendedshould incorporate:
that type has to be stored somewhere, and then restored when referencing the same UIEntity object.
Perhaps a new field on the
UIEntityobject?Alternatively, store submitted objects (increment their refcount when
appended) and then return back the exact same Python object. Which could also be a way of holdingmcrfpy.Entityinstances for all Python objects; if it's cached and the refcount is exactly 1, then our cache can decref and delete the (C++-side) shared pointer.see full chatgpt convo: https://chatgpt.com/c/67c60534-e1d4-800e-b4e6-13191b3e7348