diff options
author | chai <chaifix@163.com> | 2019-03-19 23:06:27 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-19 23:06:27 +0800 |
commit | 1497dccd63a84b7ee2b229b1ad9c5c02718f2a78 (patch) | |
tree | f8d1bff50da13e126d08c7345653e002e293202d /Source/Asura.Engine/scripting | |
parent | 5e2a973516e0729b225da9de0b03015dc5854ac4 (diff) |
*rename
Diffstat (limited to 'Source/Asura.Engine/scripting')
-rw-r--r-- | Source/Asura.Engine/scripting/luax.hpp | 18 | ||||
-rw-r--r-- | Source/Asura.Engine/scripting/portable.hpp | 49 | ||||
-rw-r--r-- | Source/Asura.Engine/scripting/portable.inl | 31 | ||||
-rw-r--r-- | Source/Asura.Engine/scripting/type.h | 17 |
4 files changed, 0 insertions, 115 deletions
diff --git a/Source/Asura.Engine/scripting/luax.hpp b/Source/Asura.Engine/scripting/luax.hpp deleted file mode 100644 index 2bb1160..0000000 --- a/Source/Asura.Engine/scripting/luax.hpp +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef __ASURA_ENGINE_LUAX_H__ -#define __ASURA_ENGINE_LUAX_H__ - -/// -/// Scripting with Lua. -/// -extern "C" { -#include "Lua51/lua.h" -#include "Lua51/lauxlib.h" -} -#include "Luax/luax.h" - -/// -/// ¶luapoartable -/// -#include "Portable.h" - -#endif
\ No newline at end of file diff --git a/Source/Asura.Engine/scripting/portable.hpp b/Source/Asura.Engine/scripting/portable.hpp deleted file mode 100644 index df0b878..0000000 --- a/Source/Asura.Engine/scripting/portable.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef __ASURA_ENGINE_PORTABLE_H__ -#define __ASURA_ENGINE_PORTABLE_H__ - -#include "Config.h" -#include "Luax.hpp" -#include "Type.h" - -namespace AsuraEngine -{ - namespace Scripting - { - - /// - /// luaעnative classҪ̳дࡣ - /// - template<typename T> - class Portable : public Luax::LuaxNativeClass<T> - { - public: - - Portable(); - virtual ~Portable(); -/* - /// - /// ڶ̼߳ - /// - void Retain(); - void Release(); -*/ - private: -/* - /// - /// ̱߳luagc߳˴native objectdelete - /// - int mRefCount; - - /// - /// deleteգ̳portable࣬ʹdeleteֻʹRelease - /// - bool mSafer; -*/ - }; - -#include "portable.inl" - - } -} - -#endif
\ No newline at end of file diff --git a/Source/Asura.Engine/scripting/portable.inl b/Source/Asura.Engine/scripting/portable.inl deleted file mode 100644 index f73046a..0000000 --- a/Source/Asura.Engine/scripting/portable.inl +++ /dev/null @@ -1,31 +0,0 @@ -/* -template<typename T> -Portable<T>::Portable() - : mRefCount(1) - , mSafer(false) -{ -} - -template<typename T> -Portable<T>::~Portable() -{ - ASSERT(mSafer); -} - -template<typename T> -void Portable<T>::Retain() -{ - ++mRefCount; -} - -template<typename T> -void Portable<T>::Release() -{ - if (--mRefCount <= 0) - { - mSafer = true; - delete this; - } -} - -*/
\ No newline at end of file diff --git a/Source/Asura.Engine/scripting/type.h b/Source/Asura.Engine/scripting/type.h deleted file mode 100644 index 0665810..0000000 --- a/Source/Asura.Engine/scripting/type.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef __ASURA_SCRIPTING_TYPE_H__ -#define __ASURA_SCRIPTING_TYPE_H__ - -namespace AsuraEngine -{ - namespace Scripting - { - - class Type - { - - }; - - } -} - -#endif
\ No newline at end of file |