示例#1
0
        public bool Find(string race, string name, out CharacterDbEntry output)
        {
            foreach (var db in _dbs)
            {
                if (db.Race == race)
                {
                    return(db.Find(name, out output));
                }
            }

            output = null;
            return(false);
        }
示例#2
0
        public bool Find(string name, out CharacterDbEntry character)
        {
            foreach (var entry in _db)
            {
                if (entry.Name == name)
                {
                    character = entry;
                    return(true);
                }
            }

            character = null;
            return(false);
        }