Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Dictionary<uint, MonsterRole> monsters = new Dictionary<uint, MonsterRole>();
- public MonsterRole GetMonsterByID(uint id, uint dynamicID)
- {
- return monsters.Values.FirstOrDefault(monster => monster.ID == id && monster.DynamicID == dynamicID);
- }
- public void Remove(MonsterRole monster)
- {
- if (monsters.ContainsKey(monster.UID))
- {
- monsters.Remove(monster.UID);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement