misc/xfire/xfiregameclient.h
author sheepluva
Thu, 18 Aug 2011 00:14:43 +0200
changeset 5594 3ab68a93434b
parent 2920 5cf48744a700
permissions -rw-r--r--
portal: combating the space-detection issue. what needs to be tweaked next is how far away objects are spawned. it should either be a trial&error adjustment or depend on the object's moving direction and the portal's angle in order to avoid issues with box collisions. if the spawn distance to the portal is just a fixed value (as it was before this patch) or a constant factor (it is now) it can be too big for "nice" portal angles (in tight gaps with still enough space, but -> denied) and too small for bad angles (box collision esp. on big objects like barrels -> denied)
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__ */