XTargets will move auto entries up on removal like live

This also makes use of the bulk packet so not a crap ton of packets
generated.
This commit is contained in:
Michael Cook (mackal)
2015-09-03 02:56:51 -04:00
parent b7ee4634be
commit 4ae02e5efe
3 changed files with 80 additions and 22 deletions
+3 -1
View File
@@ -175,6 +175,7 @@ typedef enum
struct XTarget_Struct
{
XTargetType Type;
bool dirty;
uint16 ID;
char Name[65];
};
@@ -1144,9 +1145,10 @@ public:
bool IsClientXTarget(const Client *c) const;
void UpdateClientXTarget(Client *c);
void UpdateXTargetType(XTargetType Type, Mob *m, const char *Name = nullptr);
void AddAutoXTarget(Mob *m);
void AddAutoXTarget(Mob *m, bool send = true);
void RemoveXTarget(Mob *m, bool OnlyAutoSlots);
void SendXTargetPacket(uint32 Slot, Mob *m);
void SendXTargetUpdates();
void RemoveGroupXTargets();
void RemoveAutoXTargets();
void ShowXTargets(Client *c);