Ejemplo 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)]);
        }
Ejemplo 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);
        }
Ejemplo n.º 3
0
 public static string[] GetKeys(Character.sex charSex, Character.slot charSlot)
 {
     return(appearances[(int)charSex, (int)charSlot].Keys.ToArray());
 }