Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
NLua
Commits
be9f0df6
Commit
be9f0df6
authored
Mar 12, 2013
by
Vinicius Jarina
Browse files
Renamed LuaInterface -> NLua
parent
2e203153
Changes
89
Hide whitespace changes
Inline
Side-by-side
Core/Lua
Interface
/GenerateEventAssembly/DelegateGenerator.cs
→
Core/
N
Lua/GenerateEventAssembly/DelegateGenerator.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
@@ -24,7 +24,7 @@
*/
using
System
;
namespace
Lua
Interface
namespace
N
Lua
{
#
if
USE_KOPILUA
using
LuaCore
=
KopiLua
.
Lua
;
...
...
Core/Lua
Interface
/GenerateEventAssembly/ILuaGeneratedType.cs
→
Core/
N
Lua/GenerateEventAssembly/ILuaGeneratedType.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
@@ -24,7 +24,7 @@
*/
using
System
;
namespace
Lua
Interface
namespace
N
Lua
{
/*
* Common interface for types generated from tables. The method
...
...
Core/Lua
Interface
/GenerateEventAssembly/LuaClassType.cs
→
Core/
N
Lua/GenerateEventAssembly/LuaClassType.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
@@ -24,7 +24,7 @@
*/
using
System
;
namespace
Lua
Interface
namespace
N
Lua
{
/*
* Structure to store a type and the return types of
...
...
Core/Lua
Interface
/Lua.cs
→
Core/
N
Lua/Lua.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
@@ -29,12 +29,12 @@ using System.Reflection;
using
System.Collections
;
using
System.Collections.Generic
;
using
System.Collections.Specialized
;
using
Lua
Interface
.Event
;
using
Lua
Interface
.Method
;
using
Lua
Interface
.Exceptions
;
using
Lua
Interface
.Extensions
;
using
N
Lua.Event
;
using
N
Lua.Method
;
using
N
Lua.Exceptions
;
using
N
Lua.Extensions
;
namespace
Lua
Interface
namespace
N
Lua
{
#
if
USE_KOPILUA
using
LuaCore
=
KopiLua
.
Lua
;
...
...
@@ -43,7 +43,7 @@ namespace LuaInterface
#
endif
/*
* Main class of Lua
Interface
* Main class of
N
Lua
* Object-oriented wrapper to Lua API
*
* Author: Fabio Mascarenhas
...
...
@@ -182,7 +182,7 @@ namespace LuaInterface
}
/*
* CAUTION: Lua
Interface
.Lua instances can't share the same lua state!
* CAUTION:
N
Lua.Lua instances can't share the same lua state!
*/
public
Lua
(
LuaCore
.
lua_State
lState
)
{
...
...
@@ -191,7 +191,7 @@ namespace LuaInterface
if
(
LuaLib
.
lua_toboolean
(
lState
,
-
1
))
{
LuaLib
.
lua_settop
(
lState
,
-
2
);
throw
new
LuaException
(
"There is already a Lua
Interface
.Lua instance associated with this Lua state"
);
throw
new
LuaException
(
"There is already a
N
Lua.Lua instance associated with this Lua state"
);
}
else
{
LuaLib
.
lua_settop
(
lState
,
-
2
);
LuaLib
.
lua_pushstring
(
lState
,
"LUAINTERFACE LOADED"
);
...
...
Core/Lua
Interface
/LuaBase.cs
→
Core/
N
Lua/LuaBase.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
@@ -26,7 +26,7 @@ using System;
using
System.Text
;
using
System.Collections.Generic
;
namespace
Lua
Interface
namespace
N
Lua
{
/// <summary>
/// Base class to provide consistent disposal flow across lua objects. Uses code provided by Yves Duhoux and suggestions by Hans Schmeidenbacher and Qingrui Li
...
...
Core/Lua
Interface
/LuaFunction.cs
→
Core/
N
Lua/LuaFunction.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
@@ -26,7 +26,7 @@ using System;
using
System.Text
;
using
System.Collections.Generic
;
namespace
Lua
Interface
namespace
N
Lua
{
#
if
USE_KOPILUA
using
LuaCore
=
KopiLua
.
Lua
;
...
...
Core/Lua
Interface
/LuaGlobalAttribute.cs
→
Core/
N
Lua/LuaGlobalAttribute.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
@@ -24,7 +24,7 @@
*/
using
System
;
namespace
Lua
Interface
namespace
N
Lua
{
/// <summary>
/// Marks a method for global usage in Lua scripts
...
...
Core/Lua
Interface
/LuaHideAttribute.cs
→
Core/
N
Lua/LuaHideAttribute.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
@@ -24,7 +24,7 @@
*/
using
System
;
namespace
Lua
Interface
namespace
N
Lua
{
/// <summary>
/// Marks a method, field or property to be hidden from Lua auto-completion
...
...
Core/Lua
Interface
/LuaLib/GCOptions.cs
→
Core/
N
Lua/LuaLib/GCOptions.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
...
...
@@ -25,7 +25,7 @@
*/
using
System
;
namespace
Lua
Interface
namespace
N
Lua
{
public
enum
GCOptions
:
int
{
...
...
Core/Lua
Interface
/LuaLib/LuaEnums.cs
→
Core/
N
Lua/LuaLib/LuaEnums.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
...
...
@@ -25,7 +25,7 @@
*/
using
System
;
namespace
Lua
Interface
namespace
N
Lua
{
/// <summary>
/// Enumeration of basic lua globals.
...
...
Core/Lua
Interface
/LuaLib/LuaIndexes.cs
→
Core/
N
Lua/LuaLib/LuaIndexes.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
...
...
@@ -25,7 +25,7 @@
*/
using
System
;
namespace
Lua
Interface
namespace
N
Lua
{
public
enum
LuaIndexes
:
int
{
...
...
Core/Lua
Interface
/LuaLib/LuaLib.cs
→
Core/
N
Lua/LuaLib/LuaLib.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
...
...
@@ -25,9 +25,9 @@
*/
using
System
;
using
System.IO
;
using
Lua
Interface
.Extensions
;
using
N
Lua.Extensions
;
namespace
Lua
Interface
namespace
N
Lua
{
#
if
USE_KOPILUA
using
LuaCore
=
KopiLua
.
Lua
;
...
...
Core/Lua
Interface
/LuaLib/LuaTypes.cs
→
Core/
N
Lua/LuaLib/LuaTypes.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
...
...
@@ -27,9 +27,9 @@ using System;
using
System.IO
;
using
System.Runtime.InteropServices
;
using
System.Runtime.Serialization.Formatters.Binary
;
using
Lua
Interface
.Extensions
;
using
N
Lua.Extensions
;
namespace
Lua
Interface
namespace
N
Lua
{
public
enum
LuaTypes
:
int
{
...
...
Core/Lua
Interface
/LuaLib/References.cs
→
Core/
N
Lua/LuaLib/References.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
...
...
@@ -25,7 +25,7 @@
*/
using
System
;
namespace
Lua
Interface
namespace
N
Lua
{
public
enum
References
:
int
{
...
...
Core/Lua
Interface
/LuaRegistrationHelper.cs
→
Core/
N
Lua/LuaRegistrationHelper.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
@@ -25,9 +25,9 @@
using
System
;
using
System.Reflection
;
using
System.Diagnostics.CodeAnalysis
;
using
Lua
Interface
.Extensions
;
using
N
Lua.Extensions
;
namespace
Lua
Interface
namespace
N
Lua
{
public
static
class
LuaRegistrationHelper
{
...
...
Core/Lua
Interface
/LuaTable.cs
→
Core/
N
Lua/LuaTable.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
@@ -27,7 +27,7 @@ using System.Text;
using
System.Collections
;
using
System.Collections.Generic
;
namespace
Lua
Interface
namespace
N
Lua
{
#
if
USE_KOPILUA
using
LuaCore
=
KopiLua
.
Lua
;
...
...
Core/Lua
Interface
/LuaUserData.cs
→
Core/
N
Lua/LuaUserData.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
@@ -26,7 +26,7 @@ using System;
using
System.Text
;
using
System.Collections.Generic
;
namespace
Lua
Interface
namespace
N
Lua
{
#
if
USE_KOPILUA
using
LuaCore
=
KopiLua
.
Lua
;
...
...
Core/Lua
Interface
/Makefile.am
→
Core/
N
Lua/Makefile.am
View file @
be9f0df6
...
...
@@ -6,15 +6,15 @@ EXTRA_DIST =
if
ENABLE_DEBUG_X86
ASSEMBLY_COMPILER_COMMAND
=
dmcs
ASSEMBLY_COMPILER_FLAGS
=
-noconfig
-codepage
:utf8
-warn
:4
-optimize-
-debug
"-define:DEBUG"
ASSEMBLY
=
../../Run/Debug/Lua
Interface
.dll
ASSEMBLY
=
../../Run/Debug/
N
Lua.dll
ASSEMBLY_MDB
=
$(ASSEMBLY)
.mdb
COMPILE_TARGET
=
library
PROJECT_REFERENCES
=
\
../../Run/Debug/KopiLua.dll
BUILD_DIR
=
../../Run/Debug
LUAINTERFACE_DLL_MDB_SOURCE
=
../../Run/Debug/Lua
Interface
.dll.mdb
LUAINTERFACE_DLL_MDB
=
$(BUILD_DIR)
/Lua
Interface
.dll.mdb
LUAINTERFACE_DLL_MDB_SOURCE
=
../../Run/Debug/
N
Lua.dll.mdb
LUAINTERFACE_DLL_MDB
=
$(BUILD_DIR)
/
N
Lua.dll.mdb
KOPILUA_DLL_SOURCE
=
../../Run/Debug/KopiLua.dll
endif
...
...
@@ -22,7 +22,7 @@ endif
if
ENABLE_RELEASE_X86
ASSEMBLY_COMPILER_COMMAND
=
dmcs
ASSEMBLY_COMPILER_FLAGS
=
-noconfig
-codepage
:utf8
-warn
:4
-optimize
+
"-define:RELEASE"
ASSEMBLY
=
../../Run/Release/Lua
Interface
.dll
ASSEMBLY
=
../../Run/Release/
N
Lua.dll
ASSEMBLY_MDB
=
COMPILE_TARGET
=
library
PROJECT_REFERENCES
=
\
...
...
@@ -37,15 +37,15 @@ endif
if
ENABLE_DEBUG_X64
ASSEMBLY_COMPILER_COMMAND
=
dmcs
ASSEMBLY_COMPILER_FLAGS
=
-noconfig
-codepage
:utf8
-warn
:4
-optimize-
-debug
"-define:DEBUG"
ASSEMBLY
=
../../Run/Debug_x64/Lua
Interface
.dll
ASSEMBLY
=
../../Run/Debug_x64/
N
Lua.dll
ASSEMBLY_MDB
=
$(ASSEMBLY)
.mdb
COMPILE_TARGET
=
library
PROJECT_REFERENCES
=
\
../../Run/Debug_x64/KopiLua.dll
BUILD_DIR
=
../../Run/Debug_x64
LUAINTERFACE_DLL_MDB_SOURCE
=
../../Run/Debug_x64/Lua
Interface
.dll.mdb
LUAINTERFACE_DLL_MDB
=
$(BUILD_DIR)
/Lua
Interface
.dll.mdb
LUAINTERFACE_DLL_MDB_SOURCE
=
../../Run/Debug_x64/
N
Lua.dll.mdb
LUAINTERFACE_DLL_MDB
=
$(BUILD_DIR)
/
N
Lua.dll.mdb
KOPILUA_DLL_SOURCE
=
../../Run/Debug_x64/KopiLua.dll
endif
...
...
@@ -53,7 +53,7 @@ endif
if
ENABLE_RELEASE_X64
ASSEMBLY_COMPILER_COMMAND
=
dmcs
ASSEMBLY_COMPILER_FLAGS
=
-noconfig
-codepage
:utf8
-warn
:4
-optimize
+
"-define:RELEASE"
ASSEMBLY
=
../../Run/Release_x64/Lua
Interface
.dll
ASSEMBLY
=
../../Run/Release_x64/
N
Lua.dll
ASSEMBLY_MDB
=
COMPILE_TARGET
=
library
PROJECT_REFERENCES
=
\
...
...
@@ -120,7 +120,7 @@ FILES = \
LuaLib/LuaIndexes.cs
\
LuaLib/GCOptions.cs
\
LuaLib/LuaLib.cs
\
Config/Lua
Interface
Config.cs
Config/
N
LuaConfig.cs
DATA_FILES
=
...
...
@@ -133,7 +133,7 @@ EXTRAS = \
Exceptions
\
Method
\
Config
\
lua
interface
.pc.in
n
lua.pc.in
REFERENCES
=
\
System
\
...
...
@@ -147,9 +147,9 @@ CLEANFILES = $(PROGRAMFILES) $(LINUX_PKGCONFIG)
include
$(top_srcdir)/Makefile.include
KOPILUA_DLL
=
$(BUILD_DIR)
/KopiLua.dll
LUAINTERFACE_PC
=
$(BUILD_DIR)
/lua
interface
.pc
LUAINTERFACE_PC
=
$(BUILD_DIR)
/
n
lua.pc
$(eval
$(call
emit-deploy-wrapper,LUAINTERFACE_PC,lua
interface
.pc))
$(eval
$(call
emit-deploy-wrapper,LUAINTERFACE_PC,
n
lua.pc))
$(eval
$(call
emit_resgen_targets))
...
...
Core/Lua
Interface
/Metatables.cs
→
Core/
N
Lua/Metatables.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
@@ -29,10 +29,10 @@ using System.Reflection;
using
System.Diagnostics
;
using
System.Collections.Generic
;
using
System.Runtime.InteropServices
;
using
Lua
Interface
.Method
;
using
Lua
Interface
.Extensions
;
using
N
Lua.Method
;
using
N
Lua.Extensions
;
namespace
Lua
Interface
namespace
N
Lua
{
#
if
USE_KOPILUA
using
LuaCore
=
KopiLua
.
Lua
;
...
...
Core/Lua
Interface
/Method/EventHandlerContainer.cs
→
Core/
N
Lua/Method/EventHandlerContainer.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
@@ -26,10 +26,10 @@ using System;
using
System.Diagnostics
;
using
System.Collections.Generic
;
namespace
Lua
Interface
.Method
namespace
N
Lua.Method
{
/// <summary>
/// We keep track of what delegates we have auto attached to an event - to allow us to cleanly exit a Lua
Interface
session
/// We keep track of what delegates we have auto attached to an event - to allow us to cleanly exit a
N
Lua session
/// </summary>
class
EventHandlerContainer
:
IDisposable
{
...
...
Prev
1
2
3
4
5
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment