Ejemplo n.º 1
0
        public void ImportData(tfxJSONObject 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 (tfxJSONValue 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 (tfxJSONValue action_data in json_data["ACTIONS_DATA"].Array)
            {
                letter_action = new LetterAction();
                letter_action.ImportData(action_data.Obj);
                m_letter_actions.Add(letter_action);
            }
        }
Ejemplo n.º 2
0
		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;
		}
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
		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);
			}
		}