1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-22 04:37:47 +00:00

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()); 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) public void SetLoginDirector(Director director)
{ {
if (ownedDirectors.Contains(director)) if (ownedDirectors.Contains(director))

View file

@ -18,8 +18,8 @@
public bool isContentsCommand; public bool isContentsCommand;
public int castCommandClient; public uint castCommandClient;
public int castEndClient; public uint castEndClient;
public int[] comboNextCommandId = new int[2]; public int[] comboNextCommandId = new int[2];
public float comboCostBonusRate; public float comboCostBonusRate;