Coder Social home page Coder Social logo

windowssdk's Introduction

WindowsSDK

Windows C++ SDK for PlayFab

SDKs

This package contains three different versions of the PlayFab SDK.

PlayFabClientSDK - This version contains only client libraries and is designed for integration with your game client PlayFabServerSDK - Contains server and admin APIs designed to be called from your custom logic server or build process PlayFabSDK - Contains all APIs in one SDK.

Integration

To integrate the PlayFab SDK into your Visual Studio project, follow these steps.

Linker Settings

Under your project's Properties panel, open up "Configuration Properties\Linker". Add the following to the "Additional Linker Directories" line:

$(PlayFabRoot)\PlayFabSDK\lib\Win32;$(PlayFabRoot)\PlayFabSDK\dependencies\lib\Win32;

Substitute $(PlayFabRoot) for wherever you have the PlayFabSDK installed in your project. If you have a x64 target in your project, substitute x64 for Win32 in the above path.

In the Properties panel, switch to "Configuration Properties\Linker\Input"

Add the following libraries to the "Additional Dependencies" line:

zlibd.lib;libeay32d.lib;ssleay32d.lib;libcurld.lib;PlayFabAPI.lib;ws2_32.lib;wldap32.lib;

Preprocessor settings

Open your project's Properties panel and switch to "Configuration Properties\C/C++".

Add the following paths to the line "Additional Include Directories":

$(PlayFabRoot)\PlayFabSDK\include;$(PlayFabRoot)\PlayFabSDK\dependencies\include;

Substitute $(PlayFabRoot) for wherever you have the PlayFabSDK installed in your project.

Done

Your project should now be ready to compile and link against the PlayFabSDK.

Alternative approach

If you'd prefer, another approach is to add the PlayFabSDK's vcproj to your solution. This makes it easier to browse and debug the SDK's source code as you develop with it.

  1. Right click your solution select "Add\Existing Project..."
  2. Navigate to your PlayFabSDK location and choose PlayFabSDK\build\VC12\PlayFabAPI\PlayFabAPI.vcxproj
  3. Add a dependency from your game project to the PlayFabAPI project.
  4. On your project properties, make sure "Configuration Properties\Linker\Link Library Depndencies" is set to true.

You must then follow all the steps above to setup dependent libs and headers, but you would leave out "layFabAPI.lib" when you add the additional dependencies line.

API Docs

Please see http://api.playfab.com/Documentation/ for complete documentation of all PlayFab SDK calls.

windowssdk's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.