C# Class WinterSync.SpringLua

Lua utilities for reading spring archives
Datei anzeigen Open project: ZeroK-RTS/SpringRTS-Tools Class Usage Examples

Public Methods

Method Description
GetLuaState ( string springPath ) : IntPtr

creates a lua state and registers the TDF parser

GetModName ( IntPtr L, string path ) : string
ProtectedGetModName ( IntPtr L, string path ) : string

Private Methods

Method Description
FindModInfo ( Archive archive, string extension ) : string
GetLuaStpringState ( IArchiveFileData>.Dictionary fileMap ) : IntPtr

creates a lua state and registers functions commonly used in lua defs

GetTdfField ( IntPtr L, string fieldName, string archivePath ) : string
GetTdfTableFromString ( IntPtr L, string fileString ) : WinterSync.LuaValue[]

Method Details

GetLuaState() public static method

creates a lua state and registers the TDF parser
public static GetLuaState ( string springPath ) : IntPtr
springPath string
return System.IntPtr

GetModName() public static method

public static GetModName ( IntPtr L, string path ) : string
L System.IntPtr
path string
return string

ProtectedGetModName() public static method

public static ProtectedGetModName ( IntPtr L, string path ) : string
L System.IntPtr
path string
return string