2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:47:43 +00:00

All CEnvFxManager effects working

This commit is contained in:
Jack Andersen
2018-11-02 22:46:12 -10:00
parent 97f18efd27
commit d140f35886
9 changed files with 81 additions and 31 deletions

View File

@@ -22,18 +22,12 @@ public:
class TriListReference
{
u16 m_count;
std::unique_ptr<u16[]> m_refs;
const u16* m_ptr;
public:
TriListReference(const u16* ptr)
: m_count(ptr[0])
{
m_refs.reset(new u16[m_count]);
for (u16 i=0 ; i<m_count ; ++i)
m_refs[i] = ptr[i+1];
}
u16 GetAt(int idx) const { return m_refs[idx]; }
u16 GetSize() const { return m_count; }
: m_ptr(ptr) {}
u16 GetAt(int idx) const { return m_ptr[idx+1]; }
u16 GetSize() const { return m_ptr[0]; }
};
class Node