Beispiel #1
0
 public static AbilDataCacheNodePtr GetAbilDataCacheNodeFromId(ObjectIdL id)
 {
     return(FastCall.Invoke <AbilDataCacheNodePtr>(GameAddresses.GetAbilDataCacheNodeFromId, id));
 }
Beispiel #2
0
 /// <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));
 }
Beispiel #3
0
 public static String JassStringHandleToString(IntPtr jassStringHandle)
 {
     return(Memory.PtrAsString(FastCall.Invoke <IntPtr>(GameAddresses.JassStringHandleToString, jassStringHandle)));
 }
Beispiel #4
0
 public static IntPtr sub_6F4786B0(Int32 *a1)
 {
     return(FastCall.Invoke <IntPtr>(GameAddresses.sub_6F4786B0, new IntPtr(a1)));
 }
Beispiel #5
0
 public static void BindNative(IntPtr function, String name, String prototype)
 {
     FastCall.Invoke <IntPtr>(GameAddresses.BindNative, function, Memory.StringAsPtr(name), Memory.StringAsPtr(prototype));
 }
Beispiel #6
0
 public static void BindNative(Delegate function, String name, String prototype)
 {
     FastCall.Invoke <IntPtr>(GameAddresses.BindNative, Utility.FunctionAsPtr(function), Memory.StringAsPtr(name), Memory.StringAsPtr(prototype));
 }
Beispiel #7
0
 /// <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));
 }
Beispiel #8
0
 /// <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)));
 }
Beispiel #9
0
        //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)));
        }
Beispiel #10
0
 /// <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));
 }
Beispiel #11
0
 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)));
 }
Beispiel #13
0
 public static CUnitInternal *FromHandle(IntPtr handle)
 {
     return(FastCall.Invoke <CUnit>(GameAddresses.GetUnitFromHandle, handle).AsUnsafe());
 }
Beispiel #14
0
 public static CUnit FromHandle(JassUnit unit)
 {
     return(FastCall.Invoke <CUnit>(GameAddresses.GetUnitFromHandle, unit));
 }
Beispiel #15
0
 public static CUnitInternal *FromHandle(JassUnit unit)
 {
     return(FastCall.Invoke <CUnit>(GameAddresses.GetUnitFromHandle, unit).AsUnsafe());
 }