Ejemplo n.º 1
0
        public static void TryGiveHorse(Mobile owner)
        {
            DMHorse horse;

            if (m_Horses.TryGetValue(owner, out horse))
                horse.Rider = owner;
            else
            {
                horse = new DMHorse(owner);
                m_Horses.Add(owner, horse);
            }
        }
Ejemplo n.º 2
0
        public static void TryGiveHorse(Mobile owner)
        {
            DMHorse horse;

            if (m_Horses.TryGetValue(owner, out horse))
            {
                horse.Rider = owner;
            }
            else
            {
                horse = new DMHorse(owner);
                m_Horses.Add(owner, horse);
            }
        }