Advertisement
KidaCoding

Untitled

Jul 10th, 2024
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | Source Code | 0 0
  1. private Dictionary<uint, MonsterRole> monsters = new Dictionary<uint, MonsterRole>();
  2.  
  3.         public MonsterRole GetMonsterByID(uint id, uint dynamicID)
  4.         {
  5.             return monsters.Values.FirstOrDefault(monster => monster.ID == id && monster.DynamicID == dynamicID);
  6.         }
  7.  
  8.         public void Remove(MonsterRole monster)
  9.         {
  10.             if (monsters.ContainsKey(monster.UID))
  11.             {
  12.                 monsters.Remove(monster.UID);
  13.             }
  14.         }
Tags: MS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement