meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| copypaste2014:gamecloud [2014/09/26 17:00] – created hyntty | copypaste2014:gamecloud [2014/09/27 19:20] (current) – [Server info] hyntty | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Server info ====== | ====== Server info ====== | ||
| + | |||
| + | Game cloud User web interface for the Codecamp is at [[http:// | ||
| **For the codecamp** please use the following (development) server: **54.220.223.184** | **For the codecamp** please use the following (development) server: **54.220.223.184** | ||
| Line 12: | Line 14: | ||
| //To be continued// | //To be continued// | ||
| + | |||
| + | Examples of working json-packages. Saving an event / achievement / item: | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | |||
| + | Querying if a player has an achievement / event / item: | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | |||
| + | |||
| + | ===== What the service replies ===== | ||
| + | |||
| + | **Saving data:** True/False in plain text | ||
| + | |||
| + | **Querying data:** A json-package containing a few fields: | ||
| + | |||
| + | |||
| + | ==== Achievement & event ==== | ||
| + | // | ||
| + | |||
| + | Achievements are tied to their respective ' | ||
| + | |||
| + | Please do this query before saving data, otherwise you may accidentally give the same achievement for a player twice (unless you want to do exactly that) | ||
| + | |||
| + | ==== Item ==== | ||
| + | // | ||
| + | |||
| + | gainCount tells how many times a player has acquired this item | ||
| + | |||
| + | loseCount indicates how many times a player has lost this item. | ||
| + | |||
| + | totalCount should be the difference between gain and lose. | ||
| + | |||