GODPAPER | All Packages | All Classes | Index | Frames No Frames |
KongregatePlugin

Package | com.godpaper.as3.plugins.kongregate
Class | public class KongregatePlugin
Inheritance | KongregatePlugin Object
Implements | com.godpaper.as3.plugins.IPlug

KongregatePlugin API integration enables your game to report scores and statistics to our leaderboards, share levels and other content, sell virtual items, and export custom avatars from your game. API inclusion will also get your game a 10% payout bonus and qualify it to be included in our cash developer contests. Kongregate offers both client and server APIs, allowing a wide range of flexible integration configurations. The Client API is very simple to access from your game, and integration can be achieved using several different programming languages. The Server API allows your remote server to integrate with our back-end using simple web-service calls.All developers should become familiar with the Client API, as it is required for all integrations. If you have your own game server, you should read the documentation for both the client and server APIs. link:http://www.kongregate.com/developer_center/docs/as3-api

Public Properties

| Property | Defined By
--- | --- | ---
|  | data : IPlugData [read-only] | KongregatePlugin

Public Methods

| Method | Defined By
--- | --- | ---
|  | KongregatePlugin(gameID:String, boardID:String) | KongregatePlugin
|  | initialization():void | KongregatePlugin
|  | saveData(value:Object):Boolean | KongregatePlugin
|  | showData():Boolean | KongregatePlugin
|  | showLeaderboard(value:Object):Boolean | KongregatePlugin
|  | showLoginWidget():Boolean | KongregatePlugin
|  | showStore():Boolean | KongregatePlugin
|  | submitData(value:Object):Boolean Submit various statistics to the server | KongregatePlugin

Property Detail

data | property

`data:IPlugData` [read-only]

Implementation
`public function get data():IPlugData`
Constructor Detail

KongregatePlugin | () | Constructor

`public function KongregatePlugin(gameID:String, boardID:String)`

Parameters

| `gameID:String`
| `boardID:String`

Method Detail

initialization | () | method

`public function initialization():void`

saveData | () | method |

`public function saveData(value:Object):Boolean`

Parameters

| `value:Object`

Returns

| `Boolean`

showData | () | method |

`public function showData():Boolean`

Returns

| `Boolean`

showLeaderboard | () | method |

`public function showLeaderboard(value:Object):Boolean`

Parameters

| `value:Object`

Returns

| `Boolean`

showLoginWidget | () | method |

`public function showLoginWidget():Boolean`

Returns

| `Boolean`

showStore | () | method |

`public function showStore():Boolean`

Returns

| `Boolean`

submitData | () | method |

`public function submitData(value:Object):Boolean`

Submit various statistics to the server

Parameters

| `value:Object`

Returns

| `Boolean`

See also

http://www.kongregate.com/developer_center/docs/statistics-client-api

Thu Jan 16 2014, 01:11 PM +08:00