5daad4bc
xiaoyu
游戏源码添加编译(现存问题:游戏内...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
//
// AniLevelPickerLayer.h
// HalloweenSpaceInvaders
//
// Created by Katarzyna Kalinowska-Górska on 03/10/2019.
//
#ifndef AniLevelPickerLayer_h
#define AniLevelPickerLayer_h
#include "cocos2d.h"
#include "AniLevelPickerView.h"
class AniLevelPickerLayer : public cocos2d::LayerColor {
public:
static AniLevelPickerLayer* create(float width, float height);
void addOnGoPressedCallback(std::function<void()> onGoPressed);
void setOnLevelChangedCallback(std::function<void(int)> p_onLevelChangedCallback);
//protected:
AniLevelPickerView* _AniLevelPickerView;
std::function<void()> _onGoPressedCallback;
std::function<void(int)> _onLevelChangedCallback { [](int){} };
bool init(float width, float height);
};
#endif /* AniLevelPickerLayer_h */
|