summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Asura.Engine/scripting')
-rw-r--r--Source/Asura.Engine/scripting/luax.hpp18
-rw-r--r--Source/Asura.Engine/scripting/portable.hpp49
-rw-r--r--Source/Asura.Engine/scripting/portable.inl31
-rw-r--r--Source/Asura.Engine/scripting/type.h17
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