mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
inline missing getters
This commit is contained in:
parent
e1fc1c69c8
commit
8bdc55248d
7 changed files with 9 additions and 8 deletions
2
bin
2
bin
|
@ -1 +1 @@
|
|||
Subproject commit b41ede45011541f9fc7cad9b6c05f3eaf94774a3
|
||||
Subproject commit 0e4ba18eded9a1e78a7a4a8ddc7411d65a9b8b1c
|
|
@ -352,7 +352,7 @@ protected:
|
|||
*/
|
||||
void setContentScaleFactor(float scaleFactor);
|
||||
public:
|
||||
float getContentScaleFactor(void);
|
||||
inline float getContentScaleFactor(void) { return m_fContentScaleFactor; }
|
||||
|
||||
RT_ADD(
|
||||
public:
|
||||
|
|
|
@ -148,7 +148,7 @@ public:
|
|||
inline const char* getAtlasName(){ return m_sAtlasName.c_str(); }
|
||||
inline void setAtlasName(const char* atlasName) { m_sAtlasName = atlasName; }
|
||||
|
||||
std::set<unsigned int>* getCharacterSet() const;
|
||||
inline std::set<unsigned int>* getCharacterSet() const { return m_pCharacterSet; }
|
||||
private:
|
||||
std::set<unsigned int>* parseConfigFile(const char *controlFile);
|
||||
void parseCharacterDefinition(gd::string line, ccBMFontDef *characterDefinition);
|
||||
|
|
|
@ -76,7 +76,7 @@ namespace geode {
|
|||
template <typename T>
|
||||
void send(Notification<T> n, Mod* m) {
|
||||
for (auto& obs : m_observers[m][n.selector()]) {
|
||||
obs->into<T>()->m_callback(n);
|
||||
obs->template into<T>()->m_callback(n);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -84,7 +84,7 @@ namespace geode {
|
|||
void broadcast(Notification<T> n) {
|
||||
for (auto& [k, v] : m_observers) {
|
||||
for (auto& obs : v[n.selector()]) {
|
||||
obs->into<T>()->m_callback(n);
|
||||
obs->template into<T>()->m_callback(n);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,11 +55,11 @@ struct {class_name}{base_classes}{final} {{
|
|||
|
||||
void sortClass(Root& r, ClassDefinition* c, set<ClassDefinition*>& looked, vector<ClassDefinition*>& ordered) {
|
||||
if (c->name.find("DS_Dictionary") != string::npos) return;
|
||||
if (c->name.find("cocos2d::") != string::npos) return; // cocos headers exist already
|
||||
if (c->name.find("cocos2d") != string::npos) return; // cocos headers exist already
|
||||
if (looked.find(c) == looked.end()) {
|
||||
looked.insert(c);
|
||||
for (string j : c->depends) {
|
||||
if (j.find("cocos2d::") != string::npos) continue;
|
||||
if (j.find("cocos2d") != string::npos) continue;
|
||||
if (r.classes.count(c->name) == 0) {
|
||||
cacerr("Expected class definition for %s\n", c->name.c_str());
|
||||
}
|
||||
|
|
|
@ -310,7 +310,7 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
if (CacShare::platform == kMac || CacShare::platform == kIos) {
|
||||
for (auto& i : c.inlines) {
|
||||
if (c.name.find("cocos2d::") == string::npos) continue; // cocos inlines
|
||||
if (c.name.find("cocos2d") == string::npos) continue; // cocos inlines
|
||||
output += i.inlined + "\n";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -669,6 +669,7 @@ class cocos2d::CCSprite {
|
|||
static cocos2d::CCSprite* createWithSpriteFrame(cocos2d::CCSpriteFrame*) = mac 0x132cb0;
|
||||
static cocos2d::CCSprite* createWithSpriteFrameName(char const*) = mac 0x132dc0, ios 0x15b3ec;
|
||||
static cocos2d::CCSprite* createWithTexture(cocos2d::CCTexture2D*) = mac 0x132790;
|
||||
static cocos2d::CCSprite* createWithTexture(cocos2d::CCTexture2D*, cocos2d::CCRect const&) = mac 0x132960;
|
||||
|
||||
void setFlipX(bool) = mac 0x134be0;
|
||||
void setFlipY(bool) = mac 0x134c30;
|
||||
|
|
Loading…
Reference in a new issue