Exemple #1
0
 public void Add(CreatureTemplate _cr)
 {
     CreatureTemplateMap.Add(_cr.entry, _cr);
 }
Exemple #2
0
        public CreatureTemplate GetCreatureTemplate(UInt32 _entry)
        {
            CreatureTemplate _cr = new CreatureTemplate();
            foreach (KeyValuePair<UInt32, CreatureTemplate> o in CreatureTemplateMap)
            {
                if (o.Value.entry == _entry)
                {
                    return o.Value;

                }
            }
            return _cr;
        }