Skip to content

Use plugin functionality from CPP

Ilya edited this page Apr 24, 2019 · 1 revision
  • Install plugin

  • Add folder Interface to additional includes in you project

  • Include IXsollaLoginSDK.h in you project

// Xsolla login SDK
#include <Xsolla/Login/IXsollaLoginSDK.h>
  • Get plugin in you code
if (Cry::IPluginManager* pPluginManager = gEnv->pSystem->GetIPluginManager())
{
	if (Xsolla::Login::IXsollaLoginPlugin* pPlugin = pPluginManager->QueryPlugin<Xsolla::Login::IXsollaLoginPlugin>())
	{
		// Simple using
		pPlugin->Request_Registration("username", "password", "test@test.com");
	}
}
  • Use any functionality from IXsollaLoginPlugin interface