コード例 #1
0
ファイル: DMHorse.cs プロジェクト: FreeReign/imaginenation
        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);
            }
        }
コード例 #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);
            }
        }