public SaveFileRating(JSONCollection col) { m_id = col.FindInt("id"); m_name = col.Find("name"); m_min = float.Parse(col.Find("min")); m_max = float.Parse(col.Find("max")); m_float = (col.Find("float") == "true"); }
public Medal(JSONCollection medalData) { m_id = medalData.FindInt("medal_id"); m_name = medalData.Find("medal_name"); m_value = medalData.FindInt("medal_value"); m_difficulty = (Difficulty)(medalData.FindInt("medal_difficulty")); m_unlocked = System.Convert.ToBoolean(medalData.Find("medal_unlocked")); m_iconURL = medalData.Find("medal_icon"); m_iconURL = string.Join("", m_iconURL.Split('\\')); //Get rid of certain chars m_iconURL = m_iconURL.Insert(4, ":"); m_secret = ((medalData.FindInt("secret")) == 1); m_description = medalData.Find("medal_description"); }
public SaveFile(JSONCollection collection) { m_groupID = collection.FindInt("group_id"); m_groupName = collection.Find("group_name"); m_groupType = (GroupType)collection.FindInt("group_type"); m_keys = new List <SaveFileKey>(); List <JSONCollection> keyArray = collection.GetArray("keys"); for (int i = 0; i < keyArray.Count; i++) { m_keys.Add(new SaveFileKey(keyArray[i])); } m_ratings = new List <SaveFileRating>(); List <JSONCollection> ratingArray = collection.GetArray("ratings"); for (int i = 0; i < ratingArray.Count; i++) { m_ratings.Add(new SaveFileRating(ratingArray[i])); } }
public SaveFileKey(JSONCollection col) { m_id = col.FindInt("id"); m_name = col.Find("name"); m_type = (VarType)col.FindInt("type"); }
public Scoreboard(JSONCollection collection) { m_id = collection.FindInt("id"); m_name = collection.Find("name"); }
public void LoadScores(string type, bool success, object data) { JSONCollection scores = (JSONCollection)data; Debug.Log("Load Scores"); }