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

CElementGen constructor

This commit is contained in:
Jack Andersen
2016-02-09 12:52:33 -10:00
parent 69f32a4706
commit 33eb00b366
14 changed files with 409 additions and 62 deletions

View File

@@ -241,6 +241,7 @@ class TLockedToken : public TToken<T>
{
T* m_obj;
public:
TLockedToken() {m_obj = nullptr;}
TLockedToken(const CToken& other) : TToken<T>(other) {m_obj = TToken<T>::GetObj();}
TLockedToken(CToken&& other) : TToken<T>(std::move(other)) {m_obj = TToken<T>::GetObj();}
T* GetObj() {return m_obj;}