Exemple #1
0
 public static void Initialize()
 {
     GetTop     = Helper.Magic.RegisterDelegate <LuaGetTopDelegate>(Offsets.LuaGetTop);
     SetTop     = Helper.Magic.RegisterDelegate <LuaSetTopDelegate>(Offsets.LuaSetTop);
     Type       = Helper.Magic.RegisterDelegate <LuaTypeDelegate>(Offsets.LuaType);
     ToLString  = Helper.Magic.RegisterDelegate <LuaToLStringDelegate>(Offsets.LuaToLString);
     ToBoolean  = Helper.Magic.RegisterDelegate <LuaToBooleanDelegate>(Offsets.LuaToBoolean);
     ToNumber   = Helper.Magic.RegisterDelegate <LuaToNumberDelegate>(Offsets.LuaToNumber);
     PCall      = Helper.Magic.RegisterDelegate <LuaPCallDelegate>(Offsets.LuaPCall);
     LoadBuffer = Helper.Magic.RegisterDelegate <LuaLoadBufferDelegate>(Offsets.LuaLoadBuffer);
 }
Exemple #2
0
 public static void Initialize()
 {
     GetTop = Helper.Magic.RegisterDelegate<LuaGetTopDelegate>(Offsets.LuaGetTop);
     SetTop = Helper.Magic.RegisterDelegate<LuaSetTopDelegate>(Offsets.LuaSetTop);
     Type = Helper.Magic.RegisterDelegate<LuaTypeDelegate>(Offsets.LuaType);
     ToLString = Helper.Magic.RegisterDelegate<LuaToLStringDelegate>(Offsets.LuaToLString);
     ToBoolean = Helper.Magic.RegisterDelegate<LuaToBooleanDelegate>(Offsets.LuaToBoolean);
     ToNumber = Helper.Magic.RegisterDelegate<LuaToNumberDelegate>(Offsets.LuaToNumber);
     PCall = Helper.Magic.RegisterDelegate<LuaPCallDelegate>(Offsets.LuaPCall);
     LoadBuffer = Helper.Magic.RegisterDelegate<LuaLoadBufferDelegate>(Offsets.LuaLoadBuffer);
 }
 internal LuaInterface()
 {
     GetTop = Manager.Memory.RegisterDelegate<LuaGetTopDelegate>((IntPtr) Pointers.LuaInterface.LuaGetTop);
     SetTop = Manager.Memory.RegisterDelegate<LuaSetTopDelegate>((IntPtr) Pointers.LuaInterface.LuaSetTop);
     Type = Manager.Memory.RegisterDelegate<LuaTypeDelegate>((IntPtr) Pointers.LuaInterface.LuaType);
     ToLString =
         Manager.Memory.RegisterDelegate<LuaToLStringDelegate>((IntPtr) Pointers.LuaInterface.LuaToLString);
     ToBoolean =
         Manager.Memory.RegisterDelegate<LuaToBooleanDelegate>((IntPtr) Pointers.LuaInterface.LuaToBoolean);
     ToNumber = Manager.Memory.RegisterDelegate<LuaToNumberDelegate>((IntPtr) Pointers.LuaInterface.LuaToNumber);
     PCall = Manager.Memory.RegisterDelegate<LuaPCallDelegate>((IntPtr) Pointers.LuaInterface.LuaPCall);
     LoadBuffer =
         Manager.Memory.RegisterDelegate<LuaLoadBufferDelegate>((IntPtr) Pointers.LuaInterface.LuaLoadBuffer);
 }
Exemple #4
0
 internal LuaInterface()
 {
     GetTop    = Manager.Memory.RegisterDelegate <LuaGetTopDelegate>((IntPtr)Pointers.LuaInterface.LuaGetTop);
     SetTop    = Manager.Memory.RegisterDelegate <LuaSetTopDelegate>((IntPtr)Pointers.LuaInterface.LuaSetTop);
     Type      = Manager.Memory.RegisterDelegate <LuaTypeDelegate>((IntPtr)Pointers.LuaInterface.LuaType);
     ToLString =
         Manager.Memory.RegisterDelegate <LuaToLStringDelegate>((IntPtr)Pointers.LuaInterface.LuaToLString);
     ToBoolean =
         Manager.Memory.RegisterDelegate <LuaToBooleanDelegate>((IntPtr)Pointers.LuaInterface.LuaToBoolean);
     ToNumber   = Manager.Memory.RegisterDelegate <LuaToNumberDelegate>((IntPtr)Pointers.LuaInterface.LuaToNumber);
     PCall      = Manager.Memory.RegisterDelegate <LuaPCallDelegate>((IntPtr)Pointers.LuaInterface.LuaPCall);
     LoadBuffer =
         Manager.Memory.RegisterDelegate <LuaLoadBufferDelegate>((IntPtr)Pointers.LuaInterface.LuaLoadBuffer);
 }