private static SendSaveLoadRequest ( string section, string action, |
||
section | string | |
action | string | |
postdata | ||
callback | PResponse>.Action | |
Résultat | void |
private static void SendSaveLoadRequest(string section, string action, Hashtable postdata, Action<PlayerLevel, PResponse> callback)
{
PRequest.GetResponse (section, action, postdata, response => {
var level = response.success
? new PlayerLevel((Hashtable) response.json["level"])
: null;
callback(level, response);
});
}