Commit 201d8c21 authored by 神楽坂玲奈's avatar 神楽坂玲奈

NLua

parent 98a77b8b
[submodule "NLua"]
path = NLua
url = https://github.com/NLua/NLua
...@@ -7,6 +7,7 @@ using System.Text.RegularExpressions; ...@@ -7,6 +7,7 @@ using System.Text.RegularExpressions;
using WindBot.Game.AI; using WindBot.Game.AI;
using YGOSharp.Network; using YGOSharp.Network;
using YGOSharp.Network.Enums; using YGOSharp.Network.Enums;
using NLua;
namespace WindBot.Game namespace WindBot.Game
{ {
...@@ -26,6 +27,10 @@ namespace WindBot.Game ...@@ -26,6 +27,10 @@ namespace WindBot.Game
public GameBehavior(GameClient game) public GameBehavior(GameClient game)
{ {
Lua state = new Lua ();
var res = (double)state.DoString ("return 10 + 3*(5 + 2)")[0];
Console.WriteLine(res);
Game = game; Game = game;
Connection = game.Connection; Connection = game.Connection;
...@@ -950,4 +955,4 @@ namespace WindBot.Game ...@@ -950,4 +955,4 @@ namespace WindBot.Game
Connection.Send(CtosMessage.Response, reply); Connection.Send(CtosMessage.Response, reply);
} }
} }
} }
\ No newline at end of file
Subproject commit 106b34ce219592b766b7a7bbc5b23ceeb360cf2f
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