From d9b09944381a274575619e1ad808c895f8a61883 Mon Sep 17 00:00:00 2001 From: jhett12321 <10942655+jhett12321@users.noreply.github.com> Date: Sun, 10 Dec 2023 00:43:01 +0000 Subject: [PATCH] Update APIs (NWNX: 0e77a56d, NWN: 8193.36-7). --- src/main/API/CERFFile.cs | 5 +- .../API/CExoArrayListCLastUpdateObjectPtr.cs | 375 +++++++++++++++ .../CExoArrayListCLastUpdatePartyObjectPtr.cs | 375 +++++++++++++++ src/main/API/CExoResMan.cs | 5 +- src/main/API/CNWSArea.cs | 6 +- src/main/API/CNWSModule.cs | 8 +- src/main/API/CNWSObject.cs | 13 +- src/main/API/CNWSPlayer.cs | 12 +- src/main/API/CVirtualMachine.cs | 25 +- .../API/CVirtualMachineDebuggerInstance.cs | 137 +++++- .../API/CVirtualMachineDebuggingContext.cs | 4 +- src/main/API/CVirtualMachineScript.cs | 16 +- src/main/API/DataBlock.cs | 16 +- src/main/API/DataView.cs | 56 ++- src/main/API/Database.cs | 22 +- src/main/API/Definition.cs | 8 +- src/main/API/NWNXLibPINVOKE.cs | 304 +++++++++++- src/main/API/NWSVMachineUtils.cs | 13 +- ..._p_CExoArrayListT_CLastUpdateObject_p_t.cs | 75 --- ...xoArrayListT_CLastUpdatePartyObject_p_t.cs | 75 --- ..._ptrT_CVirtualMachineDebuggerInstance_t.cs | 75 --- ...SWIGTYPE_p_std__shared_ptrT_DataBlock_t.cs | 75 --- ...E_p_std__shared_ptrT_DataView__Shared_t.cs | 75 --- .../SWIGTYPE_p_std__shared_ptrT_DataView_t.cs | 75 --- ...p_std__shared_ptrT_NWSQLite__Database_t.cs | 75 --- ...rdered_mapT_int_CNWSAreaGrassOverride_t.cs | 75 --- ..._Migrations__Definition__MigrationDef_t.cs | 75 --- .../UnorderedMapInt32CNWSAreaGrassOverride.cs | 436 ++++++++++++++++++ .../UnorderedMapUInt64CachedRulesetEntry.cs | 436 ++++++++++++++++++ ...WSQLiteMigrationsDefinitionMigrationDef.cs | 372 +++++++++++++++ 30 files changed, 2553 insertions(+), 766 deletions(-) create mode 100644 src/main/API/CExoArrayListCLastUpdateObjectPtr.cs create mode 100644 src/main/API/CExoArrayListCLastUpdatePartyObjectPtr.cs delete mode 100644 src/main/API/SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t.cs delete mode 100644 src/main/API/SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t.cs delete mode 100644 src/main/API/SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t.cs delete mode 100644 src/main/API/SWIGTYPE_p_std__shared_ptrT_DataBlock_t.cs delete mode 100644 src/main/API/SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t.cs delete mode 100644 src/main/API/SWIGTYPE_p_std__shared_ptrT_DataView_t.cs delete mode 100644 src/main/API/SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t.cs delete mode 100644 src/main/API/SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t.cs delete mode 100644 src/main/API/SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t.cs create mode 100644 src/main/API/UnorderedMapInt32CNWSAreaGrassOverride.cs create mode 100644 src/main/API/UnorderedMapUInt64CachedRulesetEntry.cs create mode 100644 src/main/API/VectorNWSQLiteMigrationsDefinitionMigrationDef.cs diff --git a/src/main/API/CERFFile.cs b/src/main/API/CERFFile.cs index 8b255b4..5782d76 100644 --- a/src/main/API/CERFFile.cs +++ b/src/main/API/CERFFile.cs @@ -285,9 +285,8 @@ public int WriteResource(byte* szResName, ushort rtResType, CRes pRes) { return retVal; } - public int WriteResource(byte* szResName, ushort rtResType, SWIGTYPE_p_std__shared_ptrT_DataView_t pData) { - int retVal = NWNXLibPINVOKE.CERFFile_WriteResource__SWIG_2(swigCPtr, szResName, rtResType, SWIGTYPE_p_std__shared_ptrT_DataView_t.getCPtr(pData)); - if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + public int WriteResource(byte* szResName, ushort rtResType, DataView pData) { + int retVal = NWNXLibPINVOKE.CERFFile_WriteResource__SWIG_2(swigCPtr, szResName, rtResType, DataView.getCPtr(pData)); return retVal; } diff --git a/src/main/API/CExoArrayListCLastUpdateObjectPtr.cs b/src/main/API/CExoArrayListCLastUpdateObjectPtr.cs new file mode 100644 index 0000000..9fc44d3 --- /dev/null +++ b/src/main/API/CExoArrayListCLastUpdateObjectPtr.cs @@ -0,0 +1,375 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 4.0.2 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace NWN.Native.API { + +public unsafe class CExoArrayListCLastUpdateObjectPtr : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IList + { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal CExoArrayListCLastUpdateObjectPtr(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CExoArrayListCLastUpdateObjectPtr obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~CExoArrayListCLastUpdateObjectPtr() { + Dispose(false); + } + + public void Dispose() { + Dispose(true); + global::System.GC.SuppressFinalize(this); + } + + protected virtual void Dispose(bool disposing) { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NWNXLibPINVOKE.delete_CExoArrayListCLastUpdateObjectPtr(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + } + } + + public global::System.IntPtr Pointer { + get { + return swigCPtr.Handle; + } + } + + public static unsafe implicit operator void*(CExoArrayListCLastUpdateObjectPtr self) { + return (void*)self.swigCPtr.Handle; + } + + public static unsafe CExoArrayListCLastUpdateObjectPtr FromPointer(void* pointer, bool memoryOwn = false) { + return pointer != null ? new CExoArrayListCLastUpdateObjectPtr((global::System.IntPtr)pointer, memoryOwn) : null; + } + + public static CExoArrayListCLastUpdateObjectPtr FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { + return pointer != global::System.IntPtr.Zero ? new CExoArrayListCLastUpdateObjectPtr(pointer, memoryOwn) : null; + } + + public bool Equals(CExoArrayListCLastUpdateObjectPtr other) { + if (ReferenceEquals(null, other)) { + return false; + } + + if (ReferenceEquals(this, other)) { + return true; + } + + return Pointer.Equals(other.Pointer); + } + + public override bool Equals(object obj) { + return ReferenceEquals(this, obj) || obj is CExoArrayListCLastUpdateObjectPtr other && Equals(other); + } + + public override int GetHashCode() { + return swigCPtr.Handle.GetHashCode(); + } + + public static bool operator ==(CExoArrayListCLastUpdateObjectPtr left, CExoArrayListCLastUpdateObjectPtr right) { + return Equals(left, right); + } + + public static bool operator !=(CExoArrayListCLastUpdateObjectPtr left, CExoArrayListCLastUpdateObjectPtr right) { + return !Equals(left, right); + } + + public CExoArrayListCLastUpdateObjectPtr(global::System.Collections.IEnumerable c) : this() { + if (c == null) + throw new global::System.ArgumentNullException("c"); + foreach (CLastUpdateObject element in c) { + this.Add(element); + } + } + + public CExoArrayListCLastUpdateObjectPtr(global::System.Collections.Generic.IEnumerable c) : this() { + if (c == null) + throw new global::System.ArgumentNullException("c"); + foreach (CLastUpdateObject element in c) { + this.Add(element); + } + } + + public bool IsFixedSize { + get { + return false; + } + } + + public bool IsReadOnly { + get { + return false; + } + } + + public CLastUpdateObject this[int index] { + get { + return InternalGetItem(index); + } + set { + InternalSetItem(index, value); + } + } + + public int Capacity { + get { + return (int)array_size; + } + set { + if (value < num) + throw new global::System.ArgumentOutOfRangeException("Capacity"); + SetSize(value); + } + } + + public int Count { + get { + return (int)num; + } + } + + public bool IsSynchronized { + get { + return false; + } + } + + public void CopyTo(CLastUpdateObject[] array) + { + CopyTo(0, array, 0, this.Count); + } + + public void CopyTo(CLastUpdateObject[] array, int arrayIndex) + { + CopyTo(0, array, arrayIndex, this.Count); + } + + public void Clear() + { + SetSize(0); + } + + public void CopyTo(int index, CLastUpdateObject[] array, int arrayIndex, int count) + { + if (array == null) + throw new global::System.ArgumentNullException("array"); + if (index < 0) + throw new global::System.ArgumentOutOfRangeException("index", "Value is less than zero"); + if (arrayIndex < 0) + throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero"); + if (count < 0) + throw new global::System.ArgumentOutOfRangeException("count", "Value is less than zero"); + if (array.Rank > 1) + throw new global::System.ArgumentException("Multi dimensional array.", "array"); + if (index+count > this.Count || arrayIndex+count > array.Length) + throw new global::System.ArgumentException("Number of elements to copy is too large."); + for (int i=0; i global::System.Collections.Generic.IEnumerable.GetEnumerator() { + return new CExoArrayListCLastUpdateObjectPtrEnumerator(this); + } + + global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { + return new CExoArrayListCLastUpdateObjectPtrEnumerator(this); + } + + public CExoArrayListCLastUpdateObjectPtrEnumerator GetEnumerator() { + return new CExoArrayListCLastUpdateObjectPtrEnumerator(this); + } + + // Type-safe enumerator + /// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown + /// whenever the collection is modified. This has been done for changes in the size of the + /// collection but not when one of the elements of the collection is modified as it is a bit + /// tricky to detect unmanaged code that modifies the collection under our feet. + public sealed class CExoArrayListCLastUpdateObjectPtrEnumerator : global::System.Collections.IEnumerator + , global::System.Collections.Generic.IEnumerator + { + private CExoArrayListCLastUpdateObjectPtr collectionRef; + private int currentIndex; + private object currentObject; + private int currentSize; + + public CExoArrayListCLastUpdateObjectPtrEnumerator(CExoArrayListCLastUpdateObjectPtr collection) { + collectionRef = collection; + currentIndex = -1; + currentObject = null; + currentSize = collectionRef.Count; + } + + // Type-safe iterator Current + public CLastUpdateObject Current { + get { + if (currentIndex == -1) + throw new global::System.InvalidOperationException("Enumeration not started."); + if (currentIndex > currentSize - 1) + throw new global::System.InvalidOperationException("Enumeration finished."); + if (currentObject == null) + throw new global::System.InvalidOperationException("Collection modified."); + return (CLastUpdateObject)currentObject; + } + } + + // Type-unsafe IEnumerator.Current + object global::System.Collections.IEnumerator.Current { + get { + return Current; + } + } + + public bool MoveNext() { + int size = collectionRef.Count; + bool moveOkay = (currentIndex+1 < size) && (size == currentSize); + if (moveOkay) { + currentIndex++; + currentObject = collectionRef[currentIndex]; + } else { + currentObject = null; + } + return moveOkay; + } + + public void Reset() { + currentIndex = -1; + currentObject = null; + if (collectionRef.Count != currentSize) { + throw new global::System.InvalidOperationException("Collection modified."); + } + } + + public void Dispose() { + currentIndex = -1; + currentObject = null; + } + } + + private int num { + set { + NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_num_set(swigCPtr, value); + } + get { + int retVal = NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_num_get(swigCPtr); + return retVal; + } + + } + + private int array_size { + set { + NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_array_size_set(swigCPtr, value); + } + get { + int retVal = NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_array_size_get(swigCPtr); + return retVal; + } + + } + + public void Add(CLastUpdateObject t) { + NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_Add(swigCPtr, CLastUpdateObject.getCPtr(t)); + } + + public void Pack() { + NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_Pack(swigCPtr); + } + + private void Allocate(int s) { + NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_Allocate(swigCPtr, s); + } + + public void SetSize(int s) { + NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_SetSize(swigCPtr, s); + } + + public CExoArrayListCLastUpdateObjectPtr(int s) : this(NWNXLibPINVOKE.new_CExoArrayListCLastUpdateObjectPtr__SWIG_0(s), true) { + } + + public CExoArrayListCLastUpdateObjectPtr() : this(NWNXLibPINVOKE.new_CExoArrayListCLastUpdateObjectPtr__SWIG_1(), true) { + } + + public CExoArrayListCLastUpdateObjectPtr(CExoArrayListCLastUpdateObjectPtr list) : this(NWNXLibPINVOKE.new_CExoArrayListCLastUpdateObjectPtr__SWIG_2(CExoArrayListCLastUpdateObjectPtr.getCPtr(list)), true) { + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public void RemoveAt(int index) { + NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_RemoveAt(swigCPtr, index); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public int IndexOf(CLastUpdateObject t) { + int retVal = NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_IndexOf(swigCPtr, CLastUpdateObject.getCPtr(t)); + return retVal; + } + + public int AddUnique(CLastUpdateObject t) { + int retVal = NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_AddUnique(swigCPtr, CLastUpdateObject.getCPtr(t)); + return retVal; + } + + private CLastUpdateObject InternalGetItem(int index) { + global::System.IntPtr cPtr = NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_InternalGetItem(swigCPtr, index); + CLastUpdateObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new CLastUpdateObject(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private CLastUpdateObject InternalGetItemCopy(int index) { + global::System.IntPtr cPtr = NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_InternalGetItemCopy(swigCPtr, index); + CLastUpdateObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new CLastUpdateObject(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private void InternalSetItem(int index, CLastUpdateObject val) { + NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_InternalSetItem(swigCPtr, index, CLastUpdateObject.getCPtr(val)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public void Insert(int index, CLastUpdateObject x) { + NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_Insert(swigCPtr, index, CLastUpdateObject.getCPtr(x)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public bool Contains(CLastUpdateObject value) { + bool ret = NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_Contains(swigCPtr, CLastUpdateObject.getCPtr(value)); + return ret; + } + + public int LastIndexOf(CLastUpdateObject value) { + int retVal = NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_LastIndexOf(swigCPtr, CLastUpdateObject.getCPtr(value)); + return retVal; + } + + public bool Remove(CLastUpdateObject value) { + bool ret = NWNXLibPINVOKE.CExoArrayListCLastUpdateObjectPtr_Remove(swigCPtr, CLastUpdateObject.getCPtr(value)); + return ret; + } + +} + +} diff --git a/src/main/API/CExoArrayListCLastUpdatePartyObjectPtr.cs b/src/main/API/CExoArrayListCLastUpdatePartyObjectPtr.cs new file mode 100644 index 0000000..0e4db14 --- /dev/null +++ b/src/main/API/CExoArrayListCLastUpdatePartyObjectPtr.cs @@ -0,0 +1,375 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 4.0.2 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace NWN.Native.API { + +public unsafe class CExoArrayListCLastUpdatePartyObjectPtr : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IList + { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal CExoArrayListCLastUpdatePartyObjectPtr(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CExoArrayListCLastUpdatePartyObjectPtr obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~CExoArrayListCLastUpdatePartyObjectPtr() { + Dispose(false); + } + + public void Dispose() { + Dispose(true); + global::System.GC.SuppressFinalize(this); + } + + protected virtual void Dispose(bool disposing) { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NWNXLibPINVOKE.delete_CExoArrayListCLastUpdatePartyObjectPtr(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + } + } + + public global::System.IntPtr Pointer { + get { + return swigCPtr.Handle; + } + } + + public static unsafe implicit operator void*(CExoArrayListCLastUpdatePartyObjectPtr self) { + return (void*)self.swigCPtr.Handle; + } + + public static unsafe CExoArrayListCLastUpdatePartyObjectPtr FromPointer(void* pointer, bool memoryOwn = false) { + return pointer != null ? new CExoArrayListCLastUpdatePartyObjectPtr((global::System.IntPtr)pointer, memoryOwn) : null; + } + + public static CExoArrayListCLastUpdatePartyObjectPtr FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { + return pointer != global::System.IntPtr.Zero ? new CExoArrayListCLastUpdatePartyObjectPtr(pointer, memoryOwn) : null; + } + + public bool Equals(CExoArrayListCLastUpdatePartyObjectPtr other) { + if (ReferenceEquals(null, other)) { + return false; + } + + if (ReferenceEquals(this, other)) { + return true; + } + + return Pointer.Equals(other.Pointer); + } + + public override bool Equals(object obj) { + return ReferenceEquals(this, obj) || obj is CExoArrayListCLastUpdatePartyObjectPtr other && Equals(other); + } + + public override int GetHashCode() { + return swigCPtr.Handle.GetHashCode(); + } + + public static bool operator ==(CExoArrayListCLastUpdatePartyObjectPtr left, CExoArrayListCLastUpdatePartyObjectPtr right) { + return Equals(left, right); + } + + public static bool operator !=(CExoArrayListCLastUpdatePartyObjectPtr left, CExoArrayListCLastUpdatePartyObjectPtr right) { + return !Equals(left, right); + } + + public CExoArrayListCLastUpdatePartyObjectPtr(global::System.Collections.IEnumerable c) : this() { + if (c == null) + throw new global::System.ArgumentNullException("c"); + foreach (CLastUpdatePartyObject element in c) { + this.Add(element); + } + } + + public CExoArrayListCLastUpdatePartyObjectPtr(global::System.Collections.Generic.IEnumerable c) : this() { + if (c == null) + throw new global::System.ArgumentNullException("c"); + foreach (CLastUpdatePartyObject element in c) { + this.Add(element); + } + } + + public bool IsFixedSize { + get { + return false; + } + } + + public bool IsReadOnly { + get { + return false; + } + } + + public CLastUpdatePartyObject this[int index] { + get { + return InternalGetItem(index); + } + set { + InternalSetItem(index, value); + } + } + + public int Capacity { + get { + return (int)array_size; + } + set { + if (value < num) + throw new global::System.ArgumentOutOfRangeException("Capacity"); + SetSize(value); + } + } + + public int Count { + get { + return (int)num; + } + } + + public bool IsSynchronized { + get { + return false; + } + } + + public void CopyTo(CLastUpdatePartyObject[] array) + { + CopyTo(0, array, 0, this.Count); + } + + public void CopyTo(CLastUpdatePartyObject[] array, int arrayIndex) + { + CopyTo(0, array, arrayIndex, this.Count); + } + + public void Clear() + { + SetSize(0); + } + + public void CopyTo(int index, CLastUpdatePartyObject[] array, int arrayIndex, int count) + { + if (array == null) + throw new global::System.ArgumentNullException("array"); + if (index < 0) + throw new global::System.ArgumentOutOfRangeException("index", "Value is less than zero"); + if (arrayIndex < 0) + throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero"); + if (count < 0) + throw new global::System.ArgumentOutOfRangeException("count", "Value is less than zero"); + if (array.Rank > 1) + throw new global::System.ArgumentException("Multi dimensional array.", "array"); + if (index+count > this.Count || arrayIndex+count > array.Length) + throw new global::System.ArgumentException("Number of elements to copy is too large."); + for (int i=0; i global::System.Collections.Generic.IEnumerable.GetEnumerator() { + return new CExoArrayListCLastUpdatePartyObjectPtrEnumerator(this); + } + + global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { + return new CExoArrayListCLastUpdatePartyObjectPtrEnumerator(this); + } + + public CExoArrayListCLastUpdatePartyObjectPtrEnumerator GetEnumerator() { + return new CExoArrayListCLastUpdatePartyObjectPtrEnumerator(this); + } + + // Type-safe enumerator + /// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown + /// whenever the collection is modified. This has been done for changes in the size of the + /// collection but not when one of the elements of the collection is modified as it is a bit + /// tricky to detect unmanaged code that modifies the collection under our feet. + public sealed class CExoArrayListCLastUpdatePartyObjectPtrEnumerator : global::System.Collections.IEnumerator + , global::System.Collections.Generic.IEnumerator + { + private CExoArrayListCLastUpdatePartyObjectPtr collectionRef; + private int currentIndex; + private object currentObject; + private int currentSize; + + public CExoArrayListCLastUpdatePartyObjectPtrEnumerator(CExoArrayListCLastUpdatePartyObjectPtr collection) { + collectionRef = collection; + currentIndex = -1; + currentObject = null; + currentSize = collectionRef.Count; + } + + // Type-safe iterator Current + public CLastUpdatePartyObject Current { + get { + if (currentIndex == -1) + throw new global::System.InvalidOperationException("Enumeration not started."); + if (currentIndex > currentSize - 1) + throw new global::System.InvalidOperationException("Enumeration finished."); + if (currentObject == null) + throw new global::System.InvalidOperationException("Collection modified."); + return (CLastUpdatePartyObject)currentObject; + } + } + + // Type-unsafe IEnumerator.Current + object global::System.Collections.IEnumerator.Current { + get { + return Current; + } + } + + public bool MoveNext() { + int size = collectionRef.Count; + bool moveOkay = (currentIndex+1 < size) && (size == currentSize); + if (moveOkay) { + currentIndex++; + currentObject = collectionRef[currentIndex]; + } else { + currentObject = null; + } + return moveOkay; + } + + public void Reset() { + currentIndex = -1; + currentObject = null; + if (collectionRef.Count != currentSize) { + throw new global::System.InvalidOperationException("Collection modified."); + } + } + + public void Dispose() { + currentIndex = -1; + currentObject = null; + } + } + + private int num { + set { + NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_num_set(swigCPtr, value); + } + get { + int retVal = NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_num_get(swigCPtr); + return retVal; + } + + } + + private int array_size { + set { + NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_array_size_set(swigCPtr, value); + } + get { + int retVal = NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_array_size_get(swigCPtr); + return retVal; + } + + } + + public void Add(CLastUpdatePartyObject t) { + NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_Add(swigCPtr, CLastUpdatePartyObject.getCPtr(t)); + } + + public void Pack() { + NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_Pack(swigCPtr); + } + + private void Allocate(int s) { + NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_Allocate(swigCPtr, s); + } + + public void SetSize(int s) { + NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_SetSize(swigCPtr, s); + } + + public CExoArrayListCLastUpdatePartyObjectPtr(int s) : this(NWNXLibPINVOKE.new_CExoArrayListCLastUpdatePartyObjectPtr__SWIG_0(s), true) { + } + + public CExoArrayListCLastUpdatePartyObjectPtr() : this(NWNXLibPINVOKE.new_CExoArrayListCLastUpdatePartyObjectPtr__SWIG_1(), true) { + } + + public CExoArrayListCLastUpdatePartyObjectPtr(CExoArrayListCLastUpdatePartyObjectPtr list) : this(NWNXLibPINVOKE.new_CExoArrayListCLastUpdatePartyObjectPtr__SWIG_2(CExoArrayListCLastUpdatePartyObjectPtr.getCPtr(list)), true) { + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public void RemoveAt(int index) { + NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_RemoveAt(swigCPtr, index); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public int IndexOf(CLastUpdatePartyObject t) { + int retVal = NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_IndexOf(swigCPtr, CLastUpdatePartyObject.getCPtr(t)); + return retVal; + } + + public int AddUnique(CLastUpdatePartyObject t) { + int retVal = NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_AddUnique(swigCPtr, CLastUpdatePartyObject.getCPtr(t)); + return retVal; + } + + private CLastUpdatePartyObject InternalGetItem(int index) { + global::System.IntPtr cPtr = NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_InternalGetItem(swigCPtr, index); + CLastUpdatePartyObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new CLastUpdatePartyObject(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private CLastUpdatePartyObject InternalGetItemCopy(int index) { + global::System.IntPtr cPtr = NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_InternalGetItemCopy(swigCPtr, index); + CLastUpdatePartyObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new CLastUpdatePartyObject(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private void InternalSetItem(int index, CLastUpdatePartyObject val) { + NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_InternalSetItem(swigCPtr, index, CLastUpdatePartyObject.getCPtr(val)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public void Insert(int index, CLastUpdatePartyObject x) { + NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_Insert(swigCPtr, index, CLastUpdatePartyObject.getCPtr(x)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public bool Contains(CLastUpdatePartyObject value) { + bool ret = NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_Contains(swigCPtr, CLastUpdatePartyObject.getCPtr(value)); + return ret; + } + + public int LastIndexOf(CLastUpdatePartyObject value) { + int retVal = NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_LastIndexOf(swigCPtr, CLastUpdatePartyObject.getCPtr(value)); + return retVal; + } + + public bool Remove(CLastUpdatePartyObject value) { + bool ret = NWNXLibPINVOKE.CExoArrayListCLastUpdatePartyObjectPtr_Remove(swigCPtr, CLastUpdatePartyObject.getCPtr(value)); + return ret; + } + +} + +} diff --git a/src/main/API/CExoResMan.cs b/src/main/API/CExoResMan.cs index 9a32dec..72f3610 100644 --- a/src/main/API/CExoResMan.cs +++ b/src/main/API/CExoResMan.cs @@ -332,8 +332,9 @@ public int Exists(CResRef cResRef, ushort nType) { return retVal; } - public SWIGTYPE_p_std__shared_ptrT_DataBlock_t Get(CResRef cResRef, ushort nType) { - SWIGTYPE_p_std__shared_ptrT_DataBlock_t ret = new SWIGTYPE_p_std__shared_ptrT_DataBlock_t(NWNXLibPINVOKE.CExoResMan_Get(swigCPtr, CResRef.getCPtr(cResRef), nType), true); + public DataBlock Get(CResRef cResRef, ushort nType) { + global::System.IntPtr cPtr = NWNXLibPINVOKE.CExoResMan_Get(swigCPtr, CResRef.getCPtr(cResRef), nType); + DataBlock ret = (cPtr == global::System.IntPtr.Zero) ? null : new DataBlock(cPtr, true); if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/src/main/API/CNWSArea.cs b/src/main/API/CNWSArea.cs index 239651b..25b698b 100644 --- a/src/main/API/CNWSArea.cs +++ b/src/main/API/CNWSArea.cs @@ -746,13 +746,13 @@ public int m_bDefaultGrassDisabled { } - public SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t m_areaGrassOverrides { + public UnorderedMapInt32CNWSAreaGrassOverride m_areaGrassOverrides { set { - NWNXLibPINVOKE.CNWSArea_m_areaGrassOverrides_set(swigCPtr, SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t.getCPtr(value)); + NWNXLibPINVOKE.CNWSArea_m_areaGrassOverrides_set(swigCPtr, UnorderedMapInt32CNWSAreaGrassOverride.getCPtr(value)); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CNWSArea_m_areaGrassOverrides_get(swigCPtr); - SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t(cPtr, false); + UnorderedMapInt32CNWSAreaGrassOverride ret = (cPtr == global::System.IntPtr.Zero) ? null : new UnorderedMapInt32CNWSAreaGrassOverride(cPtr, false); return ret; } } diff --git a/src/main/API/CNWSModule.cs b/src/main/API/CNWSModule.cs index 83b8567..1e92600 100644 --- a/src/main/API/CNWSModule.cs +++ b/src/main/API/CNWSModule.cs @@ -1097,13 +1097,15 @@ public int m_nLastRunScriptEffectScriptType { } - public SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t m_sqlite3 { + public Database m_sqlite3 { set { - NWNXLibPINVOKE.CNWSModule_m_sqlite3_set(swigCPtr, SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t.getCPtr(value)); + NWNXLibPINVOKE.CNWSModule_m_sqlite3_set(swigCPtr, Database.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CNWSModule_m_sqlite3_get(swigCPtr); - SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t(cPtr, false); + Database ret = (cPtr == global::System.IntPtr.Zero) ? null : new Database(cPtr, true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } diff --git a/src/main/API/CNWSObject.cs b/src/main/API/CNWSObject.cs index 5180763..cf5637e 100644 --- a/src/main/API/CNWSObject.cs +++ b/src/main/API/CNWSObject.cs @@ -1129,13 +1129,15 @@ public CNWSTransition m_pTransition { } } - public SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t m_sqlite_db { + public Database m_sqlite_db { set { - NWNXLibPINVOKE.CNWSObject_m_sqlite_db_set(swigCPtr, SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t.getCPtr(value)); + NWNXLibPINVOKE.CNWSObject_m_sqlite_db_set(swigCPtr, Database.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CNWSObject_m_sqlite_db_get(swigCPtr); - SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t(cPtr, false); + Database ret = (cPtr == global::System.IntPtr.Zero) ? null : new Database(cPtr, true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -2160,8 +2162,9 @@ public void ReportOverflow(int nOverflowFeedbackType, int nTotal, int nError) { NWNXLibPINVOKE.CNWSObject_ReportOverflow__SWIG_1(swigCPtr, nOverflowFeedbackType, nTotal, nError); } - public SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t GetObjectSqlDatabase() { - SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t ret = new SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t(NWNXLibPINVOKE.CNWSObject_GetObjectSqlDatabase(swigCPtr), true); + public Database GetObjectSqlDatabase() { + global::System.IntPtr cPtr = NWNXLibPINVOKE.CNWSObject_GetObjectSqlDatabase(swigCPtr); + Database ret = (cPtr == global::System.IntPtr.Zero) ? null : new Database(cPtr, true); return ret; } diff --git a/src/main/API/CNWSPlayer.cs b/src/main/API/CNWSPlayer.cs index 979a612..3875223 100644 --- a/src/main/API/CNWSPlayer.cs +++ b/src/main/API/CNWSPlayer.cs @@ -362,24 +362,24 @@ public NuiState() : this(NWNXLibPINVOKE.new_CNWSPlayer_NuiState(), true) { } - public SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t m_lstActiveObjectsLastUpdate { + public CExoArrayListCLastUpdateObjectPtr m_lstActiveObjectsLastUpdate { set { - NWNXLibPINVOKE.CNWSPlayer_m_lstActiveObjectsLastUpdate_set(swigCPtr, SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t.getCPtr(value)); + NWNXLibPINVOKE.CNWSPlayer_m_lstActiveObjectsLastUpdate_set(swigCPtr, CExoArrayListCLastUpdateObjectPtr.getCPtr(value)); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CNWSPlayer_m_lstActiveObjectsLastUpdate_get(swigCPtr); - SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t(cPtr, false); + CExoArrayListCLastUpdateObjectPtr ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoArrayListCLastUpdateObjectPtr(cPtr, false); return ret; } } - public SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t m_lstActivePartyObjectsLastUpdate { + public CExoArrayListCLastUpdatePartyObjectPtr m_lstActivePartyObjectsLastUpdate { set { - NWNXLibPINVOKE.CNWSPlayer_m_lstActivePartyObjectsLastUpdate_set(swigCPtr, SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t.getCPtr(value)); + NWNXLibPINVOKE.CNWSPlayer_m_lstActivePartyObjectsLastUpdate_set(swigCPtr, CExoArrayListCLastUpdatePartyObjectPtr.getCPtr(value)); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CNWSPlayer_m_lstActivePartyObjectsLastUpdate_get(swigCPtr); - SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t(cPtr, false); + CExoArrayListCLastUpdatePartyObjectPtr ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoArrayListCLastUpdatePartyObjectPtr(cPtr, false); return ret; } } diff --git a/src/main/API/CVirtualMachine.cs b/src/main/API/CVirtualMachine.cs index dd1ff9c..34e3646 100644 --- a/src/main/API/CVirtualMachine.cs +++ b/src/main/API/CVirtualMachine.cs @@ -571,15 +571,13 @@ public void DeleteScriptSituation(void* pScript) { NWNXLibPINVOKE.CVirtualMachine_DeleteScriptSituation(swigCPtr, (global::System.IntPtr)pScript); } - public int ExecuteCode(int* pInstructionPointer, SWIGTYPE_p_std__shared_ptrT_DataBlock_t pCode, CVirtualMachineDebuggingContext pDebugContext) { - int retVal = NWNXLibPINVOKE.CVirtualMachine_ExecuteCode__SWIG_0(swigCPtr, pInstructionPointer, SWIGTYPE_p_std__shared_ptrT_DataBlock_t.getCPtr(pCode), CVirtualMachineDebuggingContext.getCPtr(pDebugContext)); - if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + public int ExecuteCode(int* pInstructionPointer, DataBlock pCode, CVirtualMachineDebuggingContext pDebugContext) { + int retVal = NWNXLibPINVOKE.CVirtualMachine_ExecuteCode__SWIG_0(swigCPtr, pInstructionPointer, DataBlock.getCPtr(pCode), CVirtualMachineDebuggingContext.getCPtr(pDebugContext)); return retVal; } - public int ExecuteCode(int* pInstructionPointer, SWIGTYPE_p_std__shared_ptrT_DataBlock_t pCode) { - int retVal = NWNXLibPINVOKE.CVirtualMachine_ExecuteCode__SWIG_1(swigCPtr, pInstructionPointer, SWIGTYPE_p_std__shared_ptrT_DataBlock_t.getCPtr(pCode)); - if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + public int ExecuteCode(int* pInstructionPointer, DataBlock pCode) { + int retVal = NWNXLibPINVOKE.CVirtualMachine_ExecuteCode__SWIG_1(swigCPtr, pInstructionPointer, DataBlock.getCPtr(pCode)); return retVal; } @@ -588,14 +586,12 @@ public int DeleteScript(CVirtualMachineScript pScript) { return retVal; } - public void InitializeScript(CVirtualMachineScript pScript, SWIGTYPE_p_std__shared_ptrT_DataBlock_t pDataNCS, SWIGTYPE_p_std__shared_ptrT_DataBlock_t pDataNDB) { - NWNXLibPINVOKE.CVirtualMachine_InitializeScript__SWIG_0(swigCPtr, CVirtualMachineScript.getCPtr(pScript), SWIGTYPE_p_std__shared_ptrT_DataBlock_t.getCPtr(pDataNCS), SWIGTYPE_p_std__shared_ptrT_DataBlock_t.getCPtr(pDataNDB)); - if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + public void InitializeScript(CVirtualMachineScript pScript, DataBlock pDataNCS, DataBlock pDataNDB) { + NWNXLibPINVOKE.CVirtualMachine_InitializeScript__SWIG_0(swigCPtr, CVirtualMachineScript.getCPtr(pScript), DataBlock.getCPtr(pDataNCS), DataBlock.getCPtr(pDataNDB)); } - public void InitializeScript(CVirtualMachineScript pScript, SWIGTYPE_p_std__shared_ptrT_DataBlock_t pDataNCS) { - NWNXLibPINVOKE.CVirtualMachine_InitializeScript__SWIG_1(swigCPtr, CVirtualMachineScript.getCPtr(pScript), SWIGTYPE_p_std__shared_ptrT_DataBlock_t.getCPtr(pDataNCS)); - if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + public void InitializeScript(CVirtualMachineScript pScript, DataBlock pDataNCS) { + NWNXLibPINVOKE.CVirtualMachine_InitializeScript__SWIG_1(swigCPtr, CVirtualMachineScript.getCPtr(pScript), DataBlock.getCPtr(pDataNCS)); } public int PopInstructionPtr(int* nInstructionPointer) { @@ -660,8 +656,9 @@ public CScriptLog GetScriptLog(CExoString sScript) { return ret; } - public SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t GetDebuggerInstance() { - SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t ret = new SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t(NWNXLibPINVOKE.CVirtualMachine_GetDebuggerInstance(swigCPtr), true); + public CVirtualMachineDebuggerInstance GetDebuggerInstance() { + global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachine_GetDebuggerInstance(swigCPtr); + CVirtualMachineDebuggerInstance ret = (cPtr == global::System.IntPtr.Zero) ? null : new CVirtualMachineDebuggerInstance(cPtr, true); return ret; } diff --git a/src/main/API/CVirtualMachineDebuggerInstance.cs b/src/main/API/CVirtualMachineDebuggerInstance.cs index 254fd7d..4e9a0d1 100644 --- a/src/main/API/CVirtualMachineDebuggerInstance.cs +++ b/src/main/API/CVirtualMachineDebuggerInstance.cs @@ -12,10 +12,10 @@ namespace NWN.Native.API { public unsafe class CVirtualMachineDebuggerInstance : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; + private bool swigCMemOwnBase; internal CVirtualMachineDebuggerInstance(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; + swigCMemOwnBase = cMemoryOwn; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } @@ -35,8 +35,8 @@ public void Dispose() { protected virtual void Dispose(bool disposing) { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; + if (swigCMemOwnBase) { + swigCMemOwnBase = false; NWNXLibPINVOKE.delete_CVirtualMachineDebuggerInstance(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); @@ -93,9 +93,11 @@ public override int GetHashCode() { public ushort m_nResTypeSource { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nResTypeSource_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { ushort retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nResTypeSource_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -104,9 +106,11 @@ public ushort m_nResTypeSource { public ushort m_nResTypeDebug { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nResTypeDebug_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { ushort retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nResTypeDebug_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -115,10 +119,12 @@ public ushort m_nResTypeDebug { public CVirtualMachine m_pVMachine { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pVMachine_set(swigCPtr, CVirtualMachine.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pVMachine_get(swigCPtr); CVirtualMachine ret = (cPtr == global::System.IntPtr.Zero) ? null : new CVirtualMachine(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -126,9 +132,11 @@ public CVirtualMachine m_pVMachine { public int* m_pnInstructionPointer { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pnInstructionPointer_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pnInstructionPointer_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -137,9 +145,11 @@ public int* m_pnInstructionPointer { public byte* m_pDebugInputMessageBuffer { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugInputMessageBuffer_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { byte* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugInputMessageBuffer_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -148,9 +158,11 @@ public byte* m_pDebugInputMessageBuffer { public int m_nDebugInputMessageSize { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugInputMessageSize_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugInputMessageSize_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -159,9 +171,11 @@ public int m_nDebugInputMessageSize { public byte* m_pDebugOutputMessageBuffer { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugOutputMessageBuffer_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { byte* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugOutputMessageBuffer_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -170,9 +184,11 @@ public byte* m_pDebugOutputMessageBuffer { public int m_nDebugOutputMessageSize { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugOutputMessageSize_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugOutputMessageSize_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -181,9 +197,11 @@ public int m_nDebugOutputMessageSize { public int m_nDebugSourceFileNames { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugSourceFileNames_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugSourceFileNames_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -192,10 +210,12 @@ public int m_nDebugSourceFileNames { public CExoString m_pDebugSourceFileNames { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugSourceFileNames_set(swigCPtr, CExoString.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugSourceFileNames_get(swigCPtr); CExoString ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoString(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -203,9 +223,11 @@ public CExoString m_pDebugSourceFileNames { public int m_nDebugStructureDefines { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugStructureDefines_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugStructureDefines_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -214,10 +236,12 @@ public int m_nDebugStructureDefines { public CExoString m_pDebugStructureNames { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugStructureNames_set(swigCPtr, CExoString.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugStructureNames_get(swigCPtr); CExoString ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoString(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -225,9 +249,11 @@ public CExoString m_pDebugStructureNames { public int* m_pDebugStructureFields { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugStructureFields_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugStructureFields_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -236,9 +262,11 @@ public int* m_pDebugStructureFields { public void** m_ppDebugStructureFieldNames { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_ppDebugStructureFieldNames_set(swigCPtr, (global::System.IntPtr)value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_ppDebugStructureFieldNames_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return (void**)retVal; } @@ -247,9 +275,11 @@ public void** m_ppDebugStructureFieldNames { public void** m_ppDebugStructureTypeNames { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_ppDebugStructureTypeNames_set(swigCPtr, (global::System.IntPtr)value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_ppDebugStructureTypeNames_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return (void**)retVal; } @@ -258,9 +288,11 @@ public void** m_ppDebugStructureTypeNames { public int m_nDebugFunctionNames { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugFunctionNames_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugFunctionNames_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -269,10 +301,12 @@ public int m_nDebugFunctionNames { public CExoString m_pDebugFunctionNames { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugFunctionNames_set(swigCPtr, CExoString.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugFunctionNames_get(swigCPtr); CExoString ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoString(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -280,9 +314,11 @@ public CExoString m_pDebugFunctionNames { public int* m_pDebugFunctionBinaryStart { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugFunctionBinaryStart_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugFunctionBinaryStart_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -291,9 +327,11 @@ public int* m_pDebugFunctionBinaryStart { public int* m_pDebugFunctionBinaryEnd { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugFunctionBinaryEnd_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugFunctionBinaryEnd_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -302,9 +340,11 @@ public int* m_pDebugFunctionBinaryEnd { public int* m_pDebugFunctionParameters { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugFunctionParameters_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugFunctionParameters_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -313,10 +353,12 @@ public int* m_pDebugFunctionParameters { public CExoString m_pDebugFunctionReturnTypeNames { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugFunctionReturnTypeNames_set(swigCPtr, CExoString.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugFunctionReturnTypeNames_get(swigCPtr); CExoString ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoString(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -324,9 +366,11 @@ public CExoString m_pDebugFunctionReturnTypeNames { public void** m_ppDebugFunctionParamTypeNames { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_ppDebugFunctionParamTypeNames_set(swigCPtr, (global::System.IntPtr)value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_ppDebugFunctionParamTypeNames_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return (void**)retVal; } @@ -335,9 +379,11 @@ public void** m_ppDebugFunctionParamTypeNames { public int m_nDebugVariables { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugVariables_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugVariables_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -346,9 +392,11 @@ public int m_nDebugVariables { public int* m_pDebugVariableBinaryStart { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugVariableBinaryStart_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugVariableBinaryStart_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -357,9 +405,11 @@ public int* m_pDebugVariableBinaryStart { public int* m_pDebugVariableBinaryEnd { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugVariableBinaryEnd_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugVariableBinaryEnd_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -368,9 +418,11 @@ public int* m_pDebugVariableBinaryEnd { public int* m_pDebugVariableStackLocation { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugVariableStackLocation_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugVariableStackLocation_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -379,10 +431,12 @@ public int* m_pDebugVariableStackLocation { public CExoString m_pDebugVariableTypeNames { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugVariableTypeNames_set(swigCPtr, CExoString.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugVariableTypeNames_get(swigCPtr); CExoString ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoString(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -390,10 +444,12 @@ public CExoString m_pDebugVariableTypeNames { public CExoString m_pDebugVariableNames { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugVariableNames_set(swigCPtr, CExoString.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugVariableNames_get(swigCPtr); CExoString ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoString(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -401,9 +457,11 @@ public CExoString m_pDebugVariableNames { public int m_nDebugLineNumbers { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugLineNumbers_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugLineNumbers_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -412,9 +470,11 @@ public int m_nDebugLineNumbers { public int* m_pDebugLineNumberFileName { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugLineNumberFileName_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugLineNumberFileName_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -423,9 +483,11 @@ public int* m_pDebugLineNumberFileName { public int* m_pDebugLineNumberCodeLine { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugLineNumberCodeLine_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugLineNumberCodeLine_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -434,9 +496,11 @@ public int* m_pDebugLineNumberCodeLine { public int* m_pDebugLineNumberBinaryStart { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugLineNumberBinaryStart_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugLineNumberBinaryStart_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -445,9 +509,11 @@ public int* m_pDebugLineNumberBinaryStart { public int* m_pDebugLineNumberBinaryEnd { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugLineNumberBinaryEnd_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugLineNumberBinaryEnd_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -456,9 +522,11 @@ public int* m_pDebugLineNumberBinaryEnd { public int m_nDebugWatchViewArraySize { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugWatchViewArraySize_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nDebugWatchViewArraySize_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -467,9 +535,11 @@ public int m_nDebugWatchViewArraySize { public int* m_pDebugWatchViewEmpty { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewEmpty_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewEmpty_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -478,9 +548,11 @@ public int* m_pDebugWatchViewEmpty { public int* m_pDebugWatchViewTouched { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewTouched_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewTouched_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -489,9 +561,11 @@ public int* m_pDebugWatchViewTouched { public int* m_pDebugWatchViewExpanded { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewExpanded_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewExpanded_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -500,9 +574,11 @@ public int* m_pDebugWatchViewExpanded { public int* m_pDebugWatchViewStackLocations { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewStackLocations_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewStackLocations_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -511,10 +587,12 @@ public int* m_pDebugWatchViewStackLocations { public CExoString m_pDebugWatchViewVariableNames { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewVariableNames_set(swigCPtr, CExoString.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewVariableNames_get(swigCPtr); CExoString ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoString(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -522,10 +600,12 @@ public CExoString m_pDebugWatchViewVariableNames { public CExoString m_pDebugWatchViewTypeNames { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewTypeNames_set(swigCPtr, CExoString.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewTypeNames_get(swigCPtr); CExoString ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoString(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -533,10 +613,12 @@ public CExoString m_pDebugWatchViewTypeNames { public CExoString m_pDebugWatchViewLineNumbers { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewLineNumbers_set(swigCPtr, CExoString.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewLineNumbers_get(swigCPtr); CExoString ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoString(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -544,10 +626,12 @@ public CExoString m_pDebugWatchViewLineNumbers { public CExoString m_pDebugWatchViewVariableValues { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewVariableValues_set(swigCPtr, CExoString.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_pDebugWatchViewVariableValues_get(swigCPtr); CExoString ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoString(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -555,10 +639,12 @@ public CExoString m_pDebugWatchViewVariableValues { public CExoString m_sCurrentSourceFileName { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_sCurrentSourceFileName_set(swigCPtr, CExoString.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_sCurrentSourceFileName_get(swigCPtr); CExoString ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoString(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -566,10 +652,12 @@ public CExoString m_sCurrentSourceFileName { public CExoString m_sCurrentSourceScriptSource { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_sCurrentSourceScriptSource_set(swigCPtr, CExoString.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_sCurrentSourceScriptSource_get(swigCPtr); CExoString ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoString(cPtr, false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -577,9 +665,11 @@ public CExoString m_sCurrentSourceScriptSource { public int m_nActiveCallStackEntry { set { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nActiveCallStackEntry_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_m_nActiveCallStackEntry_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } @@ -590,107 +680,125 @@ public CVirtualMachineDebuggerInstance(ushort nScriptResType, ushort nDebugResTy public int SpawnDebugger() { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_SpawnDebugger(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public int DebuggerMainLoop() { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_DebuggerMainLoop(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public void ShutDownDebugger() { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_ShutDownDebugger(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } public int GenerateLineNumberFromInstructionPointer(int nIP, int bExactCheck) { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_GenerateLineNumberFromInstructionPointer__SWIG_0(swigCPtr, nIP, bExactCheck); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public int GenerateLineNumberFromInstructionPointer(int nIP) { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_GenerateLineNumberFromInstructionPointer__SWIG_1(swigCPtr, nIP); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } - public static int VerifyDebugInfo(SWIGTYPE_p_std__shared_ptrT_DataView_t pDebugInfo) { - int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_VerifyDebugInfo(SWIGTYPE_p_std__shared_ptrT_DataView_t.getCPtr(pDebugInfo)); - if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + public static int VerifyDebugInfo(DataView pDebugInfo) { + int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_VerifyDebugInfo(DataView.getCPtr(pDebugInfo)); return retVal; } public int ReadIntegerFromInput(int* pnSize, int* pnInteger) { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_ReadIntegerFromInput(swigCPtr, pnSize, pnInteger); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public int ReadStringFromInput(int* pnSize, CExoString psString) { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_ReadStringFromInput(swigCPtr, pnSize, CExoString.getCPtr(psString)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public int ParseAndExecuteMessage(int* nSize) { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_ParseAndExecuteMessage(swigCPtr, nSize); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public byte* LoadDebugInfoLine(byte* pResourceData, uint nResourceSize, uint nOffsetStart, uint* pnOffsetEnd) { byte* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_LoadDebugInfoLine(swigCPtr, pResourceData, nResourceSize, nOffsetStart, pnOffsetEnd); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } - public int LoadDebugInfo(SWIGTYPE_p_std__shared_ptrT_DataView_t pDebugData) { - int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_LoadDebugInfo(swigCPtr, SWIGTYPE_p_std__shared_ptrT_DataView_t.getCPtr(pDebugData)); + public int LoadDebugInfo(DataView pDebugData) { + int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_LoadDebugInfo(swigCPtr, DataView.getCPtr(pDebugData)); if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public byte* LoadScriptLine(byte* pResourceData, uint nResourceSize, uint nOffsetStart, uint* pnOffsetEnd, int bIncludeReturns) { byte* retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_LoadScriptLine(swigCPtr, pResourceData, nResourceSize, nOffsetStart, pnOffsetEnd, bIncludeReturns); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public int GenerateFunctionIDFromInstructionPointer(int nIP) { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_GenerateFunctionIDFromInstructionPointer(swigCPtr, nIP); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public int GenerateTypeSize(CExoString pNDBString) { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_GenerateTypeSize(swigCPtr, CExoString.getCPtr(pNDBString)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public int GenerateStackSizeAtInstructionPointer(int nFunctionID, int nIP) { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_GenerateStackSizeAtInstructionPointer(swigCPtr, nFunctionID, nIP); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public int GenerateDebugVariableLocationForParameter(int nFunctionID, int nParameter) { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_GenerateDebugVariableLocationForParameter(swigCPtr, nFunctionID, nParameter); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public int GetNextDebugVariable(int nFunctionID, int nIP, int nStackLocationToExceed) { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_GetNextDebugVariable(swigCPtr, nFunctionID, nIP, nStackLocationToExceed); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public CExoString GenerateTypeName(CExoString pNDBString) { CExoString ret = new CExoString(NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_GenerateTypeName(swigCPtr, CExoString.getCPtr(pNDBString)), true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } public CExoString GenerateTypeValueFromStackLocation(int nStackLocation, CExoString pTypeString) { CExoString ret = new CExoString(NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_GenerateTypeValueFromStackLocation(swigCPtr, nStackLocation, CExoString.getCPtr(pTypeString)), true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } public CExoString GenerateCallStackParameterView(int nStackLocation, CExoString sVariableName, CExoString sTypeName) { CExoString ret = new CExoString(NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_GenerateCallStackParameterView(swigCPtr, nStackLocation, CExoString.getCPtr(sVariableName), CExoString.getCPtr(sTypeName)), true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } public CExoString GenerateCallStackView(int nFunctionID, int nInstructionPointer, int nStackPointer) { CExoString ret = new CExoString(NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_GenerateCallStackView(swigCPtr, nFunctionID, nInstructionPointer, nStackPointer), true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -701,34 +809,41 @@ public void ToggleWatchWindowExpansion(CExoString sLineNumber) { public int DebuggerSingleStep(int bStepOver) { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_DebuggerSingleStep__SWIG_0(swigCPtr, bStepOver); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public int DebuggerSingleStep() { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_DebuggerSingleStep__SWIG_1(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public int FindEmptyWatchViewEntry() { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_FindEmptyWatchViewEntry(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public int FindWatchViewEntry(CExoString psVariableName, CExoString psTypeName, int nStackLocation) { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_FindWatchViewEntry(swigCPtr, CExoString.getCPtr(psVariableName), CExoString.getCPtr(psTypeName), nStackLocation); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public void SendWatchWindowEntry(CExoString psLineNumber, CExoString psVariableName, CExoString psVariableValue, CExoString psTypeName, int nStackLocation) { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_SendWatchWindowEntry(swigCPtr, CExoString.getCPtr(psLineNumber), CExoString.getCPtr(psVariableName), CExoString.getCPtr(psVariableValue), CExoString.getCPtr(psTypeName), nStackLocation); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } public void SendWatchWindowUpdateCommands(int nActiveCallStackEntry) { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_SendWatchWindowUpdateCommands(swigCPtr, nActiveCallStackEntry); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } public void SendCallStackWindowUpdateCommands() { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_SendCallStackWindowUpdateCommands(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } public void SendCodeWindowUpdateCommands(CExoString sDebugFileName, int nCodeLine) { @@ -738,20 +853,24 @@ public void SendCodeWindowUpdateCommands(CExoString sDebugFileName, int nCodeLin public void SendLabelsAndKeywords() { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_SendLabelsAndKeywords(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } public int DebuggerDisplayCurrentLocation(int nActiveCallStackEntry, int bInternalDebug) { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_DebuggerDisplayCurrentLocation__SWIG_0(swigCPtr, nActiveCallStackEntry, bInternalDebug); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public int DebuggerDisplayCurrentLocation(int nActiveCallStackEntry) { int retVal = NWNXLibPINVOKE.CVirtualMachineDebuggerInstance_DebuggerDisplayCurrentLocation__SWIG_1(swigCPtr, nActiveCallStackEntry); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return retVal; } public void _Destructor() { NWNXLibPINVOKE.CVirtualMachineDebuggerInstance__Destructor(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } } diff --git a/src/main/API/CVirtualMachineDebuggingContext.cs b/src/main/API/CVirtualMachineDebuggingContext.cs index 8a3e21b..469bcf5 100644 --- a/src/main/API/CVirtualMachineDebuggingContext.cs +++ b/src/main/API/CVirtualMachineDebuggingContext.cs @@ -137,10 +137,12 @@ public int m_nLineNumberToRunTo { public CVirtualMachineDebuggerInstance m_pDebuggerInstance { set { NWNXLibPINVOKE.CVirtualMachineDebuggingContext_m_pDebuggerInstance_set(swigCPtr, CVirtualMachineDebuggerInstance.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineDebuggingContext_m_pDebuggerInstance_get(swigCPtr); - CVirtualMachineDebuggerInstance ret = (cPtr == global::System.IntPtr.Zero) ? null : new CVirtualMachineDebuggerInstance(cPtr, false); + CVirtualMachineDebuggerInstance ret = (cPtr == global::System.IntPtr.Zero) ? null : new CVirtualMachineDebuggerInstance(cPtr, true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } diff --git a/src/main/API/CVirtualMachineScript.cs b/src/main/API/CVirtualMachineScript.cs index 4255a5a..c2bc491 100644 --- a/src/main/API/CVirtualMachineScript.cs +++ b/src/main/API/CVirtualMachineScript.cs @@ -145,24 +145,28 @@ public CExoString m_sScriptName { } } - public SWIGTYPE_p_std__shared_ptrT_DataBlock_t m_pCode { + public DataBlock m_pCode { set { - NWNXLibPINVOKE.CVirtualMachineScript_m_pCode_set(swigCPtr, SWIGTYPE_p_std__shared_ptrT_DataBlock_t.getCPtr(value)); + NWNXLibPINVOKE.CVirtualMachineScript_m_pCode_set(swigCPtr, DataBlock.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineScript_m_pCode_get(swigCPtr); - SWIGTYPE_p_std__shared_ptrT_DataBlock_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__shared_ptrT_DataBlock_t(cPtr, false); + DataBlock ret = (cPtr == global::System.IntPtr.Zero) ? null : new DataBlock(cPtr, true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } - public SWIGTYPE_p_std__shared_ptrT_DataBlock_t m_pNDB { + public DataBlock m_pNDB { set { - NWNXLibPINVOKE.CVirtualMachineScript_m_pNDB_set(swigCPtr, SWIGTYPE_p_std__shared_ptrT_DataBlock_t.getCPtr(value)); + NWNXLibPINVOKE.CVirtualMachineScript_m_pNDB_set(swigCPtr, DataBlock.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.CVirtualMachineScript_m_pNDB_get(swigCPtr); - SWIGTYPE_p_std__shared_ptrT_DataBlock_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__shared_ptrT_DataBlock_t(cPtr, false); + DataBlock ret = (cPtr == global::System.IntPtr.Zero) ? null : new DataBlock(cPtr, true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } diff --git a/src/main/API/DataBlock.cs b/src/main/API/DataBlock.cs index 8c5b64c..4ff0b83 100644 --- a/src/main/API/DataBlock.cs +++ b/src/main/API/DataBlock.cs @@ -12,8 +12,10 @@ namespace NWN.Native.API { public unsafe class DataBlock : DataView { private global::System.Runtime.InteropServices.HandleRef swigCPtr; + private bool swigCMemOwnDerived; - internal DataBlock(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NWNXLibPINVOKE.DataBlock_SWIGUpcast(cPtr), cMemoryOwn) { + internal DataBlock(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NWNXLibPINVOKE.DataBlock_SWIGSmartPtrUpcast(cPtr), true) { + swigCMemOwnDerived = cMemoryOwn; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } @@ -24,8 +26,8 @@ internal DataBlock(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NWNXLibPI protected override void Dispose(bool disposing) { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; + if (swigCMemOwnDerived) { + swigCMemOwnDerived = false; NWNXLibPINVOKE.delete_DataBlock(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); @@ -99,35 +101,43 @@ public DataBlock(string data) : this(NWNXLibPINVOKE.new_DataBlock__SWIG_4(data), public void* Data() { global::System.IntPtr retVal = NWNXLibPINVOKE.DataBlock_Data(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return (void*)retVal; } public void AllocateAtLeast(uint length) { NWNXLibPINVOKE.DataBlock_AllocateAtLeast(swigCPtr, length); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } public void MarkUsed(uint length) { NWNXLibPINVOKE.DataBlock_MarkUsed(swigCPtr, length); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } public void Prepend(void* payload, uint length, uint chunkSize) { NWNXLibPINVOKE.DataBlock_Prepend__SWIG_0(swigCPtr, (global::System.IntPtr)payload, length, chunkSize); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } public void Prepend(void* payload, uint length) { NWNXLibPINVOKE.DataBlock_Prepend__SWIG_1(swigCPtr, (global::System.IntPtr)payload, length); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } public void Append(void* payload, uint length, uint chunkSize) { NWNXLibPINVOKE.DataBlock_Append__SWIG_0(swigCPtr, (global::System.IntPtr)payload, length, chunkSize); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } public void Append(void* payload, uint length) { NWNXLibPINVOKE.DataBlock_Append__SWIG_1(swigCPtr, (global::System.IntPtr)payload, length); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } public void Compact() { NWNXLibPINVOKE.DataBlock_Compact(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } } diff --git a/src/main/API/DataView.cs b/src/main/API/DataView.cs index a37983e..0d4aabd 100644 --- a/src/main/API/DataView.cs +++ b/src/main/API/DataView.cs @@ -12,10 +12,10 @@ namespace NWN.Native.API { public unsafe class DataView : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; + private bool swigCMemOwnBase; internal DataView(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; + swigCMemOwnBase = cMemoryOwn; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } @@ -35,8 +35,8 @@ public void Dispose() { protected virtual void Dispose(bool disposing) { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; + if (swigCMemOwnBase) { + swigCMemOwnBase = false; NWNXLibPINVOKE.delete_DataView(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); @@ -92,10 +92,10 @@ public override int GetHashCode() { public unsafe class Shared : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; + private bool swigCMemOwnBase; internal Shared(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; + swigCMemOwnBase = cMemoryOwn; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } @@ -115,8 +115,8 @@ public void Dispose() { protected virtual void Dispose(bool disposing) { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; + if (swigCMemOwnBase) { + swigCMemOwnBase = false; NWNXLibPINVOKE.delete_DataView_Shared(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); @@ -176,9 +176,11 @@ public Shared(void* data, uint used, uint allocated, bool owned) : this(NWNXLibP public void* m_data { set { NWNXLibPINVOKE.DataView_Shared_m_data_set(swigCPtr, (global::System.IntPtr)value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr retVal = NWNXLibPINVOKE.DataView_Shared_m_data_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return (void*)retVal; } @@ -187,9 +189,11 @@ public void* m_data { public uint m_used { set { NWNXLibPINVOKE.DataView_Shared_m_used_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { uint ret = NWNXLibPINVOKE.DataView_Shared_m_used_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -197,9 +201,11 @@ public uint m_used { public uint m_allocated { set { NWNXLibPINVOKE.DataView_Shared_m_allocated_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { uint ret = NWNXLibPINVOKE.DataView_Shared_m_allocated_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -207,33 +213,39 @@ public uint m_allocated { public bool m_owned { set { NWNXLibPINVOKE.DataView_Shared_m_owned_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { bool ret = NWNXLibPINVOKE.DataView_Shared_m_owned_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } } - public SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t m_shared { + public DataView.Shared m_shared { set { - NWNXLibPINVOKE.DataView_m_shared_set(swigCPtr, SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t.getCPtr(value)); + NWNXLibPINVOKE.DataView_m_shared_set(swigCPtr, DataView.Shared.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.DataView_m_shared_get(swigCPtr); - SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t(cPtr, false); + DataView.Shared ret = (cPtr == global::System.IntPtr.Zero) ? null : new DataView.Shared(cPtr, true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } - public SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t m_parent { + public DataView.Shared m_parent { set { - NWNXLibPINVOKE.DataView_m_parent_set(swigCPtr, SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t.getCPtr(value)); + NWNXLibPINVOKE.DataView_m_parent_set(swigCPtr, DataView.Shared.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.DataView_m_parent_get(swigCPtr); - SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t(cPtr, false); + DataView.Shared ret = (cPtr == global::System.IntPtr.Zero) ? null : new DataView.Shared(cPtr, true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -243,31 +255,39 @@ public DataView(void* data, uint length) : this(NWNXLibPINVOKE.new_DataView((glo public void* Data() { global::System.IntPtr retVal = NWNXLibPINVOKE.DataView_Data(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return (void*)retVal; } public uint Used() { uint ret = NWNXLibPINVOKE.DataView_Used(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } public uint Allocated() { uint ret = NWNXLibPINVOKE.DataView_Allocated(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public SWIGTYPE_p_std__shared_ptrT_DataView_t View(uint offset, uint count) { - SWIGTYPE_p_std__shared_ptrT_DataView_t ret = new SWIGTYPE_p_std__shared_ptrT_DataView_t(NWNXLibPINVOKE.DataView_View(swigCPtr, offset, count), true); + public DataView View(uint offset, uint count) { + global::System.IntPtr cPtr = NWNXLibPINVOKE.DataView_View(swigCPtr, offset, count); + DataView ret = (cPtr == global::System.IntPtr.Zero) ? null : new DataView(cPtr, true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public SWIGTYPE_p_std__shared_ptrT_DataBlock_t MakeCopy() { - SWIGTYPE_p_std__shared_ptrT_DataBlock_t ret = new SWIGTYPE_p_std__shared_ptrT_DataBlock_t(NWNXLibPINVOKE.DataView_MakeCopy(swigCPtr), true); + public DataBlock MakeCopy() { + global::System.IntPtr cPtr = NWNXLibPINVOKE.DataView_MakeCopy(swigCPtr); + DataBlock ret = (cPtr == global::System.IntPtr.Zero) ? null : new DataBlock(cPtr, true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } public bool empty() { bool ret = NWNXLibPINVOKE.DataView_empty(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/src/main/API/Database.cs b/src/main/API/Database.cs index 26bc170..90e2c5c 100644 --- a/src/main/API/Database.cs +++ b/src/main/API/Database.cs @@ -12,10 +12,10 @@ namespace NWN.Native.API { public unsafe class Database : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; + private bool swigCMemOwnBase; internal Database(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; + swigCMemOwnBase = cMemoryOwn; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } @@ -35,8 +35,8 @@ public void Dispose() { protected virtual void Dispose(bool disposing) { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; + if (swigCMemOwnBase) { + swigCMemOwnBase = false; NWNXLibPINVOKE.delete_Database(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); @@ -93,6 +93,7 @@ public override int GetHashCode() { public string m_label { get { string ret = NWNXLibPINVOKE.Database_m_label_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -100,6 +101,7 @@ public string m_label { public string m_path { get { string ret = NWNXLibPINVOKE.Database_m_path_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -107,6 +109,7 @@ public string m_path { public bool m_writeable { get { bool ret = NWNXLibPINVOKE.Database_m_writeable_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -114,9 +117,11 @@ public bool m_writeable { public bool m_delete_after_close { set { NWNXLibPINVOKE.Database_m_delete_after_close_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { bool ret = NWNXLibPINVOKE.Database_m_delete_after_close_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -124,9 +129,11 @@ public bool m_delete_after_close { public bool m_authorizer_enabled { set { NWNXLibPINVOKE.Database_m_authorizer_enabled_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { bool ret = NWNXLibPINVOKE.Database_m_authorizer_enabled_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -146,18 +153,20 @@ public SWIGTYPE_p_std__functionT_bool_fstd__string_const_R_boolF_t m_table_acces public bool m_transaction { set { NWNXLibPINVOKE.Database_m_transaction_set(swigCPtr, value); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } get { bool ret = NWNXLibPINVOKE.Database_m_transaction_get(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return ret; } } - public Database(string identifier, string path, SWIGTYPE_p_std__shared_ptrT_DataView_t copyAtomically, Definition source) : this(NWNXLibPINVOKE.new_Database__SWIG_0(identifier, path, SWIGTYPE_p_std__shared_ptrT_DataView_t.getCPtr(copyAtomically), Definition.getCPtr(source)), true) { + public Database(string identifier, string path, DataView copyAtomically, Definition source) : this(NWNXLibPINVOKE.new_Database__SWIG_0(identifier, path, DataView.getCPtr(copyAtomically), Definition.getCPtr(source)), true) { if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } - public Database(string identifier, string path, SWIGTYPE_p_std__shared_ptrT_DataView_t copyAtomically) : this(NWNXLibPINVOKE.new_Database__SWIG_1(identifier, path, SWIGTYPE_p_std__shared_ptrT_DataView_t.getCPtr(copyAtomically)), true) { + public Database(string identifier, string path, DataView copyAtomically) : this(NWNXLibPINVOKE.new_Database__SWIG_1(identifier, path, DataView.getCPtr(copyAtomically)), true) { if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } @@ -167,6 +176,7 @@ public Database(string identifier, string path) : this(NWNXLibPINVOKE.new_Databa public void Setup() { NWNXLibPINVOKE.Database_Setup(swigCPtr); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } } diff --git a/src/main/API/Definition.cs b/src/main/API/Definition.cs index 48a020c..90cc3e5 100644 --- a/src/main/API/Definition.cs +++ b/src/main/API/Definition.cs @@ -200,7 +200,7 @@ public MigrationDef() : this(NWNXLibPINVOKE.new_Definition_MigrationDef(), true) public Definition() : this(NWNXLibPINVOKE.new_Definition__SWIG_0(), true) { } - public Definition(byte* schema, SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t migrations) : this(NWNXLibPINVOKE.new_Definition__SWIG_1(schema, SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t.getCPtr(migrations)), true) { + public Definition(byte* schema, VectorNWSQLiteMigrationsDefinitionMigrationDef migrations) : this(NWNXLibPINVOKE.new_Definition__SWIG_1(schema, VectorNWSQLiteMigrationsDefinitionMigrationDef.getCPtr(migrations)), true) { if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); } @@ -215,13 +215,13 @@ public byte* m_schema { } - public SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t m_migrations { + public VectorNWSQLiteMigrationsDefinitionMigrationDef m_migrations { set { - NWNXLibPINVOKE.Definition_m_migrations_set(swigCPtr, SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t.getCPtr(value)); + NWNXLibPINVOKE.Definition_m_migrations_set(swigCPtr, VectorNWSQLiteMigrationsDefinitionMigrationDef.getCPtr(value)); } get { global::System.IntPtr cPtr = NWNXLibPINVOKE.Definition_m_migrations_get(swigCPtr); - SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t(cPtr, false); + VectorNWSQLiteMigrationsDefinitionMigrationDef ret = (cPtr == global::System.IntPtr.Zero) ? null : new VectorNWSQLiteMigrationsDefinitionMigrationDef(cPtr, false); return ret; } } diff --git a/src/main/API/NWNXLibPINVOKE.cs b/src/main/API/NWNXLibPINVOKE.cs index c0d08d3..69fc344 100644 --- a/src/main/API/NWNXLibPINVOKE.cs +++ b/src/main/API/NWNXLibPINVOKE.cs @@ -46111,6 +46111,138 @@ static NWNXLibPINVOKE() { [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListUInt32_Remove___")] public static extern bool CExoArrayListUInt32_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_num_set___")] + public static extern void CExoArrayListCLastUpdateObjectPtr_num_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_num_get___")] + public static extern int CExoArrayListCLastUpdateObjectPtr_num_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_array_size_set___")] + public static extern void CExoArrayListCLastUpdateObjectPtr_array_size_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_array_size_get___")] + public static extern int CExoArrayListCLastUpdateObjectPtr_array_size_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_Add___")] + public static extern void CExoArrayListCLastUpdateObjectPtr_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_Pack___")] + public static extern void CExoArrayListCLastUpdateObjectPtr_Pack(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_Allocate___")] + public static extern void CExoArrayListCLastUpdateObjectPtr_Allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_SetSize___")] + public static extern void CExoArrayListCLastUpdateObjectPtr_SetSize(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_CExoArrayListCLastUpdateObjectPtr__SWIG_0___")] + public static extern global::System.IntPtr new_CExoArrayListCLastUpdateObjectPtr__SWIG_0(int jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_CExoArrayListCLastUpdateObjectPtr__SWIG_1___")] + public static extern global::System.IntPtr new_CExoArrayListCLastUpdateObjectPtr__SWIG_1(); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_CExoArrayListCLastUpdateObjectPtr__SWIG_2___")] + public static extern global::System.IntPtr new_CExoArrayListCLastUpdateObjectPtr__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_delete_CExoArrayListCLastUpdateObjectPtr___")] + public static extern void delete_CExoArrayListCLastUpdateObjectPtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_RemoveAt___")] + public static extern void CExoArrayListCLastUpdateObjectPtr_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_IndexOf___")] + public static extern int CExoArrayListCLastUpdateObjectPtr_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_AddUnique___")] + public static extern int CExoArrayListCLastUpdateObjectPtr_AddUnique(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_InternalGetItem___")] + public static extern global::System.IntPtr CExoArrayListCLastUpdateObjectPtr_InternalGetItem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_InternalGetItemCopy___")] + public static extern global::System.IntPtr CExoArrayListCLastUpdateObjectPtr_InternalGetItemCopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_InternalSetItem___")] + public static extern void CExoArrayListCLastUpdateObjectPtr_InternalSetItem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_Insert___")] + public static extern void CExoArrayListCLastUpdateObjectPtr_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_Contains___")] + public static extern bool CExoArrayListCLastUpdateObjectPtr_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_LastIndexOf___")] + public static extern int CExoArrayListCLastUpdateObjectPtr_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdateObjectPtr_Remove___")] + public static extern bool CExoArrayListCLastUpdateObjectPtr_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_num_set___")] + public static extern void CExoArrayListCLastUpdatePartyObjectPtr_num_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_num_get___")] + public static extern int CExoArrayListCLastUpdatePartyObjectPtr_num_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_array_size_set___")] + public static extern void CExoArrayListCLastUpdatePartyObjectPtr_array_size_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_array_size_get___")] + public static extern int CExoArrayListCLastUpdatePartyObjectPtr_array_size_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_Add___")] + public static extern void CExoArrayListCLastUpdatePartyObjectPtr_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_Pack___")] + public static extern void CExoArrayListCLastUpdatePartyObjectPtr_Pack(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_Allocate___")] + public static extern void CExoArrayListCLastUpdatePartyObjectPtr_Allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_SetSize___")] + public static extern void CExoArrayListCLastUpdatePartyObjectPtr_SetSize(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_CExoArrayListCLastUpdatePartyObjectPtr__SWIG_0___")] + public static extern global::System.IntPtr new_CExoArrayListCLastUpdatePartyObjectPtr__SWIG_0(int jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_CExoArrayListCLastUpdatePartyObjectPtr__SWIG_1___")] + public static extern global::System.IntPtr new_CExoArrayListCLastUpdatePartyObjectPtr__SWIG_1(); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_CExoArrayListCLastUpdatePartyObjectPtr__SWIG_2___")] + public static extern global::System.IntPtr new_CExoArrayListCLastUpdatePartyObjectPtr__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_delete_CExoArrayListCLastUpdatePartyObjectPtr___")] + public static extern void delete_CExoArrayListCLastUpdatePartyObjectPtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_RemoveAt___")] + public static extern void CExoArrayListCLastUpdatePartyObjectPtr_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_IndexOf___")] + public static extern int CExoArrayListCLastUpdatePartyObjectPtr_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_AddUnique___")] + public static extern int CExoArrayListCLastUpdatePartyObjectPtr_AddUnique(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_InternalGetItem___")] + public static extern global::System.IntPtr CExoArrayListCLastUpdatePartyObjectPtr_InternalGetItem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_InternalGetItemCopy___")] + public static extern global::System.IntPtr CExoArrayListCLastUpdatePartyObjectPtr_InternalGetItemCopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_InternalSetItem___")] + public static extern void CExoArrayListCLastUpdatePartyObjectPtr_InternalSetItem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_Insert___")] + public static extern void CExoArrayListCLastUpdatePartyObjectPtr_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_Contains___")] + public static extern bool CExoArrayListCLastUpdatePartyObjectPtr_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_LastIndexOf___")] + public static extern int CExoArrayListCLastUpdatePartyObjectPtr_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CExoArrayListCLastUpdatePartyObjectPtr_Remove___")] + public static extern bool CExoArrayListCLastUpdatePartyObjectPtr_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_CExoArrayListCNWSStatsSpellPtrArray___")] public static extern global::System.IntPtr new_CExoArrayListCNWSStatsSpellPtrArray(int jarg1); @@ -46798,6 +46930,72 @@ static NWNXLibPINVOKE() { [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_delete_VectorCExoString___")] public static extern void delete_VectorCExoString(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_Clear___")] + public static extern void VectorNWSQLiteMigrationsDefinitionMigrationDef_Clear(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_Add___")] + public static extern void VectorNWSQLiteMigrationsDefinitionMigrationDef_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_size___")] + public static extern uint VectorNWSQLiteMigrationsDefinitionMigrationDef_size(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_capacity___")] + public static extern uint VectorNWSQLiteMigrationsDefinitionMigrationDef_capacity(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_reserve___")] + public static extern void VectorNWSQLiteMigrationsDefinitionMigrationDef_reserve(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_VectorNWSQLiteMigrationsDefinitionMigrationDef__SWIG_0___")] + public static extern global::System.IntPtr new_VectorNWSQLiteMigrationsDefinitionMigrationDef__SWIG_0(); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_VectorNWSQLiteMigrationsDefinitionMigrationDef__SWIG_1___")] + public static extern global::System.IntPtr new_VectorNWSQLiteMigrationsDefinitionMigrationDef__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_VectorNWSQLiteMigrationsDefinitionMigrationDef__SWIG_2___")] + public static extern global::System.IntPtr new_VectorNWSQLiteMigrationsDefinitionMigrationDef__SWIG_2(int jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_getitemcopy___")] + public static extern global::System.IntPtr VectorNWSQLiteMigrationsDefinitionMigrationDef_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_getitem___")] + public static extern global::System.IntPtr VectorNWSQLiteMigrationsDefinitionMigrationDef_getitem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_setitem___")] + public static extern void VectorNWSQLiteMigrationsDefinitionMigrationDef_setitem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_AddRange___")] + public static extern void VectorNWSQLiteMigrationsDefinitionMigrationDef_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_GetRange___")] + public static extern global::System.IntPtr VectorNWSQLiteMigrationsDefinitionMigrationDef_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_Insert___")] + public static extern void VectorNWSQLiteMigrationsDefinitionMigrationDef_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_InsertRange___")] + public static extern void VectorNWSQLiteMigrationsDefinitionMigrationDef_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_RemoveAt___")] + public static extern void VectorNWSQLiteMigrationsDefinitionMigrationDef_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_RemoveRange___")] + public static extern void VectorNWSQLiteMigrationsDefinitionMigrationDef_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_Repeat___")] + public static extern global::System.IntPtr VectorNWSQLiteMigrationsDefinitionMigrationDef_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_Reverse__SWIG_0___")] + public static extern void VectorNWSQLiteMigrationsDefinitionMigrationDef_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_Reverse__SWIG_1___")] + public static extern void VectorNWSQLiteMigrationsDefinitionMigrationDef_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_VectorNWSQLiteMigrationsDefinitionMigrationDef_SetRange___")] + public static extern void VectorNWSQLiteMigrationsDefinitionMigrationDef_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_delete_VectorNWSQLiteMigrationsDefinitionMigrationDef___")] + public static extern void delete_VectorNWSQLiteMigrationsDefinitionMigrationDef(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_UnorderedMapCExoStringCNWSScriptVar__SWIG_0___")] public static extern global::System.IntPtr new_UnorderedMapCExoStringCNWSScriptVar__SWIG_0(); @@ -47003,6 +47201,108 @@ static NWNXLibPINVOKE() { [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_delete_UnorderedMapStringCachedRulesetEntry___")] public static extern void delete_UnorderedMapStringCachedRulesetEntry(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_UnorderedMapInt32CNWSAreaGrassOverride__SWIG_0___")] + public static extern global::System.IntPtr new_UnorderedMapInt32CNWSAreaGrassOverride__SWIG_0(); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_UnorderedMapInt32CNWSAreaGrassOverride__SWIG_1___")] + public static extern global::System.IntPtr new_UnorderedMapInt32CNWSAreaGrassOverride__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapInt32CNWSAreaGrassOverride_Iterator_MoveNext___")] + public static extern global::System.IntPtr UnorderedMapInt32CNWSAreaGrassOverride_Iterator_MoveNext(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapInt32CNWSAreaGrassOverride_Iterator_IsEqual___")] + public static extern bool UnorderedMapInt32CNWSAreaGrassOverride_Iterator_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapInt32CNWSAreaGrassOverride_Iterator_GetKey___")] + public static extern int UnorderedMapInt32CNWSAreaGrassOverride_Iterator_GetKey(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapInt32CNWSAreaGrassOverride_Iterator_GetValue___")] + public static extern global::System.IntPtr UnorderedMapInt32CNWSAreaGrassOverride_Iterator_GetValue(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapInt32CNWSAreaGrassOverride_Iterator_SetValue___")] + public static extern void UnorderedMapInt32CNWSAreaGrassOverride_Iterator_SetValue(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_delete_UnorderedMapInt32CNWSAreaGrassOverride_Iterator___")] + public static extern void delete_UnorderedMapInt32CNWSAreaGrassOverride_Iterator(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapInt32CNWSAreaGrassOverride_size___")] + public static extern uint UnorderedMapInt32CNWSAreaGrassOverride_size(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapInt32CNWSAreaGrassOverride_Clear___")] + public static extern void UnorderedMapInt32CNWSAreaGrassOverride_Clear(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapInt32CNWSAreaGrassOverride_find___")] + public static extern global::System.IntPtr UnorderedMapInt32CNWSAreaGrassOverride_find(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapInt32CNWSAreaGrassOverride_begin___")] + public static extern global::System.IntPtr UnorderedMapInt32CNWSAreaGrassOverride_begin(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapInt32CNWSAreaGrassOverride_end___")] + public static extern global::System.IntPtr UnorderedMapInt32CNWSAreaGrassOverride_end(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapInt32CNWSAreaGrassOverride_ContainsKey___")] + public static extern bool UnorderedMapInt32CNWSAreaGrassOverride_ContainsKey(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapInt32CNWSAreaGrassOverride_InternalSetValue___")] + public static extern void UnorderedMapInt32CNWSAreaGrassOverride_InternalSetValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapInt32CNWSAreaGrassOverride_InternalRemove___")] + public static extern void UnorderedMapInt32CNWSAreaGrassOverride_InternalRemove(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_delete_UnorderedMapInt32CNWSAreaGrassOverride___")] + public static extern void delete_UnorderedMapInt32CNWSAreaGrassOverride(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_UnorderedMapUInt64CachedRulesetEntry__SWIG_0___")] + public static extern global::System.IntPtr new_UnorderedMapUInt64CachedRulesetEntry__SWIG_0(); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_new_UnorderedMapUInt64CachedRulesetEntry__SWIG_1___")] + public static extern global::System.IntPtr new_UnorderedMapUInt64CachedRulesetEntry__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapUInt64CachedRulesetEntry_Iterator_MoveNext___")] + public static extern global::System.IntPtr UnorderedMapUInt64CachedRulesetEntry_Iterator_MoveNext(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapUInt64CachedRulesetEntry_Iterator_IsEqual___")] + public static extern bool UnorderedMapUInt64CachedRulesetEntry_Iterator_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapUInt64CachedRulesetEntry_Iterator_GetKey___")] + public static extern ulong UnorderedMapUInt64CachedRulesetEntry_Iterator_GetKey(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapUInt64CachedRulesetEntry_Iterator_GetValue___")] + public static extern global::System.IntPtr UnorderedMapUInt64CachedRulesetEntry_Iterator_GetValue(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapUInt64CachedRulesetEntry_Iterator_SetValue___")] + public static extern void UnorderedMapUInt64CachedRulesetEntry_Iterator_SetValue(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_delete_UnorderedMapUInt64CachedRulesetEntry_Iterator___")] + public static extern void delete_UnorderedMapUInt64CachedRulesetEntry_Iterator(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapUInt64CachedRulesetEntry_size___")] + public static extern uint UnorderedMapUInt64CachedRulesetEntry_size(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapUInt64CachedRulesetEntry_Clear___")] + public static extern void UnorderedMapUInt64CachedRulesetEntry_Clear(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapUInt64CachedRulesetEntry_find___")] + public static extern global::System.IntPtr UnorderedMapUInt64CachedRulesetEntry_find(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapUInt64CachedRulesetEntry_begin___")] + public static extern global::System.IntPtr UnorderedMapUInt64CachedRulesetEntry_begin(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapUInt64CachedRulesetEntry_end___")] + public static extern global::System.IntPtr UnorderedMapUInt64CachedRulesetEntry_end(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapUInt64CachedRulesetEntry_ContainsKey___")] + public static extern bool UnorderedMapUInt64CachedRulesetEntry_ContainsKey(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapUInt64CachedRulesetEntry_InternalSetValue___")] + public static extern void UnorderedMapUInt64CachedRulesetEntry_InternalSetValue(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_UnorderedMapUInt64CachedRulesetEntry_InternalRemove___")] + public static extern void UnorderedMapUInt64CachedRulesetEntry_InternalRemove(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_delete_UnorderedMapUInt64CachedRulesetEntry___")] + public static extern void delete_UnorderedMapUInt64CachedRulesetEntry(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_CGameObject_ICGameObject_GetInterfaceCPtr___")] public static extern global::System.IntPtr CGameObject_ICGameObject_GetInterfaceCPtr(global::System.IntPtr jarg1); @@ -47138,8 +47438,8 @@ static NWNXLibPINVOKE() { [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_STR_RES_HEADER_SWIGUpcast___")] public static extern global::System.IntPtr STR_RES_HEADER_SWIGUpcast(global::System.IntPtr jarg1); - [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_DataBlock_SWIGUpcast___")] - public static extern global::System.IntPtr DataBlock_SWIGUpcast(global::System.IntPtr jarg1); + [global::System.Runtime.InteropServices.DllImport("NWNX_SWIG_DotNET", EntryPoint="CSharp_NWNfNativefAPI_DataBlock_SWIGSmartPtrUpcast___")] + public static extern global::System.IntPtr DataBlock_SWIGSmartPtrUpcast(global::System.IntPtr jarg1); } } diff --git a/src/main/API/NWSVMachineUtils.cs b/src/main/API/NWSVMachineUtils.cs index 6406838..ddd98c6 100644 --- a/src/main/API/NWSVMachineUtils.cs +++ b/src/main/API/NWSVMachineUtils.cs @@ -100,20 +100,21 @@ public static CExoString GetDataTypeFor(ushort t) { return ret; } - public static SWIGTYPE_p_std__shared_ptrT_DataBlock_t SerializeToGff(ICGameObject o, int bSaveObjectState) { - SWIGTYPE_p_std__shared_ptrT_DataBlock_t ret = new SWIGTYPE_p_std__shared_ptrT_DataBlock_t(NWNXLibPINVOKE.NWSVMachineUtils_SerializeToGff(o == null ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : o.GetInterfaceCPtr(), bSaveObjectState), true); + public static DataBlock SerializeToGff(ICGameObject o, int bSaveObjectState) { + global::System.IntPtr cPtr = NWNXLibPINVOKE.NWSVMachineUtils_SerializeToGff(o == null ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : o.GetInterfaceCPtr(), bSaveObjectState); + DataBlock ret = (cPtr == global::System.IntPtr.Zero) ? null : new DataBlock(cPtr, true); return ret; } - public static ICGameObject DeserializeFromGff(SWIGTYPE_p_std__shared_ptrT_DataView_t d, int bLoadObjectState, CScriptLocation loc, uint owner, CExoString sNewTag, int bObjectCopy) { - global::System.IntPtr cPtr = NWNXLibPINVOKE.NWSVMachineUtils_DeserializeFromGff__SWIG_0(SWIGTYPE_p_std__shared_ptrT_DataView_t.getCPtr(d), bLoadObjectState, CScriptLocation.getCPtr(loc), owner, CExoString.getCPtr(sNewTag), bObjectCopy); + public static ICGameObject DeserializeFromGff(DataView d, int bLoadObjectState, CScriptLocation loc, uint owner, CExoString sNewTag, int bObjectCopy) { + global::System.IntPtr cPtr = NWNXLibPINVOKE.NWSVMachineUtils_DeserializeFromGff__SWIG_0(DataView.getCPtr(d), bLoadObjectState, CScriptLocation.getCPtr(loc), owner, CExoString.getCPtr(sNewTag), bObjectCopy); CGameObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new CGameObject(cPtr, false); if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return (ICGameObject)ret; } - public static ICGameObject DeserializeFromGff(SWIGTYPE_p_std__shared_ptrT_DataView_t d, int bLoadObjectState, CScriptLocation loc, uint owner, CExoString sNewTag) { - global::System.IntPtr cPtr = NWNXLibPINVOKE.NWSVMachineUtils_DeserializeFromGff__SWIG_1(SWIGTYPE_p_std__shared_ptrT_DataView_t.getCPtr(d), bLoadObjectState, CScriptLocation.getCPtr(loc), owner, CExoString.getCPtr(sNewTag)); + public static ICGameObject DeserializeFromGff(DataView d, int bLoadObjectState, CScriptLocation loc, uint owner, CExoString sNewTag) { + global::System.IntPtr cPtr = NWNXLibPINVOKE.NWSVMachineUtils_DeserializeFromGff__SWIG_1(DataView.getCPtr(d), bLoadObjectState, CScriptLocation.getCPtr(loc), owner, CExoString.getCPtr(sNewTag)); CGameObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new CGameObject(cPtr, false); if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); return (ICGameObject)ret; diff --git a/src/main/API/SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t.cs b/src/main/API/SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t.cs deleted file mode 100644 index b0b7e21..0000000 --- a/src/main/API/SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t.cs +++ /dev/null @@ -1,75 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 4.0.2 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace NWN.Native.API { - -public class SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - public global::System.IntPtr Pointer { - get { - return swigCPtr.Handle; - } - } - - public static unsafe implicit operator void*(SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t self) { - return (void*)self.swigCPtr.Handle; - } - - public static unsafe SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t FromPointer(void* pointer, bool memoryOwn = false) { - return pointer != null ? new SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t((global::System.IntPtr)pointer, memoryOwn) : null; - } - - public static SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { - return pointer != global::System.IntPtr.Zero ? new SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t(pointer, memoryOwn) : null; - } - - public bool Equals(SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t other) { - if (ReferenceEquals(null, other)) { - return false; - } - - if (ReferenceEquals(this, other)) { - return true; - } - - return Pointer.Equals(other.Pointer); - } - - public override bool Equals(object obj) { - return ReferenceEquals(this, obj) || obj is SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t other && Equals(other); - } - - public override int GetHashCode() { - return swigCPtr.Handle.GetHashCode(); - } - - public static bool operator ==(SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t left, SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t right) { - return Equals(left, right); - } - - public static bool operator !=(SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t left, SWIGTYPE_p_CExoArrayListT_CLastUpdateObject_p_t right) { - return !Equals(left, right); - } -} - -} diff --git a/src/main/API/SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t.cs b/src/main/API/SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t.cs deleted file mode 100644 index 24247ab..0000000 --- a/src/main/API/SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t.cs +++ /dev/null @@ -1,75 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 4.0.2 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace NWN.Native.API { - -public class SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - public global::System.IntPtr Pointer { - get { - return swigCPtr.Handle; - } - } - - public static unsafe implicit operator void*(SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t self) { - return (void*)self.swigCPtr.Handle; - } - - public static unsafe SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t FromPointer(void* pointer, bool memoryOwn = false) { - return pointer != null ? new SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t((global::System.IntPtr)pointer, memoryOwn) : null; - } - - public static SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { - return pointer != global::System.IntPtr.Zero ? new SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t(pointer, memoryOwn) : null; - } - - public bool Equals(SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t other) { - if (ReferenceEquals(null, other)) { - return false; - } - - if (ReferenceEquals(this, other)) { - return true; - } - - return Pointer.Equals(other.Pointer); - } - - public override bool Equals(object obj) { - return ReferenceEquals(this, obj) || obj is SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t other && Equals(other); - } - - public override int GetHashCode() { - return swigCPtr.Handle.GetHashCode(); - } - - public static bool operator ==(SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t left, SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t right) { - return Equals(left, right); - } - - public static bool operator !=(SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t left, SWIGTYPE_p_CExoArrayListT_CLastUpdatePartyObject_p_t right) { - return !Equals(left, right); - } -} - -} diff --git a/src/main/API/SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t.cs b/src/main/API/SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t.cs deleted file mode 100644 index bfc38e4..0000000 --- a/src/main/API/SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t.cs +++ /dev/null @@ -1,75 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 4.0.2 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace NWN.Native.API { - -public class SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - public global::System.IntPtr Pointer { - get { - return swigCPtr.Handle; - } - } - - public static unsafe implicit operator void*(SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t self) { - return (void*)self.swigCPtr.Handle; - } - - public static unsafe SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t FromPointer(void* pointer, bool memoryOwn = false) { - return pointer != null ? new SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t((global::System.IntPtr)pointer, memoryOwn) : null; - } - - public static SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { - return pointer != global::System.IntPtr.Zero ? new SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t(pointer, memoryOwn) : null; - } - - public bool Equals(SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t other) { - if (ReferenceEquals(null, other)) { - return false; - } - - if (ReferenceEquals(this, other)) { - return true; - } - - return Pointer.Equals(other.Pointer); - } - - public override bool Equals(object obj) { - return ReferenceEquals(this, obj) || obj is SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t other && Equals(other); - } - - public override int GetHashCode() { - return swigCPtr.Handle.GetHashCode(); - } - - public static bool operator ==(SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t left, SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t right) { - return Equals(left, right); - } - - public static bool operator !=(SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t left, SWIGTYPE_p_std__shared_ptrT_CVirtualMachineDebuggerInstance_t right) { - return !Equals(left, right); - } -} - -} diff --git a/src/main/API/SWIGTYPE_p_std__shared_ptrT_DataBlock_t.cs b/src/main/API/SWIGTYPE_p_std__shared_ptrT_DataBlock_t.cs deleted file mode 100644 index 534f2ee..0000000 --- a/src/main/API/SWIGTYPE_p_std__shared_ptrT_DataBlock_t.cs +++ /dev/null @@ -1,75 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 4.0.2 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace NWN.Native.API { - -public class SWIGTYPE_p_std__shared_ptrT_DataBlock_t { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_std__shared_ptrT_DataBlock_t(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_std__shared_ptrT_DataBlock_t() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_std__shared_ptrT_DataBlock_t obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - public global::System.IntPtr Pointer { - get { - return swigCPtr.Handle; - } - } - - public static unsafe implicit operator void*(SWIGTYPE_p_std__shared_ptrT_DataBlock_t self) { - return (void*)self.swigCPtr.Handle; - } - - public static unsafe SWIGTYPE_p_std__shared_ptrT_DataBlock_t FromPointer(void* pointer, bool memoryOwn = false) { - return pointer != null ? new SWIGTYPE_p_std__shared_ptrT_DataBlock_t((global::System.IntPtr)pointer, memoryOwn) : null; - } - - public static SWIGTYPE_p_std__shared_ptrT_DataBlock_t FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { - return pointer != global::System.IntPtr.Zero ? new SWIGTYPE_p_std__shared_ptrT_DataBlock_t(pointer, memoryOwn) : null; - } - - public bool Equals(SWIGTYPE_p_std__shared_ptrT_DataBlock_t other) { - if (ReferenceEquals(null, other)) { - return false; - } - - if (ReferenceEquals(this, other)) { - return true; - } - - return Pointer.Equals(other.Pointer); - } - - public override bool Equals(object obj) { - return ReferenceEquals(this, obj) || obj is SWIGTYPE_p_std__shared_ptrT_DataBlock_t other && Equals(other); - } - - public override int GetHashCode() { - return swigCPtr.Handle.GetHashCode(); - } - - public static bool operator ==(SWIGTYPE_p_std__shared_ptrT_DataBlock_t left, SWIGTYPE_p_std__shared_ptrT_DataBlock_t right) { - return Equals(left, right); - } - - public static bool operator !=(SWIGTYPE_p_std__shared_ptrT_DataBlock_t left, SWIGTYPE_p_std__shared_ptrT_DataBlock_t right) { - return !Equals(left, right); - } -} - -} diff --git a/src/main/API/SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t.cs b/src/main/API/SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t.cs deleted file mode 100644 index 2d9b4ab..0000000 --- a/src/main/API/SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t.cs +++ /dev/null @@ -1,75 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 4.0.2 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace NWN.Native.API { - -public class SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - public global::System.IntPtr Pointer { - get { - return swigCPtr.Handle; - } - } - - public static unsafe implicit operator void*(SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t self) { - return (void*)self.swigCPtr.Handle; - } - - public static unsafe SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t FromPointer(void* pointer, bool memoryOwn = false) { - return pointer != null ? new SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t((global::System.IntPtr)pointer, memoryOwn) : null; - } - - public static SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { - return pointer != global::System.IntPtr.Zero ? new SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t(pointer, memoryOwn) : null; - } - - public bool Equals(SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t other) { - if (ReferenceEquals(null, other)) { - return false; - } - - if (ReferenceEquals(this, other)) { - return true; - } - - return Pointer.Equals(other.Pointer); - } - - public override bool Equals(object obj) { - return ReferenceEquals(this, obj) || obj is SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t other && Equals(other); - } - - public override int GetHashCode() { - return swigCPtr.Handle.GetHashCode(); - } - - public static bool operator ==(SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t left, SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t right) { - return Equals(left, right); - } - - public static bool operator !=(SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t left, SWIGTYPE_p_std__shared_ptrT_DataView__Shared_t right) { - return !Equals(left, right); - } -} - -} diff --git a/src/main/API/SWIGTYPE_p_std__shared_ptrT_DataView_t.cs b/src/main/API/SWIGTYPE_p_std__shared_ptrT_DataView_t.cs deleted file mode 100644 index 40d20f1..0000000 --- a/src/main/API/SWIGTYPE_p_std__shared_ptrT_DataView_t.cs +++ /dev/null @@ -1,75 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 4.0.2 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace NWN.Native.API { - -public class SWIGTYPE_p_std__shared_ptrT_DataView_t { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_std__shared_ptrT_DataView_t(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_std__shared_ptrT_DataView_t() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_std__shared_ptrT_DataView_t obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - public global::System.IntPtr Pointer { - get { - return swigCPtr.Handle; - } - } - - public static unsafe implicit operator void*(SWIGTYPE_p_std__shared_ptrT_DataView_t self) { - return (void*)self.swigCPtr.Handle; - } - - public static unsafe SWIGTYPE_p_std__shared_ptrT_DataView_t FromPointer(void* pointer, bool memoryOwn = false) { - return pointer != null ? new SWIGTYPE_p_std__shared_ptrT_DataView_t((global::System.IntPtr)pointer, memoryOwn) : null; - } - - public static SWIGTYPE_p_std__shared_ptrT_DataView_t FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { - return pointer != global::System.IntPtr.Zero ? new SWIGTYPE_p_std__shared_ptrT_DataView_t(pointer, memoryOwn) : null; - } - - public bool Equals(SWIGTYPE_p_std__shared_ptrT_DataView_t other) { - if (ReferenceEquals(null, other)) { - return false; - } - - if (ReferenceEquals(this, other)) { - return true; - } - - return Pointer.Equals(other.Pointer); - } - - public override bool Equals(object obj) { - return ReferenceEquals(this, obj) || obj is SWIGTYPE_p_std__shared_ptrT_DataView_t other && Equals(other); - } - - public override int GetHashCode() { - return swigCPtr.Handle.GetHashCode(); - } - - public static bool operator ==(SWIGTYPE_p_std__shared_ptrT_DataView_t left, SWIGTYPE_p_std__shared_ptrT_DataView_t right) { - return Equals(left, right); - } - - public static bool operator !=(SWIGTYPE_p_std__shared_ptrT_DataView_t left, SWIGTYPE_p_std__shared_ptrT_DataView_t right) { - return !Equals(left, right); - } -} - -} diff --git a/src/main/API/SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t.cs b/src/main/API/SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t.cs deleted file mode 100644 index 872c12d..0000000 --- a/src/main/API/SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t.cs +++ /dev/null @@ -1,75 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 4.0.2 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace NWN.Native.API { - -public class SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - public global::System.IntPtr Pointer { - get { - return swigCPtr.Handle; - } - } - - public static unsafe implicit operator void*(SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t self) { - return (void*)self.swigCPtr.Handle; - } - - public static unsafe SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t FromPointer(void* pointer, bool memoryOwn = false) { - return pointer != null ? new SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t((global::System.IntPtr)pointer, memoryOwn) : null; - } - - public static SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { - return pointer != global::System.IntPtr.Zero ? new SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t(pointer, memoryOwn) : null; - } - - public bool Equals(SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t other) { - if (ReferenceEquals(null, other)) { - return false; - } - - if (ReferenceEquals(this, other)) { - return true; - } - - return Pointer.Equals(other.Pointer); - } - - public override bool Equals(object obj) { - return ReferenceEquals(this, obj) || obj is SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t other && Equals(other); - } - - public override int GetHashCode() { - return swigCPtr.Handle.GetHashCode(); - } - - public static bool operator ==(SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t left, SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t right) { - return Equals(left, right); - } - - public static bool operator !=(SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t left, SWIGTYPE_p_std__shared_ptrT_NWSQLite__Database_t right) { - return !Equals(left, right); - } -} - -} diff --git a/src/main/API/SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t.cs b/src/main/API/SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t.cs deleted file mode 100644 index 5cd0e79..0000000 --- a/src/main/API/SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t.cs +++ /dev/null @@ -1,75 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 4.0.2 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace NWN.Native.API { - -public class SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - public global::System.IntPtr Pointer { - get { - return swigCPtr.Handle; - } - } - - public static unsafe implicit operator void*(SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t self) { - return (void*)self.swigCPtr.Handle; - } - - public static unsafe SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t FromPointer(void* pointer, bool memoryOwn = false) { - return pointer != null ? new SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t((global::System.IntPtr)pointer, memoryOwn) : null; - } - - public static SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { - return pointer != global::System.IntPtr.Zero ? new SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t(pointer, memoryOwn) : null; - } - - public bool Equals(SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t other) { - if (ReferenceEquals(null, other)) { - return false; - } - - if (ReferenceEquals(this, other)) { - return true; - } - - return Pointer.Equals(other.Pointer); - } - - public override bool Equals(object obj) { - return ReferenceEquals(this, obj) || obj is SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t other && Equals(other); - } - - public override int GetHashCode() { - return swigCPtr.Handle.GetHashCode(); - } - - public static bool operator ==(SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t left, SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t right) { - return Equals(left, right); - } - - public static bool operator !=(SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t left, SWIGTYPE_p_std__unordered_mapT_int_CNWSAreaGrassOverride_t right) { - return !Equals(left, right); - } -} - -} diff --git a/src/main/API/SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t.cs b/src/main/API/SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t.cs deleted file mode 100644 index 45d0cd5..0000000 --- a/src/main/API/SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t.cs +++ /dev/null @@ -1,75 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 4.0.2 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace NWN.Native.API { - -public class SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - public global::System.IntPtr Pointer { - get { - return swigCPtr.Handle; - } - } - - public static unsafe implicit operator void*(SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t self) { - return (void*)self.swigCPtr.Handle; - } - - public static unsafe SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t FromPointer(void* pointer, bool memoryOwn = false) { - return pointer != null ? new SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t((global::System.IntPtr)pointer, memoryOwn) : null; - } - - public static SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { - return pointer != global::System.IntPtr.Zero ? new SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t(pointer, memoryOwn) : null; - } - - public bool Equals(SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t other) { - if (ReferenceEquals(null, other)) { - return false; - } - - if (ReferenceEquals(this, other)) { - return true; - } - - return Pointer.Equals(other.Pointer); - } - - public override bool Equals(object obj) { - return ReferenceEquals(this, obj) || obj is SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t other && Equals(other); - } - - public override int GetHashCode() { - return swigCPtr.Handle.GetHashCode(); - } - - public static bool operator ==(SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t left, SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t right) { - return Equals(left, right); - } - - public static bool operator !=(SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t left, SWIGTYPE_p_std__vectorT_NWSQLite__Migrations__Definition__MigrationDef_t right) { - return !Equals(left, right); - } -} - -} diff --git a/src/main/API/UnorderedMapInt32CNWSAreaGrassOverride.cs b/src/main/API/UnorderedMapInt32CNWSAreaGrassOverride.cs new file mode 100644 index 0000000..0b35f3e --- /dev/null +++ b/src/main/API/UnorderedMapInt32CNWSAreaGrassOverride.cs @@ -0,0 +1,436 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 4.0.2 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace NWN.Native.API { + +public unsafe class UnorderedMapInt32CNWSAreaGrassOverride : global::System.IDisposable, global::System.Collections.Generic.IDictionary { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal UnorderedMapInt32CNWSAreaGrassOverride(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(UnorderedMapInt32CNWSAreaGrassOverride obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~UnorderedMapInt32CNWSAreaGrassOverride() { + Dispose(false); + } + + public void Dispose() { + Dispose(true); + global::System.GC.SuppressFinalize(this); + } + + protected virtual void Dispose(bool disposing) { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NWNXLibPINVOKE.delete_UnorderedMapInt32CNWSAreaGrassOverride(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + } + } + + public global::System.IntPtr Pointer { + get { + return swigCPtr.Handle; + } + } + + public static unsafe implicit operator void*(UnorderedMapInt32CNWSAreaGrassOverride self) { + return (void*)self.swigCPtr.Handle; + } + + public static unsafe UnorderedMapInt32CNWSAreaGrassOverride FromPointer(void* pointer, bool memoryOwn = false) { + return pointer != null ? new UnorderedMapInt32CNWSAreaGrassOverride((global::System.IntPtr)pointer, memoryOwn) : null; + } + + public static UnorderedMapInt32CNWSAreaGrassOverride FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { + return pointer != global::System.IntPtr.Zero ? new UnorderedMapInt32CNWSAreaGrassOverride(pointer, memoryOwn) : null; + } + + public bool Equals(UnorderedMapInt32CNWSAreaGrassOverride other) { + if (ReferenceEquals(null, other)) { + return false; + } + + if (ReferenceEquals(this, other)) { + return true; + } + + return Pointer.Equals(other.Pointer); + } + + public override bool Equals(object obj) { + return ReferenceEquals(this, obj) || obj is UnorderedMapInt32CNWSAreaGrassOverride other && Equals(other); + } + + public override int GetHashCode() { + return swigCPtr.Handle.GetHashCode(); + } + + public static bool operator ==(UnorderedMapInt32CNWSAreaGrassOverride left, UnorderedMapInt32CNWSAreaGrassOverride right) { + return Equals(left, right); + } + + public static bool operator !=(UnorderedMapInt32CNWSAreaGrassOverride left, UnorderedMapInt32CNWSAreaGrassOverride right) { + return !Equals(left, right); + } + + public bool IsReadOnly + { + get => false; + } + + public int Count + { + get => (int)size(); + } + + public CNWSAreaGrassOverride this[int key] + { + get + { + Iterator iterator = find(key); + if (iterator.IsEqual(end())) + { + throw new global::System.Collections.Generic.KeyNotFoundException("The given key was not present in the UnorderedMap."); + } + + return iterator.GetValue(); + } + + set => InternalSetValue(key, value); + } + + public bool Remove(int key) + { + Iterator iterator = find(key); + if (!iterator.IsEqual(end())) + { + InternalRemove(iterator); + return true; + } + + return false; + } + + public bool TryGetValue(int key, out CNWSAreaGrassOverride value) + { + Iterator iterator = find(key); + if (iterator.IsEqual(end())) + { + value = default; + return false; + } + + value = iterator.GetValue(); + return true; + } + + public global::System.Collections.Generic.ICollection Keys + { + get + { + int startCount = Count; + Iterator iterator = begin(); + Iterator endIterator = end(); + + global::System.Collections.Generic.ICollection keys = new global::System.Collections.Generic.List(); + + while (!iterator.IsEqual(endIterator)) + { + if (Count != startCount) + { + throw new System.InvalidOperationException("Collection was modified; enumeration operation may not execute."); + } + + keys.Add(iterator.GetKey()); + iterator = iterator.MoveNext(); + } + + return keys; + } + } + + public global::System.Collections.Generic.ICollection Values + { + get + { + int startCount = Count; + Iterator iterator = begin(); + Iterator endIterator = end(); + + global::System.Collections.Generic.ICollection values = new global::System.Collections.Generic.List(); + + while (!iterator.IsEqual(endIterator)) + { + if (Count != startCount) + { + throw new System.InvalidOperationException("Collection was modified; enumeration operation may not execute."); + } + + values.Add(iterator.GetValue()); + iterator = iterator.MoveNext(); + } + + return values; + } + } + + public void Add(int key, CNWSAreaGrassOverride value) + { + if (ContainsKey(key)) + { + throw new global::System.ArgumentException(nameof(key), "An item with the same key has already been added."); + } + + InternalSetValue(key, value); + } + + public void Add(global::System.Collections.Generic.KeyValuePair item) + { + Add(item.Key, item.Value); + } + + bool global::System.Collections.Generic.ICollection>.Contains(global::System.Collections.Generic.KeyValuePair keyValuePair) + { + return TryGetValue(keyValuePair.Key, out CNWSAreaGrassOverride value) && value == keyValuePair.Value; + } + + bool global::System.Collections.Generic.ICollection>.Remove(global::System.Collections.Generic.KeyValuePair keyValuePair) + { + Iterator iterator = find(keyValuePair.Key); + if (!iterator.IsEqual(end()) && iterator.GetValue() == keyValuePair.Value) + { + InternalRemove(iterator); + return true; + } + + return false; + } + + public void CopyTo(global::System.Collections.Generic.KeyValuePair[] array) + { + CopyTo(array, 0); + } + + public void CopyTo(global::System.Collections.Generic.KeyValuePair[] array, int arrayIndex) + { + if (array == null) + throw new global::System.ArgumentNullException("array"); + if (arrayIndex < 0) + throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero"); + if (array.Rank > 1) + throw new global::System.ArgumentException("Multi dimensional array.", "array"); + if (arrayIndex+this.Count > array.Length) + throw new global::System.ArgumentException("Number of elements to copy is too large."); + + int startCount = Count; + Iterator iterator = begin(); + Iterator endIterator = end(); + + for (int i = 0; i < Count && !iterator.IsEqual(endIterator); i++, iterator = iterator.MoveNext()) + { + if (Count != startCount) + { + throw new System.InvalidOperationException("Collection was modified; enumeration operation may not execute."); + } + + array.SetValue(new global::System.Collections.Generic.KeyValuePair(iterator.GetKey(), iterator.GetValue()), arrayIndex+i); + } + } + + public global::System.Collections.Generic.IEnumerator> GetEnumerator() + { + int startCount = Count; + Iterator iterator = begin(); + Iterator endIterator = end(); + + while (!iterator.IsEqual(endIterator)) + { + if (Count != startCount) + { + throw new System.InvalidOperationException("Collection was modified; enumeration operation may not execute."); + } + + yield return new global::System.Collections.Generic.KeyValuePair(iterator.GetKey(), iterator.GetValue()); + iterator = iterator.MoveNext(); + } + } + + global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public UnorderedMapInt32CNWSAreaGrassOverride() : this(NWNXLibPINVOKE.new_UnorderedMapInt32CNWSAreaGrassOverride__SWIG_0(), true) { + } + + public UnorderedMapInt32CNWSAreaGrassOverride(UnorderedMapInt32CNWSAreaGrassOverride other) : this(NWNXLibPINVOKE.new_UnorderedMapInt32CNWSAreaGrassOverride__SWIG_1(UnorderedMapInt32CNWSAreaGrassOverride.getCPtr(other)), true) { + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + private class Iterator : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal Iterator(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Iterator obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~Iterator() { + Dispose(false); + } + + public void Dispose() { + Dispose(true); + global::System.GC.SuppressFinalize(this); + } + + protected virtual void Dispose(bool disposing) { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NWNXLibPINVOKE.delete_UnorderedMapInt32CNWSAreaGrassOverride_Iterator(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + } + } + + public global::System.IntPtr Pointer { + get { + return swigCPtr.Handle; + } + } + + public static unsafe implicit operator void*(Iterator self) { + return (void*)self.swigCPtr.Handle; + } + + public static unsafe Iterator FromPointer(void* pointer, bool memoryOwn = false) { + return pointer != null ? new Iterator((global::System.IntPtr)pointer, memoryOwn) : null; + } + + public static Iterator FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { + return pointer != global::System.IntPtr.Zero ? new Iterator(pointer, memoryOwn) : null; + } + + public bool Equals(Iterator other) { + if (ReferenceEquals(null, other)) { + return false; + } + + if (ReferenceEquals(this, other)) { + return true; + } + + return Pointer.Equals(other.Pointer); + } + + public override bool Equals(object obj) { + return ReferenceEquals(this, obj) || obj is Iterator other && Equals(other); + } + + public override int GetHashCode() { + return swigCPtr.Handle.GetHashCode(); + } + + public static bool operator ==(Iterator left, Iterator right) { + return Equals(left, right); + } + + public static bool operator !=(Iterator left, Iterator right) { + return !Equals(left, right); + } + + public UnorderedMapInt32CNWSAreaGrassOverride.Iterator MoveNext() { + UnorderedMapInt32CNWSAreaGrassOverride.Iterator ret = new UnorderedMapInt32CNWSAreaGrassOverride.Iterator(NWNXLibPINVOKE.UnorderedMapInt32CNWSAreaGrassOverride_Iterator_MoveNext(swigCPtr), true); + return ret; + } + + internal bool IsEqual(UnorderedMapInt32CNWSAreaGrassOverride.Iterator other) { + bool ret = NWNXLibPINVOKE.UnorderedMapInt32CNWSAreaGrassOverride_Iterator_IsEqual(swigCPtr, UnorderedMapInt32CNWSAreaGrassOverride.Iterator.getCPtr(other)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal int GetKey() { + int retVal = NWNXLibPINVOKE.UnorderedMapInt32CNWSAreaGrassOverride_Iterator_GetKey(swigCPtr); + return retVal; + } + + internal CNWSAreaGrassOverride GetValue() { + CNWSAreaGrassOverride ret = new CNWSAreaGrassOverride(NWNXLibPINVOKE.UnorderedMapInt32CNWSAreaGrassOverride_Iterator_GetValue(swigCPtr), true); + return ret; + } + + internal void SetValue(CNWSAreaGrassOverride newValue) { + NWNXLibPINVOKE.UnorderedMapInt32CNWSAreaGrassOverride_Iterator_SetValue(swigCPtr, CNWSAreaGrassOverride.getCPtr(newValue)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + } + + private uint size() { + uint ret = NWNXLibPINVOKE.UnorderedMapInt32CNWSAreaGrassOverride_size(swigCPtr); + return ret; + } + + public void Clear() { + NWNXLibPINVOKE.UnorderedMapInt32CNWSAreaGrassOverride_Clear(swigCPtr); + } + + private UnorderedMapInt32CNWSAreaGrassOverride.Iterator find(int key) { + UnorderedMapInt32CNWSAreaGrassOverride.Iterator ret = new UnorderedMapInt32CNWSAreaGrassOverride.Iterator(NWNXLibPINVOKE.UnorderedMapInt32CNWSAreaGrassOverride_find(swigCPtr, key), true); + return ret; + } + + private UnorderedMapInt32CNWSAreaGrassOverride.Iterator begin() { + UnorderedMapInt32CNWSAreaGrassOverride.Iterator ret = new UnorderedMapInt32CNWSAreaGrassOverride.Iterator(NWNXLibPINVOKE.UnorderedMapInt32CNWSAreaGrassOverride_begin(swigCPtr), true); + return ret; + } + + private UnorderedMapInt32CNWSAreaGrassOverride.Iterator end() { + UnorderedMapInt32CNWSAreaGrassOverride.Iterator ret = new UnorderedMapInt32CNWSAreaGrassOverride.Iterator(NWNXLibPINVOKE.UnorderedMapInt32CNWSAreaGrassOverride_end(swigCPtr), true); + return ret; + } + + public bool ContainsKey(int key) { + bool ret = NWNXLibPINVOKE.UnorderedMapInt32CNWSAreaGrassOverride_ContainsKey(swigCPtr, key); + return ret; + } + + private void InternalSetValue(int key, CNWSAreaGrassOverride value) { + NWNXLibPINVOKE.UnorderedMapInt32CNWSAreaGrassOverride_InternalSetValue(swigCPtr, key, CNWSAreaGrassOverride.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + private void InternalRemove(UnorderedMapInt32CNWSAreaGrassOverride.Iterator itr) { + NWNXLibPINVOKE.UnorderedMapInt32CNWSAreaGrassOverride_InternalRemove(swigCPtr, UnorderedMapInt32CNWSAreaGrassOverride.Iterator.getCPtr(itr)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + +} + +} diff --git a/src/main/API/UnorderedMapUInt64CachedRulesetEntry.cs b/src/main/API/UnorderedMapUInt64CachedRulesetEntry.cs new file mode 100644 index 0000000..a6e8775 --- /dev/null +++ b/src/main/API/UnorderedMapUInt64CachedRulesetEntry.cs @@ -0,0 +1,436 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 4.0.2 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace NWN.Native.API { + +public unsafe class UnorderedMapUInt64CachedRulesetEntry : global::System.IDisposable, global::System.Collections.Generic.IDictionary { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal UnorderedMapUInt64CachedRulesetEntry(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(UnorderedMapUInt64CachedRulesetEntry obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~UnorderedMapUInt64CachedRulesetEntry() { + Dispose(false); + } + + public void Dispose() { + Dispose(true); + global::System.GC.SuppressFinalize(this); + } + + protected virtual void Dispose(bool disposing) { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NWNXLibPINVOKE.delete_UnorderedMapUInt64CachedRulesetEntry(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + } + } + + public global::System.IntPtr Pointer { + get { + return swigCPtr.Handle; + } + } + + public static unsafe implicit operator void*(UnorderedMapUInt64CachedRulesetEntry self) { + return (void*)self.swigCPtr.Handle; + } + + public static unsafe UnorderedMapUInt64CachedRulesetEntry FromPointer(void* pointer, bool memoryOwn = false) { + return pointer != null ? new UnorderedMapUInt64CachedRulesetEntry((global::System.IntPtr)pointer, memoryOwn) : null; + } + + public static UnorderedMapUInt64CachedRulesetEntry FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { + return pointer != global::System.IntPtr.Zero ? new UnorderedMapUInt64CachedRulesetEntry(pointer, memoryOwn) : null; + } + + public bool Equals(UnorderedMapUInt64CachedRulesetEntry other) { + if (ReferenceEquals(null, other)) { + return false; + } + + if (ReferenceEquals(this, other)) { + return true; + } + + return Pointer.Equals(other.Pointer); + } + + public override bool Equals(object obj) { + return ReferenceEquals(this, obj) || obj is UnorderedMapUInt64CachedRulesetEntry other && Equals(other); + } + + public override int GetHashCode() { + return swigCPtr.Handle.GetHashCode(); + } + + public static bool operator ==(UnorderedMapUInt64CachedRulesetEntry left, UnorderedMapUInt64CachedRulesetEntry right) { + return Equals(left, right); + } + + public static bool operator !=(UnorderedMapUInt64CachedRulesetEntry left, UnorderedMapUInt64CachedRulesetEntry right) { + return !Equals(left, right); + } + + public bool IsReadOnly + { + get => false; + } + + public int Count + { + get => (int)size(); + } + + public CachedRulesetEntry this[ulong key] + { + get + { + Iterator iterator = find(key); + if (iterator.IsEqual(end())) + { + throw new global::System.Collections.Generic.KeyNotFoundException("The given key was not present in the UnorderedMap."); + } + + return iterator.GetValue(); + } + + set => InternalSetValue(key, value); + } + + public bool Remove(ulong key) + { + Iterator iterator = find(key); + if (!iterator.IsEqual(end())) + { + InternalRemove(iterator); + return true; + } + + return false; + } + + public bool TryGetValue(ulong key, out CachedRulesetEntry value) + { + Iterator iterator = find(key); + if (iterator.IsEqual(end())) + { + value = default; + return false; + } + + value = iterator.GetValue(); + return true; + } + + public global::System.Collections.Generic.ICollection Keys + { + get + { + int startCount = Count; + Iterator iterator = begin(); + Iterator endIterator = end(); + + global::System.Collections.Generic.ICollection keys = new global::System.Collections.Generic.List(); + + while (!iterator.IsEqual(endIterator)) + { + if (Count != startCount) + { + throw new System.InvalidOperationException("Collection was modified; enumeration operation may not execute."); + } + + keys.Add(iterator.GetKey()); + iterator = iterator.MoveNext(); + } + + return keys; + } + } + + public global::System.Collections.Generic.ICollection Values + { + get + { + int startCount = Count; + Iterator iterator = begin(); + Iterator endIterator = end(); + + global::System.Collections.Generic.ICollection values = new global::System.Collections.Generic.List(); + + while (!iterator.IsEqual(endIterator)) + { + if (Count != startCount) + { + throw new System.InvalidOperationException("Collection was modified; enumeration operation may not execute."); + } + + values.Add(iterator.GetValue()); + iterator = iterator.MoveNext(); + } + + return values; + } + } + + public void Add(ulong key, CachedRulesetEntry value) + { + if (ContainsKey(key)) + { + throw new global::System.ArgumentException(nameof(key), "An item with the same key has already been added."); + } + + InternalSetValue(key, value); + } + + public void Add(global::System.Collections.Generic.KeyValuePair item) + { + Add(item.Key, item.Value); + } + + bool global::System.Collections.Generic.ICollection>.Contains(global::System.Collections.Generic.KeyValuePair keyValuePair) + { + return TryGetValue(keyValuePair.Key, out CachedRulesetEntry value) && value == keyValuePair.Value; + } + + bool global::System.Collections.Generic.ICollection>.Remove(global::System.Collections.Generic.KeyValuePair keyValuePair) + { + Iterator iterator = find(keyValuePair.Key); + if (!iterator.IsEqual(end()) && iterator.GetValue() == keyValuePair.Value) + { + InternalRemove(iterator); + return true; + } + + return false; + } + + public void CopyTo(global::System.Collections.Generic.KeyValuePair[] array) + { + CopyTo(array, 0); + } + + public void CopyTo(global::System.Collections.Generic.KeyValuePair[] array, int arrayIndex) + { + if (array == null) + throw new global::System.ArgumentNullException("array"); + if (arrayIndex < 0) + throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero"); + if (array.Rank > 1) + throw new global::System.ArgumentException("Multi dimensional array.", "array"); + if (arrayIndex+this.Count > array.Length) + throw new global::System.ArgumentException("Number of elements to copy is too large."); + + int startCount = Count; + Iterator iterator = begin(); + Iterator endIterator = end(); + + for (int i = 0; i < Count && !iterator.IsEqual(endIterator); i++, iterator = iterator.MoveNext()) + { + if (Count != startCount) + { + throw new System.InvalidOperationException("Collection was modified; enumeration operation may not execute."); + } + + array.SetValue(new global::System.Collections.Generic.KeyValuePair(iterator.GetKey(), iterator.GetValue()), arrayIndex+i); + } + } + + public global::System.Collections.Generic.IEnumerator> GetEnumerator() + { + int startCount = Count; + Iterator iterator = begin(); + Iterator endIterator = end(); + + while (!iterator.IsEqual(endIterator)) + { + if (Count != startCount) + { + throw new System.InvalidOperationException("Collection was modified; enumeration operation may not execute."); + } + + yield return new global::System.Collections.Generic.KeyValuePair(iterator.GetKey(), iterator.GetValue()); + iterator = iterator.MoveNext(); + } + } + + global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public UnorderedMapUInt64CachedRulesetEntry() : this(NWNXLibPINVOKE.new_UnorderedMapUInt64CachedRulesetEntry__SWIG_0(), true) { + } + + public UnorderedMapUInt64CachedRulesetEntry(UnorderedMapUInt64CachedRulesetEntry other) : this(NWNXLibPINVOKE.new_UnorderedMapUInt64CachedRulesetEntry__SWIG_1(UnorderedMapUInt64CachedRulesetEntry.getCPtr(other)), true) { + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + private class Iterator : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal Iterator(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Iterator obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~Iterator() { + Dispose(false); + } + + public void Dispose() { + Dispose(true); + global::System.GC.SuppressFinalize(this); + } + + protected virtual void Dispose(bool disposing) { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NWNXLibPINVOKE.delete_UnorderedMapUInt64CachedRulesetEntry_Iterator(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + } + } + + public global::System.IntPtr Pointer { + get { + return swigCPtr.Handle; + } + } + + public static unsafe implicit operator void*(Iterator self) { + return (void*)self.swigCPtr.Handle; + } + + public static unsafe Iterator FromPointer(void* pointer, bool memoryOwn = false) { + return pointer != null ? new Iterator((global::System.IntPtr)pointer, memoryOwn) : null; + } + + public static Iterator FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { + return pointer != global::System.IntPtr.Zero ? new Iterator(pointer, memoryOwn) : null; + } + + public bool Equals(Iterator other) { + if (ReferenceEquals(null, other)) { + return false; + } + + if (ReferenceEquals(this, other)) { + return true; + } + + return Pointer.Equals(other.Pointer); + } + + public override bool Equals(object obj) { + return ReferenceEquals(this, obj) || obj is Iterator other && Equals(other); + } + + public override int GetHashCode() { + return swigCPtr.Handle.GetHashCode(); + } + + public static bool operator ==(Iterator left, Iterator right) { + return Equals(left, right); + } + + public static bool operator !=(Iterator left, Iterator right) { + return !Equals(left, right); + } + + public UnorderedMapUInt64CachedRulesetEntry.Iterator MoveNext() { + UnorderedMapUInt64CachedRulesetEntry.Iterator ret = new UnorderedMapUInt64CachedRulesetEntry.Iterator(NWNXLibPINVOKE.UnorderedMapUInt64CachedRulesetEntry_Iterator_MoveNext(swigCPtr), true); + return ret; + } + + internal bool IsEqual(UnorderedMapUInt64CachedRulesetEntry.Iterator other) { + bool ret = NWNXLibPINVOKE.UnorderedMapUInt64CachedRulesetEntry_Iterator_IsEqual(swigCPtr, UnorderedMapUInt64CachedRulesetEntry.Iterator.getCPtr(other)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal ulong GetKey() { + ulong ret = NWNXLibPINVOKE.UnorderedMapUInt64CachedRulesetEntry_Iterator_GetKey(swigCPtr); + return ret; + } + + internal CachedRulesetEntry GetValue() { + CachedRulesetEntry ret = new CachedRulesetEntry(NWNXLibPINVOKE.UnorderedMapUInt64CachedRulesetEntry_Iterator_GetValue(swigCPtr), true); + return ret; + } + + internal void SetValue(CachedRulesetEntry newValue) { + NWNXLibPINVOKE.UnorderedMapUInt64CachedRulesetEntry_Iterator_SetValue(swigCPtr, CachedRulesetEntry.getCPtr(newValue)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + } + + private uint size() { + uint ret = NWNXLibPINVOKE.UnorderedMapUInt64CachedRulesetEntry_size(swigCPtr); + return ret; + } + + public void Clear() { + NWNXLibPINVOKE.UnorderedMapUInt64CachedRulesetEntry_Clear(swigCPtr); + } + + private UnorderedMapUInt64CachedRulesetEntry.Iterator find(ulong key) { + UnorderedMapUInt64CachedRulesetEntry.Iterator ret = new UnorderedMapUInt64CachedRulesetEntry.Iterator(NWNXLibPINVOKE.UnorderedMapUInt64CachedRulesetEntry_find(swigCPtr, key), true); + return ret; + } + + private UnorderedMapUInt64CachedRulesetEntry.Iterator begin() { + UnorderedMapUInt64CachedRulesetEntry.Iterator ret = new UnorderedMapUInt64CachedRulesetEntry.Iterator(NWNXLibPINVOKE.UnorderedMapUInt64CachedRulesetEntry_begin(swigCPtr), true); + return ret; + } + + private UnorderedMapUInt64CachedRulesetEntry.Iterator end() { + UnorderedMapUInt64CachedRulesetEntry.Iterator ret = new UnorderedMapUInt64CachedRulesetEntry.Iterator(NWNXLibPINVOKE.UnorderedMapUInt64CachedRulesetEntry_end(swigCPtr), true); + return ret; + } + + public bool ContainsKey(ulong key) { + bool ret = NWNXLibPINVOKE.UnorderedMapUInt64CachedRulesetEntry_ContainsKey(swigCPtr, key); + return ret; + } + + private void InternalSetValue(ulong key, CachedRulesetEntry value) { + NWNXLibPINVOKE.UnorderedMapUInt64CachedRulesetEntry_InternalSetValue(swigCPtr, key, CachedRulesetEntry.getCPtr(value)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + private void InternalRemove(UnorderedMapUInt64CachedRulesetEntry.Iterator itr) { + NWNXLibPINVOKE.UnorderedMapUInt64CachedRulesetEntry_InternalRemove(swigCPtr, UnorderedMapUInt64CachedRulesetEntry.Iterator.getCPtr(itr)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + +} + +} diff --git a/src/main/API/VectorNWSQLiteMigrationsDefinitionMigrationDef.cs b/src/main/API/VectorNWSQLiteMigrationsDefinitionMigrationDef.cs new file mode 100644 index 0000000..d703085 --- /dev/null +++ b/src/main/API/VectorNWSQLiteMigrationsDefinitionMigrationDef.cs @@ -0,0 +1,372 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 4.0.2 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace NWN.Native.API { + +public unsafe class VectorNWSQLiteMigrationsDefinitionMigrationDef : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerable + { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal VectorNWSQLiteMigrationsDefinitionMigrationDef(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VectorNWSQLiteMigrationsDefinitionMigrationDef obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~VectorNWSQLiteMigrationsDefinitionMigrationDef() { + Dispose(false); + } + + public void Dispose() { + Dispose(true); + global::System.GC.SuppressFinalize(this); + } + + protected virtual void Dispose(bool disposing) { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NWNXLibPINVOKE.delete_VectorNWSQLiteMigrationsDefinitionMigrationDef(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + } + } + + public global::System.IntPtr Pointer { + get { + return swigCPtr.Handle; + } + } + + public static unsafe implicit operator void*(VectorNWSQLiteMigrationsDefinitionMigrationDef self) { + return (void*)self.swigCPtr.Handle; + } + + public static unsafe VectorNWSQLiteMigrationsDefinitionMigrationDef FromPointer(void* pointer, bool memoryOwn = false) { + return pointer != null ? new VectorNWSQLiteMigrationsDefinitionMigrationDef((global::System.IntPtr)pointer, memoryOwn) : null; + } + + public static VectorNWSQLiteMigrationsDefinitionMigrationDef FromPointer(global::System.IntPtr pointer, bool memoryOwn = false) { + return pointer != global::System.IntPtr.Zero ? new VectorNWSQLiteMigrationsDefinitionMigrationDef(pointer, memoryOwn) : null; + } + + public bool Equals(VectorNWSQLiteMigrationsDefinitionMigrationDef other) { + if (ReferenceEquals(null, other)) { + return false; + } + + if (ReferenceEquals(this, other)) { + return true; + } + + return Pointer.Equals(other.Pointer); + } + + public override bool Equals(object obj) { + return ReferenceEquals(this, obj) || obj is VectorNWSQLiteMigrationsDefinitionMigrationDef other && Equals(other); + } + + public override int GetHashCode() { + return swigCPtr.Handle.GetHashCode(); + } + + public static bool operator ==(VectorNWSQLiteMigrationsDefinitionMigrationDef left, VectorNWSQLiteMigrationsDefinitionMigrationDef right) { + return Equals(left, right); + } + + public static bool operator !=(VectorNWSQLiteMigrationsDefinitionMigrationDef left, VectorNWSQLiteMigrationsDefinitionMigrationDef right) { + return !Equals(left, right); + } + + public VectorNWSQLiteMigrationsDefinitionMigrationDef(global::System.Collections.IEnumerable c) : this() { + if (c == null) + throw new global::System.ArgumentNullException("c"); + foreach (Definition.MigrationDef element in c) { + this.Add(element); + } + } + + public VectorNWSQLiteMigrationsDefinitionMigrationDef(global::System.Collections.Generic.IEnumerable c) : this() { + if (c == null) + throw new global::System.ArgumentNullException("c"); + foreach (Definition.MigrationDef element in c) { + this.Add(element); + } + } + + public bool IsFixedSize { + get { + return false; + } + } + + public bool IsReadOnly { + get { + return false; + } + } + + public Definition.MigrationDef this[int index] { + get { + return getitem(index); + } + set { + setitem(index, value); + } + } + + public int Capacity { + get { + return (int)capacity(); + } + set { + if (value < size()) + throw new global::System.ArgumentOutOfRangeException("Capacity"); + reserve((uint)value); + } + } + + public int Count { + get { + return (int)size(); + } + } + + public bool IsSynchronized { + get { + return false; + } + } + + public void CopyTo(Definition.MigrationDef[] array) + { + CopyTo(0, array, 0, this.Count); + } + + public void CopyTo(Definition.MigrationDef[] array, int arrayIndex) + { + CopyTo(0, array, arrayIndex, this.Count); + } + + public void CopyTo(int index, Definition.MigrationDef[] array, int arrayIndex, int count) + { + if (array == null) + throw new global::System.ArgumentNullException("array"); + if (index < 0) + throw new global::System.ArgumentOutOfRangeException("index", "Value is less than zero"); + if (arrayIndex < 0) + throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero"); + if (count < 0) + throw new global::System.ArgumentOutOfRangeException("count", "Value is less than zero"); + if (array.Rank > 1) + throw new global::System.ArgumentException("Multi dimensional array.", "array"); + if (index+count > this.Count || arrayIndex+count > array.Length) + throw new global::System.ArgumentException("Number of elements to copy is too large."); + for (int i=0; i global::System.Collections.Generic.IEnumerable.GetEnumerator() { + return new VectorNWSQLiteMigrationsDefinitionMigrationDefEnumerator(this); + } + + global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { + return new VectorNWSQLiteMigrationsDefinitionMigrationDefEnumerator(this); + } + + public VectorNWSQLiteMigrationsDefinitionMigrationDefEnumerator GetEnumerator() { + return new VectorNWSQLiteMigrationsDefinitionMigrationDefEnumerator(this); + } + + // Type-safe enumerator + /// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown + /// whenever the collection is modified. This has been done for changes in the size of the + /// collection but not when one of the elements of the collection is modified as it is a bit + /// tricky to detect unmanaged code that modifies the collection under our feet. + public sealed class VectorNWSQLiteMigrationsDefinitionMigrationDefEnumerator : global::System.Collections.IEnumerator + , global::System.Collections.Generic.IEnumerator + { + private VectorNWSQLiteMigrationsDefinitionMigrationDef collectionRef; + private int currentIndex; + private object currentObject; + private int currentSize; + + public VectorNWSQLiteMigrationsDefinitionMigrationDefEnumerator(VectorNWSQLiteMigrationsDefinitionMigrationDef collection) { + collectionRef = collection; + currentIndex = -1; + currentObject = null; + currentSize = collectionRef.Count; + } + + // Type-safe iterator Current + public Definition.MigrationDef Current { + get { + if (currentIndex == -1) + throw new global::System.InvalidOperationException("Enumeration not started."); + if (currentIndex > currentSize - 1) + throw new global::System.InvalidOperationException("Enumeration finished."); + if (currentObject == null) + throw new global::System.InvalidOperationException("Collection modified."); + return (Definition.MigrationDef)currentObject; + } + } + + // Type-unsafe IEnumerator.Current + object global::System.Collections.IEnumerator.Current { + get { + return Current; + } + } + + public bool MoveNext() { + int size = collectionRef.Count; + bool moveOkay = (currentIndex+1 < size) && (size == currentSize); + if (moveOkay) { + currentIndex++; + currentObject = collectionRef[currentIndex]; + } else { + currentObject = null; + } + return moveOkay; + } + + public void Reset() { + currentIndex = -1; + currentObject = null; + if (collectionRef.Count != currentSize) { + throw new global::System.InvalidOperationException("Collection modified."); + } + } + + public void Dispose() { + currentIndex = -1; + currentObject = null; + } + } + + public void Clear() { + NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_Clear(swigCPtr); + } + + public void Add(Definition.MigrationDef x) { + NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_Add(swigCPtr, Definition.MigrationDef.getCPtr(x)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + private uint size() { + uint ret = NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_size(swigCPtr); + return ret; + } + + private uint capacity() { + uint ret = NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_capacity(swigCPtr); + return ret; + } + + private void reserve(uint n) { + NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_reserve(swigCPtr, n); + } + + public VectorNWSQLiteMigrationsDefinitionMigrationDef() : this(NWNXLibPINVOKE.new_VectorNWSQLiteMigrationsDefinitionMigrationDef__SWIG_0(), true) { + } + + public VectorNWSQLiteMigrationsDefinitionMigrationDef(VectorNWSQLiteMigrationsDefinitionMigrationDef other) : this(NWNXLibPINVOKE.new_VectorNWSQLiteMigrationsDefinitionMigrationDef__SWIG_1(VectorNWSQLiteMigrationsDefinitionMigrationDef.getCPtr(other)), true) { + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public VectorNWSQLiteMigrationsDefinitionMigrationDef(int capacity) : this(NWNXLibPINVOKE.new_VectorNWSQLiteMigrationsDefinitionMigrationDef__SWIG_2(capacity), true) { + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + private Definition.MigrationDef getitemcopy(int index) { + Definition.MigrationDef ret = new Definition.MigrationDef(NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_getitemcopy(swigCPtr, index), true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Definition.MigrationDef getitem(int index) { + Definition.MigrationDef ret = new Definition.MigrationDef(NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_getitem(swigCPtr, index), false); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private void setitem(int index, Definition.MigrationDef val) { + NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_setitem(swigCPtr, index, Definition.MigrationDef.getCPtr(val)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public void AddRange(VectorNWSQLiteMigrationsDefinitionMigrationDef values) { + NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_AddRange(swigCPtr, VectorNWSQLiteMigrationsDefinitionMigrationDef.getCPtr(values)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public VectorNWSQLiteMigrationsDefinitionMigrationDef GetRange(int index, int count) { + global::System.IntPtr cPtr = NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_GetRange(swigCPtr, index, count); + VectorNWSQLiteMigrationsDefinitionMigrationDef ret = (cPtr == global::System.IntPtr.Zero) ? null : new VectorNWSQLiteMigrationsDefinitionMigrationDef(cPtr, true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public void Insert(int index, Definition.MigrationDef x) { + NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_Insert(swigCPtr, index, Definition.MigrationDef.getCPtr(x)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public void InsertRange(int index, VectorNWSQLiteMigrationsDefinitionMigrationDef values) { + NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_InsertRange(swigCPtr, index, VectorNWSQLiteMigrationsDefinitionMigrationDef.getCPtr(values)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public void RemoveAt(int index) { + NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_RemoveAt(swigCPtr, index); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public void RemoveRange(int index, int count) { + NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_RemoveRange(swigCPtr, index, count); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public static VectorNWSQLiteMigrationsDefinitionMigrationDef Repeat(Definition.MigrationDef value, int count) { + global::System.IntPtr cPtr = NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_Repeat(Definition.MigrationDef.getCPtr(value), count); + VectorNWSQLiteMigrationsDefinitionMigrationDef ret = (cPtr == global::System.IntPtr.Zero) ? null : new VectorNWSQLiteMigrationsDefinitionMigrationDef(cPtr, true); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public void Reverse() { + NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_Reverse__SWIG_0(swigCPtr); + } + + public void Reverse(int index, int count) { + NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_Reverse__SWIG_1(swigCPtr, index, count); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + + public void SetRange(int index, VectorNWSQLiteMigrationsDefinitionMigrationDef values) { + NWNXLibPINVOKE.VectorNWSQLiteMigrationsDefinitionMigrationDef_SetRange(swigCPtr, index, VectorNWSQLiteMigrationsDefinitionMigrationDef.getCPtr(values)); + if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve(); + } + +} + +}