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

@@ -141,6 +141,8 @@ namespace FFXIVClassic_Map_Server.Actors
public Session playerSession;
public StatusEffects statusEffects;
public Player(Session cp, uint actorID) : base(actorID)
{
playerSession = cp;
@@ -249,7 +251,9 @@ namespace FFXIVClassic_Map_Server.Actors
Database.LoadPlayerCharacter(this);
lastPlayTimeUpdate = Utils.UnixTimeStampUTC();
this.aiContainer = new AIContainer(this, new PlayerController(this), null, new TargetFind(this));
this.statusEffects = new StatusEffects(this);
}
public List<SubPacket> Create0x132Packets(uint playerActorId)