Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 1.84 KB

README.textile

File metadata and controls

31 lines (17 loc) · 1.84 KB

Mogade For .NET

Mogade is a free service web-based service which allows game developers to quickly enchance their games with auxiliary functionality (such as leaderboards).

This is the official .NET library – which is meant not only to be used within games, but also to serve as the basis for platform specific implementations. Developers interested in building a library for their own language will hopefully find this library to be decent documentation of the mogade API.

Other Libraries

For a list of other libraries, please visit http://mogade.com/manage/libraries

Support

The http://groups.google.com/group/mogadedev google group is the best place for developers, either of games or libraries, to visit.

Usage

The library should be straightforward to most .NET developers. The main entry point is the Driver class (which implements IDriver for you DI junkies).

You instantiate a Driver by supplying your game key and game secret (available from the details view of your game on the mogade.com website):

var driver = new Driver(“myGameKey”, “shhhMySecret”);

(we call it the Driver, because its assumed this library will be wrapped in a higher level platform library, such as the WindowsPhone one)

Once created, you can use the various methods to interact with the mogade service. Note that all methods fire asynchronously, and thus return void and require a callback method:

driver.GetLeaderboard(“leaderboardId”, LeaderboardScope.Daily, page, leaderboard => { //do something with the leaderboard});

API Overview

Mogade is based around a RESTish API, accepting and returning JSON messages.

A full API overview can be read here http://mogade.com/manage/api