public ModelComponent(GameEntityComponent.UpdateLines updateLine) : base(updateLine) { ModelContext = new Context(); m_layoutC = null; m_skeletonC = null; }
public GameEntityComponentLine(GameEntityComponent.UpdateLines updateLine) { m_updteLine = updateLine; m_head = new GameEntityComponent(updateLine); m_tail = new GameEntityComponent(updateLine); m_head.Next = m_tail; m_tail.Previous = m_head; }
/// <summary> /// Get GameEntityComponentLine which has the indicated UpdateLine /// </summary> /// <param name="updateLine"></param> /// <returns></returns> public GameEntityComponentLine GetComponentLine(GameEntityComponent.UpdateLines updateLine) { GameEntityComponentLine result = null; if (!m_lineTable.TryGetValue(updateLine, out result)) { result = new GameEntityComponentLine(updateLine); m_lineTable.Add(updateLine, result); } return(result); }
/// <summary> /// Update components of line /// </summary> /// <param name="updateLine">update component line</param> /// <param name="dT">spend time [sec]</param> public void UpdateComponents(GameEntityComponent.UpdateLines updateLine, double dT) { Debug.Assert(updateLine != GameEntityComponent.UpdateLines.Invalid, "UpdateLine=Invalid is not updated."); GetComponentLine(updateLine).Update(dT); }