Files
devilutionX/Source/sync.h
T

37 lines
823 B
C

/**
* @file sync.h
*
* Interface of functionality for syncing game state with other players.
*/
#ifndef __SYNC_H__
#define __SYNC_H__
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern WORD sync_word_6AA708[MAXMONSTERS];
extern int sgnMonsters;
extern WORD sgwLRU[MAXMONSTERS];
extern int sgnSyncItem;
DWORD sync_all_monsters(const BYTE *pbBuf, DWORD dwMaxLen);
void sync_one_monster();
BOOL sync_monster_active(TSyncMonster *p);
void sync_monster_pos(TSyncMonster *p, int ndx);
BOOL sync_monster_active2(TSyncMonster *p);
void SyncPlrInv(TSyncHeader *pHdr);
DWORD sync_update(int pnum, const BYTE *pbBuf);
void sync_monster(int pnum, const TSyncMonster *p);
void sync_init();
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __SYNC_H__ */