Esempio n. 1
0
        public static string RandomApperanceSlotKey(Character.sex charSex, Character.slot charSlot)
        {
            var    keys   = GetKeys(charSex, charSlot);
            Random random = new Random();

            return(keys[random.Next(0, keys.Length - 1)]);
        }
Esempio n. 2
0
        public static Sprite GetSprite(Character.sex charSex, Character.slot charSlot, string key)
        {
            Sprite sprite = new Sprite();

            if (key != null)
            {
                sprite.LoadContent(appearances[(int)charSex, (int)charSlot][key]);
                SetAnimation(sprite);
            }
            return(sprite);
        }
Esempio n. 3
0
 public static string[] GetKeys(Character.sex charSex, Character.slot charSlot)
 {
     return(appearances[(int)charSex, (int)charSlot].Keys.ToArray());
 }