Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
windbot
Commits
201d8c21
Commit
201d8c21
authored
Mar 26, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NLua
parent
98a77b8b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
.gitmodules
.gitmodules
+3
-0
Game/GameBehavior.cs
Game/GameBehavior.cs
+6
-1
NLua
NLua
+1
-0
No files found.
.gitmodules
0 → 100644
View file @
201d8c21
[submodule "NLua"]
path = NLua
url = https://github.com/NLua/NLua
Game/GameBehavior.cs
View file @
201d8c21
...
@@ -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
NLua
@
106b34ce
Subproject commit 106b34ce219592b766b7a7bbc5b23ceeb360cf2f
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