#ifndef _MESSAGES_ALL_
#define _MESSAGES_ALL_
#include "MessageCore.h"
DEFINE_FEDMSG(LS, LOBBYMISSIONINFO, 301)
FM_VAR_ITEM(szGameName);
FM_VAR_ITEM(rgSquadIDs);
FM_VAR_ITEM(szGameDetailsFiles);
FM_VAR_ITEM(szIGCStaticFile); FM_VAR_ITEM(szServerName); FM_VAR_ITEM(szServerAddr); DWORD dwCookie; unsigned dwStartTime;
short nMinRank;
short nMaxRank;
unsigned nNumPlayers : 11;
unsigned nMaxPlayersPerGame : 11;
unsigned nMinPlayersPerTeam : 8;
unsigned nMaxPlayersPerTeam : 8;
unsigned nTeams : 3;
bool fCountdownStarted : 1;
bool fInProgress : 1;
bool fMSArena : 1;
bool fScoresCount : 1;
bool fInvulnerableStations : 1;
bool fAllowDevelopments : 1;
bool fLimitedLives : 1;
bool fConquest : 1;
bool fDeathMatch : 1;
bool fCountdown : 1;
bool fProsperity : 1;
bool fArtifacts : 1;
bool fFlags : 1;
bool fTerritorial : 1;
bool fGuaranteedSlotsAvailable : 1;
bool fAnySlotsAvailable : 1;
bool fSquadGame : 1;
bool fEjectPods : 1;
END_FEDMSG
DEFINE_FEDMSG(LS, MISSION_GONE, 302)
DWORD dwCookie;
END_FEDMSG
#ifndef SquadID
typedef int SquadID;
#endif
class SquadMembership
{
public:
SquadID m_squadID;
char m_szSquadName[c_cbName];
bool m_fIsLeader : 1;
bool m_fIsAssistantLeader : 1;
SquadMembership() {} SquadMembership(SquadID squadID, const char *szSquadName, bool fIsLeader, bool fIsAssistantLeader) :
m_squadID(squadID),
m_fIsLeader(fIsLeader),
m_fIsAssistantLeader(fIsAssistantLeader)
{
assert(!(m_fIsLeader && m_fIsAssistantLeader));
assert(strlen(szSquadName) < c_cbName);
Strcpy(m_szSquadName, szSquadName);
};
const SquadID GetID() const { return m_squadID; };
const char* GetName() const { return m_szSquadName; };
bool GetIsLeader() const { return m_fIsLeader; };
bool GetIsAssistantLeader() const { return m_fIsAssistantLeader; };
};
typedef Slist_utl<SquadMembership*> SquadMembershipList;
typedef Slink_utl<SquadMembership*> SquadMembershipLink;
DEFINE_FEDMSG(LS, SQUAD_MEMBERSHIPS, 303)
FM_VAR_ITEM(squadMemberships); int cSquadMemberships;
END_FEDMSG
struct StaticCoreInfo
{
char cbIGCFile[c_cbFileName];
};
#endif