C# Class WinterSync.SpringLua

Lua utilities for reading spring archives
Afficher le fichier Open project: ZeroK-RTS/SpringRTS-Tools Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

GetModName() public static méthode

public static GetModName ( IntPtr L, string path ) : string
L System.IntPtr
path string
Résultat string

ProtectedGetModName() public static méthode

public static ProtectedGetModName ( IntPtr L, string path ) : string
L System.IntPtr
path string
Résultat string