-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e740fc7
commit a6f4536
Showing
10 changed files
with
136 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#include "SearchHistory.hpp" | ||
|
||
typedef MiniFunction<void(SearchHistoryObject const&)> SearchCallback; | ||
typedef MiniFunction<void(int)> RemoveCallback; | ||
typedef std::function<void(SearchHistoryObject const&)> SearchCallback; | ||
typedef std::function<void(int)> RemoveCallback; | ||
|
||
class SearchHistoryNode : public CCNode { | ||
class SearchHistoryNode : public cocos2d::CCNode { | ||
protected: | ||
SearchHistoryObject m_object; | ||
SearchCallback m_searchCallback; | ||
RemoveCallback m_removeCallback; | ||
int m_index; | ||
int m_count; | ||
public: | ||
static SearchHistoryNode* create(SearchHistoryObject const&, int, int, SearchCallback, RemoveCallback, bool, bool, bool); | ||
static SearchHistoryNode* create(SearchHistoryObject const&, int, int, SearchCallback const&, RemoveCallback const&, bool, bool, bool); | ||
|
||
bool init(SearchHistoryObject const&, int, int, SearchCallback, RemoveCallback, bool, bool, bool); | ||
bool init(SearchHistoryObject const&, int, int, SearchCallback const&, RemoveCallback const&, bool, bool, bool); | ||
void draw() override; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.