public void AddMob(IFieldObject <Mob> fieldMob) { State.AddMob(fieldMob); Broadcast(session => { session.Send(FieldPacket.AddMob(fieldMob)); session.Send(FieldObjectPacket.LoadMob(fieldMob)); }); }
public void AddMob(IFieldObject <Mob> fieldMob) { State.AddMob(fieldMob); fieldMob.Value.OriginSpawn.Value.Mobs.Add(fieldMob); Broadcast(session => { session.Send(FieldPacket.AddMob(fieldMob)); session.Send(FieldObjectPacket.LoadMob(fieldMob)); // TODO: Add spawn buff (ID: 0x055D4DAE) }); }