public static PartyEntity GetNPCEntity(UInt32 key) { PartyEntity npc; NPCEntities.TryGetValue(key, out npc); return(npc); }
public static bool RemoveNPCEntity(UInt32 key) { PartyEntity removed; return(NPCEntities.TryRemove(key, out removed)); }
public static void EnsureNPCEntity(UInt32 key, PartyEntity entity) { NPCEntities.AddOrUpdate(key, entity, (k, v) => entity); }