mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-24 03:39:56 -04:00
Merge branch 'layout' of https://github.com/geode-sdk/geode into layout
This commit is contained in:
commit
35f2cbad9d
2 changed files with 9 additions and 1 deletions
|
@ -3792,7 +3792,7 @@ class LevelEditorLayer : GJBaseGameLayer, LevelSettingsDelegate {
|
|||
|
||||
class LevelInfoLayer : cocos2d::CCLayer, LevelDownloadDelegate, LevelUpdateDelegate, RateLevelDelegate, LikeItemDelegate, FLAlertLayerProtocol, LevelDeleteDelegate, NumberInputDelegate, SetIDPopupDelegate {
|
||||
static LevelInfoLayer* create(GJGameLevel* level) = mac 0x15f290, win 0x175d50;
|
||||
bool init(GJGameLevel* level) = win 0x175DF0;
|
||||
bool init(GJGameLevel* level) = win 0x175df0, mac 0x15f520;
|
||||
void onGarage(cocos2d::CCObject* sender) = win 0x177c10;
|
||||
void onViewProfile(cocos2d::CCObject* sender) = win 0x17ac90;
|
||||
void onLevelInfo(cocos2d::CCObject* sender) = win 0x17acf0;
|
||||
|
|
|
@ -330,6 +330,14 @@ namespace gd {
|
|||
m_capacity_end = m_start + input.size();
|
||||
std::copy(input.begin(), input.end(), tmp);
|
||||
}
|
||||
|
||||
void clear() {
|
||||
delete[] m_start;
|
||||
auto tmp = new T[0];
|
||||
m_start = tmp;
|
||||
m_finish = m_start;
|
||||
m_capacity_end = m_start;
|
||||
}
|
||||
|
||||
T& front() {
|
||||
return *m_start;
|
||||
|
|
Loading…
Add table
Reference in a new issue