Commit be9f0df6 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Renamed LuaInterface -> NLua

parent 2e203153
/*
* This file is part of LuaInterface.
* This file is part of NLua.
*
* 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 LuaInterface;
using NLua;
/*
* Application to run Lua scripts that can use LuaInterface
* Application to run Lua scripts that can use NLua
* from the console
*
* Author: Fabio Mascarenhas
......
......@@ -66,9 +66,9 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Core\LuaInterface\LuaInterface.csproj">
<ProjectReference Include="..\..\Core\NLua\NLua.csproj">
<Project>{F55CABBB-4108-4A39-94E1-581FD46DC021}</Project>
<Name>LuaInterface</Name>
<Name>NLua</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
......
......@@ -9,12 +9,12 @@ ASSEMBLY = ../../Run/Debug/LuaRunner.exe
ASSEMBLY_MDB = $(ASSEMBLY).mdb
COMPILE_TARGET = exe
PROJECT_REFERENCES = \
../../Run/Debug/LuaInterface.dll
../../Run/Debug/NLua.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/LuaInterface.dll
LUAINTERFACE_DLL_SOURCE=../../Run/Debug/NLua.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/LuaInterface.dll
../../Run/Release/NLua.dll
BUILD_DIR = ../../Run/Release
LUARUNNER_EXE_MDB=
LUAINTERFACE_DLL_SOURCE=../../Run/Release/LuaInterface.dll
LUAINTERFACE_DLL_SOURCE=../../Run/Release/NLua.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/LuaInterface.dll
../../Run/Debug_x64/NLua.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/LuaInterface.dll
LUAINTERFACE_DLL_SOURCE=../../Run/Debug_x64/NLua.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/LuaInterface.dll
../../Run/Release_x64/NLua.dll
BUILD_DIR = ../../Run/Release_x64
LUARUNNER_EXE_MDB=
LUAINTERFACE_DLL_SOURCE=../../Run/Release_x64/LuaInterface.dll
LUAINTERFACE_DLL_SOURCE=../../Run/Release_x64/NLua.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)/LuaInterface.dll
LUAINTERFACE_DLL = $(BUILD_DIR)/NLua.dll
KOPILUA_DLL = $(BUILD_DIR)/KopiLua.dll
LUARUNNER = $(BUILD_DIR)/luarunner
......
/*
* This file is part of LuaInterface.
* This file is part of NLua.
*
* 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 LuaInterface.Config;
using NLua.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.LuaInterfaceDescription)]
[assembly: AssemblyConfiguration(Consts.LuaInterfaceConfiguration)]
[assembly: AssemblyCompany(Consts.LuaInterfaceCompany)]
[assembly: AssemblyProduct(Consts.LuaInterfaceProduct)]
[assembly: AssemblyCopyright(Consts.LuaInterfaceCopyright)]
[assembly: AssemblyTrademark(Consts.LuaInterfaceTrademark)]
[assembly: AssemblyDescription(Consts.NLuaDescription)]
[assembly: AssemblyConfiguration(Consts.NLuaConfiguration)]
[assembly: AssemblyCompany(Consts.NLuaCompany)]
[assembly: AssemblyProduct(Consts.NLuaProduct)]
[assembly: AssemblyCopyright(Consts.NLuaCopyright)]
[assembly: AssemblyTrademark(Consts.NLuaTrademark)]
// 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
......
LuaInterface License
NLua License
--------------------
LuaInterface is licensed under the terms of the MIT license reproduced below.
This mean that LuaInterface is free software and can be used for both academic and
NLua is licensed under the terms of the MIT license reproduced below.
This mean that NLua is free software and can be used for both academic and
commercial purposes at absolutely no cost.
===============================================================================
......
......@@ -52,9 +52,9 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Core\LuaInterface\LuaInterface.csproj">
<ProjectReference Include="..\Core\NLua\NLua.csproj">
<Project>{f55cabbb-4108-4a39-94e1-581fd46dc021}</Project>
<Name>LuaInterface</Name>
<Name>NLua</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LuaInterface;
using NLua;
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('LuaInterfaceTest.Mock.TestClass')");
lua.DoString ("TestClass=luanet.import_type('NLuaTest.Mock.TestClass')");
lua.DoString ("test=TestClass()");
try {
......
Name: LuaInterface
Description: LuaInterface
Version: 2.x
Requires:
Libs: -r:@expanded_libdir@/@PACKAGE@/LuaInterface.dll
......@@ -3,14 +3,14 @@ EXTRA_DIST =
#Warning: This is an automatically generated file, do not edit!
if ENABLE_DEBUG_X86
SUBDIRS = KopiLua LuaInterface
SUBDIRS = KopiLua NLua
endif
if ENABLE_RELEASE_X86
SUBDIRS = KopiLua LuaInterface
SUBDIRS = KopiLua NLua
endif
if ENABLE_DEBUG_X64
SUBDIRS = KopiLua LuaInterface
SUBDIRS = KopiLua NLua
endif
if ENABLE_RELEASE_X64
SUBDIRS = KopiLua LuaInterface
SUBDIRS = KopiLua NLua
endif
/*
* This file is part of LuaInterface.
* This file is part of NLua.
*
* 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 LuaInterface.Method;
using LuaInterface.Extensions;
using NLua.Method;
using NLua.Extensions;
namespace LuaInterface
namespace NLua
{
#if USE_KOPILUA
using LuaCore = KopiLua.Lua;
......
/*
* This file is part of LuaInterface.
* This file is part of NLua.
*
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
*
......@@ -23,21 +23,21 @@
*/
using System;
namespace LuaInterface.Config
namespace NLua.Config
{
public static class Consts
{
public const string LuaInterfaceDescription = "Bridge between the Lua runtime and the CLR";
public const string NLuaDescription = "Bridge between the Lua runtime and the CLR";
#if DEBUG
public const string LuaInterfaceConfiguration = "Debug";
public const string NLuaConfiguration = "Debug";
#else
public const string LuaInterfaceConfiguration = "Release";
public const string NLuaConfiguration = "Release";
#endif
public const string LuaInterfaceCompany = "LuaInterface Productions";
public const string LuaInterfaceProduct = "LuaInterface";
public const string LuaInterfaceCopyright = "Copyright 2003-2008 Fabio Mascarenhas, Kevin Hesterm and 2012 Megax";
public const string LuaInterfaceTrademark = "MIT license";
public const string LuaInterfaceVersion = "2.0.4";
public const string LuaInterfaceFileVersion = "2.0.4.0";
public const string NLuaCompany = "NLua Productions";
public const string NLuaProduct = "NLua";
public const string NLuaCopyright = "Copyright 2003-2008 Fabio Mascarenhas, Kevin Hesterm and 2012 Megax";
public const string NLuaTrademark = "MIT license";
public const string NLuaVersion = "2.0.4";
public const string NLuaFileVersion = "2.0.4.0";
}
}
\ No newline at end of file
/*
* This file is part of LuaInterface.
* This file is part of NLua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
......@@ -24,7 +24,7 @@
*/
using System;
namespace LuaInterface.Event
namespace NLua.Event
{
#if USE_KOPILUA
using LuaCore = KopiLua.Lua;
......
/*
* This file is part of LuaInterface.
* This file is part of NLua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
......@@ -24,7 +24,7 @@
*/
using System;
namespace LuaInterface.Event
namespace NLua.Event
{
/// <summary>
/// Event codes for lua hook function
......
/*
* This file is part of LuaInterface.
* This file is part of NLua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
......@@ -24,7 +24,7 @@
*/
using System;
namespace LuaInterface.Event
namespace NLua.Event
{
/// <summary>
/// Event masks for lua hook callback
......
/*
* This file is part of LuaInterface.
* This file is part of NLua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
......@@ -24,7 +24,7 @@
*/
using System;
namespace LuaInterface.Event
namespace NLua.Event
{
public class HookExceptionEventArgs : EventArgs
{
......
/*
* This file is part of LuaInterface.
* This file is part of NLua.
*
* 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 LuaInterface.Exceptions
namespace NLua.Exceptions
{
/// <summary>
/// Exceptions thrown by the Lua runtime
......
/*
* This file is part of LuaInterface.
* This file is part of NLua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
......@@ -24,7 +24,7 @@
*/
using System;
namespace LuaInterface.Exceptions
namespace NLua.Exceptions
{
/// <summary>
/// Exceptions thrown by the Lua runtime because of errors in the script
......
/*
* This file is part of LuaInterface.
* This file is part of NLua.
*
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
*
......@@ -23,7 +23,7 @@
*/
using System;
namespace LuaInterface.Extensions
namespace NLua.Extensions
{
/// <summary>
/// Some random extension stuff.
......
/*
* This file is part of LuaInterface.
* This file is part of NLua.
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
......@@ -24,7 +24,7 @@
*/
using System;
namespace LuaInterface
namespace NLua
{
#if USE_KOPILUA
using LuaCore = KopiLua.Lua;
......
/*
* This file is part of LuaInterface.
* This file is part of NLua.
*
* 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 LuaInterface.Method;
using NLua.Method;
namespace LuaInterface
namespace NLua
{
/*
* Dynamically generates new types from existing types and
......@@ -70,11 +70,11 @@ namespace LuaInterface
// Create an assembly name
assemblyName = new AssemblyName ();
assemblyName.Name = "LuaInterface_generatedcode";
assemblyName.Name = "NLua_generatedcode";
// Create a new assembly with one module.
#if !MONOTOUCH
newAssembly = Thread.GetDomain ().DefineDynamicAssembly (assemblyName, AssemblyBuilderAccess.Run);
newModule = newAssembly.DefineDynamicModule ("LuaInterface_generatedcode");
newModule = newAssembly.DefineDynamicModule ("NLua_generatedcode");
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment