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
Show whitespace changes
Inline
Side-by-side
Applications/LuaRunner/LuaNetRunner.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,10 +25,10 @@
using
System
;
using
System.Threading
;
using
Lua
Interface
;
using
N
Lua
;
/*
* Application to run Lua scripts that can use Lua
Interface
* Application to run Lua scripts that can use
N
Lua
* from the console
*
* Author: Fabio Mascarenhas
...
...
Applications/LuaRunner/LuaRunner.csproj
View file @
be9f0df6
...
...
@@ -66,9 +66,9 @@
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
</ItemGroup>
<ItemGroup>
<ProjectReference
Include=
"..\..\Core\Lua
Interface\LuaInterface
.csproj"
>
<ProjectReference
Include=
"..\..\Core\
N
Lua
\NLua
.csproj"
>
<Project>
{F55CABBB-4108-4A39-94E1-581FD46DC021}
</Project>
<Name>
Lua
Interface
</Name>
<Name>
N
Lua
</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
...
...
Applications/LuaRunner/LuaRunner.make
View file @
be9f0df6
...
...
@@ -9,12 +9,12 @@ ASSEMBLY = ../../Run/Debug/LuaRunner.exe
ASSEMBLY_MDB
=
$(ASSEMBLY)
.mdb
COMPILE_TARGET
=
exe
PROJECT_REFERENCES
=
\
../../Run/Debug/Lua
Interface
.dll
../../Run/Debug/
N
Lua.dll
BUILD_DIR
=
../../Run/Debug
LUARUNNER_EXE_MDB_SOURCE
=
../../Run/Debug/LuaRunner.exe.mdb
LUARUNNER_EXE_MDB
=
$(BUILD_DIR)
/LuaRunner.exe.mdb
LUAINTERFACE_DLL_SOURCE
=
../../Run/Debug/Lua
Interface
.dll
LUAINTERFACE_DLL_SOURCE
=
../../Run/Debug/
N
Lua.dll
KOPILUA_DLL_SOURCE
=
../../Run/Debug/KopiLua.dll
endif
...
...
@@ -26,11 +26,11 @@ ASSEMBLY = ../../Run/Release/LuaRunner.exe
ASSEMBLY_MDB
=
COMPILE_TARGET
=
exe
PROJECT_REFERENCES
=
\
../../Run/Release/Lua
Interface
.dll
../../Run/Release/
N
Lua.dll
BUILD_DIR
=
../../Run/Release
LUARUNNER_EXE_MDB
=
LUAINTERFACE_DLL_SOURCE
=
../../Run/Release/Lua
Interface
.dll
LUAINTERFACE_DLL_SOURCE
=
../../Run/Release/
N
Lua.dll
KOPILUA_DLL_SOURCE
=
../../Run/Release/KopiLua.dll
endif
...
...
@@ -42,12 +42,12 @@ ASSEMBLY = ../../Run/Debug_x64/LuaRunner.exe
ASSEMBLY_MDB
=
$(ASSEMBLY)
.mdb
COMPILE_TARGET
=
exe
PROJECT_REFERENCES
=
\
../../Run/Debug_x64/Lua
Interface
.dll
../../Run/Debug_x64/
N
Lua.dll
BUILD_DIR
=
../../Run/Debug_x64
LUARUNNER_EXE_MDB_SOURCE
=
../../Run/Debug_x64/LuaRunner.exe.mdb
LUARUNNER_EXE_MDB
=
$(BUILD_DIR)
/LuaRunner.exe.mdb
LUAINTERFACE_DLL_SOURCE
=
../../Run/Debug_x64/Lua
Interface
.dll
LUAINTERFACE_DLL_SOURCE
=
../../Run/Debug_x64/
N
Lua.dll
KOPILUA_DLL_SOURCE
=
../../Run/Debug_x64/KopiLua.dll
endif
...
...
@@ -59,11 +59,11 @@ ASSEMBLY = ../../Run/Release_x64/LuaRunner.exe
ASSEMBLY_MDB
=
COMPILE_TARGET
=
exe
PROJECT_REFERENCES
=
\
../../Run/Release_x64/Lua
Interface
.dll
../../Run/Release_x64/
N
Lua.dll
BUILD_DIR
=
../../Run/Release_x64
LUARUNNER_EXE_MDB
=
LUAINTERFACE_DLL_SOURCE
=
../../Run/Release_x64/Lua
Interface
.dll
LUAINTERFACE_DLL_SOURCE
=
../../Run/Release_x64/
N
Lua.dll
KOPILUA_DLL_SOURCE
=
../../Run/Release_x64/KopiLua.dll
endif
...
...
@@ -106,7 +106,7 @@ CLEANFILES = $(PROGRAMFILES) $(BINARIES)
include
$(top_srcdir)/Makefile.include
LUAINTERFACE_DLL
=
$(BUILD_DIR)
/Lua
Interface
.dll
LUAINTERFACE_DLL
=
$(BUILD_DIR)
/
N
Lua.dll
KOPILUA_DLL
=
$(BUILD_DIR)
/KopiLua.dll
LUARUNNER
=
$(BUILD_DIR)
/luarunner
...
...
Applications/LuaRunner/Properties/AssemblyInfo.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,18 +27,18 @@ using System;
using
System.Reflection
;
using
System.Runtime.CompilerServices
;
using
System.Runtime.InteropServices
;
using
Lua
Interface
.Config
;
using
N
Lua.Config
;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[
assembly
:
AssemblyTitle
(
"LuaRunner"
)]
[
assembly
:
AssemblyDescription
(
Consts
.
Lua
Interface
Description
)]
[
assembly
:
AssemblyConfiguration
(
Consts
.
Lua
Interface
Configuration
)]
[
assembly
:
AssemblyCompany
(
Consts
.
Lua
Interface
Company
)]
[
assembly
:
AssemblyProduct
(
Consts
.
Lua
Interface
Product
)]
[
assembly
:
AssemblyCopyright
(
Consts
.
Lua
Interface
Copyright
)]
[
assembly
:
AssemblyTrademark
(
Consts
.
Lua
Interface
Trademark
)]
[
assembly
:
AssemblyDescription
(
Consts
.
N
LuaDescription
)]
[
assembly
:
AssemblyConfiguration
(
Consts
.
N
LuaConfiguration
)]
[
assembly
:
AssemblyCompany
(
Consts
.
N
LuaCompany
)]
[
assembly
:
AssemblyProduct
(
Consts
.
N
LuaProduct
)]
[
assembly
:
AssemblyCopyright
(
Consts
.
N
LuaCopyright
)]
[
assembly
:
AssemblyTrademark
(
Consts
.
N
LuaTrademark
)]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
...
...
COPYRIGHT
View file @
be9f0df6
Lua
Interface
License
N
Lua License
--------------------
Lua
Interface
is licensed under the terms of the MIT license reproduced below.
This mean that Lua
Interface
is free software and can be used for both academic and
N
Lua is licensed under the terms of the MIT license reproduced below.
This mean that
N
Lua is free software and can be used for both academic and
commercial purposes at absolutely no cost.
===============================================================================
...
...
ConsoleTest/ConsoleTest.csproj
View file @
be9f0df6
...
...
@@ -52,9 +52,9 @@
<None
Include=
"App.config"
/>
</ItemGroup>
<ItemGroup>
<ProjectReference
Include=
"..\Core\Lua
Interface\LuaInterface
.csproj"
>
<ProjectReference
Include=
"..\Core\
N
Lua
\NLua
.csproj"
>
<Project>
{f55cabbb-4108-4a39-94e1-581fd46dc021}
</Project>
<Name>
Lua
Interface
</Name>
<Name>
N
Lua
</Name>
</ProjectReference>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
...
...
ConsoleTest/Program.cs
View file @
be9f0df6
...
...
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
Lua
Interface
;
using
N
Lua
;
namespace
ConsoleTest
{
...
...
@@ -15,7 +15,7 @@ namespace ConsoleTest
using
(
Lua
lua
=
new
Lua
())
{
lua
.
DoString
(
"luanet.load_assembly('mscorlib')"
);
lua
.
DoString
(
"luanet.load_assembly('ConsoleTest')"
);
lua
.
DoString
(
"TestClass=luanet.import_type('Lua
Interface
Test.Mock.TestClass')"
);
lua
.
DoString
(
"TestClass=luanet.import_type('
N
LuaTest.Mock.TestClass')"
);
lua
.
DoString
(
"test=TestClass()"
);
try
{
...
...
Core/LuaInterface/luainterface.pc.in
deleted
100644 → 0
View file @
2e203153
Name: LuaInterface
Description: LuaInterface
Version: 2.x
Requires:
Libs: -r:@expanded_libdir@/@PACKAGE@/LuaInterface.dll
Core/Makefile.am
View file @
be9f0df6
...
...
@@ -3,14 +3,14 @@ EXTRA_DIST =
#Warning: This is an automatically generated file, do not edit!
if
ENABLE_DEBUG_X86
SUBDIRS
=
KopiLua Lua
Interface
SUBDIRS
=
KopiLua
N
Lua
endif
if
ENABLE_RELEASE_X86
SUBDIRS
=
KopiLua Lua
Interface
SUBDIRS
=
KopiLua
N
Lua
endif
if
ENABLE_DEBUG_X64
SUBDIRS
=
KopiLua Lua
Interface
SUBDIRS
=
KopiLua
N
Lua
endif
if
ENABLE_RELEASE_X64
SUBDIRS
=
KopiLua Lua
Interface
SUBDIRS
=
KopiLua
N
Lua
endif
Core/Lua
Interface
/CheckType.cs
→
Core/
N
Lua/CheckType.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,10 +25,10 @@
using
System
;
using
System.Reflection
;
using
System.Collections.Generic
;
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
/Config/Lua
Interface
Config.cs
→
Core/
N
Lua/Config/
N
LuaConfig.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
*
...
...
@@ -23,21 +23,21 @@
*/
using
System
;
namespace
Lua
Interface
.Config
namespace
N
Lua.Config
{
public
static
class
Consts
{
public
const
string
Lua
Interface
Description
=
"Bridge between the Lua runtime and the CLR"
;
public
const
string
N
LuaDescription
=
"Bridge between the Lua runtime and the CLR"
;
#if DEBUG
public
const
string
Lua
Interface
Configuration
=
"Debug"
;
public
const
string
N
LuaConfiguration
=
"Debug"
;
#else
public
const
string
Lua
Interface
Configuration
=
"Release"
;
public
const
string
N
LuaConfiguration
=
"Release"
;
#endif
public
const
string
Lua
Interface
Company
=
"Lua
Interface
Productions"
;
public
const
string
Lua
Interface
Product
=
"Lua
Interface
"
;
public
const
string
Lua
Interface
Copyright
=
"Copyright 2003-2008 Fabio Mascarenhas, Kevin Hesterm and 2012 Megax"
;
public
const
string
Lua
Interface
Trademark
=
"MIT license"
;
public
const
string
Lua
Interface
Version
=
"2.0.4"
;
public
const
string
Lua
Interface
FileVersion
=
"2.0.4.0"
;
public
const
string
N
LuaCompany
=
"
N
Lua Productions"
;
public
const
string
N
LuaProduct
=
"
N
Lua"
;
public
const
string
N
LuaCopyright
=
"Copyright 2003-2008 Fabio Mascarenhas, Kevin Hesterm and 2012 Megax"
;
public
const
string
N
LuaTrademark
=
"MIT license"
;
public
const
string
N
LuaVersion
=
"2.0.4"
;
public
const
string
N
LuaFileVersion
=
"2.0.4.0"
;
}
}
\ No newline at end of file
Core/Lua
Interface
/Event/DebugHookEventArgs.cs
→
Core/
N
Lua/Event/DebugHookEventArgs.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
.Event
namespace
N
Lua.Event
{
#if USE_KOPILUA
using
LuaCore
=
KopiLua
.
Lua
;
...
...
Core/Lua
Interface
/Event/EventCodes.cs
→
Core/
N
Lua/Event/EventCodes.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
.Event
namespace
N
Lua.Event
{
/// <summary>
/// Event codes for lua hook function
...
...
Core/Lua
Interface
/Event/EventMasks.cs
→
Core/
N
Lua/Event/EventMasks.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
.Event
namespace
N
Lua.Event
{
/// <summary>
/// Event masks for lua hook callback
...
...
Core/Lua
Interface
/Event/HookExceptionEventArgs.cs
→
Core/
N
Lua/Event/HookExceptionEventArgs.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
.Event
namespace
N
Lua.Event
{
public
class
HookExceptionEventArgs
:
EventArgs
{
...
...
Core/Lua
Interface
/Exceptions/LuaException.cs
→
Core/
N
Lua/Exceptions/LuaException.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,7 +25,7 @@
using
System
;
using
System.Runtime.Serialization
;
namespace
Lua
Interface
.Exceptions
namespace
N
Lua.Exceptions
{
/// <summary>
/// Exceptions thrown by the Lua runtime
...
...
Core/Lua
Interface
/Exceptions/LuaScriptException.cs
→
Core/
N
Lua/Exceptions/LuaScriptException.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
.Exceptions
namespace
N
Lua.Exceptions
{
/// <summary>
/// Exceptions thrown by the Lua runtime because of errors in the script
...
...
Core/Lua
Interface
/Extensions/GeneralExtensions.cs
→
Core/
N
Lua/Extensions/GeneralExtensions.cs
View file @
be9f0df6
/*
* This file is part of Lua
Interface
.
* This file is part of
N
Lua.
*
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
*
...
...
@@ -23,7 +23,7 @@
*/
using
System
;
namespace
Lua
Interface
.Extensions
namespace
N
Lua.Extensions
{
/// <summary>
/// Some random extension stuff.
...
...
Core/Lua
Interface
/GenerateEventAssembly/ClassGenerator.cs
→
Core/
N
Lua/GenerateEventAssembly/ClassGenerator.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/CodeGeneration.cs
→
Core/
N
Lua/GenerateEventAssembly/CodeGeneration.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/>
...
...
@@ -31,9 +31,9 @@ using System.Reflection.Emit;
#endif
using
System.Collections
;
using
System.Collections.Generic
;
using
Lua
Interface
.Method
;
using
N
Lua.Method
;
namespace
Lua
Interface
namespace
N
Lua
{
/*
* Dynamically generates new types from existing types and
...
...
@@ -70,11 +70,11 @@ namespace LuaInterface
// Create an assembly name
assemblyName
=
new
AssemblyName
();
assemblyName
.
Name
=
"Lua
Interface
_generatedcode"
;
assemblyName
.
Name
=
"
N
Lua_generatedcode"
;
// Create a new assembly with one module.
#if !MONOTOUCH
newAssembly
=
Thread
.
GetDomain
().
DefineDynamicAssembly
(
assemblyName
,
AssemblyBuilderAccess
.
Run
);
newModule
=
newAssembly
.
DefineDynamicModule
(
"Lua
Interface
_generatedcode"
);
newModule
=
newAssembly
.
DefineDynamicModule
(
"
N
Lua_generatedcode"
);
#endif
}
...
...
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