Ejemplo n.º 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);
 }
Ejemplo n.º 2
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);
 }
Ejemplo n.º 3
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);
 }
Ejemplo n.º 4
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);
 }