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