diff options
| author | oy <Tom_Adams@web.de> | 2011-06-26 17:10:13 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-06-26 17:10:13 +0200 |
| commit | fb309436b4794743c86886fddf39bfae315fdc1a (patch) | |
| tree | f3b98af0c833884a0b5644ffbf25fdfa65dc0852 /src/engine/friends.h | |
| parent | c10c7d9ac3410e103b2d2e5b69fb6d7833f6a2e3 (diff) | |
| download | zcatch-fb309436b4794743c86886fddf39bfae315fdc1a.tar.gz zcatch-fb309436b4794743c86886fddf39bfae315fdc1a.zip | |
improved friends feature
Diffstat (limited to 'src/engine/friends.h')
| -rw-r--r-- | src/engine/friends.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/engine/friends.h b/src/engine/friends.h index bf9df904..164e3461 100644 --- a/src/engine/friends.h +++ b/src/engine/friends.h @@ -11,6 +11,8 @@ struct CFriendInfo { char m_aName[MAX_NAME_LENGTH]; char m_aClan[MAX_CLAN_LENGTH]; + unsigned m_NameHash; + unsigned m_ClanHash; }; class IFriends : public IInterface @@ -19,6 +21,10 @@ class IFriends : public IInterface public: enum { + FRIEND_NO=0, + FRIEND_CLAN, + FRIEND_PLAYER, + MAX_FRIENDS=128, }; @@ -26,11 +32,11 @@ public: virtual int NumFriends() const = 0; virtual const CFriendInfo *GetFriend(int Index) const = 0; + virtual int GetFriendState(const char *pName, const char *pClan) const = 0; virtual bool IsFriend(const char *pName, const char *pClan, bool PlayersOnly) const = 0; virtual void AddFriend(const char *pName, const char *pClan) = 0; virtual void RemoveFriend(const char *pName, const char *pClan) = 0; - virtual void RemoveFriend(int Index) = 0; }; #endif |