added a status effect container

- added status effect container to mobs and player objects (maybe should add to all Characters?)
- todo: handle gain/tick/lose in lua, send packets, everything else
This commit is contained in:
Tahir Akhlaq
2017-06-15 21:00:51 +01:00
parent 637f7f3d95
commit 6b023ceb3c
7 changed files with 178 additions and 5 deletions

View File

@@ -16,6 +16,8 @@ namespace FFXIVClassic_Map_Server.Actors
class Mob : Npc
{
public HateContainer hateContainer;
public StatusEffects statusEffects;
public Mob(int actorNumber, ActorClass actorClass, string uniqueId, Area spawnedArea, float posX, float posY, float posZ, float rot,
ushort actorState, uint animationId, string customDisplayName)
: base(actorNumber, actorClass, uniqueId, spawnedArea, posX, posY, posZ, rot, actorState, animationId, customDisplayName)
@@ -23,6 +25,7 @@ namespace FFXIVClassic_Map_Server.Actors
this.aiContainer = new AIContainer(this, new MobController(this), new PathFind(this), new TargetFind(this));
this.currentSubState = SetActorStatePacket.SUB_STATE_MONSTER;
this.hateContainer = new HateContainer(this);
this.statusEffects = new StatusEffects(this);
}
}
}