Figured out all main actor states and implemented the stuff properly. Implemented the chocobo/goobbue appearance stuff. Formatted CharaWork a bit.

This commit is contained in:
Filip Maj 2016-01-02 16:47:35 -05:00
parent b04310ef32
commit 7aeb33d884
6 changed files with 96 additions and 20 deletions

View file

@ -42,7 +42,8 @@ namespace FFXIVClassic_Map_Server.dataobjects.chara
public uint currentTarget = 0xC0000000;
public uint currentLockedTarget = 0xC0000000;
public uint currentState = SetActorStatePacket.STATE_PASSIVE;
public uint currentMainState = SetActorStatePacket.MAIN_STATE_PASSIVE;
public uint currentSubState = SetActorStatePacket.SUB_STATE_PLAYER;
public CharaWork charaWork = new CharaWork();
public PlayerWork playerWork = new PlayerWork();
@ -59,7 +60,7 @@ namespace FFXIVClassic_Map_Server.dataobjects.chara
public SubPacket createStatePacket(uint playerActorID)
{
return SetActorStatePacket.buildPacket(actorId, playerActorID, currentState);
return SetActorStatePacket.buildPacket(actorId, playerActorID, currentMainState, currentSubState);
}
public BasePacket createActorSpawnPackets(uint playerActorID)