// Spawned NPCs will not appear until controlled public void AddNpc(IFieldObject <Npc> fieldNpc) { State.AddNpc(fieldNpc); Broadcast(session => { session.Send(FieldPacket.AddNpc(fieldNpc)); session.Send(FieldObjectPacket.LoadNpc(fieldNpc)); }); }
// Spawned NPCs will not appear until controlled public void AddNpc(IFieldObject <Npc> fieldNpc) { State.AddNpc(fieldNpc); Broadcast(session => { session.Send(FieldPacket.AddNpc(fieldNpc)); session.Send(FieldObjectPacket.LoadNpc(fieldNpc)); }); }