mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 13:16:39 +00:00
Remove expedition includes from client header
Make quest compass a vec3 to remove include dependency Quest compass location doesn't require a zone id since it can only be set in the zone that it's drawn in. Drop the DynamicZoneLocation member and forward declare to remove the dependency on header. Move ExpeditionInvite struct to zone common header Including expedition.h in client.h just to use the ExpeditionInvite struct is an unnecessary header dependency that increases incremental build time. This allows expedition classes to be forward declared in client header.
This commit is contained in:
+4
-9
@@ -32,6 +32,7 @@
|
||||
|
||||
class Client;
|
||||
class EQApplicationPacket;
|
||||
struct ExpeditionInvite;
|
||||
class ExpeditionRequest;
|
||||
class MySQLRequestResult;
|
||||
class ServerPacket;
|
||||
@@ -54,19 +55,13 @@ struct ExpeditionMember
|
||||
std::string name;
|
||||
ExpeditionMemberStatus status = ExpeditionMemberStatus::Online;
|
||||
|
||||
ExpeditionMember() {}
|
||||
ExpeditionMember(uint32_t char_id_, const std::string& name_) : char_id(char_id_), name(name_) {}
|
||||
ExpeditionMember() = default;
|
||||
ExpeditionMember(uint32_t char_id_, const std::string& name_)
|
||||
: char_id(char_id_), name(name_) {}
|
||||
ExpeditionMember(uint32_t char_id_, const std::string& name_, ExpeditionMemberStatus status_)
|
||||
: char_id(char_id_), name(name_), status(status_) {}
|
||||
};
|
||||
|
||||
struct ExpeditionInvite
|
||||
{
|
||||
uint32_t expedition_id;
|
||||
std::string inviter_name;
|
||||
std::string swap_remove_name;
|
||||
};
|
||||
|
||||
class Expedition
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user