-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
36 lines (31 loc) · 1.13 KB
/
Copy pathProgram.cs
File metadata and controls
36 lines (31 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Diagnostics;
namespace ExportLuaBytes
{
class Program
{
static void Main(string[] args)
{
Stopwatch sw = new Stopwatch();
sw.Start();
if (args.Length <= 1)
Console.WriteLine("Error, No arguments, please input any platform of Windows, Android or IOS, and project path");
else
{
bool bEnableOutputInfoTxt = false;
if (args.Length >= 3)
bool.TryParse(args[2], out bEnableOutputInfoTxt);
var exp = new ExportLua();
exp.ExportAll(args[0], args[1], bEnableOutputInfoTxt);
}
sw.Stop();
Console.WriteLine("Export Lua complete! Cost Time: " + sw.ElapsedMilliseconds / 1000.0f + "s");
}
static void Test()
{
var exp = new ExportLua();
string strValue = "GameScripts/alias,0,982\nGameScripts/CSCallLua,982,914\nGameScripts/GameSocketType,1896,379";
exp.TestString2Binary(strValue);
}
}
}