public void ImportData(JSONObject json_data) { m_letters_to_animate = json_data["m_letters_to_animate"].Array.JSONtoListInt(); m_letters_to_animate_custom_idx = (int)json_data["m_letters_to_animate_custom_idx"].Number; m_letters_to_animate_option = (LETTERS_TO_ANIMATE)(int)json_data["m_letters_to_animate_option"].Number; m_loop_cycles = new List <ActionLoopCycle>(); if (json_data.ContainsKey("LOOPS_DATA")) { ActionLoopCycle loop_cycle; foreach (JSONValue loop_data in json_data["LOOPS_DATA"].Array) { loop_cycle = new ActionLoopCycle(); loop_cycle.ImportData(loop_data.Obj); m_loop_cycles.Add(loop_cycle); } } m_letter_actions = new List <LetterAction>(); LetterAction letter_action; foreach (JSONValue action_data in json_data["ACTIONS_DATA"].Array) { letter_action = new LetterAction(); letter_action.ImportData(action_data.Obj); m_letter_actions.Add(letter_action); } }
public ActionLoopCycle Clone() { ActionLoopCycle action_loop = new ActionLoopCycle(m_start_action_idx, m_end_action_idx); action_loop.m_number_of_loops = m_number_of_loops; action_loop.m_loop_type = m_loop_type; action_loop.m_delay_first_only = m_delay_first_only; return(action_loop); }
public ActionLoopCycle Clone() { ActionLoopCycle action_loop = new ActionLoopCycle(m_start_action_idx,m_end_action_idx); action_loop.m_number_of_loops = m_number_of_loops; action_loop.m_loop_type = m_loop_type; action_loop.m_delay_first_only = m_delay_first_only; return action_loop; }
public void ImportData(JSONObject json_data) { m_letters_to_animate = json_data["m_letters_to_animate"].Array.JSONtoListInt(); m_letters_to_animate_custom_idx = (int)json_data["m_letters_to_animate_custom_idx"].Number; m_letters_to_animate_option = (LETTERS_TO_ANIMATE)(int)json_data["m_letters_to_animate_option"].Number; m_loop_cycles = new List<ActionLoopCycle>(); if (json_data.ContainsKey("LOOPS_DATA")) { ActionLoopCycle loop_cycle; foreach (var loop_data in json_data["LOOPS_DATA"].Array) { loop_cycle = new ActionLoopCycle(); loop_cycle.ImportData(loop_data.Obj); m_loop_cycles.Add(loop_cycle); } } m_letter_actions = new List<LetterAction>(); LetterAction letter_action; foreach (var action_data in json_data["ACTIONS_DATA"].Array) { letter_action = new LetterAction(); letter_action.ImportData(action_data.Obj); m_letter_actions.Add(letter_action); } }