public static AbilDataCacheNodePtr GetAbilDataCacheNodeFromId(ObjectIdL id) { return(FastCall.Invoke <AbilDataCacheNodePtr>(GameAddresses.GetAbilDataCacheNodeFromId, id)); }
/// <summary> /// Gets a trigger from a trigger jass handle. /// </summary> /// <param name="destructableHandle">The trigger jass handle.</param> /// <returns>The trigger.</returns> public static CTriggerWar3Ptr GetTriggerFromHandle(IntPtr trigger) { return(FastCall.Invoke <CTriggerWar3Ptr>(GameAddresses.GetTriggerFromHandle, trigger)); }
public static String JassStringHandleToString(IntPtr jassStringHandle) { return(Memory.PtrAsString(FastCall.Invoke <IntPtr>(GameAddresses.JassStringHandleToString, jassStringHandle))); }
public static IntPtr sub_6F4786B0(Int32 *a1) { return(FastCall.Invoke <IntPtr>(GameAddresses.sub_6F4786B0, new IntPtr(a1))); }
public static void BindNative(IntPtr function, String name, String prototype) { FastCall.Invoke <IntPtr>(GameAddresses.BindNative, function, Memory.StringAsPtr(name), Memory.StringAsPtr(prototype)); }
public static void BindNative(Delegate function, String name, String prototype) { FastCall.Invoke <IntPtr>(GameAddresses.BindNative, Utility.FunctionAsPtr(function), Memory.StringAsPtr(name), Memory.StringAsPtr(prototype)); }
/// <summary> /// Gets a item from a item jass handle. /// </summary> /// <param name="itemJassHandle">The item jass handle.</param> /// <returns>The item.</returns> public static CItemPtr GetItemFromHandle(JassItem item) { return(FastCall.Invoke <CItemPtr>(GameAddresses.GetItemFromHandle, item)); }
/// <summary> /// Takes a pointer to a char* and returns a RCString reference. /// </summary> /// <param name="ansiStringPtr">The char* to convert.</param> /// <returns>The JassStringIndex</returns> public static Int32 StringToJassStringIndex(String str) { return(FastCall.Invoke <Int32>(GameAddresses.StringToJassStringIndex, Memory.StringAsPtr(str))); }
//public static CTriggerWar3Ptr GetTriggerFromHandle(IntPtr trigger) //{ // return FastCall.Invoke<CTriggerWar3Ptr>(GameAddresses.GetTriggerFromHandle, (object)trigger); //} //public static CDestructablePtr GetDestructableFromHandle(IntPtr destructable) //{ // return FastCall.Invoke<CDestructablePtr>(GameAddresses.GetDestructableFromHandle, (object)destructable); //} //public static CItemPtr GetItemFromHandle(IntPtr item) //{ // return FastCall.Invoke<CItemPtr>(GameAddresses.GetItemFromHandle, (object)item); //} public static int StringToJassStringIndex(string str) { return(FastCall.Invoke <int>(GameAddresses.StringToJassStringIndex, (object)Memory.StringAsPtr(str))); }
/// <summary> /// Gets a destructable from a destructable jass handle. /// </summary> /// <param name="destructableJassHandle">The destructable jass handle.</param> /// <returns>The destructable.</returns> public static CDestructablePtr GetDestructableFromHandle(JassDestructable destructable) { return(FastCall.Invoke <CDestructablePtr>(GameAddresses.GetDestructableFromHandle, destructable)); }
public static CUnit FromHandle(IntPtr handle) { return(FastCall.Invoke <CUnit>(GameAddresses.GetUnitFromHandle, handle)); }
public static unsafe IntPtr sub_6F08AE90(int *a1) { return(FastCall.Invoke <IntPtr>(GameAddresses.sub_6F08AE90, new IntPtr((void *)a1))); }
public static CUnitInternal *FromHandle(IntPtr handle) { return(FastCall.Invoke <CUnit>(GameAddresses.GetUnitFromHandle, handle).AsUnsafe()); }
public static CUnit FromHandle(JassUnit unit) { return(FastCall.Invoke <CUnit>(GameAddresses.GetUnitFromHandle, unit)); }
public static CUnitInternal *FromHandle(JassUnit unit) { return(FastCall.Invoke <CUnit>(GameAddresses.GetUnitFromHandle, unit).AsUnsafe()); }