misc/xfire/xfiregameclient.h
author sheepluva
Thu, 03 May 2012 12:33:08 +0200
changeset 7014 c0b32404ef74
parent 2920 5cf48744a700
permissions -rw-r--r--
+ display lack of map in a nice way, don't generate bogus preview in the background * improve map selection behavior in online mode, so that players can load a missing map and have it correctly selected after pressing F5 without any rejoin, map-reselection. also doesn't cause "different maps generated" anymore if map is missing, instead the person lacking the map gets "invalid genmap" and drops out of game immediatly
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2920
5cf48744a700 Engine:
smxx
parents: 2830
diff changeset
     1
/* This file is NOT open source. See "license.txt" to read the full license provided with the Xfire SDK. */
2830
571a9deffeac Frontend:
smxx
parents:
diff changeset
     2
571a9deffeac Frontend:
smxx
parents:
diff changeset
     3
#ifndef __XFIREGAMECLIENT_H__
571a9deffeac Frontend:
smxx
parents:
diff changeset
     4
#define __XFIREGAMECLIENT_H__
571a9deffeac Frontend:
smxx
parents:
diff changeset
     5
571a9deffeac Frontend:
smxx
parents:
diff changeset
     6
#ifdef __cplusplus
571a9deffeac Frontend:
smxx
parents:
diff changeset
     7
extern "C" {
571a9deffeac Frontend:
smxx
parents:
diff changeset
     8
#endif
571a9deffeac Frontend:
smxx
parents:
diff changeset
     9
571a9deffeac Frontend:
smxx
parents:
diff changeset
    10
/*
571a9deffeac Frontend:
smxx
parents:
diff changeset
    11
**  XfireIsLoaded()
571a9deffeac Frontend:
smxx
parents:
diff changeset
    12
**
571a9deffeac Frontend:
smxx
parents:
diff changeset
    13
**  returns 1 if application can talk to Xfire, 0 otherwise
571a9deffeac Frontend:
smxx
parents:
diff changeset
    14
*/
571a9deffeac Frontend:
smxx
parents:
diff changeset
    15
int XfireIsLoaded();
571a9deffeac Frontend:
smxx
parents:
diff changeset
    16
571a9deffeac Frontend:
smxx
parents:
diff changeset
    17
/*
571a9deffeac Frontend:
smxx
parents:
diff changeset
    18
**  XfireSetCustomGameDataA()
571a9deffeac Frontend:
smxx
parents:
diff changeset
    19
**
571a9deffeac Frontend:
smxx
parents:
diff changeset
    20
**  ANSI version to tell xfire of custom game data
571a9deffeac Frontend:
smxx
parents:
diff changeset
    21
*/
571a9deffeac Frontend:
smxx
parents:
diff changeset
    22
int XfireSetCustomGameDataA(int num_keys, const char **keys, const char **values);
571a9deffeac Frontend:
smxx
parents:
diff changeset
    23
571a9deffeac Frontend:
smxx
parents:
diff changeset
    24
/*
571a9deffeac Frontend:
smxx
parents:
diff changeset
    25
**  XfireSetCustomGameDataA()
571a9deffeac Frontend:
smxx
parents:
diff changeset
    26
**
571a9deffeac Frontend:
smxx
parents:
diff changeset
    27
**  UNICODE version to tell xfire of custom game data
571a9deffeac Frontend:
smxx
parents:
diff changeset
    28
*/
571a9deffeac Frontend:
smxx
parents:
diff changeset
    29
int XfireSetCustomGameDataW(int num_keys, const wchar_t **keys, const wchar_t **values);
571a9deffeac Frontend:
smxx
parents:
diff changeset
    30
571a9deffeac Frontend:
smxx
parents:
diff changeset
    31
/*
571a9deffeac Frontend:
smxx
parents:
diff changeset
    32
**  XfireSetCustomGameDataUTF8()
571a9deffeac Frontend:
smxx
parents:
diff changeset
    33
**
571a9deffeac Frontend:
smxx
parents:
diff changeset
    34
**  UTF8 version to tell xfire of custom game data
571a9deffeac Frontend:
smxx
parents:
diff changeset
    35
*/
571a9deffeac Frontend:
smxx
parents:
diff changeset
    36
int XfireSetCustomGameDataUTF8(int num_keys, const char **keys, const char **values);
571a9deffeac Frontend:
smxx
parents:
diff changeset
    37
571a9deffeac Frontend:
smxx
parents:
diff changeset
    38
#ifdef UNICODE
571a9deffeac Frontend:
smxx
parents:
diff changeset
    39
#define XfireSetCustomGameData XfireSetCustomGameDataW
571a9deffeac Frontend:
smxx
parents:
diff changeset
    40
#else
571a9deffeac Frontend:
smxx
parents:
diff changeset
    41
#define XfireSetCustomGameData XfireSetCustomGameDataA
571a9deffeac Frontend:
smxx
parents:
diff changeset
    42
#endif
571a9deffeac Frontend:
smxx
parents:
diff changeset
    43
571a9deffeac Frontend:
smxx
parents:
diff changeset
    44
571a9deffeac Frontend:
smxx
parents:
diff changeset
    45
#ifdef __cplusplus
571a9deffeac Frontend:
smxx
parents:
diff changeset
    46
}
571a9deffeac Frontend:
smxx
parents:
diff changeset
    47
#endif
571a9deffeac Frontend:
smxx
parents:
diff changeset
    48
571a9deffeac Frontend:
smxx
parents:
diff changeset
    49
#endif /* __XFIREGAMECLIENT_H__ */