Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 Windows platform IAP support for plugin-x #159

Open
wants to merge 9 commits into
base: v3
Choose a base branch
from
Next Next commit
added support for winrt dispatcher
adiviness committed May 21, 2015
commit 0df68cdde113035bb707fc60e4facc359886ab76
11 changes: 11 additions & 0 deletions protocols/include/PluginFactory.h
Original file line number Diff line number Diff line change
@@ -38,12 +38,23 @@ class PluginFactory
/** Destory the instance of PluginFactory */
static void purgeFactory();

#ifdef CC_TARGET_PLATFORM
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
void setDispatcher(Windows::UI::Core::CoreDispatcher^ d);
#endif
#endif

private:
friend class PluginManager;
PluginFactory(void);

/** create the plugin by name */
PluginProtocol* createPlugin(const char* name);
#ifdef CC_TARGET_PLATFORM
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
Windows::UI::Core::CoreDispatcher^ dispatcher;
#endif
#endif
};

}} //namespace cocos2d { namespace plugin {