--------------------- ComponentView::Next Increment component pointers
| 100 | // Increment component pointers |
| 101 | // |
| 102 | bool ComponentView::Next() |
| 103 | { |
| 104 | m_Current++; |
| 105 | if (m_Current >= m_Range->m_Count) |
| 106 | { |
| 107 | return true; |
| 108 | } |
| 109 | |
| 110 | // components in our entity |
| 111 | for (Accessor& access : m_Accessors) |
| 112 | { |
| 113 | access.currentElement += ComponentRegistry::Instance().GetSize(access.typeIdx); |
| 114 | } |
| 115 | |
| 116 | CalcParentPointers(); |
| 117 | |
| 118 | return false; |
| 119 | } |
| 120 | |
| 121 | //----------------------------------- |
| 122 | // ComponentView::CalcParentPointers |