Added casting bar functions.

This commit is contained in:
Filip Maj
2017-08-26 12:33:37 -04:00
parent 546908acde
commit ff93dc41ef
2 changed files with 21 additions and 2 deletions

View File

@@ -1447,6 +1447,25 @@ namespace FFXIVClassic_Map_Server.Actors
QueuePackets(propPacketUtil.Done());
}
public void SendStartCastbar(uint commandId, uint endTime)
{
playerWork.castCommandClient = commandId;
playerWork.castEndClient = endTime;
ActorPropertyPacketUtil propPacketUtil = new ActorPropertyPacketUtil("playerWork/castState", this);
propPacketUtil.AddProperty("playerWork.castEndClient");
propPacketUtil.AddProperty("playerWork.castCommandClient");
QueuePackets(propPacketUtil.Done());
}
public void SendEndCastbar()
{
playerWork.castCommandClient = 0;
playerWork.castEndClient = 0;
ActorPropertyPacketUtil propPacketUtil = new ActorPropertyPacketUtil("playerWork/castState", this);
propPacketUtil.AddProperty("playerWork.castCommandClient");
QueuePackets(propPacketUtil.Done());
}
public void SetLoginDirector(Director director)
{
if (ownedDirectors.Contains(director))