mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 17:36:05 -05:00
Move getFieldIndexForClass to source
This commit is contained in:
parent
eadb1b14bd
commit
cf4f058945
1 changed files with 4 additions and 2 deletions
|
@ -64,7 +64,6 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
// proxy forwards
|
// proxy forwards
|
||||||
// clang-format off
|
|
||||||
#include <Geode/modify/CCNode.hpp>
|
#include <Geode/modify/CCNode.hpp>
|
||||||
struct ProxyCCNode : Modify<ProxyCCNode, CCNode> {
|
struct ProxyCCNode : Modify<ProxyCCNode, CCNode> {
|
||||||
virtual CCObject* getUserObject() {
|
virtual CCObject* getUserObject() {
|
||||||
|
@ -80,7 +79,10 @@ struct ProxyCCNode : Modify<ProxyCCNode, CCNode> {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// clang-format on
|
static inline std::unordered_map<size_t, size_t> s_nextIndex;
|
||||||
|
size_t FieldIntermediate::getFieldIndexForClass(size_t hash) {
|
||||||
|
return s_nextIndex[hash]++;
|
||||||
|
}
|
||||||
|
|
||||||
// not const because might modify contents
|
// not const because might modify contents
|
||||||
FieldContainer* CCNode::getFieldContainer() {
|
FieldContainer* CCNode::getFieldContainer() {
|
||||||
|
|
Loading…
Reference in a new issue