///
/// Internals of the bindings between native and .NET code.
/// Game code shouldn't go here.
///
///
/// Jackson Dunstan, 2017, http://JacksonDunstan.com
///
///
/// MIT
///
// Type definitions
#include "Bindings.h"
// For assert()
#include
// For int32_t, etc.
#include
// For malloc(), etc.
#include
// For memset(), etc.
#include
// Macro to put before functions that need to be exposed to C#
#ifdef _WIN32
#define DLLEXPORT extern "C" __declspec(dllexport)
#else
#define DLLEXPORT extern "C"
#endif
////////////////////////////////////////////////////////////////
// C# functions for C++ to call
////////////////////////////////////////////////////////////////
namespace Plugin
{
void (*ReleaseObject)(int32_t handle);
int32_t (*StringNew)(const char* chars);
void (*SetException)(int32_t handle);
int32_t (*ArrayGetLength)(int32_t handle);
int32_t (*EnumerableGetEnumerator)(int32_t handle);
/*BEGIN FUNCTION POINTERS*/
System::Int32 (*SystemIComparableMethodCompareToSystemObject)(int32_t thisHandle, int32_t objHandle);
void (*SystemIDisposableMethodDispose)(int32_t thisHandle);
UnityEngine::Vector3 (*UnityEngineVector3ConstructorSystemSingle_SystemSingle_SystemSingle)(float x, float y, float z);
System::Single (*UnityEngineVector3PropertyGetMagnitude)(UnityEngine::Vector3* thiz);
void (*UnityEngineVector3MethodSetSystemSingle_SystemSingle_SystemSingle)(UnityEngine::Vector3* thiz, float newX, float newY, float newZ);
UnityEngine::Vector3 (*UnityEngineVector3Methodop_AdditionUnityEngineVector3_UnityEngineVector3)(UnityEngine::Vector3& a, UnityEngine::Vector3& b);
UnityEngine::Vector3 (*UnityEngineVector3Methodop_UnaryNegationUnityEngineVector3)(UnityEngine::Vector3& a);
int32_t (*BoxVector3)(UnityEngine::Vector3& val);
UnityEngine::Vector3 (*UnboxVector3)(int32_t valHandle);
int32_t (*UnityEngineObjectPropertyGetName)(int32_t thisHandle);
void (*UnityEngineObjectPropertySetName)(int32_t thisHandle, int32_t valueHandle);
int32_t (*UnityEngineObjectMethodop_EqualityUnityEngineObject_UnityEngineObject)(int32_t xHandle, int32_t yHandle);
int32_t (*UnityEngineObjectMethodop_ImplicitUnityEngineObject)(int32_t existsHandle);
int32_t (*UnityEngineComponentPropertyGetTransform)(int32_t thisHandle);
UnityEngine::Vector3 (*UnityEngineTransformPropertyGetPosition)(int32_t thisHandle);
void (*UnityEngineTransformPropertySetPosition)(int32_t thisHandle, UnityEngine::Vector3& value);
void (*UnityEngineTransformMethodSetParentUnityEngineTransform)(int32_t thisHandle, int32_t parentHandle);
int32_t (*BoxColor)(UnityEngine::Color& val);
UnityEngine::Color (*UnboxColor)(int32_t valHandle);
int32_t (*BoxGradientColorKey)(UnityEngine::GradientColorKey& val);
UnityEngine::GradientColorKey (*UnboxGradientColorKey)(int32_t valHandle);
void (*ReleaseUnityEngineResolution)(int32_t handle);
int32_t (*UnityEngineResolutionConstructor)();
System::Int32 (*UnityEngineResolutionPropertyGetWidth)(int32_t thisHandle);
void (*UnityEngineResolutionPropertySetWidth)(int32_t thisHandle, int32_t value);
System::Int32 (*UnityEngineResolutionPropertyGetHeight)(int32_t thisHandle);
void (*UnityEngineResolutionPropertySetHeight)(int32_t thisHandle, int32_t value);
System::Int32 (*UnityEngineResolutionPropertyGetRefreshRate)(int32_t thisHandle);
void (*UnityEngineResolutionPropertySetRefreshRate)(int32_t thisHandle, int32_t value);
int32_t (*BoxResolution)(int32_t valHandle);
int32_t (*UnboxResolution)(int32_t valHandle);
void (*ReleaseUnityEngineRaycastHit)(int32_t handle);
UnityEngine::Vector3 (*UnityEngineRaycastHitPropertyGetPoint)(int32_t thisHandle);
void (*UnityEngineRaycastHitPropertySetPoint)(int32_t thisHandle, UnityEngine::Vector3& value);
int32_t (*UnityEngineRaycastHitPropertyGetTransform)(int32_t thisHandle);
int32_t (*BoxRaycastHit)(int32_t valHandle);
int32_t (*UnboxRaycastHit)(int32_t valHandle);
int32_t (*SystemCollectionsIEnumeratorPropertyGetCurrent)(int32_t thisHandle);
int32_t (*SystemCollectionsIEnumeratorMethodMoveNext)(int32_t thisHandle);
void (*ReleaseUnityEnginePlayablesPlayableGraph)(int32_t handle);
int32_t (*BoxPlayableGraph)(int32_t valHandle);
int32_t (*UnboxPlayableGraph)(int32_t valHandle);
void (*ReleaseUnityEngineAnimationsAnimationMixerPlayable)(int32_t handle);
int32_t (*UnityEngineAnimationsAnimationMixerPlayableMethodCreateUnityEnginePlayablesPlayableGraph_SystemInt32_SystemBoolean)(int32_t graphHandle, int32_t inputCount, uint32_t normalizeWeights);
int32_t (*BoxAnimationMixerPlayable)(int32_t valHandle);
int32_t (*UnboxAnimationMixerPlayable)(int32_t valHandle);
int32_t (*SystemDiagnosticsStopwatchConstructor)();
System::Int64 (*SystemDiagnosticsStopwatchPropertyGetElapsedMilliseconds)(int32_t thisHandle);
void (*SystemDiagnosticsStopwatchMethodStart)(int32_t thisHandle);
void (*SystemDiagnosticsStopwatchMethodReset)(int32_t thisHandle);
int32_t (*UnityEngineGameObjectConstructor)();
int32_t (*UnityEngineGameObjectConstructorSystemString)(int32_t nameHandle);
int32_t (*UnityEngineGameObjectPropertyGetTransform)(int32_t thisHandle);
int32_t (*UnityEngineGameObjectMethodAddComponentMyGameMonoBehavioursTestScript)(int32_t thisHandle);
int32_t (*UnityEngineGameObjectMethodAddComponentMyGameMonoBehavioursAnotherScript)(int32_t thisHandle);
int32_t (*UnityEngineGameObjectMethodCreatePrimitiveUnityEnginePrimitiveType)(UnityEngine::PrimitiveType type);
void (*UnityEngineDebugMethodLogSystemObject)(int32_t messageHandle);
int32_t (*UnityEngineAssertionsAssertFieldGetRaiseExceptions)();
void (*UnityEngineAssertionsAssertFieldSetRaiseExceptions)(uint32_t value);
void (*UnityEngineAssertionsAssertMethodAreEqualSystemStringSystemString_SystemString)(int32_t expectedHandle, int32_t actualHandle);
void (*UnityEngineAssertionsAssertMethodAreEqualUnityEngineGameObjectUnityEngineGameObject_UnityEngineGameObject)(int32_t expectedHandle, int32_t actualHandle);
int32_t (*UnityEngineMonoBehaviourPropertyGetTransform)(int32_t thisHandle);
void (*UnityEngineAudioSettingsMethodGetDSPBufferSizeSystemInt32_SystemInt32)(int32_t* bufferLength, int32_t* numBuffers);
void (*UnityEngineNetworkingNetworkTransportMethodGetBroadcastConnectionInfoSystemInt32_SystemString_SystemInt32_SystemByte)(int32_t hostId, int32_t* addressHandle, int32_t* port, uint8_t* error);
void (*UnityEngineNetworkingNetworkTransportMethodInit)();
int32_t (*BoxQuaternion)(UnityEngine::Quaternion& val);
UnityEngine::Quaternion (*UnboxQuaternion)(int32_t valHandle);
System::Single (*UnityEngineMatrix4x4PropertyGetItem)(UnityEngine::Matrix4x4* thiz, int32_t row, int32_t column);
void (*UnityEngineMatrix4x4PropertySetItem)(UnityEngine::Matrix4x4* thiz, int32_t row, int32_t column, float value);
int32_t (*BoxMatrix4x4)(UnityEngine::Matrix4x4& val);
UnityEngine::Matrix4x4 (*UnboxMatrix4x4)(int32_t valHandle);
int32_t (*BoxQueryTriggerInteraction)(UnityEngine::QueryTriggerInteraction val);
UnityEngine::QueryTriggerInteraction (*UnboxQueryTriggerInteraction)(int32_t valHandle);
void (*ReleaseSystemCollectionsGenericKeyValuePairSystemString_SystemDouble)(int32_t handle);
int32_t (*SystemCollectionsGenericKeyValuePairSystemString_SystemDoubleConstructorSystemString_SystemDouble)(int32_t keyHandle, double value);
int32_t (*SystemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetKey)(int32_t thisHandle);
System::Double (*SystemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetValue)(int32_t thisHandle);
int32_t (*BoxKeyValuePairSystemString_SystemDouble)(int32_t valHandle);
int32_t (*UnboxKeyValuePairSystemString_SystemDouble)(int32_t valHandle);
int32_t (*SystemCollectionsGenericLinkedListNodeSystemStringConstructorSystemString)(int32_t valueHandle);
int32_t (*SystemCollectionsGenericLinkedListNodeSystemStringPropertyGetValue)(int32_t thisHandle);
void (*SystemCollectionsGenericLinkedListNodeSystemStringPropertySetValue)(int32_t thisHandle, int32_t valueHandle);
int32_t (*SystemRuntimeCompilerServicesStrongBoxSystemStringConstructorSystemString)(int32_t valueHandle);
int32_t (*SystemRuntimeCompilerServicesStrongBoxSystemStringFieldGetValue)(int32_t thisHandle);
void (*SystemRuntimeCompilerServicesStrongBoxSystemStringFieldSetValue)(int32_t thisHandle, int32_t valueHandle);
int32_t (*SystemExceptionConstructorSystemString)(int32_t messageHandle);
int32_t (*UnityEngineScreenPropertyGetResolutions)();
void (*ReleaseUnityEngineRay)(int32_t handle);
int32_t (*UnityEngineRayConstructorUnityEngineVector3_UnityEngineVector3)(UnityEngine::Vector3& origin, UnityEngine::Vector3& direction);
int32_t (*BoxRay)(int32_t valHandle);
int32_t (*UnboxRay)(int32_t valHandle);
System::Int32 (*UnityEnginePhysicsMethodRaycastNonAllocUnityEngineRay_UnityEngineRaycastHitArray1)(int32_t rayHandle, int32_t resultsHandle);
int32_t (*UnityEnginePhysicsMethodRaycastAllUnityEngineRay)(int32_t rayHandle);
int32_t (*UnityEngineGradientConstructor)();
int32_t (*UnityEngineGradientPropertyGetColorKeys)(int32_t thisHandle);
void (*UnityEngineGradientPropertySetColorKeys)(int32_t thisHandle, int32_t valueHandle);
int32_t (*SystemAppDomainSetupConstructor)();
int32_t (*SystemAppDomainSetupPropertyGetAppDomainInitializer)(int32_t thisHandle);
void (*SystemAppDomainSetupPropertySetAppDomainInitializer)(int32_t thisHandle, int32_t valueHandle);
void (*UnityEngineApplicationAddEventOnBeforeRender)(int32_t delHandle);
void (*UnityEngineApplicationRemoveEventOnBeforeRender)(int32_t delHandle);
void (*UnityEngineSceneManagementSceneManagerAddEventSceneLoaded)(int32_t delHandle);
void (*UnityEngineSceneManagementSceneManagerRemoveEventSceneLoaded)(int32_t delHandle);
void (*ReleaseUnityEngineSceneManagementScene)(int32_t handle);
int32_t (*BoxScene)(int32_t valHandle);
int32_t (*UnboxScene)(int32_t valHandle);
int32_t (*BoxLoadSceneMode)(UnityEngine::SceneManagement::LoadSceneMode val);
UnityEngine::SceneManagement::LoadSceneMode (*UnboxLoadSceneMode)(int32_t valHandle);
int32_t (*BoxPrimitiveType)(UnityEngine::PrimitiveType val);
UnityEngine::PrimitiveType (*UnboxPrimitiveType)(int32_t valHandle);
System::Single (*UnityEngineTimePropertyGetDeltaTime)();
int32_t (*BoxFileMode)(System::IO::FileMode val);
System::IO::FileMode (*UnboxFileMode)(int32_t valHandle);
void (*ReleaseSystemCollectionsGenericBaseIComparerSystemInt32)(int32_t handle);
void (*SystemCollectionsGenericBaseIComparerSystemInt32Constructor)(int32_t cppHandle, int32_t* handle);
void (*ReleaseSystemCollectionsGenericBaseIComparerSystemString)(int32_t handle);
void (*SystemCollectionsGenericBaseIComparerSystemStringConstructor)(int32_t cppHandle, int32_t* handle);
void (*ReleaseSystemBaseStringComparer)(int32_t handle);
void (*SystemBaseStringComparerConstructor)(int32_t cppHandle, int32_t* handle);
System::Int32 (*SystemCollectionsQueuePropertyGetCount)(int32_t thisHandle);
void (*ReleaseSystemCollectionsBaseQueue)(int32_t handle);
void (*SystemCollectionsBaseQueueConstructor)(int32_t cppHandle, int32_t* handle);
void (*ReleaseSystemComponentModelDesignBaseIComponentChangeService)(int32_t handle);
void (*SystemComponentModelDesignBaseIComponentChangeServiceConstructor)(int32_t cppHandle, int32_t* handle);
int32_t (*SystemIOFileStreamConstructorSystemString_SystemIOFileMode)(int32_t pathHandle, System::IO::FileMode mode);
void (*SystemIOFileStreamMethodWriteByteSystemByte)(int32_t thisHandle, uint8_t value);
void (*ReleaseSystemIOBaseFileStream)(int32_t handle);
void (*SystemIOBaseFileStreamConstructorSystemString_SystemIOFileMode)(int32_t cppHandle, int32_t* handle, int32_t pathHandle, System::IO::FileMode mode);
void (*ReleaseUnityEnginePlayablesPlayableHandle)(int32_t handle);
int32_t (*BoxPlayableHandle)(int32_t valHandle);
int32_t (*UnboxPlayableHandle)(int32_t valHandle);
int32_t (*SystemCollectionsGenericIEnumeratorUnityEngineExperimentalUIElementsVisualElementPropertyGetCurrent)(int32_t thisHandle);
int32_t (*SystemCollectionsGenericIEnumerableUnityEngineExperimentalUIElementsVisualElementMethodGetEnumerator)(int32_t thisHandle);
int32_t (*UnityEngineExperimentalUIElementsUQueryExtensionsMethodQUnityEngineExperimentalUIElementsVisualElement_SystemString_SystemStringArray1)(int32_t eHandle, int32_t nameHandle, int32_t classesHandle);
int32_t (*UnityEngineExperimentalUIElementsUQueryExtensionsMethodQUnityEngineExperimentalUIElementsVisualElement_SystemString_SystemString)(int32_t eHandle, int32_t nameHandle, int32_t classNameHandle);
int32_t (*BoxInteractionSourcePositionAccuracy)(UnityEngine::XR::WSA::Input::InteractionSourcePositionAccuracy val);
UnityEngine::XR::WSA::Input::InteractionSourcePositionAccuracy (*UnboxInteractionSourcePositionAccuracy)(int32_t valHandle);
int32_t (*BoxInteractionSourceNode)(UnityEngine::XR::WSA::Input::InteractionSourceNode val);
UnityEngine::XR::WSA::Input::InteractionSourceNode (*UnboxInteractionSourceNode)(int32_t valHandle);
void (*ReleaseUnityEngineXRWSAInputInteractionSourcePose)(int32_t handle);
int32_t (*UnityEngineXRWSAInputInteractionSourcePoseMethodTryGetRotationUnityEngineQuaternion_UnityEngineXRWSAInputInteractionSourceNode)(int32_t thisHandle, UnityEngine::Quaternion* rotation, UnityEngine::XR::WSA::Input::InteractionSourceNode node);
int32_t (*BoxInteractionSourcePose)(int32_t valHandle);
int32_t (*UnboxInteractionSourcePose)(int32_t valHandle);
int32_t (*SystemCollectionsGenericIEnumeratorSystemStringPropertyGetCurrent)(int32_t thisHandle);
System::Int32 (*SystemCollectionsGenericIEnumeratorSystemInt32PropertyGetCurrent)(int32_t thisHandle);
System::Single (*SystemCollectionsGenericIEnumeratorSystemSinglePropertyGetCurrent)(int32_t thisHandle);
int32_t (*SystemCollectionsGenericIEnumeratorUnityEngineRaycastHitPropertyGetCurrent)(int32_t thisHandle);
UnityEngine::GradientColorKey (*SystemCollectionsGenericIEnumeratorUnityEngineGradientColorKeyPropertyGetCurrent)(int32_t thisHandle);
int32_t (*SystemCollectionsGenericIEnumeratorUnityEngineResolutionPropertyGetCurrent)(int32_t thisHandle);
int32_t (*SystemCollectionsGenericIEnumerableSystemStringMethodGetEnumerator)(int32_t thisHandle);
int32_t (*SystemCollectionsGenericIEnumerableSystemInt32MethodGetEnumerator)(int32_t thisHandle);
int32_t (*SystemCollectionsGenericIEnumerableSystemSingleMethodGetEnumerator)(int32_t thisHandle);
int32_t (*SystemCollectionsGenericIEnumerableUnityEngineRaycastHitMethodGetEnumerator)(int32_t thisHandle);
int32_t (*SystemCollectionsGenericIEnumerableUnityEngineGradientColorKeyMethodGetEnumerator)(int32_t thisHandle);
int32_t (*SystemCollectionsGenericIEnumerableUnityEngineResolutionMethodGetEnumerator)(int32_t thisHandle);
int32_t (*SystemCollectionsGenericListSystemStringConstructor)();
int32_t (*SystemCollectionsGenericListSystemStringPropertyGetItem)(int32_t thisHandle, int32_t index);
void (*SystemCollectionsGenericListSystemStringPropertySetItem)(int32_t thisHandle, int32_t index, int32_t valueHandle);
void (*SystemCollectionsGenericListSystemStringMethodAddSystemString)(int32_t thisHandle, int32_t itemHandle);
void (*SystemCollectionsGenericListSystemStringMethodSortSystemCollectionsGenericIComparer)(int32_t thisHandle, int32_t comparerHandle);
int32_t (*SystemCollectionsGenericListSystemInt32Constructor)();
System::Int32 (*SystemCollectionsGenericListSystemInt32PropertyGetItem)(int32_t thisHandle, int32_t index);
void (*SystemCollectionsGenericListSystemInt32PropertySetItem)(int32_t thisHandle, int32_t index, int32_t value);
void (*SystemCollectionsGenericListSystemInt32MethodAddSystemInt32)(int32_t thisHandle, int32_t item);
void (*SystemCollectionsGenericListSystemInt32MethodSortSystemCollectionsGenericIComparer)(int32_t thisHandle, int32_t comparerHandle);
int32_t (*BoxBoolean)(uint32_t val);
int32_t (*UnboxBoolean)(int32_t valHandle);
int32_t (*BoxSByte)(int8_t val);
System::SByte (*UnboxSByte)(int32_t valHandle);
int32_t (*BoxByte)(uint8_t val);
System::Byte (*UnboxByte)(int32_t valHandle);
int32_t (*BoxInt16)(int16_t val);
System::Int16 (*UnboxInt16)(int32_t valHandle);
int32_t (*BoxUInt16)(uint16_t val);
System::UInt16 (*UnboxUInt16)(int32_t valHandle);
int32_t (*BoxInt32)(int32_t val);
System::Int32 (*UnboxInt32)(int32_t valHandle);
int32_t (*BoxUInt32)(uint32_t val);
System::UInt32 (*UnboxUInt32)(int32_t valHandle);
int32_t (*BoxInt64)(int64_t val);
System::Int64 (*UnboxInt64)(int32_t valHandle);
int32_t (*BoxUInt64)(uint64_t val);
System::UInt64 (*UnboxUInt64)(int32_t valHandle);
int32_t (*BoxChar)(uint16_t val);
int16_t (*UnboxChar)(int32_t valHandle);
int32_t (*BoxSingle)(float val);
System::Single (*UnboxSingle)(int32_t valHandle);
int32_t (*BoxDouble)(double val);
System::Double (*UnboxDouble)(int32_t valHandle);
int32_t (*SystemSystemInt32Array1Constructor1)(int32_t length0);
System::Int32 (*SystemInt32Array1GetItem1)(int32_t thisHandle, int32_t index0);
int32_t (*SystemInt32Array1SetItem1)(int32_t thisHandle, int32_t index0, int32_t item);
int32_t (*SystemSystemSingleArray1Constructor1)(int32_t length0);
System::Single (*SystemSingleArray1GetItem1)(int32_t thisHandle, int32_t index0);
int32_t (*SystemSingleArray1SetItem1)(int32_t thisHandle, int32_t index0, float item);
int32_t (*SystemSystemSingleArray2Constructor2)(int32_t length0, int32_t length1);
int32_t (*SystemSystemSingleArray2GetLength2)(int32_t thisHandle, int32_t dimension);
System::Single (*SystemSingleArray2GetItem2)(int32_t thisHandle, int32_t index0, int32_t index1);
int32_t (*SystemSingleArray2SetItem2)(int32_t thisHandle, int32_t index0, int32_t index1, float item);
int32_t (*SystemSystemSingleArray3Constructor3)(int32_t length0, int32_t length1, int32_t length2);
int32_t (*SystemSystemSingleArray3GetLength3)(int32_t thisHandle, int32_t dimension);
System::Single (*SystemSingleArray3GetItem3)(int32_t thisHandle, int32_t index0, int32_t index1, int32_t index2);
int32_t (*SystemSingleArray3SetItem3)(int32_t thisHandle, int32_t index0, int32_t index1, int32_t index2, float item);
int32_t (*SystemSystemStringArray1Constructor1)(int32_t length0);
int32_t (*SystemStringArray1GetItem1)(int32_t thisHandle, int32_t index0);
int32_t (*SystemStringArray1SetItem1)(int32_t thisHandle, int32_t index0, int32_t itemHandle);
int32_t (*UnityEngineUnityEngineResolutionArray1Constructor1)(int32_t length0);
int32_t (*UnityEngineResolutionArray1GetItem1)(int32_t thisHandle, int32_t index0);
int32_t (*UnityEngineResolutionArray1SetItem1)(int32_t thisHandle, int32_t index0, int32_t itemHandle);
int32_t (*UnityEngineUnityEngineRaycastHitArray1Constructor1)(int32_t length0);
int32_t (*UnityEngineRaycastHitArray1GetItem1)(int32_t thisHandle, int32_t index0);
int32_t (*UnityEngineRaycastHitArray1SetItem1)(int32_t thisHandle, int32_t index0, int32_t itemHandle);
int32_t (*UnityEngineUnityEngineGradientColorKeyArray1Constructor1)(int32_t length0);
UnityEngine::GradientColorKey (*UnityEngineGradientColorKeyArray1GetItem1)(int32_t thisHandle, int32_t index0);
int32_t (*UnityEngineGradientColorKeyArray1SetItem1)(int32_t thisHandle, int32_t index0, UnityEngine::GradientColorKey& item);
void (*ReleaseSystemAction)(int32_t handle, int32_t classHandle);
void (*SystemActionConstructor)(int32_t cppHandle, int32_t* handle, int32_t* classHandle);
void (*SystemActionAdd)(int32_t thisHandle, int32_t delHandle);
void (*SystemActionRemove)(int32_t thisHandle, int32_t delHandle);
void (*SystemActionInvoke)(int32_t thisHandle);
void (*ReleaseSystemActionSystemSingle)(int32_t handle, int32_t classHandle);
void (*SystemActionSystemSingleConstructor)(int32_t cppHandle, int32_t* handle, int32_t* classHandle);
void (*SystemActionSystemSingleAdd)(int32_t thisHandle, int32_t delHandle);
void (*SystemActionSystemSingleRemove)(int32_t thisHandle, int32_t delHandle);
void (*SystemActionSystemSingleInvoke)(int32_t thisHandle, float obj);
void (*ReleaseSystemActionSystemSingle_SystemSingle)(int32_t handle, int32_t classHandle);
void (*SystemActionSystemSingle_SystemSingleConstructor)(int32_t cppHandle, int32_t* handle, int32_t* classHandle);
void (*SystemActionSystemSingle_SystemSingleAdd)(int32_t thisHandle, int32_t delHandle);
void (*SystemActionSystemSingle_SystemSingleRemove)(int32_t thisHandle, int32_t delHandle);
void (*SystemActionSystemSingle_SystemSingleInvoke)(int32_t thisHandle, float arg1, float arg2);
void (*ReleaseSystemFuncSystemInt32_SystemSingle_SystemDouble)(int32_t handle, int32_t classHandle);
void (*SystemFuncSystemInt32_SystemSingle_SystemDoubleConstructor)(int32_t cppHandle, int32_t* handle, int32_t* classHandle);
void (*SystemFuncSystemInt32_SystemSingle_SystemDoubleAdd)(int32_t thisHandle, int32_t delHandle);
void (*SystemFuncSystemInt32_SystemSingle_SystemDoubleRemove)(int32_t thisHandle, int32_t delHandle);
System::Double (*SystemFuncSystemInt32_SystemSingle_SystemDoubleInvoke)(int32_t thisHandle, int32_t arg1, float arg2);
void (*ReleaseSystemFuncSystemInt16_SystemInt32_SystemString)(int32_t handle, int32_t classHandle);
void (*SystemFuncSystemInt16_SystemInt32_SystemStringConstructor)(int32_t cppHandle, int32_t* handle, int32_t* classHandle);
void (*SystemFuncSystemInt16_SystemInt32_SystemStringAdd)(int32_t thisHandle, int32_t delHandle);
void (*SystemFuncSystemInt16_SystemInt32_SystemStringRemove)(int32_t thisHandle, int32_t delHandle);
int32_t (*SystemFuncSystemInt16_SystemInt32_SystemStringInvoke)(int32_t thisHandle, int16_t arg1, int32_t arg2);
void (*ReleaseSystemAppDomainInitializer)(int32_t handle, int32_t classHandle);
void (*SystemAppDomainInitializerConstructor)(int32_t cppHandle, int32_t* handle, int32_t* classHandle);
void (*SystemAppDomainInitializerAdd)(int32_t thisHandle, int32_t delHandle);
void (*SystemAppDomainInitializerRemove)(int32_t thisHandle, int32_t delHandle);
void (*SystemAppDomainInitializerInvoke)(int32_t thisHandle, int32_t argsHandle);
void (*ReleaseUnityEngineEventsUnityAction)(int32_t handle, int32_t classHandle);
void (*UnityEngineEventsUnityActionConstructor)(int32_t cppHandle, int32_t* handle, int32_t* classHandle);
void (*UnityEngineEventsUnityActionAdd)(int32_t thisHandle, int32_t delHandle);
void (*UnityEngineEventsUnityActionRemove)(int32_t thisHandle, int32_t delHandle);
void (*UnityEngineEventsUnityActionInvoke)(int32_t thisHandle);
void (*ReleaseUnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneMode)(int32_t handle, int32_t classHandle);
void (*UnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeConstructor)(int32_t cppHandle, int32_t* handle, int32_t* classHandle);
void (*UnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeAdd)(int32_t thisHandle, int32_t delHandle);
void (*UnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeRemove)(int32_t thisHandle, int32_t delHandle);
void (*UnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeInvoke)(int32_t thisHandle, int32_t arg0Handle, UnityEngine::SceneManagement::LoadSceneMode arg1);
void (*ReleaseSystemComponentModelDesignComponentEventHandler)(int32_t handle, int32_t classHandle);
void (*SystemComponentModelDesignComponentEventHandlerConstructor)(int32_t cppHandle, int32_t* handle, int32_t* classHandle);
void (*SystemComponentModelDesignComponentEventHandlerAdd)(int32_t thisHandle, int32_t delHandle);
void (*SystemComponentModelDesignComponentEventHandlerRemove)(int32_t thisHandle, int32_t delHandle);
void (*SystemComponentModelDesignComponentEventHandlerInvoke)(int32_t thisHandle, int32_t senderHandle, int32_t eHandle);
void (*ReleaseSystemComponentModelDesignComponentChangingEventHandler)(int32_t handle, int32_t classHandle);
void (*SystemComponentModelDesignComponentChangingEventHandlerConstructor)(int32_t cppHandle, int32_t* handle, int32_t* classHandle);
void (*SystemComponentModelDesignComponentChangingEventHandlerAdd)(int32_t thisHandle, int32_t delHandle);
void (*SystemComponentModelDesignComponentChangingEventHandlerRemove)(int32_t thisHandle, int32_t delHandle);
void (*SystemComponentModelDesignComponentChangingEventHandlerInvoke)(int32_t thisHandle, int32_t senderHandle, int32_t eHandle);
void (*ReleaseSystemComponentModelDesignComponentChangedEventHandler)(int32_t handle, int32_t classHandle);
void (*SystemComponentModelDesignComponentChangedEventHandlerConstructor)(int32_t cppHandle, int32_t* handle, int32_t* classHandle);
void (*SystemComponentModelDesignComponentChangedEventHandlerAdd)(int32_t thisHandle, int32_t delHandle);
void (*SystemComponentModelDesignComponentChangedEventHandlerRemove)(int32_t thisHandle, int32_t delHandle);
void (*SystemComponentModelDesignComponentChangedEventHandlerInvoke)(int32_t thisHandle, int32_t senderHandle, int32_t eHandle);
void (*ReleaseSystemComponentModelDesignComponentRenameEventHandler)(int32_t handle, int32_t classHandle);
void (*SystemComponentModelDesignComponentRenameEventHandlerConstructor)(int32_t cppHandle, int32_t* handle, int32_t* classHandle);
void (*SystemComponentModelDesignComponentRenameEventHandlerAdd)(int32_t thisHandle, int32_t delHandle);
void (*SystemComponentModelDesignComponentRenameEventHandlerRemove)(int32_t thisHandle, int32_t delHandle);
void (*SystemComponentModelDesignComponentRenameEventHandlerInvoke)(int32_t thisHandle, int32_t senderHandle, int32_t eHandle);
/*END FUNCTION POINTERS*/
}
////////////////////////////////////////////////////////////////
// Global variables
////////////////////////////////////////////////////////////////
namespace Plugin
{
System::String NullString(nullptr);
}
////////////////////////////////////////////////////////////////
// Plugin Types
////////////////////////////////////////////////////////////////
namespace Plugin
{
ManagedType::ManagedType()
: Handle(0)
{
}
ManagedType::ManagedType(decltype(nullptr))
: Handle(0)
{
}
ManagedType::ManagedType(Plugin::InternalUse iu, int32_t handle)
: Handle(handle)
{
}
}
////////////////////////////////////////////////////////////////
// C# Primitive Types
////////////////////////////////////////////////////////////////
namespace System
{
Boolean::Boolean()
: Value(0)
{
}
Boolean::Boolean(bool value)
: Value((int32_t)value)
{
}
Boolean::Boolean(int32_t value)
: Value(value)
{
}
Boolean::Boolean(uint32_t value)
: Value(value)
{
}
Boolean::operator bool() const
{
return (bool)Value;
}
Boolean::operator int32_t() const
{
return Value;
}
Boolean::operator uint32_t() const
{
return Value;
}
Boolean::operator Object() const
{
return Object(Plugin::InternalUse::Only, Plugin::BoxBoolean(Value));
}
Boolean::operator ValueType() const
{
return ValueType(Plugin::InternalUse::Only, Plugin::BoxBoolean(Value));
}
Boolean::operator IComparable() const
{
return IComparable(Plugin::InternalUse::Only, Plugin::BoxBoolean(Value));
}
Boolean::operator IFormattable() const
{
return IFormattable(Plugin::InternalUse::Only, Plugin::BoxBoolean(Value));
}
Boolean::operator IConvertible() const
{
return IConvertible(Plugin::InternalUse::Only, Plugin::BoxBoolean(Value));
}
Char::Char()
: Value(0)
{
}
Char::Char(char value)
: Value(value)
{
}
Char::Char(int16_t value)
: Value(value)
{
}
Char::operator int16_t() const
{
return Value;
}
Char::operator Object() const
{
return Object(Plugin::InternalUse::Only, Plugin::BoxChar(Value));
}
Char::operator ValueType() const
{
return ValueType(Plugin::InternalUse::Only, Plugin::BoxChar(Value));
}
Char::operator IComparable() const
{
return IComparable(Plugin::InternalUse::Only, Plugin::BoxChar(Value));
}
Char::operator IFormattable() const
{
return IFormattable(Plugin::InternalUse::Only, Plugin::BoxChar(Value));
}
Char::operator IConvertible() const
{
return IConvertible(Plugin::InternalUse::Only, Plugin::BoxChar(Value));
}
SByte::SByte()
: Value(0)
{
}
SByte::SByte(int8_t val)
: Value(val)
{
}
SByte::operator int8_t() const
{
return Value;
}
SByte::operator Object() const
{
return Object(Plugin::InternalUse::Only, Plugin::BoxSByte(Value));
}
SByte::operator ValueType() const
{
return ValueType(Plugin::InternalUse::Only, Plugin::BoxSByte(Value));
}
SByte::operator IComparable() const
{
return IComparable(Plugin::InternalUse::Only, Plugin::BoxSByte(Value));
}
SByte::operator IFormattable() const
{
return IFormattable(Plugin::InternalUse::Only, Plugin::BoxSByte(Value));
}
SByte::operator IConvertible() const
{
return IConvertible(Plugin::InternalUse::Only, Plugin::BoxSByte(Value));
}
Byte::Byte()
: Value(0)
{
}
Byte::Byte(uint8_t value)
: Value(value)
{
}
Byte::operator uint8_t() const
{
return Value;
}
Byte::operator Object() const
{
return Object(Plugin::InternalUse::Only, Plugin::BoxByte(Value));
}
Byte::operator ValueType() const
{
return ValueType(Plugin::InternalUse::Only, Plugin::BoxByte(Value));
}
Byte::operator IComparable() const
{
return IComparable(Plugin::InternalUse::Only, Plugin::BoxByte(Value));
}
Byte::operator IFormattable() const
{
return IFormattable(Plugin::InternalUse::Only, Plugin::BoxByte(Value));
}
Byte::operator IConvertible() const
{
return IConvertible(Plugin::InternalUse::Only, Plugin::BoxByte(Value));
}
Int16::Int16()
: Value(0)
{
}
Int16::Int16(int16_t value)
: Value(value)
{
}
Int16::operator int16_t() const
{
return Value;
}
Int16::operator Object() const
{
return Object(Plugin::InternalUse::Only, Plugin::BoxInt16(Value));
}
Int16::operator ValueType() const
{
return ValueType(Plugin::InternalUse::Only, Plugin::BoxInt16(Value));
}
Int16::operator IComparable() const
{
return IComparable(Plugin::InternalUse::Only, Plugin::BoxInt16(Value));
}
Int16::operator IFormattable() const
{
return IFormattable(Plugin::InternalUse::Only, Plugin::BoxInt16(Value));
}
Int16::operator IConvertible() const
{
return IConvertible(Plugin::InternalUse::Only, Plugin::BoxInt16(Value));
}
UInt16::UInt16()
: Value(0)
{
}
UInt16::UInt16(uint16_t value)
: Value(value)
{
}
UInt16::operator uint16_t() const
{
return Value;
}
UInt16::operator Object() const
{
return Object(Plugin::InternalUse::Only, Plugin::BoxUInt16(Value));
}
UInt16::operator ValueType() const
{
return ValueType(Plugin::InternalUse::Only, Plugin::BoxUInt16(Value));
}
UInt16::operator IComparable() const
{
return IComparable(Plugin::InternalUse::Only, Plugin::BoxUInt16(Value));
}
UInt16::operator IFormattable() const
{
return IFormattable(Plugin::InternalUse::Only, Plugin::BoxUInt16(Value));
}
UInt16::operator IConvertible() const
{
return IConvertible(Plugin::InternalUse::Only, Plugin::BoxUInt16(Value));
}
Int32::Int32()
: Value(0)
{
}
Int32::Int32(int32_t value)
: Value(value)
{
}
Int32::operator int32_t() const
{
return Value;
}
Int32::operator Object() const
{
return Object(Plugin::InternalUse::Only, Plugin::BoxInt32(Value));
}
Int32::operator ValueType() const
{
return ValueType(Plugin::InternalUse::Only, Plugin::BoxInt32(Value));
}
Int32::operator IComparable() const
{
return IComparable(Plugin::InternalUse::Only, Plugin::BoxInt32(Value));
}
Int32::operator IFormattable() const
{
return IFormattable(Plugin::InternalUse::Only, Plugin::BoxInt32(Value));
}
Int32::operator IConvertible() const
{
return IConvertible(Plugin::InternalUse::Only, Plugin::BoxInt32(Value));
}
UInt32::UInt32()
: Value(0)
{
}
UInt32::UInt32(uint32_t value)
: Value(value)
{
}
UInt32::operator uint32_t() const
{
return Value;
}
UInt32::operator Object() const
{
return Object(Plugin::InternalUse::Only, Plugin::BoxUInt32(Value));
}
UInt32::operator ValueType() const
{
return ValueType(Plugin::InternalUse::Only, Plugin::BoxUInt32(Value));
}
UInt32::operator IComparable() const
{
return IComparable(Plugin::InternalUse::Only, Plugin::BoxUInt32(Value));
}
UInt32::operator IFormattable() const
{
return IFormattable(Plugin::InternalUse::Only, Plugin::BoxUInt32(Value));
}
UInt32::operator IConvertible() const
{
return IConvertible(Plugin::InternalUse::Only, Plugin::BoxUInt32(Value));
}
Int64::Int64()
: Value(0)
{
}
Int64::Int64(int64_t value)
: Value(value)
{
}
Int64::operator int64_t() const
{
return Value;
}
Int64::operator Object() const
{
return Object(Plugin::InternalUse::Only, Plugin::BoxInt64(Value));
}
Int64::operator ValueType() const
{
return ValueType(Plugin::InternalUse::Only, Plugin::BoxInt64(Value));
}
Int64::operator IComparable() const
{
return IComparable(Plugin::InternalUse::Only, Plugin::BoxInt64(Value));
}
Int64::operator IFormattable() const
{
return IFormattable(Plugin::InternalUse::Only, Plugin::BoxInt64(Value));
}
Int64::operator IConvertible() const
{
return IConvertible(Plugin::InternalUse::Only, Plugin::BoxInt64(Value));
}
UInt64::UInt64()
: Value(0)
{
}
UInt64::UInt64(uint64_t value)
: Value(value)
{
}
UInt64::operator uint64_t() const
{
return Value;
}
UInt64::operator Object() const
{
return Object(Plugin::InternalUse::Only, Plugin::BoxUInt64(Value));
}
UInt64::operator ValueType() const
{
return ValueType(Plugin::InternalUse::Only, Plugin::BoxUInt64(Value));
}
UInt64::operator IComparable() const
{
return IComparable(Plugin::InternalUse::Only, Plugin::BoxUInt64(Value));
}
UInt64::operator IFormattable() const
{
return IFormattable(Plugin::InternalUse::Only, Plugin::BoxUInt64(Value));
}
UInt64::operator IConvertible() const
{
return IConvertible(Plugin::InternalUse::Only, Plugin::BoxUInt64(Value));
}
Single::Single()
: Value(0.0f)
{
}
Single::Single(float value)
: Value(value)
{
}
Single::operator float() const
{
return Value;
}
Single::operator Object() const
{
return Object(Plugin::InternalUse::Only, Plugin::BoxSingle(Value));
}
Single::operator ValueType() const
{
return ValueType(Plugin::InternalUse::Only, Plugin::BoxSingle(Value));
}
Single::operator IComparable() const
{
return IComparable(Plugin::InternalUse::Only, Plugin::BoxSingle(Value));
}
Single::operator IFormattable() const
{
return IFormattable(Plugin::InternalUse::Only, Plugin::BoxSingle(Value));
}
Single::operator IConvertible() const
{
return IConvertible(Plugin::InternalUse::Only, Plugin::BoxSingle(Value));
}
Double::Double()
: Value(0.0)
{
}
Double::Double(double value)
: Value(value)
{
}
Double::operator double() const
{
return Value;
}
Double::operator Object() const
{
return Object(Plugin::InternalUse::Only, Plugin::BoxDouble(Value));
}
Double::operator ValueType() const
{
return ValueType(Plugin::InternalUse::Only, Plugin::BoxDouble(Value));
}
Double::operator IComparable() const
{
return IComparable(Plugin::InternalUse::Only, Plugin::BoxDouble(Value));
}
Double::operator IFormattable() const
{
return IFormattable(Plugin::InternalUse::Only, Plugin::BoxDouble(Value));
}
Double::operator IConvertible() const
{
return IConvertible(Plugin::InternalUse::Only, Plugin::BoxDouble(Value));
}
}
////////////////////////////////////////////////////////////////
// Support for using IEnumerable with range for loops
////////////////////////////////////////////////////////////////
namespace Plugin
{
// End iterators are dummies full of null
EnumerableIterator::EnumerableIterator(decltype(nullptr))
: enumerator(nullptr)
, hasMore(false)
{
}
// Begin iterators keep track of an IEnumerator
EnumerableIterator::EnumerableIterator(
System::Collections::IEnumerable& enumerable)
: enumerator(enumerable.GetEnumerator())
{
hasMore = enumerator.MoveNext();
}
EnumerableIterator& EnumerableIterator::operator++()
{
hasMore = enumerator.MoveNext();
return *this;
}
bool EnumerableIterator::operator!=(const EnumerableIterator& other)
{
return hasMore;
}
System::Object EnumerableIterator::operator*()
{
return enumerator.GetCurrent();
}
}
////////////////////////////////////////////////////////////////
// Reference counting of managed objects
////////////////////////////////////////////////////////////////
namespace Plugin
{
int32_t RefCountsLenClass;
int32_t* RefCountsClass;
void ReferenceManagedClass(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenClass);
if (handle != 0)
{
RefCountsClass[handle]++;
}
}
void DereferenceManagedClass(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenClass);
if (handle != 0)
{
int32_t numRemain = --RefCountsClass[handle];
if (numRemain == 0)
{
ReleaseObject(handle);
}
}
}
bool DereferenceManagedClassNoRelease(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenClass);
if (handle != 0)
{
int32_t numRemain = --RefCountsClass[handle];
if (numRemain == 0)
{
return true;
}
}
return false;
}
/*BEGIN GLOBAL STATE AND FUNCTIONS*/
int32_t RefCountsLenUnityEngineResolution;
int32_t* RefCountsUnityEngineResolution;
void ReferenceManagedUnityEngineResolution(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEngineResolution);
if (handle != 0)
{
RefCountsUnityEngineResolution[handle]++;
}
}
void DereferenceManagedUnityEngineResolution(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEngineResolution);
if (handle != 0)
{
int32_t numRemain = --RefCountsUnityEngineResolution[handle];
if (numRemain == 0)
{
ReleaseUnityEngineResolution(handle);
}
}
}
int32_t RefCountsLenUnityEngineRaycastHit;
int32_t* RefCountsUnityEngineRaycastHit;
void ReferenceManagedUnityEngineRaycastHit(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEngineRaycastHit);
if (handle != 0)
{
RefCountsUnityEngineRaycastHit[handle]++;
}
}
void DereferenceManagedUnityEngineRaycastHit(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEngineRaycastHit);
if (handle != 0)
{
int32_t numRemain = --RefCountsUnityEngineRaycastHit[handle];
if (numRemain == 0)
{
ReleaseUnityEngineRaycastHit(handle);
}
}
}
int32_t RefCountsLenUnityEnginePlayablesPlayableGraph;
int32_t* RefCountsUnityEnginePlayablesPlayableGraph;
void ReferenceManagedUnityEnginePlayablesPlayableGraph(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEnginePlayablesPlayableGraph);
if (handle != 0)
{
RefCountsUnityEnginePlayablesPlayableGraph[handle]++;
}
}
void DereferenceManagedUnityEnginePlayablesPlayableGraph(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEnginePlayablesPlayableGraph);
if (handle != 0)
{
int32_t numRemain = --RefCountsUnityEnginePlayablesPlayableGraph[handle];
if (numRemain == 0)
{
ReleaseUnityEnginePlayablesPlayableGraph(handle);
}
}
}
int32_t RefCountsLenUnityEngineAnimationsAnimationMixerPlayable;
int32_t* RefCountsUnityEngineAnimationsAnimationMixerPlayable;
void ReferenceManagedUnityEngineAnimationsAnimationMixerPlayable(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEngineAnimationsAnimationMixerPlayable);
if (handle != 0)
{
RefCountsUnityEngineAnimationsAnimationMixerPlayable[handle]++;
}
}
void DereferenceManagedUnityEngineAnimationsAnimationMixerPlayable(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEngineAnimationsAnimationMixerPlayable);
if (handle != 0)
{
int32_t numRemain = --RefCountsUnityEngineAnimationsAnimationMixerPlayable[handle];
if (numRemain == 0)
{
ReleaseUnityEngineAnimationsAnimationMixerPlayable(handle);
}
}
}
int32_t RefCountsLenSystemCollectionsGenericKeyValuePairSystemString_SystemDouble;
int32_t* RefCountsSystemCollectionsGenericKeyValuePairSystemString_SystemDouble;
void ReferenceManagedSystemCollectionsGenericKeyValuePairSystemString_SystemDouble(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenSystemCollectionsGenericKeyValuePairSystemString_SystemDouble);
if (handle != 0)
{
RefCountsSystemCollectionsGenericKeyValuePairSystemString_SystemDouble[handle]++;
}
}
void DereferenceManagedSystemCollectionsGenericKeyValuePairSystemString_SystemDouble(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenSystemCollectionsGenericKeyValuePairSystemString_SystemDouble);
if (handle != 0)
{
int32_t numRemain = --RefCountsSystemCollectionsGenericKeyValuePairSystemString_SystemDouble[handle];
if (numRemain == 0)
{
ReleaseSystemCollectionsGenericKeyValuePairSystemString_SystemDouble(handle);
}
}
}
int32_t RefCountsLenUnityEngineRay;
int32_t* RefCountsUnityEngineRay;
void ReferenceManagedUnityEngineRay(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEngineRay);
if (handle != 0)
{
RefCountsUnityEngineRay[handle]++;
}
}
void DereferenceManagedUnityEngineRay(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEngineRay);
if (handle != 0)
{
int32_t numRemain = --RefCountsUnityEngineRay[handle];
if (numRemain == 0)
{
ReleaseUnityEngineRay(handle);
}
}
}
int32_t RefCountsLenUnityEngineSceneManagementScene;
int32_t* RefCountsUnityEngineSceneManagementScene;
void ReferenceManagedUnityEngineSceneManagementScene(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEngineSceneManagementScene);
if (handle != 0)
{
RefCountsUnityEngineSceneManagementScene[handle]++;
}
}
void DereferenceManagedUnityEngineSceneManagementScene(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEngineSceneManagementScene);
if (handle != 0)
{
int32_t numRemain = --RefCountsUnityEngineSceneManagementScene[handle];
if (numRemain == 0)
{
ReleaseUnityEngineSceneManagementScene(handle);
}
}
}
int32_t SystemCollectionsGenericBaseIComparerSystemInt32FreeListSize;
System::Collections::Generic::BaseIComparer** SystemCollectionsGenericBaseIComparerSystemInt32FreeList;
System::Collections::Generic::BaseIComparer** NextFreeSystemCollectionsGenericBaseIComparerSystemInt32;
int32_t StoreSystemCollectionsGenericBaseIComparerSystemInt32(System::Collections::Generic::BaseIComparer* del)
{
assert(NextFreeSystemCollectionsGenericBaseIComparerSystemInt32 != nullptr);
System::Collections::Generic::BaseIComparer** pNext = NextFreeSystemCollectionsGenericBaseIComparerSystemInt32;
NextFreeSystemCollectionsGenericBaseIComparerSystemInt32 = (System::Collections::Generic::BaseIComparer**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemCollectionsGenericBaseIComparerSystemInt32FreeList);
}
System::Collections::Generic::BaseIComparer* GetSystemCollectionsGenericBaseIComparerSystemInt32(int32_t handle)
{
assert(handle >= 0 && handle < SystemCollectionsGenericBaseIComparerSystemInt32FreeListSize);
return SystemCollectionsGenericBaseIComparerSystemInt32FreeList[handle];
}
void RemoveSystemCollectionsGenericBaseIComparerSystemInt32(int32_t handle)
{
System::Collections::Generic::BaseIComparer** pRelease = SystemCollectionsGenericBaseIComparerSystemInt32FreeList + handle;
*pRelease = (System::Collections::Generic::BaseIComparer*)NextFreeSystemCollectionsGenericBaseIComparerSystemInt32;
NextFreeSystemCollectionsGenericBaseIComparerSystemInt32 = pRelease;
}
int32_t SystemCollectionsGenericBaseIComparerSystemStringFreeListSize;
System::Collections::Generic::BaseIComparer** SystemCollectionsGenericBaseIComparerSystemStringFreeList;
System::Collections::Generic::BaseIComparer** NextFreeSystemCollectionsGenericBaseIComparerSystemString;
int32_t StoreSystemCollectionsGenericBaseIComparerSystemString(System::Collections::Generic::BaseIComparer* del)
{
assert(NextFreeSystemCollectionsGenericBaseIComparerSystemString != nullptr);
System::Collections::Generic::BaseIComparer** pNext = NextFreeSystemCollectionsGenericBaseIComparerSystemString;
NextFreeSystemCollectionsGenericBaseIComparerSystemString = (System::Collections::Generic::BaseIComparer**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemCollectionsGenericBaseIComparerSystemStringFreeList);
}
System::Collections::Generic::BaseIComparer* GetSystemCollectionsGenericBaseIComparerSystemString(int32_t handle)
{
assert(handle >= 0 && handle < SystemCollectionsGenericBaseIComparerSystemStringFreeListSize);
return SystemCollectionsGenericBaseIComparerSystemStringFreeList[handle];
}
void RemoveSystemCollectionsGenericBaseIComparerSystemString(int32_t handle)
{
System::Collections::Generic::BaseIComparer** pRelease = SystemCollectionsGenericBaseIComparerSystemStringFreeList + handle;
*pRelease = (System::Collections::Generic::BaseIComparer*)NextFreeSystemCollectionsGenericBaseIComparerSystemString;
NextFreeSystemCollectionsGenericBaseIComparerSystemString = pRelease;
}
int32_t SystemBaseStringComparerFreeListSize;
System::BaseStringComparer** SystemBaseStringComparerFreeList;
System::BaseStringComparer** NextFreeSystemBaseStringComparer;
int32_t StoreSystemBaseStringComparer(System::BaseStringComparer* del)
{
assert(NextFreeSystemBaseStringComparer != nullptr);
System::BaseStringComparer** pNext = NextFreeSystemBaseStringComparer;
NextFreeSystemBaseStringComparer = (System::BaseStringComparer**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemBaseStringComparerFreeList);
}
System::BaseStringComparer* GetSystemBaseStringComparer(int32_t handle)
{
assert(handle >= 0 && handle < SystemBaseStringComparerFreeListSize);
return SystemBaseStringComparerFreeList[handle];
}
void RemoveSystemBaseStringComparer(int32_t handle)
{
System::BaseStringComparer** pRelease = SystemBaseStringComparerFreeList + handle;
*pRelease = (System::BaseStringComparer*)NextFreeSystemBaseStringComparer;
NextFreeSystemBaseStringComparer = pRelease;
}
int32_t SystemCollectionsBaseQueueFreeListSize;
System::Collections::BaseQueue** SystemCollectionsBaseQueueFreeList;
System::Collections::BaseQueue** NextFreeSystemCollectionsBaseQueue;
int32_t StoreSystemCollectionsBaseQueue(System::Collections::BaseQueue* del)
{
assert(NextFreeSystemCollectionsBaseQueue != nullptr);
System::Collections::BaseQueue** pNext = NextFreeSystemCollectionsBaseQueue;
NextFreeSystemCollectionsBaseQueue = (System::Collections::BaseQueue**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemCollectionsBaseQueueFreeList);
}
System::Collections::BaseQueue* GetSystemCollectionsBaseQueue(int32_t handle)
{
assert(handle >= 0 && handle < SystemCollectionsBaseQueueFreeListSize);
return SystemCollectionsBaseQueueFreeList[handle];
}
void RemoveSystemCollectionsBaseQueue(int32_t handle)
{
System::Collections::BaseQueue** pRelease = SystemCollectionsBaseQueueFreeList + handle;
*pRelease = (System::Collections::BaseQueue*)NextFreeSystemCollectionsBaseQueue;
NextFreeSystemCollectionsBaseQueue = pRelease;
}
int32_t SystemComponentModelDesignBaseIComponentChangeServiceFreeListSize;
System::ComponentModel::Design::BaseIComponentChangeService** SystemComponentModelDesignBaseIComponentChangeServiceFreeList;
System::ComponentModel::Design::BaseIComponentChangeService** NextFreeSystemComponentModelDesignBaseIComponentChangeService;
int32_t StoreSystemComponentModelDesignBaseIComponentChangeService(System::ComponentModel::Design::BaseIComponentChangeService* del)
{
assert(NextFreeSystemComponentModelDesignBaseIComponentChangeService != nullptr);
System::ComponentModel::Design::BaseIComponentChangeService** pNext = NextFreeSystemComponentModelDesignBaseIComponentChangeService;
NextFreeSystemComponentModelDesignBaseIComponentChangeService = (System::ComponentModel::Design::BaseIComponentChangeService**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemComponentModelDesignBaseIComponentChangeServiceFreeList);
}
System::ComponentModel::Design::BaseIComponentChangeService* GetSystemComponentModelDesignBaseIComponentChangeService(int32_t handle)
{
assert(handle >= 0 && handle < SystemComponentModelDesignBaseIComponentChangeServiceFreeListSize);
return SystemComponentModelDesignBaseIComponentChangeServiceFreeList[handle];
}
void RemoveSystemComponentModelDesignBaseIComponentChangeService(int32_t handle)
{
System::ComponentModel::Design::BaseIComponentChangeService** pRelease = SystemComponentModelDesignBaseIComponentChangeServiceFreeList + handle;
*pRelease = (System::ComponentModel::Design::BaseIComponentChangeService*)NextFreeSystemComponentModelDesignBaseIComponentChangeService;
NextFreeSystemComponentModelDesignBaseIComponentChangeService = pRelease;
}
int32_t SystemIOBaseFileStreamFreeListSize;
System::IO::BaseFileStream** SystemIOBaseFileStreamFreeList;
System::IO::BaseFileStream** NextFreeSystemIOBaseFileStream;
int32_t StoreSystemIOBaseFileStream(System::IO::BaseFileStream* del)
{
assert(NextFreeSystemIOBaseFileStream != nullptr);
System::IO::BaseFileStream** pNext = NextFreeSystemIOBaseFileStream;
NextFreeSystemIOBaseFileStream = (System::IO::BaseFileStream**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemIOBaseFileStreamFreeList);
}
System::IO::BaseFileStream* GetSystemIOBaseFileStream(int32_t handle)
{
assert(handle >= 0 && handle < SystemIOBaseFileStreamFreeListSize);
return SystemIOBaseFileStreamFreeList[handle];
}
void RemoveSystemIOBaseFileStream(int32_t handle)
{
System::IO::BaseFileStream** pRelease = SystemIOBaseFileStreamFreeList + handle;
*pRelease = (System::IO::BaseFileStream*)NextFreeSystemIOBaseFileStream;
NextFreeSystemIOBaseFileStream = pRelease;
}
int32_t RefCountsLenUnityEnginePlayablesPlayableHandle;
int32_t* RefCountsUnityEnginePlayablesPlayableHandle;
void ReferenceManagedUnityEnginePlayablesPlayableHandle(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEnginePlayablesPlayableHandle);
if (handle != 0)
{
RefCountsUnityEnginePlayablesPlayableHandle[handle]++;
}
}
void DereferenceManagedUnityEnginePlayablesPlayableHandle(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEnginePlayablesPlayableHandle);
if (handle != 0)
{
int32_t numRemain = --RefCountsUnityEnginePlayablesPlayableHandle[handle];
if (numRemain == 0)
{
ReleaseUnityEnginePlayablesPlayableHandle(handle);
}
}
}
int32_t RefCountsLenUnityEngineXRWSAInputInteractionSourcePose;
int32_t* RefCountsUnityEngineXRWSAInputInteractionSourcePose;
void ReferenceManagedUnityEngineXRWSAInputInteractionSourcePose(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEngineXRWSAInputInteractionSourcePose);
if (handle != 0)
{
RefCountsUnityEngineXRWSAInputInteractionSourcePose[handle]++;
}
}
void DereferenceManagedUnityEngineXRWSAInputInteractionSourcePose(int32_t handle)
{
assert(handle >= 0 && handle < RefCountsLenUnityEngineXRWSAInputInteractionSourcePose);
if (handle != 0)
{
int32_t numRemain = --RefCountsUnityEngineXRWSAInputInteractionSourcePose[handle];
if (numRemain == 0)
{
ReleaseUnityEngineXRWSAInputInteractionSourcePose(handle);
}
}
}
int32_t SystemActionFreeListSize;
System::Action** SystemActionFreeList;
System::Action** NextFreeSystemAction;
int32_t StoreSystemAction(System::Action* del)
{
assert(NextFreeSystemAction != nullptr);
System::Action** pNext = NextFreeSystemAction;
NextFreeSystemAction = (System::Action**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemActionFreeList);
}
System::Action* GetSystemAction(int32_t handle)
{
assert(handle >= 0 && handle < SystemActionFreeListSize);
return SystemActionFreeList[handle];
}
void RemoveSystemAction(int32_t handle)
{
System::Action** pRelease = SystemActionFreeList + handle;
*pRelease = (System::Action*)NextFreeSystemAction;
NextFreeSystemAction = pRelease;
}
int32_t SystemActionSystemSingleFreeListSize;
System::Action1** SystemActionSystemSingleFreeList;
System::Action1** NextFreeSystemActionSystemSingle;
int32_t StoreSystemActionSystemSingle(System::Action1* del)
{
assert(NextFreeSystemActionSystemSingle != nullptr);
System::Action1** pNext = NextFreeSystemActionSystemSingle;
NextFreeSystemActionSystemSingle = (System::Action1**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemActionSystemSingleFreeList);
}
System::Action1* GetSystemActionSystemSingle(int32_t handle)
{
assert(handle >= 0 && handle < SystemActionSystemSingleFreeListSize);
return SystemActionSystemSingleFreeList[handle];
}
void RemoveSystemActionSystemSingle(int32_t handle)
{
System::Action1** pRelease = SystemActionSystemSingleFreeList + handle;
*pRelease = (System::Action1*)NextFreeSystemActionSystemSingle;
NextFreeSystemActionSystemSingle = pRelease;
}
int32_t SystemActionSystemSingle_SystemSingleFreeListSize;
System::Action2** SystemActionSystemSingle_SystemSingleFreeList;
System::Action2** NextFreeSystemActionSystemSingle_SystemSingle;
int32_t StoreSystemActionSystemSingle_SystemSingle(System::Action2* del)
{
assert(NextFreeSystemActionSystemSingle_SystemSingle != nullptr);
System::Action2** pNext = NextFreeSystemActionSystemSingle_SystemSingle;
NextFreeSystemActionSystemSingle_SystemSingle = (System::Action2**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemActionSystemSingle_SystemSingleFreeList);
}
System::Action2* GetSystemActionSystemSingle_SystemSingle(int32_t handle)
{
assert(handle >= 0 && handle < SystemActionSystemSingle_SystemSingleFreeListSize);
return SystemActionSystemSingle_SystemSingleFreeList[handle];
}
void RemoveSystemActionSystemSingle_SystemSingle(int32_t handle)
{
System::Action2** pRelease = SystemActionSystemSingle_SystemSingleFreeList + handle;
*pRelease = (System::Action2*)NextFreeSystemActionSystemSingle_SystemSingle;
NextFreeSystemActionSystemSingle_SystemSingle = pRelease;
}
int32_t SystemFuncSystemInt32_SystemSingle_SystemDoubleFreeListSize;
System::Func3** SystemFuncSystemInt32_SystemSingle_SystemDoubleFreeList;
System::Func3** NextFreeSystemFuncSystemInt32_SystemSingle_SystemDouble;
int32_t StoreSystemFuncSystemInt32_SystemSingle_SystemDouble(System::Func3* del)
{
assert(NextFreeSystemFuncSystemInt32_SystemSingle_SystemDouble != nullptr);
System::Func3** pNext = NextFreeSystemFuncSystemInt32_SystemSingle_SystemDouble;
NextFreeSystemFuncSystemInt32_SystemSingle_SystemDouble = (System::Func3**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemFuncSystemInt32_SystemSingle_SystemDoubleFreeList);
}
System::Func3* GetSystemFuncSystemInt32_SystemSingle_SystemDouble(int32_t handle)
{
assert(handle >= 0 && handle < SystemFuncSystemInt32_SystemSingle_SystemDoubleFreeListSize);
return SystemFuncSystemInt32_SystemSingle_SystemDoubleFreeList[handle];
}
void RemoveSystemFuncSystemInt32_SystemSingle_SystemDouble(int32_t handle)
{
System::Func3** pRelease = SystemFuncSystemInt32_SystemSingle_SystemDoubleFreeList + handle;
*pRelease = (System::Func3*)NextFreeSystemFuncSystemInt32_SystemSingle_SystemDouble;
NextFreeSystemFuncSystemInt32_SystemSingle_SystemDouble = pRelease;
}
int32_t SystemFuncSystemInt16_SystemInt32_SystemStringFreeListSize;
System::Func3** SystemFuncSystemInt16_SystemInt32_SystemStringFreeList;
System::Func3** NextFreeSystemFuncSystemInt16_SystemInt32_SystemString;
int32_t StoreSystemFuncSystemInt16_SystemInt32_SystemString(System::Func3* del)
{
assert(NextFreeSystemFuncSystemInt16_SystemInt32_SystemString != nullptr);
System::Func3** pNext = NextFreeSystemFuncSystemInt16_SystemInt32_SystemString;
NextFreeSystemFuncSystemInt16_SystemInt32_SystemString = (System::Func3**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemFuncSystemInt16_SystemInt32_SystemStringFreeList);
}
System::Func3* GetSystemFuncSystemInt16_SystemInt32_SystemString(int32_t handle)
{
assert(handle >= 0 && handle < SystemFuncSystemInt16_SystemInt32_SystemStringFreeListSize);
return SystemFuncSystemInt16_SystemInt32_SystemStringFreeList[handle];
}
void RemoveSystemFuncSystemInt16_SystemInt32_SystemString(int32_t handle)
{
System::Func3** pRelease = SystemFuncSystemInt16_SystemInt32_SystemStringFreeList + handle;
*pRelease = (System::Func3*)NextFreeSystemFuncSystemInt16_SystemInt32_SystemString;
NextFreeSystemFuncSystemInt16_SystemInt32_SystemString = pRelease;
}
int32_t SystemAppDomainInitializerFreeListSize;
System::AppDomainInitializer** SystemAppDomainInitializerFreeList;
System::AppDomainInitializer** NextFreeSystemAppDomainInitializer;
int32_t StoreSystemAppDomainInitializer(System::AppDomainInitializer* del)
{
assert(NextFreeSystemAppDomainInitializer != nullptr);
System::AppDomainInitializer** pNext = NextFreeSystemAppDomainInitializer;
NextFreeSystemAppDomainInitializer = (System::AppDomainInitializer**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemAppDomainInitializerFreeList);
}
System::AppDomainInitializer* GetSystemAppDomainInitializer(int32_t handle)
{
assert(handle >= 0 && handle < SystemAppDomainInitializerFreeListSize);
return SystemAppDomainInitializerFreeList[handle];
}
void RemoveSystemAppDomainInitializer(int32_t handle)
{
System::AppDomainInitializer** pRelease = SystemAppDomainInitializerFreeList + handle;
*pRelease = (System::AppDomainInitializer*)NextFreeSystemAppDomainInitializer;
NextFreeSystemAppDomainInitializer = pRelease;
}
int32_t UnityEngineEventsUnityActionFreeListSize;
UnityEngine::Events::UnityAction** UnityEngineEventsUnityActionFreeList;
UnityEngine::Events::UnityAction** NextFreeUnityEngineEventsUnityAction;
int32_t StoreUnityEngineEventsUnityAction(UnityEngine::Events::UnityAction* del)
{
assert(NextFreeUnityEngineEventsUnityAction != nullptr);
UnityEngine::Events::UnityAction** pNext = NextFreeUnityEngineEventsUnityAction;
NextFreeUnityEngineEventsUnityAction = (UnityEngine::Events::UnityAction**)*pNext;
*pNext = del;
return (int32_t)(pNext - UnityEngineEventsUnityActionFreeList);
}
UnityEngine::Events::UnityAction* GetUnityEngineEventsUnityAction(int32_t handle)
{
assert(handle >= 0 && handle < UnityEngineEventsUnityActionFreeListSize);
return UnityEngineEventsUnityActionFreeList[handle];
}
void RemoveUnityEngineEventsUnityAction(int32_t handle)
{
UnityEngine::Events::UnityAction** pRelease = UnityEngineEventsUnityActionFreeList + handle;
*pRelease = (UnityEngine::Events::UnityAction*)NextFreeUnityEngineEventsUnityAction;
NextFreeUnityEngineEventsUnityAction = pRelease;
}
int32_t UnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeFreeListSize;
UnityEngine::Events::UnityAction2** UnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeFreeList;
UnityEngine::Events::UnityAction2** NextFreeUnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneMode;
int32_t StoreUnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneMode(UnityEngine::Events::UnityAction2* del)
{
assert(NextFreeUnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneMode != nullptr);
UnityEngine::Events::UnityAction2** pNext = NextFreeUnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneMode;
NextFreeUnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneMode = (UnityEngine::Events::UnityAction2**)*pNext;
*pNext = del;
return (int32_t)(pNext - UnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeFreeList);
}
UnityEngine::Events::UnityAction2* GetUnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneMode(int32_t handle)
{
assert(handle >= 0 && handle < UnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeFreeListSize);
return UnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeFreeList[handle];
}
void RemoveUnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneMode(int32_t handle)
{
UnityEngine::Events::UnityAction2** pRelease = UnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeFreeList + handle;
*pRelease = (UnityEngine::Events::UnityAction2*)NextFreeUnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneMode;
NextFreeUnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneMode = pRelease;
}
int32_t SystemComponentModelDesignComponentEventHandlerFreeListSize;
System::ComponentModel::Design::ComponentEventHandler** SystemComponentModelDesignComponentEventHandlerFreeList;
System::ComponentModel::Design::ComponentEventHandler** NextFreeSystemComponentModelDesignComponentEventHandler;
int32_t StoreSystemComponentModelDesignComponentEventHandler(System::ComponentModel::Design::ComponentEventHandler* del)
{
assert(NextFreeSystemComponentModelDesignComponentEventHandler != nullptr);
System::ComponentModel::Design::ComponentEventHandler** pNext = NextFreeSystemComponentModelDesignComponentEventHandler;
NextFreeSystemComponentModelDesignComponentEventHandler = (System::ComponentModel::Design::ComponentEventHandler**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemComponentModelDesignComponentEventHandlerFreeList);
}
System::ComponentModel::Design::ComponentEventHandler* GetSystemComponentModelDesignComponentEventHandler(int32_t handle)
{
assert(handle >= 0 && handle < SystemComponentModelDesignComponentEventHandlerFreeListSize);
return SystemComponentModelDesignComponentEventHandlerFreeList[handle];
}
void RemoveSystemComponentModelDesignComponentEventHandler(int32_t handle)
{
System::ComponentModel::Design::ComponentEventHandler** pRelease = SystemComponentModelDesignComponentEventHandlerFreeList + handle;
*pRelease = (System::ComponentModel::Design::ComponentEventHandler*)NextFreeSystemComponentModelDesignComponentEventHandler;
NextFreeSystemComponentModelDesignComponentEventHandler = pRelease;
}
int32_t SystemComponentModelDesignComponentChangingEventHandlerFreeListSize;
System::ComponentModel::Design::ComponentChangingEventHandler** SystemComponentModelDesignComponentChangingEventHandlerFreeList;
System::ComponentModel::Design::ComponentChangingEventHandler** NextFreeSystemComponentModelDesignComponentChangingEventHandler;
int32_t StoreSystemComponentModelDesignComponentChangingEventHandler(System::ComponentModel::Design::ComponentChangingEventHandler* del)
{
assert(NextFreeSystemComponentModelDesignComponentChangingEventHandler != nullptr);
System::ComponentModel::Design::ComponentChangingEventHandler** pNext = NextFreeSystemComponentModelDesignComponentChangingEventHandler;
NextFreeSystemComponentModelDesignComponentChangingEventHandler = (System::ComponentModel::Design::ComponentChangingEventHandler**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemComponentModelDesignComponentChangingEventHandlerFreeList);
}
System::ComponentModel::Design::ComponentChangingEventHandler* GetSystemComponentModelDesignComponentChangingEventHandler(int32_t handle)
{
assert(handle >= 0 && handle < SystemComponentModelDesignComponentChangingEventHandlerFreeListSize);
return SystemComponentModelDesignComponentChangingEventHandlerFreeList[handle];
}
void RemoveSystemComponentModelDesignComponentChangingEventHandler(int32_t handle)
{
System::ComponentModel::Design::ComponentChangingEventHandler** pRelease = SystemComponentModelDesignComponentChangingEventHandlerFreeList + handle;
*pRelease = (System::ComponentModel::Design::ComponentChangingEventHandler*)NextFreeSystemComponentModelDesignComponentChangingEventHandler;
NextFreeSystemComponentModelDesignComponentChangingEventHandler = pRelease;
}
int32_t SystemComponentModelDesignComponentChangedEventHandlerFreeListSize;
System::ComponentModel::Design::ComponentChangedEventHandler** SystemComponentModelDesignComponentChangedEventHandlerFreeList;
System::ComponentModel::Design::ComponentChangedEventHandler** NextFreeSystemComponentModelDesignComponentChangedEventHandler;
int32_t StoreSystemComponentModelDesignComponentChangedEventHandler(System::ComponentModel::Design::ComponentChangedEventHandler* del)
{
assert(NextFreeSystemComponentModelDesignComponentChangedEventHandler != nullptr);
System::ComponentModel::Design::ComponentChangedEventHandler** pNext = NextFreeSystemComponentModelDesignComponentChangedEventHandler;
NextFreeSystemComponentModelDesignComponentChangedEventHandler = (System::ComponentModel::Design::ComponentChangedEventHandler**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemComponentModelDesignComponentChangedEventHandlerFreeList);
}
System::ComponentModel::Design::ComponentChangedEventHandler* GetSystemComponentModelDesignComponentChangedEventHandler(int32_t handle)
{
assert(handle >= 0 && handle < SystemComponentModelDesignComponentChangedEventHandlerFreeListSize);
return SystemComponentModelDesignComponentChangedEventHandlerFreeList[handle];
}
void RemoveSystemComponentModelDesignComponentChangedEventHandler(int32_t handle)
{
System::ComponentModel::Design::ComponentChangedEventHandler** pRelease = SystemComponentModelDesignComponentChangedEventHandlerFreeList + handle;
*pRelease = (System::ComponentModel::Design::ComponentChangedEventHandler*)NextFreeSystemComponentModelDesignComponentChangedEventHandler;
NextFreeSystemComponentModelDesignComponentChangedEventHandler = pRelease;
}
int32_t SystemComponentModelDesignComponentRenameEventHandlerFreeListSize;
System::ComponentModel::Design::ComponentRenameEventHandler** SystemComponentModelDesignComponentRenameEventHandlerFreeList;
System::ComponentModel::Design::ComponentRenameEventHandler** NextFreeSystemComponentModelDesignComponentRenameEventHandler;
int32_t StoreSystemComponentModelDesignComponentRenameEventHandler(System::ComponentModel::Design::ComponentRenameEventHandler* del)
{
assert(NextFreeSystemComponentModelDesignComponentRenameEventHandler != nullptr);
System::ComponentModel::Design::ComponentRenameEventHandler** pNext = NextFreeSystemComponentModelDesignComponentRenameEventHandler;
NextFreeSystemComponentModelDesignComponentRenameEventHandler = (System::ComponentModel::Design::ComponentRenameEventHandler**)*pNext;
*pNext = del;
return (int32_t)(pNext - SystemComponentModelDesignComponentRenameEventHandlerFreeList);
}
System::ComponentModel::Design::ComponentRenameEventHandler* GetSystemComponentModelDesignComponentRenameEventHandler(int32_t handle)
{
assert(handle >= 0 && handle < SystemComponentModelDesignComponentRenameEventHandlerFreeListSize);
return SystemComponentModelDesignComponentRenameEventHandlerFreeList[handle];
}
void RemoveSystemComponentModelDesignComponentRenameEventHandler(int32_t handle)
{
System::ComponentModel::Design::ComponentRenameEventHandler** pRelease = SystemComponentModelDesignComponentRenameEventHandlerFreeList + handle;
*pRelease = (System::ComponentModel::Design::ComponentRenameEventHandler*)NextFreeSystemComponentModelDesignComponentRenameEventHandler;
NextFreeSystemComponentModelDesignComponentRenameEventHandler = pRelease;
}
/*END GLOBAL STATE AND FUNCTIONS*/
}
namespace Plugin
{
// An unhandled exception caused by C++ calling into C#
System::Exception* unhandledCsharpException = nullptr;
}
////////////////////////////////////////////////////////////////
// Mirrors of C# types. These wrap the C# functions to present
// a similiar API as in C#.
////////////////////////////////////////////////////////////////
namespace System
{
Object::Object()
: Plugin::ManagedType(nullptr)
{
}
Object::Object(Plugin::InternalUse iu, int32_t handle)
: ManagedType(Plugin::InternalUse::Only, handle)
{
}
Object::Object(decltype(nullptr))
: ManagedType(nullptr)
{
}
bool Object::operator==(decltype(nullptr)) const
{
return Handle == 0;
}
bool Object::operator!=(decltype(nullptr)) const
{
return Handle != 0;
}
void Object::ThrowReferenceToThis()
{
throw *this;
}
ValueType::ValueType(Plugin::InternalUse iu, int32_t handle)
: Object(iu, handle)
{
}
ValueType::ValueType(decltype(nullptr))
: Object(nullptr)
{
}
Enum::Enum(Plugin::InternalUse iu, int32_t handle)
: ValueType(iu, handle)
{
}
Enum::Enum(decltype(nullptr))
: ValueType(nullptr)
{
}
String::String(decltype(nullptr))
: Object(Plugin::InternalUse::Only, 0)
{
}
String::String(Plugin::InternalUse iu, int32_t handle)
: Object(iu, handle)
{
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
String::String(const String& other)
: Object(Plugin::InternalUse::Only, other.Handle)
{
if (Handle)
{
Plugin::ReferenceManagedClass(Handle);
}
}
String::String(String&& other)
: Object(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
String::~String()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
String& String::operator=(const String& other)
{
if (Handle != other.Handle)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
if (Handle)
{
Plugin::ReferenceManagedClass(Handle);
}
}
return *this;
}
String& String::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
String& String::operator=(String&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
String::String(const char* chars)
: Object(Plugin::InternalUse::Only, Plugin::StringNew(chars))
{
}
ICloneable::ICloneable(Plugin::InternalUse iu, int32_t handle)
: Object(iu, handle)
{
}
ICloneable::ICloneable(decltype(nullptr))
: Object(nullptr)
{
}
namespace Collections
{
IEnumerable::IEnumerable(Plugin::InternalUse iu, int32_t handle)
: Object(iu, handle)
{
}
IEnumerable::IEnumerable(decltype(nullptr))
: Object(nullptr)
{
}
IEnumerator IEnumerable::GetEnumerator()
{
return IEnumerator(
Plugin::InternalUse::Only,
Plugin::EnumerableGetEnumerator(Handle));
}
Plugin::EnumerableIterator begin(
System::Collections::IEnumerable& enumerable)
{
return Plugin::EnumerableIterator(enumerable);
}
Plugin::EnumerableIterator end(
System::Collections::IEnumerable& enumerable)
{
return Plugin::EnumerableIterator(nullptr);
}
ICollection::ICollection(Plugin::InternalUse iu, int32_t handle)
: Object(iu, handle)
, IEnumerable(nullptr)
{
}
ICollection::ICollection(decltype(nullptr))
: Object(nullptr)
, IEnumerable(nullptr)
{
}
IList::IList(Plugin::InternalUse iu, int32_t handle)
: Object(iu, handle)
, IEnumerable(nullptr)
, ICollection(nullptr)
{
}
IList::IList(decltype(nullptr))
: Object(nullptr)
, IEnumerable(nullptr)
, ICollection(nullptr)
{
}
}
Array::Array(Plugin::InternalUse iu, int32_t handle)
: Object(iu, handle)
, ICloneable(nullptr)
, Collections::IEnumerable(nullptr)
, Collections::ICollection(nullptr)
, Collections::IList(nullptr)
{
}
Array::Array(decltype(nullptr))
: Object(nullptr)
, ICloneable(nullptr)
, Collections::IEnumerable(nullptr)
, Collections::ICollection(nullptr)
, Collections::IList(nullptr)
{
}
int32_t Array::GetLength()
{
return Plugin::ArrayGetLength(Handle);
}
int32_t Array::GetRank()
{
return 0;
}
}
/*BEGIN METHOD DEFINITIONS*/
namespace System
{
IFormattable::IFormattable(decltype(nullptr))
{
}
IFormattable::IFormattable(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IFormattable::IFormattable(const IFormattable& other)
: IFormattable(Plugin::InternalUse::Only, other.Handle)
{
}
IFormattable::IFormattable(IFormattable&& other)
: IFormattable(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IFormattable::~IFormattable()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IFormattable& IFormattable::operator=(const IFormattable& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IFormattable& IFormattable::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IFormattable& IFormattable::operator=(IFormattable&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IFormattable::operator==(const IFormattable& other) const
{
return Handle == other.Handle;
}
bool IFormattable::operator!=(const IFormattable& other) const
{
return Handle != other.Handle;
}
}
namespace System
{
IConvertible::IConvertible(decltype(nullptr))
{
}
IConvertible::IConvertible(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IConvertible::IConvertible(const IConvertible& other)
: IConvertible(Plugin::InternalUse::Only, other.Handle)
{
}
IConvertible::IConvertible(IConvertible&& other)
: IConvertible(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IConvertible::~IConvertible()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IConvertible& IConvertible::operator=(const IConvertible& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IConvertible& IConvertible::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IConvertible& IConvertible::operator=(IConvertible&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IConvertible::operator==(const IConvertible& other) const
{
return Handle == other.Handle;
}
bool IConvertible::operator!=(const IConvertible& other) const
{
return Handle != other.Handle;
}
}
namespace System
{
IComparable::IComparable(decltype(nullptr))
{
}
IComparable::IComparable(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IComparable::IComparable(const IComparable& other)
: IComparable(Plugin::InternalUse::Only, other.Handle)
{
}
IComparable::IComparable(IComparable&& other)
: IComparable(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IComparable::~IComparable()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IComparable& IComparable::operator=(const IComparable& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IComparable& IComparable::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IComparable& IComparable::operator=(IComparable&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IComparable::operator==(const IComparable& other) const
{
return Handle == other.Handle;
}
bool IComparable::operator!=(const IComparable& other) const
{
return Handle != other.Handle;
}
System::Int32 IComparable::CompareTo(System::Object& obj)
{
auto returnValue = Plugin::SystemIComparableMethodCompareToSystemObject(Handle, obj.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
}
namespace System
{
IDisposable::IDisposable(decltype(nullptr))
{
}
IDisposable::IDisposable(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IDisposable::IDisposable(const IDisposable& other)
: IDisposable(Plugin::InternalUse::Only, other.Handle)
{
}
IDisposable::IDisposable(IDisposable&& other)
: IDisposable(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IDisposable::~IDisposable()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IDisposable& IDisposable::operator=(const IDisposable& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IDisposable& IDisposable::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IDisposable& IDisposable::operator=(IDisposable&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IDisposable::operator==(const IDisposable& other) const
{
return Handle == other.Handle;
}
bool IDisposable::operator!=(const IDisposable& other) const
{
return Handle != other.Handle;
}
void IDisposable::Dispose()
{
Plugin::SystemIDisposableMethodDispose(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
}
namespace UnityEngine
{
Vector3::Vector3()
{
}
Vector3::Vector3(System::Single x, System::Single y, System::Single z)
{
auto returnValue = Plugin::UnityEngineVector3ConstructorSystemSingle_SystemSingle_SystemSingle(x, y, z);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
*this = returnValue;
}
System::Single Vector3::GetMagnitude()
{
auto returnValue = Plugin::UnityEngineVector3PropertyGetMagnitude(this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
void Vector3::Set(System::Single newX, System::Single newY, System::Single newZ)
{
Plugin::UnityEngineVector3MethodSetSystemSingle_SystemSingle_SystemSingle(this, newX, newY, newZ);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
UnityEngine::Vector3 Vector3::operator+(UnityEngine::Vector3& a)
{
auto returnValue = Plugin::UnityEngineVector3Methodop_AdditionUnityEngineVector3_UnityEngineVector3(*this, a);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
UnityEngine::Vector3 Vector3::operator-()
{
auto returnValue = Plugin::UnityEngineVector3Methodop_UnaryNegationUnityEngineVector3(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
Vector3::operator System::ValueType()
{
int32_t handle = Plugin::BoxVector3(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
Vector3::operator System::Object()
{
int32_t handle = Plugin::BoxVector3(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
namespace System
{
Object::operator UnityEngine::Vector3()
{
UnityEngine::Vector3 returnVal(Plugin::UnboxVector3(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace UnityEngine
{
Object::Object(decltype(nullptr))
{
}
Object::Object(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Object::Object(const Object& other)
: Object(Plugin::InternalUse::Only, other.Handle)
{
}
Object::Object(Object&& other)
: Object(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Object::~Object()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Object& Object::operator=(const Object& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Object& Object::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Object& Object::operator=(Object&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Object::operator==(const Object& other) const
{
return Handle == other.Handle;
}
bool Object::operator!=(const Object& other) const
{
return Handle != other.Handle;
}
System::String Object::GetName()
{
auto returnValue = Plugin::UnityEngineObjectPropertyGetName(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return System::String(Plugin::InternalUse::Only, returnValue);
}
void Object::SetName(System::String& value)
{
Plugin::UnityEngineObjectPropertySetName(Handle, value.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
System::Boolean Object::operator==(UnityEngine::Object& x)
{
auto returnValue = Plugin::UnityEngineObjectMethodop_EqualityUnityEngineObject_UnityEngineObject(Handle, x.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
Object::operator System::Boolean()
{
auto returnValue = Plugin::UnityEngineObjectMethodop_ImplicitUnityEngineObject(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
}
namespace UnityEngine
{
Component::Component(decltype(nullptr))
: UnityEngine::Object(nullptr)
{
}
Component::Component(Plugin::InternalUse, int32_t handle)
: UnityEngine::Object(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Component::Component(const Component& other)
: Component(Plugin::InternalUse::Only, other.Handle)
{
}
Component::Component(Component&& other)
: Component(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Component::~Component()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Component& Component::operator=(const Component& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Component& Component::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Component& Component::operator=(Component&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Component::operator==(const Component& other) const
{
return Handle == other.Handle;
}
bool Component::operator!=(const Component& other) const
{
return Handle != other.Handle;
}
UnityEngine::Transform Component::GetTransform()
{
auto returnValue = Plugin::UnityEngineComponentPropertyGetTransform(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return UnityEngine::Transform(Plugin::InternalUse::Only, returnValue);
}
}
namespace UnityEngine
{
Transform::Transform(decltype(nullptr))
: UnityEngine::Object(nullptr)
, UnityEngine::Component(nullptr)
, System::Collections::IEnumerable(nullptr)
{
}
Transform::Transform(Plugin::InternalUse, int32_t handle)
: UnityEngine::Object(nullptr)
, UnityEngine::Component(nullptr)
, System::Collections::IEnumerable(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Transform::Transform(const Transform& other)
: Transform(Plugin::InternalUse::Only, other.Handle)
{
}
Transform::Transform(Transform&& other)
: Transform(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Transform::~Transform()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Transform& Transform::operator=(const Transform& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Transform& Transform::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Transform& Transform::operator=(Transform&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Transform::operator==(const Transform& other) const
{
return Handle == other.Handle;
}
bool Transform::operator!=(const Transform& other) const
{
return Handle != other.Handle;
}
UnityEngine::Vector3 Transform::GetPosition()
{
auto returnValue = Plugin::UnityEngineTransformPropertyGetPosition(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
void Transform::SetPosition(UnityEngine::Vector3& value)
{
Plugin::UnityEngineTransformPropertySetPosition(Handle, value);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
void Transform::SetParent(UnityEngine::Transform& parent)
{
Plugin::UnityEngineTransformMethodSetParentUnityEngineTransform(Handle, parent.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
}
namespace UnityEngine
{
Color::Color()
{
}
Color::operator System::ValueType()
{
int32_t handle = Plugin::BoxColor(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
Color::operator System::Object()
{
int32_t handle = Plugin::BoxColor(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
namespace System
{
Object::operator UnityEngine::Color()
{
UnityEngine::Color returnVal(Plugin::UnboxColor(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace UnityEngine
{
GradientColorKey::GradientColorKey()
{
}
GradientColorKey::operator System::ValueType()
{
int32_t handle = Plugin::BoxGradientColorKey(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
GradientColorKey::operator System::Object()
{
int32_t handle = Plugin::BoxGradientColorKey(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
namespace System
{
Object::operator UnityEngine::GradientColorKey()
{
UnityEngine::GradientColorKey returnVal(Plugin::UnboxGradientColorKey(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace UnityEngine
{
Resolution::Resolution(decltype(nullptr))
{
}
Resolution::Resolution(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedUnityEngineResolution(Handle);
}
}
Resolution::Resolution(const Resolution& other)
: Resolution(Plugin::InternalUse::Only, other.Handle)
{
}
Resolution::Resolution(Resolution&& other)
: Resolution(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Resolution::~Resolution()
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineResolution(Handle);
Handle = 0;
}
}
Resolution& Resolution::operator=(const Resolution& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedUnityEngineResolution(Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedUnityEngineResolution(Handle);
}
return *this;
}
Resolution& Resolution::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineResolution(Handle);
Handle = 0;
}
return *this;
}
Resolution& Resolution::operator=(Resolution&& other)
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineResolution(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Resolution::operator==(const Resolution& other) const
{
return Handle == other.Handle;
}
bool Resolution::operator!=(const Resolution& other) const
{
return Handle != other.Handle;
}
Resolution::Resolution()
{
auto returnValue = Plugin::UnityEngineResolutionConstructor();
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
Handle = returnValue;
if (returnValue)
{
Plugin::ReferenceManagedUnityEngineResolution(Handle);
}
}
System::Int32 Resolution::GetWidth()
{
auto returnValue = Plugin::UnityEngineResolutionPropertyGetWidth(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
void Resolution::SetWidth(System::Int32 value)
{
Plugin::UnityEngineResolutionPropertySetWidth(Handle, value);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
System::Int32 Resolution::GetHeight()
{
auto returnValue = Plugin::UnityEngineResolutionPropertyGetHeight(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
void Resolution::SetHeight(System::Int32 value)
{
Plugin::UnityEngineResolutionPropertySetHeight(Handle, value);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
System::Int32 Resolution::GetRefreshRate()
{
auto returnValue = Plugin::UnityEngineResolutionPropertyGetRefreshRate(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
void Resolution::SetRefreshRate(System::Int32 value)
{
Plugin::UnityEngineResolutionPropertySetRefreshRate(Handle, value);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
Resolution::operator System::ValueType()
{
int32_t handle = Plugin::BoxResolution(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
Resolution::operator System::Object()
{
int32_t handle = Plugin::BoxResolution(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
namespace System
{
Object::operator UnityEngine::Resolution()
{
UnityEngine::Resolution returnVal(Plugin::InternalUse::Only, Plugin::UnboxResolution(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace UnityEngine
{
RaycastHit::RaycastHit(decltype(nullptr))
{
}
RaycastHit::RaycastHit(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedUnityEngineRaycastHit(Handle);
}
}
RaycastHit::RaycastHit(const RaycastHit& other)
: RaycastHit(Plugin::InternalUse::Only, other.Handle)
{
}
RaycastHit::RaycastHit(RaycastHit&& other)
: RaycastHit(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
RaycastHit::~RaycastHit()
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineRaycastHit(Handle);
Handle = 0;
}
}
RaycastHit& RaycastHit::operator=(const RaycastHit& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedUnityEngineRaycastHit(Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedUnityEngineRaycastHit(Handle);
}
return *this;
}
RaycastHit& RaycastHit::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineRaycastHit(Handle);
Handle = 0;
}
return *this;
}
RaycastHit& RaycastHit::operator=(RaycastHit&& other)
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineRaycastHit(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool RaycastHit::operator==(const RaycastHit& other) const
{
return Handle == other.Handle;
}
bool RaycastHit::operator!=(const RaycastHit& other) const
{
return Handle != other.Handle;
}
UnityEngine::Vector3 RaycastHit::GetPoint()
{
auto returnValue = Plugin::UnityEngineRaycastHitPropertyGetPoint(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
void RaycastHit::SetPoint(UnityEngine::Vector3& value)
{
Plugin::UnityEngineRaycastHitPropertySetPoint(Handle, value);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
UnityEngine::Transform RaycastHit::GetTransform()
{
auto returnValue = Plugin::UnityEngineRaycastHitPropertyGetTransform(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return UnityEngine::Transform(Plugin::InternalUse::Only, returnValue);
}
RaycastHit::operator System::ValueType()
{
int32_t handle = Plugin::BoxRaycastHit(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
RaycastHit::operator System::Object()
{
int32_t handle = Plugin::BoxRaycastHit(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
namespace System
{
Object::operator UnityEngine::RaycastHit()
{
UnityEngine::RaycastHit returnVal(Plugin::InternalUse::Only, Plugin::UnboxRaycastHit(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace System
{
namespace Collections
{
IEnumerator::IEnumerator(decltype(nullptr))
{
}
IEnumerator::IEnumerator(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IEnumerator::IEnumerator(const IEnumerator& other)
: IEnumerator(Plugin::InternalUse::Only, other.Handle)
{
}
IEnumerator::IEnumerator(IEnumerator&& other)
: IEnumerator(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IEnumerator::~IEnumerator()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IEnumerator& IEnumerator::operator=(const IEnumerator& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IEnumerator& IEnumerator::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IEnumerator& IEnumerator::operator=(IEnumerator&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IEnumerator::operator==(const IEnumerator& other) const
{
return Handle == other.Handle;
}
bool IEnumerator::operator!=(const IEnumerator& other) const
{
return Handle != other.Handle;
}
System::Object IEnumerator::GetCurrent()
{
auto returnValue = Plugin::SystemCollectionsIEnumeratorPropertyGetCurrent(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return System::Object(Plugin::InternalUse::Only, returnValue);
}
System::Boolean IEnumerator::MoveNext()
{
auto returnValue = Plugin::SystemCollectionsIEnumeratorMethodMoveNext(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
}
}
namespace System
{
namespace Runtime
{
namespace Serialization
{
ISerializable::ISerializable(decltype(nullptr))
{
}
ISerializable::ISerializable(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
ISerializable::ISerializable(const ISerializable& other)
: ISerializable(Plugin::InternalUse::Only, other.Handle)
{
}
ISerializable::ISerializable(ISerializable&& other)
: ISerializable(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
ISerializable::~ISerializable()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
ISerializable& ISerializable::operator=(const ISerializable& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
ISerializable& ISerializable::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
ISerializable& ISerializable::operator=(ISerializable&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool ISerializable::operator==(const ISerializable& other) const
{
return Handle == other.Handle;
}
bool ISerializable::operator!=(const ISerializable& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace System
{
namespace Runtime
{
namespace InteropServices
{
_Exception::_Exception(decltype(nullptr))
{
}
_Exception::_Exception(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
_Exception::_Exception(const _Exception& other)
: _Exception(Plugin::InternalUse::Only, other.Handle)
{
}
_Exception::_Exception(_Exception&& other)
: _Exception(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
_Exception::~_Exception()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
_Exception& _Exception::operator=(const _Exception& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
_Exception& _Exception::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
_Exception& _Exception::operator=(_Exception&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool _Exception::operator==(const _Exception& other) const
{
return Handle == other.Handle;
}
bool _Exception::operator!=(const _Exception& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace System
{
IAppDomainSetup::IAppDomainSetup(decltype(nullptr))
{
}
IAppDomainSetup::IAppDomainSetup(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IAppDomainSetup::IAppDomainSetup(const IAppDomainSetup& other)
: IAppDomainSetup(Plugin::InternalUse::Only, other.Handle)
{
}
IAppDomainSetup::IAppDomainSetup(IAppDomainSetup&& other)
: IAppDomainSetup(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IAppDomainSetup::~IAppDomainSetup()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IAppDomainSetup& IAppDomainSetup::operator=(const IAppDomainSetup& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IAppDomainSetup& IAppDomainSetup::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IAppDomainSetup& IAppDomainSetup::operator=(IAppDomainSetup&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IAppDomainSetup::operator==(const IAppDomainSetup& other) const
{
return Handle == other.Handle;
}
bool IAppDomainSetup::operator!=(const IAppDomainSetup& other) const
{
return Handle != other.Handle;
}
}
namespace System
{
namespace Collections
{
IComparer::IComparer(decltype(nullptr))
{
}
IComparer::IComparer(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IComparer::IComparer(const IComparer& other)
: IComparer(Plugin::InternalUse::Only, other.Handle)
{
}
IComparer::IComparer(IComparer&& other)
: IComparer(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IComparer::~IComparer()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IComparer& IComparer::operator=(const IComparer& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IComparer& IComparer::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IComparer& IComparer::operator=(IComparer&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IComparer::operator==(const IComparer& other) const
{
return Handle == other.Handle;
}
bool IComparer::operator!=(const IComparer& other) const
{
return Handle != other.Handle;
}
}
}
namespace System
{
namespace Collections
{
IEqualityComparer::IEqualityComparer(decltype(nullptr))
{
}
IEqualityComparer::IEqualityComparer(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IEqualityComparer::IEqualityComparer(const IEqualityComparer& other)
: IEqualityComparer(Plugin::InternalUse::Only, other.Handle)
{
}
IEqualityComparer::IEqualityComparer(IEqualityComparer&& other)
: IEqualityComparer(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IEqualityComparer::~IEqualityComparer()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IEqualityComparer& IEqualityComparer::operator=(const IEqualityComparer& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IEqualityComparer& IEqualityComparer::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IEqualityComparer& IEqualityComparer::operator=(IEqualityComparer&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IEqualityComparer::operator==(const IEqualityComparer& other) const
{
return Handle == other.Handle;
}
bool IEqualityComparer::operator!=(const IEqualityComparer& other) const
{
return Handle != other.Handle;
}
}
}
namespace System
{
namespace Collections
{
namespace Generic
{
IEqualityComparer::IEqualityComparer(decltype(nullptr))
{
}
IEqualityComparer::IEqualityComparer(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IEqualityComparer::IEqualityComparer(const IEqualityComparer& other)
: IEqualityComparer(Plugin::InternalUse::Only, other.Handle)
{
}
IEqualityComparer::IEqualityComparer(IEqualityComparer&& other)
: IEqualityComparer(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IEqualityComparer::~IEqualityComparer()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IEqualityComparer& IEqualityComparer::operator=(const IEqualityComparer& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IEqualityComparer& IEqualityComparer::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IEqualityComparer& IEqualityComparer::operator=(IEqualityComparer&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IEqualityComparer::operator==(const IEqualityComparer& other) const
{
return Handle == other.Handle;
}
bool IEqualityComparer::operator!=(const IEqualityComparer& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace System
{
namespace Collections
{
namespace Generic
{
IEqualityComparer::IEqualityComparer(decltype(nullptr))
{
}
IEqualityComparer::IEqualityComparer(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IEqualityComparer::IEqualityComparer(const IEqualityComparer& other)
: IEqualityComparer(Plugin::InternalUse::Only, other.Handle)
{
}
IEqualityComparer::IEqualityComparer(IEqualityComparer&& other)
: IEqualityComparer(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IEqualityComparer::~IEqualityComparer()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IEqualityComparer& IEqualityComparer::operator=(const IEqualityComparer& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IEqualityComparer& IEqualityComparer::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IEqualityComparer& IEqualityComparer::operator=(IEqualityComparer&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IEqualityComparer::operator==(const IEqualityComparer& other) const
{
return Handle == other.Handle;
}
bool IEqualityComparer::operator!=(const IEqualityComparer& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace UnityEngine
{
namespace Playables
{
PlayableGraph::PlayableGraph(decltype(nullptr))
{
}
PlayableGraph::PlayableGraph(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedUnityEnginePlayablesPlayableGraph(Handle);
}
}
PlayableGraph::PlayableGraph(const PlayableGraph& other)
: PlayableGraph(Plugin::InternalUse::Only, other.Handle)
{
}
PlayableGraph::PlayableGraph(PlayableGraph&& other)
: PlayableGraph(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
PlayableGraph::~PlayableGraph()
{
if (Handle)
{
Plugin::DereferenceManagedUnityEnginePlayablesPlayableGraph(Handle);
Handle = 0;
}
}
PlayableGraph& PlayableGraph::operator=(const PlayableGraph& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedUnityEnginePlayablesPlayableGraph(Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedUnityEnginePlayablesPlayableGraph(Handle);
}
return *this;
}
PlayableGraph& PlayableGraph::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedUnityEnginePlayablesPlayableGraph(Handle);
Handle = 0;
}
return *this;
}
PlayableGraph& PlayableGraph::operator=(PlayableGraph&& other)
{
if (Handle)
{
Plugin::DereferenceManagedUnityEnginePlayablesPlayableGraph(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool PlayableGraph::operator==(const PlayableGraph& other) const
{
return Handle == other.Handle;
}
bool PlayableGraph::operator!=(const PlayableGraph& other) const
{
return Handle != other.Handle;
}
PlayableGraph::operator System::ValueType()
{
int32_t handle = Plugin::BoxPlayableGraph(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
PlayableGraph::operator System::Object()
{
int32_t handle = Plugin::BoxPlayableGraph(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
}
namespace System
{
Object::operator UnityEngine::Playables::PlayableGraph()
{
UnityEngine::Playables::PlayableGraph returnVal(Plugin::InternalUse::Only, Plugin::UnboxPlayableGraph(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace UnityEngine
{
namespace Playables
{
IPlayable::IPlayable(decltype(nullptr))
{
}
IPlayable::IPlayable(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IPlayable::IPlayable(const IPlayable& other)
: IPlayable(Plugin::InternalUse::Only, other.Handle)
{
}
IPlayable::IPlayable(IPlayable&& other)
: IPlayable(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IPlayable::~IPlayable()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IPlayable& IPlayable::operator=(const IPlayable& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IPlayable& IPlayable::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IPlayable& IPlayable::operator=(IPlayable&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IPlayable::operator==(const IPlayable& other) const
{
return Handle == other.Handle;
}
bool IPlayable::operator!=(const IPlayable& other) const
{
return Handle != other.Handle;
}
}
}
namespace System
{
IEquatable::IEquatable(decltype(nullptr))
{
}
IEquatable::IEquatable(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IEquatable::IEquatable(const IEquatable& other)
: IEquatable(Plugin::InternalUse::Only, other.Handle)
{
}
IEquatable::IEquatable(IEquatable&& other)
: IEquatable(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IEquatable::~IEquatable()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IEquatable& IEquatable::operator=(const IEquatable& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IEquatable& IEquatable::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IEquatable& IEquatable::operator=(IEquatable&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IEquatable::operator==(const IEquatable& other) const
{
return Handle == other.Handle;
}
bool IEquatable::operator!=(const IEquatable& other) const
{
return Handle != other.Handle;
}
}
namespace UnityEngine
{
namespace Animations
{
AnimationMixerPlayable::AnimationMixerPlayable(decltype(nullptr))
{
}
AnimationMixerPlayable::AnimationMixerPlayable(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedUnityEngineAnimationsAnimationMixerPlayable(Handle);
}
}
AnimationMixerPlayable::AnimationMixerPlayable(const AnimationMixerPlayable& other)
: AnimationMixerPlayable(Plugin::InternalUse::Only, other.Handle)
{
}
AnimationMixerPlayable::AnimationMixerPlayable(AnimationMixerPlayable&& other)
: AnimationMixerPlayable(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
AnimationMixerPlayable::~AnimationMixerPlayable()
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineAnimationsAnimationMixerPlayable(Handle);
Handle = 0;
}
}
AnimationMixerPlayable& AnimationMixerPlayable::operator=(const AnimationMixerPlayable& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedUnityEngineAnimationsAnimationMixerPlayable(Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedUnityEngineAnimationsAnimationMixerPlayable(Handle);
}
return *this;
}
AnimationMixerPlayable& AnimationMixerPlayable::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineAnimationsAnimationMixerPlayable(Handle);
Handle = 0;
}
return *this;
}
AnimationMixerPlayable& AnimationMixerPlayable::operator=(AnimationMixerPlayable&& other)
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineAnimationsAnimationMixerPlayable(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool AnimationMixerPlayable::operator==(const AnimationMixerPlayable& other) const
{
return Handle == other.Handle;
}
bool AnimationMixerPlayable::operator!=(const AnimationMixerPlayable& other) const
{
return Handle != other.Handle;
}
UnityEngine::Animations::AnimationMixerPlayable AnimationMixerPlayable::Create(UnityEngine::Playables::PlayableGraph& graph, System::Int32 inputCount, System::Boolean normalizeWeights)
{
auto returnValue = Plugin::UnityEngineAnimationsAnimationMixerPlayableMethodCreateUnityEnginePlayablesPlayableGraph_SystemInt32_SystemBoolean(graph.Handle, inputCount, normalizeWeights);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return UnityEngine::Animations::AnimationMixerPlayable(Plugin::InternalUse::Only, returnValue);
}
AnimationMixerPlayable::operator System::ValueType()
{
int32_t handle = Plugin::BoxAnimationMixerPlayable(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
AnimationMixerPlayable::operator System::Object()
{
int32_t handle = Plugin::BoxAnimationMixerPlayable(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
AnimationMixerPlayable::operator UnityEngine::Playables::IPlayable()
{
int32_t handle = Plugin::BoxAnimationMixerPlayable(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return UnityEngine::Playables::IPlayable(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
AnimationMixerPlayable::operator System::IEquatable()
{
int32_t handle = Plugin::BoxAnimationMixerPlayable(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::IEquatable(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
}
namespace System
{
Object::operator UnityEngine::Animations::AnimationMixerPlayable()
{
UnityEngine::Animations::AnimationMixerPlayable returnVal(Plugin::InternalUse::Only, Plugin::UnboxAnimationMixerPlayable(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace System
{
namespace Runtime
{
namespace CompilerServices
{
IStrongBox::IStrongBox(decltype(nullptr))
{
}
IStrongBox::IStrongBox(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IStrongBox::IStrongBox(const IStrongBox& other)
: IStrongBox(Plugin::InternalUse::Only, other.Handle)
{
}
IStrongBox::IStrongBox(IStrongBox&& other)
: IStrongBox(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IStrongBox::~IStrongBox()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IStrongBox& IStrongBox::operator=(const IStrongBox& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IStrongBox& IStrongBox::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IStrongBox& IStrongBox::operator=(IStrongBox&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IStrongBox::operator==(const IStrongBox& other) const
{
return Handle == other.Handle;
}
bool IStrongBox::operator!=(const IStrongBox& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace UnityEngine
{
namespace Experimental
{
namespace UIElements
{
IEventHandler::IEventHandler(decltype(nullptr))
{
}
IEventHandler::IEventHandler(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IEventHandler::IEventHandler(const IEventHandler& other)
: IEventHandler(Plugin::InternalUse::Only, other.Handle)
{
}
IEventHandler::IEventHandler(IEventHandler&& other)
: IEventHandler(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IEventHandler::~IEventHandler()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IEventHandler& IEventHandler::operator=(const IEventHandler& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IEventHandler& IEventHandler::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IEventHandler& IEventHandler::operator=(IEventHandler&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IEventHandler::operator==(const IEventHandler& other) const
{
return Handle == other.Handle;
}
bool IEventHandler::operator!=(const IEventHandler& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace UnityEngine
{
namespace Experimental
{
namespace UIElements
{
CallbackEventHandler::CallbackEventHandler(decltype(nullptr))
: UnityEngine::Experimental::UIElements::IEventHandler(nullptr)
{
}
CallbackEventHandler::CallbackEventHandler(Plugin::InternalUse, int32_t handle)
: UnityEngine::Experimental::UIElements::IEventHandler(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
CallbackEventHandler::CallbackEventHandler(const CallbackEventHandler& other)
: CallbackEventHandler(Plugin::InternalUse::Only, other.Handle)
{
}
CallbackEventHandler::CallbackEventHandler(CallbackEventHandler&& other)
: CallbackEventHandler(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
CallbackEventHandler::~CallbackEventHandler()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
CallbackEventHandler& CallbackEventHandler::operator=(const CallbackEventHandler& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
CallbackEventHandler& CallbackEventHandler::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
CallbackEventHandler& CallbackEventHandler::operator=(CallbackEventHandler&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool CallbackEventHandler::operator==(const CallbackEventHandler& other) const
{
return Handle == other.Handle;
}
bool CallbackEventHandler::operator!=(const CallbackEventHandler& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace UnityEngine
{
namespace Experimental
{
namespace UIElements
{
Focusable::Focusable(decltype(nullptr))
: UnityEngine::Experimental::UIElements::IEventHandler(nullptr)
, UnityEngine::Experimental::UIElements::CallbackEventHandler(nullptr)
{
}
Focusable::Focusable(Plugin::InternalUse, int32_t handle)
: UnityEngine::Experimental::UIElements::IEventHandler(nullptr)
, UnityEngine::Experimental::UIElements::CallbackEventHandler(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Focusable::Focusable(const Focusable& other)
: Focusable(Plugin::InternalUse::Only, other.Handle)
{
}
Focusable::Focusable(Focusable&& other)
: Focusable(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Focusable::~Focusable()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Focusable& Focusable::operator=(const Focusable& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Focusable& Focusable::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Focusable& Focusable::operator=(Focusable&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Focusable::operator==(const Focusable& other) const
{
return Handle == other.Handle;
}
bool Focusable::operator!=(const Focusable& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace UnityEngine
{
namespace Experimental
{
namespace UIElements
{
IStyle::IStyle(decltype(nullptr))
{
}
IStyle::IStyle(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IStyle::IStyle(const IStyle& other)
: IStyle(Plugin::InternalUse::Only, other.Handle)
{
}
IStyle::IStyle(IStyle&& other)
: IStyle(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IStyle::~IStyle()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IStyle& IStyle::operator=(const IStyle& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IStyle& IStyle::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IStyle& IStyle::operator=(IStyle&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IStyle::operator==(const IStyle& other) const
{
return Handle == other.Handle;
}
bool IStyle::operator!=(const IStyle& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace System
{
namespace Diagnostics
{
Stopwatch::Stopwatch(decltype(nullptr))
{
}
Stopwatch::Stopwatch(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Stopwatch::Stopwatch(const Stopwatch& other)
: Stopwatch(Plugin::InternalUse::Only, other.Handle)
{
}
Stopwatch::Stopwatch(Stopwatch&& other)
: Stopwatch(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Stopwatch::~Stopwatch()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Stopwatch& Stopwatch::operator=(const Stopwatch& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Stopwatch& Stopwatch::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Stopwatch& Stopwatch::operator=(Stopwatch&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Stopwatch::operator==(const Stopwatch& other) const
{
return Handle == other.Handle;
}
bool Stopwatch::operator!=(const Stopwatch& other) const
{
return Handle != other.Handle;
}
Stopwatch::Stopwatch()
{
auto returnValue = Plugin::SystemDiagnosticsStopwatchConstructor();
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
Handle = returnValue;
if (returnValue)
{
Plugin::ReferenceManagedClass(returnValue);
}
}
System::Int64 Stopwatch::GetElapsedMilliseconds()
{
auto returnValue = Plugin::SystemDiagnosticsStopwatchPropertyGetElapsedMilliseconds(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
void Stopwatch::Start()
{
Plugin::SystemDiagnosticsStopwatchMethodStart(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
void Stopwatch::Reset()
{
Plugin::SystemDiagnosticsStopwatchMethodReset(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
}
}
namespace UnityEngine
{
GameObject::GameObject(decltype(nullptr))
: UnityEngine::Object(nullptr)
{
}
GameObject::GameObject(Plugin::InternalUse, int32_t handle)
: UnityEngine::Object(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
GameObject::GameObject(const GameObject& other)
: GameObject(Plugin::InternalUse::Only, other.Handle)
{
}
GameObject::GameObject(GameObject&& other)
: GameObject(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
GameObject::~GameObject()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
GameObject& GameObject::operator=(const GameObject& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
GameObject& GameObject::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
GameObject& GameObject::operator=(GameObject&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool GameObject::operator==(const GameObject& other) const
{
return Handle == other.Handle;
}
bool GameObject::operator!=(const GameObject& other) const
{
return Handle != other.Handle;
}
GameObject::GameObject()
: UnityEngine::Object(nullptr)
{
auto returnValue = Plugin::UnityEngineGameObjectConstructor();
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
Handle = returnValue;
if (returnValue)
{
Plugin::ReferenceManagedClass(returnValue);
}
}
GameObject::GameObject(System::String& name)
: UnityEngine::Object(nullptr)
{
auto returnValue = Plugin::UnityEngineGameObjectConstructorSystemString(name.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
Handle = returnValue;
if (returnValue)
{
Plugin::ReferenceManagedClass(returnValue);
}
}
UnityEngine::Transform GameObject::GetTransform()
{
auto returnValue = Plugin::UnityEngineGameObjectPropertyGetTransform(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return UnityEngine::Transform(Plugin::InternalUse::Only, returnValue);
}
template<> MyGame::MonoBehaviours::TestScript GameObject::AddComponent()
{
auto returnValue = Plugin::UnityEngineGameObjectMethodAddComponentMyGameMonoBehavioursTestScript(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return MyGame::MonoBehaviours::TestScript(Plugin::InternalUse::Only, returnValue);
}
template<> MyGame::MonoBehaviours::AnotherScript GameObject::AddComponent()
{
auto returnValue = Plugin::UnityEngineGameObjectMethodAddComponentMyGameMonoBehavioursAnotherScript(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return MyGame::MonoBehaviours::AnotherScript(Plugin::InternalUse::Only, returnValue);
}
UnityEngine::GameObject GameObject::CreatePrimitive(UnityEngine::PrimitiveType type)
{
auto returnValue = Plugin::UnityEngineGameObjectMethodCreatePrimitiveUnityEnginePrimitiveType(type);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return UnityEngine::GameObject(Plugin::InternalUse::Only, returnValue);
}
}
namespace UnityEngine
{
Debug::Debug(decltype(nullptr))
{
}
Debug::Debug(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Debug::Debug(const Debug& other)
: Debug(Plugin::InternalUse::Only, other.Handle)
{
}
Debug::Debug(Debug&& other)
: Debug(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Debug::~Debug()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Debug& Debug::operator=(const Debug& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Debug& Debug::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Debug& Debug::operator=(Debug&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Debug::operator==(const Debug& other) const
{
return Handle == other.Handle;
}
bool Debug::operator!=(const Debug& other) const
{
return Handle != other.Handle;
}
void Debug::Log(System::Object& message)
{
Plugin::UnityEngineDebugMethodLogSystemObject(message.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
}
namespace UnityEngine
{
namespace Assertions
{
System::Boolean Assert::GetRaiseExceptions()
{
auto returnValue = Plugin::UnityEngineAssertionsAssertFieldGetRaiseExceptions();
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
void Assert::SetRaiseExceptions(System::Boolean value)
{
Plugin::UnityEngineAssertionsAssertFieldSetRaiseExceptions(value);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
template<> void Assert::AreEqual(System::String& expected, System::String& actual)
{
Plugin::UnityEngineAssertionsAssertMethodAreEqualSystemStringSystemString_SystemString(expected.Handle, actual.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
template<> void Assert::AreEqual(UnityEngine::GameObject& expected, UnityEngine::GameObject& actual)
{
Plugin::UnityEngineAssertionsAssertMethodAreEqualUnityEngineGameObjectUnityEngineGameObject_UnityEngineGameObject(expected.Handle, actual.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
}
}
namespace UnityEngine
{
Collision::Collision(decltype(nullptr))
{
}
Collision::Collision(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Collision::Collision(const Collision& other)
: Collision(Plugin::InternalUse::Only, other.Handle)
{
}
Collision::Collision(Collision&& other)
: Collision(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Collision::~Collision()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Collision& Collision::operator=(const Collision& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Collision& Collision::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Collision& Collision::operator=(Collision&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Collision::operator==(const Collision& other) const
{
return Handle == other.Handle;
}
bool Collision::operator!=(const Collision& other) const
{
return Handle != other.Handle;
}
}
namespace UnityEngine
{
Behaviour::Behaviour(decltype(nullptr))
: UnityEngine::Object(nullptr)
, UnityEngine::Component(nullptr)
{
}
Behaviour::Behaviour(Plugin::InternalUse, int32_t handle)
: UnityEngine::Object(nullptr)
, UnityEngine::Component(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Behaviour::Behaviour(const Behaviour& other)
: Behaviour(Plugin::InternalUse::Only, other.Handle)
{
}
Behaviour::Behaviour(Behaviour&& other)
: Behaviour(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Behaviour::~Behaviour()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Behaviour& Behaviour::operator=(const Behaviour& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Behaviour& Behaviour::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Behaviour& Behaviour::operator=(Behaviour&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Behaviour::operator==(const Behaviour& other) const
{
return Handle == other.Handle;
}
bool Behaviour::operator!=(const Behaviour& other) const
{
return Handle != other.Handle;
}
}
namespace UnityEngine
{
MonoBehaviour::MonoBehaviour(decltype(nullptr))
: UnityEngine::Object(nullptr)
, UnityEngine::Component(nullptr)
, UnityEngine::Behaviour(nullptr)
{
}
MonoBehaviour::MonoBehaviour(Plugin::InternalUse, int32_t handle)
: UnityEngine::Object(nullptr)
, UnityEngine::Component(nullptr)
, UnityEngine::Behaviour(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
MonoBehaviour::MonoBehaviour(const MonoBehaviour& other)
: MonoBehaviour(Plugin::InternalUse::Only, other.Handle)
{
}
MonoBehaviour::MonoBehaviour(MonoBehaviour&& other)
: MonoBehaviour(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
MonoBehaviour::~MonoBehaviour()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
MonoBehaviour& MonoBehaviour::operator=(const MonoBehaviour& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
MonoBehaviour& MonoBehaviour::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
MonoBehaviour& MonoBehaviour::operator=(MonoBehaviour&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool MonoBehaviour::operator==(const MonoBehaviour& other) const
{
return Handle == other.Handle;
}
bool MonoBehaviour::operator!=(const MonoBehaviour& other) const
{
return Handle != other.Handle;
}
UnityEngine::Transform MonoBehaviour::GetTransform()
{
auto returnValue = Plugin::UnityEngineMonoBehaviourPropertyGetTransform(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return UnityEngine::Transform(Plugin::InternalUse::Only, returnValue);
}
}
namespace UnityEngine
{
AudioSettings::AudioSettings(decltype(nullptr))
{
}
AudioSettings::AudioSettings(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
AudioSettings::AudioSettings(const AudioSettings& other)
: AudioSettings(Plugin::InternalUse::Only, other.Handle)
{
}
AudioSettings::AudioSettings(AudioSettings&& other)
: AudioSettings(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
AudioSettings::~AudioSettings()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
AudioSettings& AudioSettings::operator=(const AudioSettings& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
AudioSettings& AudioSettings::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
AudioSettings& AudioSettings::operator=(AudioSettings&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool AudioSettings::operator==(const AudioSettings& other) const
{
return Handle == other.Handle;
}
bool AudioSettings::operator!=(const AudioSettings& other) const
{
return Handle != other.Handle;
}
void AudioSettings::GetDSPBufferSize(System::Int32* bufferLength, System::Int32* numBuffers)
{
Plugin::UnityEngineAudioSettingsMethodGetDSPBufferSizeSystemInt32_SystemInt32(&bufferLength->Value, &numBuffers->Value);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
}
namespace UnityEngine
{
namespace Networking
{
NetworkTransport::NetworkTransport(decltype(nullptr))
{
}
NetworkTransport::NetworkTransport(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
NetworkTransport::NetworkTransport(const NetworkTransport& other)
: NetworkTransport(Plugin::InternalUse::Only, other.Handle)
{
}
NetworkTransport::NetworkTransport(NetworkTransport&& other)
: NetworkTransport(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
NetworkTransport::~NetworkTransport()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
NetworkTransport& NetworkTransport::operator=(const NetworkTransport& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
NetworkTransport& NetworkTransport::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
NetworkTransport& NetworkTransport::operator=(NetworkTransport&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool NetworkTransport::operator==(const NetworkTransport& other) const
{
return Handle == other.Handle;
}
bool NetworkTransport::operator!=(const NetworkTransport& other) const
{
return Handle != other.Handle;
}
void NetworkTransport::GetBroadcastConnectionInfo(System::Int32 hostId, System::String* address, System::Int32* port, System::Byte* error)
{
int32_t addressHandle = address->Handle;
Plugin::UnityEngineNetworkingNetworkTransportMethodGetBroadcastConnectionInfoSystemInt32_SystemString_SystemInt32_SystemByte(hostId, &addressHandle, &port->Value, &error->Value);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (address->Handle)
{
Plugin::DereferenceManagedClass(address->Handle);
}
address->Handle = addressHandle;
if (address->Handle)
{
Plugin::ReferenceManagedClass(address->Handle);
}
}
void NetworkTransport::Init()
{
Plugin::UnityEngineNetworkingNetworkTransportMethodInit();
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
}
}
namespace UnityEngine
{
Quaternion::Quaternion()
{
}
Quaternion::operator System::ValueType()
{
int32_t handle = Plugin::BoxQuaternion(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
Quaternion::operator System::Object()
{
int32_t handle = Plugin::BoxQuaternion(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
namespace System
{
Object::operator UnityEngine::Quaternion()
{
UnityEngine::Quaternion returnVal(Plugin::UnboxQuaternion(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace UnityEngine
{
Matrix4x4::Matrix4x4()
{
}
System::Single Matrix4x4::GetItem(System::Int32 row, System::Int32 column)
{
auto returnValue = Plugin::UnityEngineMatrix4x4PropertyGetItem(this, row, column);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
void Matrix4x4::SetItem(System::Int32 row, System::Int32 column, System::Single value)
{
Plugin::UnityEngineMatrix4x4PropertySetItem(this, row, column, value);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
Matrix4x4::operator System::ValueType()
{
int32_t handle = Plugin::BoxMatrix4x4(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
Matrix4x4::operator System::Object()
{
int32_t handle = Plugin::BoxMatrix4x4(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
namespace System
{
Object::operator UnityEngine::Matrix4x4()
{
UnityEngine::Matrix4x4 returnVal(Plugin::UnboxMatrix4x4(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace UnityEngine
{
QueryTriggerInteraction::QueryTriggerInteraction(int32_t value)
: Value(value)
{
}
UnityEngine::QueryTriggerInteraction::operator int32_t() const
{
return Value;
}
bool UnityEngine::QueryTriggerInteraction::operator==(QueryTriggerInteraction other)
{
return Value == other.Value;
}
bool UnityEngine::QueryTriggerInteraction::operator!=(QueryTriggerInteraction other)
{
return Value != other.Value;
}
QueryTriggerInteraction::operator System::Enum()
{
int32_t handle = Plugin::BoxQueryTriggerInteraction(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Enum(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
QueryTriggerInteraction::operator System::ValueType()
{
int32_t handle = Plugin::BoxQueryTriggerInteraction(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
QueryTriggerInteraction::operator System::Object()
{
int32_t handle = Plugin::BoxQueryTriggerInteraction(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
QueryTriggerInteraction::operator System::IFormattable()
{
int32_t handle = Plugin::BoxQueryTriggerInteraction(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::IFormattable(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
QueryTriggerInteraction::operator System::IConvertible()
{
int32_t handle = Plugin::BoxQueryTriggerInteraction(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::IConvertible(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
QueryTriggerInteraction::operator System::IComparable()
{
int32_t handle = Plugin::BoxQueryTriggerInteraction(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::IComparable(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
const UnityEngine::QueryTriggerInteraction UnityEngine::QueryTriggerInteraction::UseGlobal(0);
const UnityEngine::QueryTriggerInteraction UnityEngine::QueryTriggerInteraction::Ignore(1);
const UnityEngine::QueryTriggerInteraction UnityEngine::QueryTriggerInteraction::Collide(2);
namespace System
{
Object::operator UnityEngine::QueryTriggerInteraction()
{
UnityEngine::QueryTriggerInteraction returnVal(Plugin::UnboxQueryTriggerInteraction(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace System
{
namespace Collections
{
namespace Generic
{
KeyValuePair::KeyValuePair(decltype(nullptr))
{
}
KeyValuePair::KeyValuePair(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedSystemCollectionsGenericKeyValuePairSystemString_SystemDouble(Handle);
}
}
KeyValuePair::KeyValuePair(const KeyValuePair& other)
: KeyValuePair(Plugin::InternalUse::Only, other.Handle)
{
}
KeyValuePair::KeyValuePair(KeyValuePair&& other)
: KeyValuePair(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
KeyValuePair::~KeyValuePair()
{
if (Handle)
{
Plugin::DereferenceManagedSystemCollectionsGenericKeyValuePairSystemString_SystemDouble(Handle);
Handle = 0;
}
}
KeyValuePair& KeyValuePair::operator=(const KeyValuePair& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedSystemCollectionsGenericKeyValuePairSystemString_SystemDouble(Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedSystemCollectionsGenericKeyValuePairSystemString_SystemDouble(Handle);
}
return *this;
}
KeyValuePair& KeyValuePair::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedSystemCollectionsGenericKeyValuePairSystemString_SystemDouble(Handle);
Handle = 0;
}
return *this;
}
KeyValuePair& KeyValuePair::operator=(KeyValuePair&& other)
{
if (Handle)
{
Plugin::DereferenceManagedSystemCollectionsGenericKeyValuePairSystemString_SystemDouble(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool KeyValuePair::operator==(const KeyValuePair& other) const
{
return Handle == other.Handle;
}
bool KeyValuePair::operator!=(const KeyValuePair& other) const
{
return Handle != other.Handle;
}
KeyValuePair::KeyValuePair(System::String& key, System::Double value)
{
auto returnValue = Plugin::SystemCollectionsGenericKeyValuePairSystemString_SystemDoubleConstructorSystemString_SystemDouble(key.Handle, value);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
Handle = returnValue;
if (returnValue)
{
Plugin::ReferenceManagedSystemCollectionsGenericKeyValuePairSystemString_SystemDouble(Handle);
}
}
System::String KeyValuePair::GetKey()
{
auto returnValue = Plugin::SystemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetKey(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return System::String(Plugin::InternalUse::Only, returnValue);
}
System::Double KeyValuePair::GetValue()
{
auto returnValue = Plugin::SystemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetValue(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
KeyValuePair::operator System::ValueType()
{
int32_t handle = Plugin::BoxKeyValuePairSystemString_SystemDouble(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
KeyValuePair::operator System::Object()
{
int32_t handle = Plugin::BoxKeyValuePairSystemString_SystemDouble(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
}
}
namespace System
{
Object::operator System::Collections::Generic::KeyValuePair()
{
System::Collections::Generic::KeyValuePair returnVal(Plugin::InternalUse::Only, Plugin::UnboxKeyValuePairSystemString_SystemDouble(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace System
{
namespace Collections
{
namespace Generic
{
LinkedListNode::LinkedListNode(decltype(nullptr))
{
}
LinkedListNode::LinkedListNode(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
LinkedListNode::LinkedListNode(const LinkedListNode& other)
: LinkedListNode(Plugin::InternalUse::Only, other.Handle)
{
}
LinkedListNode::LinkedListNode(LinkedListNode&& other)
: LinkedListNode(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
LinkedListNode::~LinkedListNode()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
LinkedListNode& LinkedListNode::operator=(const LinkedListNode& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
LinkedListNode& LinkedListNode::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
LinkedListNode& LinkedListNode::operator=(LinkedListNode&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool LinkedListNode::operator==(const LinkedListNode& other) const
{
return Handle == other.Handle;
}
bool LinkedListNode::operator!=(const LinkedListNode& other) const
{
return Handle != other.Handle;
}
LinkedListNode::LinkedListNode(System::String& value)
{
auto returnValue = Plugin::SystemCollectionsGenericLinkedListNodeSystemStringConstructorSystemString(value.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
Handle = returnValue;
if (returnValue)
{
Plugin::ReferenceManagedClass(returnValue);
}
}
System::String LinkedListNode::GetValue()
{
auto returnValue = Plugin::SystemCollectionsGenericLinkedListNodeSystemStringPropertyGetValue(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return System::String(Plugin::InternalUse::Only, returnValue);
}
void LinkedListNode::SetValue(System::String& value)
{
Plugin::SystemCollectionsGenericLinkedListNodeSystemStringPropertySetValue(Handle, value.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
}
}
}
namespace System
{
namespace Runtime
{
namespace CompilerServices
{
StrongBox::StrongBox(decltype(nullptr))
: System::Runtime::CompilerServices::IStrongBox(nullptr)
{
}
StrongBox::StrongBox(Plugin::InternalUse, int32_t handle)
: System::Runtime::CompilerServices::IStrongBox(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
StrongBox::StrongBox(const StrongBox& other)
: StrongBox(Plugin::InternalUse::Only, other.Handle)
{
}
StrongBox::StrongBox(StrongBox&& other)
: StrongBox(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
StrongBox::~StrongBox()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
StrongBox& StrongBox::operator=(const StrongBox& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
StrongBox& StrongBox::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
StrongBox& StrongBox::operator=(StrongBox&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool StrongBox::operator==(const StrongBox& other) const
{
return Handle == other.Handle;
}
bool StrongBox::operator!=(const StrongBox& other) const
{
return Handle != other.Handle;
}
StrongBox::StrongBox(System::String& value)
: System::Runtime::CompilerServices::IStrongBox(nullptr)
{
auto returnValue = Plugin::SystemRuntimeCompilerServicesStrongBoxSystemStringConstructorSystemString(value.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
Handle = returnValue;
if (returnValue)
{
Plugin::ReferenceManagedClass(returnValue);
}
}
System::String StrongBox::GetValue()
{
auto returnValue = Plugin::SystemRuntimeCompilerServicesStrongBoxSystemStringFieldGetValue(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return System::String(Plugin::InternalUse::Only, returnValue);
}
void StrongBox::SetValue(System::String& value)
{
Plugin::SystemRuntimeCompilerServicesStrongBoxSystemStringFieldSetValue(Handle, value.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
}
}
}
namespace System
{
Exception::Exception(decltype(nullptr))
: System::Runtime::InteropServices::_Exception(nullptr)
, System::Runtime::Serialization::ISerializable(nullptr)
{
}
Exception::Exception(Plugin::InternalUse, int32_t handle)
: System::Runtime::InteropServices::_Exception(nullptr)
, System::Runtime::Serialization::ISerializable(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Exception::Exception(const Exception& other)
: Exception(Plugin::InternalUse::Only, other.Handle)
{
}
Exception::Exception(Exception&& other)
: Exception(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Exception::~Exception()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Exception& Exception::operator=(const Exception& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Exception& Exception::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Exception& Exception::operator=(Exception&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Exception::operator==(const Exception& other) const
{
return Handle == other.Handle;
}
bool Exception::operator!=(const Exception& other) const
{
return Handle != other.Handle;
}
Exception::Exception(System::String& message)
: System::Runtime::InteropServices::_Exception(nullptr)
, System::Runtime::Serialization::ISerializable(nullptr)
{
auto returnValue = Plugin::SystemExceptionConstructorSystemString(message.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
Handle = returnValue;
if (returnValue)
{
Plugin::ReferenceManagedClass(returnValue);
}
}
}
namespace System
{
SystemException::SystemException(decltype(nullptr))
: System::Runtime::InteropServices::_Exception(nullptr)
, System::Runtime::Serialization::ISerializable(nullptr)
, System::Exception(nullptr)
{
}
SystemException::SystemException(Plugin::InternalUse, int32_t handle)
: System::Runtime::InteropServices::_Exception(nullptr)
, System::Runtime::Serialization::ISerializable(nullptr)
, System::Exception(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
SystemException::SystemException(const SystemException& other)
: SystemException(Plugin::InternalUse::Only, other.Handle)
{
}
SystemException::SystemException(SystemException&& other)
: SystemException(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
SystemException::~SystemException()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
SystemException& SystemException::operator=(const SystemException& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
SystemException& SystemException::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
SystemException& SystemException::operator=(SystemException&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool SystemException::operator==(const SystemException& other) const
{
return Handle == other.Handle;
}
bool SystemException::operator!=(const SystemException& other) const
{
return Handle != other.Handle;
}
}
namespace System
{
NullReferenceException::NullReferenceException(decltype(nullptr))
: System::Runtime::InteropServices::_Exception(nullptr)
, System::Runtime::Serialization::ISerializable(nullptr)
, System::Exception(nullptr)
, System::SystemException(nullptr)
{
}
NullReferenceException::NullReferenceException(Plugin::InternalUse, int32_t handle)
: System::Runtime::InteropServices::_Exception(nullptr)
, System::Runtime::Serialization::ISerializable(nullptr)
, System::Exception(nullptr)
, System::SystemException(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
NullReferenceException::NullReferenceException(const NullReferenceException& other)
: NullReferenceException(Plugin::InternalUse::Only, other.Handle)
{
}
NullReferenceException::NullReferenceException(NullReferenceException&& other)
: NullReferenceException(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
NullReferenceException::~NullReferenceException()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
NullReferenceException& NullReferenceException::operator=(const NullReferenceException& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
NullReferenceException& NullReferenceException::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
NullReferenceException& NullReferenceException::operator=(NullReferenceException&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool NullReferenceException::operator==(const NullReferenceException& other) const
{
return Handle == other.Handle;
}
bool NullReferenceException::operator!=(const NullReferenceException& other) const
{
return Handle != other.Handle;
}
}
namespace UnityEngine
{
Screen::Screen(decltype(nullptr))
{
}
Screen::Screen(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Screen::Screen(const Screen& other)
: Screen(Plugin::InternalUse::Only, other.Handle)
{
}
Screen::Screen(Screen&& other)
: Screen(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Screen::~Screen()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Screen& Screen::operator=(const Screen& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Screen& Screen::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Screen& Screen::operator=(Screen&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Screen::operator==(const Screen& other) const
{
return Handle == other.Handle;
}
bool Screen::operator!=(const Screen& other) const
{
return Handle != other.Handle;
}
System::Array1 Screen::GetResolutions()
{
auto returnValue = Plugin::UnityEngineScreenPropertyGetResolutions();
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return System::Array1(Plugin::InternalUse::Only, returnValue);
}
}
namespace UnityEngine
{
Ray::Ray(decltype(nullptr))
{
}
Ray::Ray(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedUnityEngineRay(Handle);
}
}
Ray::Ray(const Ray& other)
: Ray(Plugin::InternalUse::Only, other.Handle)
{
}
Ray::Ray(Ray&& other)
: Ray(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Ray::~Ray()
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineRay(Handle);
Handle = 0;
}
}
Ray& Ray::operator=(const Ray& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedUnityEngineRay(Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedUnityEngineRay(Handle);
}
return *this;
}
Ray& Ray::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineRay(Handle);
Handle = 0;
}
return *this;
}
Ray& Ray::operator=(Ray&& other)
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineRay(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Ray::operator==(const Ray& other) const
{
return Handle == other.Handle;
}
bool Ray::operator!=(const Ray& other) const
{
return Handle != other.Handle;
}
Ray::Ray(UnityEngine::Vector3& origin, UnityEngine::Vector3& direction)
{
auto returnValue = Plugin::UnityEngineRayConstructorUnityEngineVector3_UnityEngineVector3(origin, direction);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
Handle = returnValue;
if (returnValue)
{
Plugin::ReferenceManagedUnityEngineRay(Handle);
}
}
Ray::operator System::ValueType()
{
int32_t handle = Plugin::BoxRay(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
Ray::operator System::Object()
{
int32_t handle = Plugin::BoxRay(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
namespace System
{
Object::operator UnityEngine::Ray()
{
UnityEngine::Ray returnVal(Plugin::InternalUse::Only, Plugin::UnboxRay(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace UnityEngine
{
Physics::Physics(decltype(nullptr))
{
}
Physics::Physics(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Physics::Physics(const Physics& other)
: Physics(Plugin::InternalUse::Only, other.Handle)
{
}
Physics::Physics(Physics&& other)
: Physics(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Physics::~Physics()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Physics& Physics::operator=(const Physics& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Physics& Physics::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Physics& Physics::operator=(Physics&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Physics::operator==(const Physics& other) const
{
return Handle == other.Handle;
}
bool Physics::operator!=(const Physics& other) const
{
return Handle != other.Handle;
}
System::Int32 Physics::RaycastNonAlloc(UnityEngine::Ray& ray, System::Array1& results)
{
auto returnValue = Plugin::UnityEnginePhysicsMethodRaycastNonAllocUnityEngineRay_UnityEngineRaycastHitArray1(ray.Handle, results.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
System::Array1 Physics::RaycastAll(UnityEngine::Ray& ray)
{
auto returnValue = Plugin::UnityEnginePhysicsMethodRaycastAllUnityEngineRay(ray.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return System::Array1(Plugin::InternalUse::Only, returnValue);
}
}
namespace UnityEngine
{
Gradient::Gradient(decltype(nullptr))
{
}
Gradient::Gradient(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Gradient::Gradient(const Gradient& other)
: Gradient(Plugin::InternalUse::Only, other.Handle)
{
}
Gradient::Gradient(Gradient&& other)
: Gradient(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Gradient::~Gradient()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Gradient& Gradient::operator=(const Gradient& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Gradient& Gradient::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Gradient& Gradient::operator=(Gradient&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Gradient::operator==(const Gradient& other) const
{
return Handle == other.Handle;
}
bool Gradient::operator!=(const Gradient& other) const
{
return Handle != other.Handle;
}
Gradient::Gradient()
{
auto returnValue = Plugin::UnityEngineGradientConstructor();
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
Handle = returnValue;
if (returnValue)
{
Plugin::ReferenceManagedClass(returnValue);
}
}
System::Array1 Gradient::GetColorKeys()
{
auto returnValue = Plugin::UnityEngineGradientPropertyGetColorKeys(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return System::Array1(Plugin::InternalUse::Only, returnValue);
}
void Gradient::SetColorKeys(System::Array1& value)
{
Plugin::UnityEngineGradientPropertySetColorKeys(Handle, value.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
}
namespace System
{
AppDomainSetup::AppDomainSetup(decltype(nullptr))
: System::IAppDomainSetup(nullptr)
{
}
AppDomainSetup::AppDomainSetup(Plugin::InternalUse, int32_t handle)
: System::IAppDomainSetup(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
AppDomainSetup::AppDomainSetup(const AppDomainSetup& other)
: AppDomainSetup(Plugin::InternalUse::Only, other.Handle)
{
}
AppDomainSetup::AppDomainSetup(AppDomainSetup&& other)
: AppDomainSetup(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
AppDomainSetup::~AppDomainSetup()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
AppDomainSetup& AppDomainSetup::operator=(const AppDomainSetup& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
AppDomainSetup& AppDomainSetup::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
AppDomainSetup& AppDomainSetup::operator=(AppDomainSetup&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool AppDomainSetup::operator==(const AppDomainSetup& other) const
{
return Handle == other.Handle;
}
bool AppDomainSetup::operator!=(const AppDomainSetup& other) const
{
return Handle != other.Handle;
}
AppDomainSetup::AppDomainSetup()
: System::IAppDomainSetup(nullptr)
{
auto returnValue = Plugin::SystemAppDomainSetupConstructor();
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
Handle = returnValue;
if (returnValue)
{
Plugin::ReferenceManagedClass(returnValue);
}
}
System::AppDomainInitializer AppDomainSetup::GetAppDomainInitializer()
{
auto returnValue = Plugin::SystemAppDomainSetupPropertyGetAppDomainInitializer(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return System::AppDomainInitializer(Plugin::InternalUse::Only, returnValue);
}
void AppDomainSetup::SetAppDomainInitializer(System::AppDomainInitializer& value)
{
Plugin::SystemAppDomainSetupPropertySetAppDomainInitializer(Handle, value.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
}
namespace UnityEngine
{
Application::Application(decltype(nullptr))
{
}
Application::Application(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Application::Application(const Application& other)
: Application(Plugin::InternalUse::Only, other.Handle)
{
}
Application::Application(Application&& other)
: Application(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Application::~Application()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Application& Application::operator=(const Application& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Application& Application::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Application& Application::operator=(Application&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Application::operator==(const Application& other) const
{
return Handle == other.Handle;
}
bool Application::operator!=(const Application& other) const
{
return Handle != other.Handle;
}
void Application::AddOnBeforeRender(UnityEngine::Events::UnityAction& del)
{
Plugin::UnityEngineApplicationAddEventOnBeforeRender(del.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
void Application::RemoveOnBeforeRender(UnityEngine::Events::UnityAction& del)
{
Plugin::UnityEngineApplicationRemoveEventOnBeforeRender(del.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
}
namespace UnityEngine
{
namespace SceneManagement
{
SceneManager::SceneManager(decltype(nullptr))
{
}
SceneManager::SceneManager(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
SceneManager::SceneManager(const SceneManager& other)
: SceneManager(Plugin::InternalUse::Only, other.Handle)
{
}
SceneManager::SceneManager(SceneManager&& other)
: SceneManager(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
SceneManager::~SceneManager()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
SceneManager& SceneManager::operator=(const SceneManager& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
SceneManager& SceneManager::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
SceneManager& SceneManager::operator=(SceneManager&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool SceneManager::operator==(const SceneManager& other) const
{
return Handle == other.Handle;
}
bool SceneManager::operator!=(const SceneManager& other) const
{
return Handle != other.Handle;
}
void SceneManager::AddSceneLoaded(UnityEngine::Events::UnityAction2& del)
{
Plugin::UnityEngineSceneManagementSceneManagerAddEventSceneLoaded(del.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
void SceneManager::RemoveSceneLoaded(UnityEngine::Events::UnityAction2& del)
{
Plugin::UnityEngineSceneManagementSceneManagerRemoveEventSceneLoaded(del.Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
}
}
namespace UnityEngine
{
namespace SceneManagement
{
Scene::Scene(decltype(nullptr))
{
}
Scene::Scene(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedUnityEngineSceneManagementScene(Handle);
}
}
Scene::Scene(const Scene& other)
: Scene(Plugin::InternalUse::Only, other.Handle)
{
}
Scene::Scene(Scene&& other)
: Scene(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Scene::~Scene()
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineSceneManagementScene(Handle);
Handle = 0;
}
}
Scene& Scene::operator=(const Scene& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedUnityEngineSceneManagementScene(Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedUnityEngineSceneManagementScene(Handle);
}
return *this;
}
Scene& Scene::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineSceneManagementScene(Handle);
Handle = 0;
}
return *this;
}
Scene& Scene::operator=(Scene&& other)
{
if (Handle)
{
Plugin::DereferenceManagedUnityEngineSceneManagementScene(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Scene::operator==(const Scene& other) const
{
return Handle == other.Handle;
}
bool Scene::operator!=(const Scene& other) const
{
return Handle != other.Handle;
}
Scene::operator System::ValueType()
{
int32_t handle = Plugin::BoxScene(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
Scene::operator System::Object()
{
int32_t handle = Plugin::BoxScene(Handle);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
}
namespace System
{
Object::operator UnityEngine::SceneManagement::Scene()
{
UnityEngine::SceneManagement::Scene returnVal(Plugin::InternalUse::Only, Plugin::UnboxScene(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace UnityEngine
{
namespace SceneManagement
{
LoadSceneMode::LoadSceneMode(int32_t value)
: Value(value)
{
}
UnityEngine::SceneManagement::LoadSceneMode::operator int32_t() const
{
return Value;
}
bool UnityEngine::SceneManagement::LoadSceneMode::operator==(LoadSceneMode other)
{
return Value == other.Value;
}
bool UnityEngine::SceneManagement::LoadSceneMode::operator!=(LoadSceneMode other)
{
return Value != other.Value;
}
LoadSceneMode::operator System::Enum()
{
int32_t handle = Plugin::BoxLoadSceneMode(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Enum(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
LoadSceneMode::operator System::ValueType()
{
int32_t handle = Plugin::BoxLoadSceneMode(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
LoadSceneMode::operator System::Object()
{
int32_t handle = Plugin::BoxLoadSceneMode(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
LoadSceneMode::operator System::IFormattable()
{
int32_t handle = Plugin::BoxLoadSceneMode(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::IFormattable(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
LoadSceneMode::operator System::IConvertible()
{
int32_t handle = Plugin::BoxLoadSceneMode(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::IConvertible(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
LoadSceneMode::operator System::IComparable()
{
int32_t handle = Plugin::BoxLoadSceneMode(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::IComparable(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
}
const UnityEngine::SceneManagement::LoadSceneMode UnityEngine::SceneManagement::LoadSceneMode::Single(0);
const UnityEngine::SceneManagement::LoadSceneMode UnityEngine::SceneManagement::LoadSceneMode::Additive(1);
namespace System
{
Object::operator UnityEngine::SceneManagement::LoadSceneMode()
{
UnityEngine::SceneManagement::LoadSceneMode returnVal(Plugin::UnboxLoadSceneMode(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace System
{
EventArgs::EventArgs(decltype(nullptr))
{
}
EventArgs::EventArgs(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
EventArgs::EventArgs(const EventArgs& other)
: EventArgs(Plugin::InternalUse::Only, other.Handle)
{
}
EventArgs::EventArgs(EventArgs&& other)
: EventArgs(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
EventArgs::~EventArgs()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
EventArgs& EventArgs::operator=(const EventArgs& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
EventArgs& EventArgs::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
EventArgs& EventArgs::operator=(EventArgs&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool EventArgs::operator==(const EventArgs& other) const
{
return Handle == other.Handle;
}
bool EventArgs::operator!=(const EventArgs& other) const
{
return Handle != other.Handle;
}
}
namespace System
{
namespace ComponentModel
{
namespace Design
{
ComponentEventArgs::ComponentEventArgs(decltype(nullptr))
: System::EventArgs(nullptr)
{
}
ComponentEventArgs::ComponentEventArgs(Plugin::InternalUse, int32_t handle)
: System::EventArgs(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
ComponentEventArgs::ComponentEventArgs(const ComponentEventArgs& other)
: ComponentEventArgs(Plugin::InternalUse::Only, other.Handle)
{
}
ComponentEventArgs::ComponentEventArgs(ComponentEventArgs&& other)
: ComponentEventArgs(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
ComponentEventArgs::~ComponentEventArgs()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
ComponentEventArgs& ComponentEventArgs::operator=(const ComponentEventArgs& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
ComponentEventArgs& ComponentEventArgs::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
ComponentEventArgs& ComponentEventArgs::operator=(ComponentEventArgs&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool ComponentEventArgs::operator==(const ComponentEventArgs& other) const
{
return Handle == other.Handle;
}
bool ComponentEventArgs::operator!=(const ComponentEventArgs& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace System
{
namespace ComponentModel
{
namespace Design
{
ComponentChangingEventArgs::ComponentChangingEventArgs(decltype(nullptr))
: System::EventArgs(nullptr)
{
}
ComponentChangingEventArgs::ComponentChangingEventArgs(Plugin::InternalUse, int32_t handle)
: System::EventArgs(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
ComponentChangingEventArgs::ComponentChangingEventArgs(const ComponentChangingEventArgs& other)
: ComponentChangingEventArgs(Plugin::InternalUse::Only, other.Handle)
{
}
ComponentChangingEventArgs::ComponentChangingEventArgs(ComponentChangingEventArgs&& other)
: ComponentChangingEventArgs(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
ComponentChangingEventArgs::~ComponentChangingEventArgs()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
ComponentChangingEventArgs& ComponentChangingEventArgs::operator=(const ComponentChangingEventArgs& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
ComponentChangingEventArgs& ComponentChangingEventArgs::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
ComponentChangingEventArgs& ComponentChangingEventArgs::operator=(ComponentChangingEventArgs&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool ComponentChangingEventArgs::operator==(const ComponentChangingEventArgs& other) const
{
return Handle == other.Handle;
}
bool ComponentChangingEventArgs::operator!=(const ComponentChangingEventArgs& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace System
{
namespace ComponentModel
{
namespace Design
{
ComponentChangedEventArgs::ComponentChangedEventArgs(decltype(nullptr))
: System::EventArgs(nullptr)
{
}
ComponentChangedEventArgs::ComponentChangedEventArgs(Plugin::InternalUse, int32_t handle)
: System::EventArgs(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
ComponentChangedEventArgs::ComponentChangedEventArgs(const ComponentChangedEventArgs& other)
: ComponentChangedEventArgs(Plugin::InternalUse::Only, other.Handle)
{
}
ComponentChangedEventArgs::ComponentChangedEventArgs(ComponentChangedEventArgs&& other)
: ComponentChangedEventArgs(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
ComponentChangedEventArgs::~ComponentChangedEventArgs()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
ComponentChangedEventArgs& ComponentChangedEventArgs::operator=(const ComponentChangedEventArgs& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
ComponentChangedEventArgs& ComponentChangedEventArgs::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
ComponentChangedEventArgs& ComponentChangedEventArgs::operator=(ComponentChangedEventArgs&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool ComponentChangedEventArgs::operator==(const ComponentChangedEventArgs& other) const
{
return Handle == other.Handle;
}
bool ComponentChangedEventArgs::operator!=(const ComponentChangedEventArgs& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace System
{
namespace ComponentModel
{
namespace Design
{
ComponentRenameEventArgs::ComponentRenameEventArgs(decltype(nullptr))
: System::EventArgs(nullptr)
{
}
ComponentRenameEventArgs::ComponentRenameEventArgs(Plugin::InternalUse, int32_t handle)
: System::EventArgs(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
ComponentRenameEventArgs::ComponentRenameEventArgs(const ComponentRenameEventArgs& other)
: ComponentRenameEventArgs(Plugin::InternalUse::Only, other.Handle)
{
}
ComponentRenameEventArgs::ComponentRenameEventArgs(ComponentRenameEventArgs&& other)
: ComponentRenameEventArgs(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
ComponentRenameEventArgs::~ComponentRenameEventArgs()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
ComponentRenameEventArgs& ComponentRenameEventArgs::operator=(const ComponentRenameEventArgs& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
ComponentRenameEventArgs& ComponentRenameEventArgs::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
ComponentRenameEventArgs& ComponentRenameEventArgs::operator=(ComponentRenameEventArgs&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool ComponentRenameEventArgs::operator==(const ComponentRenameEventArgs& other) const
{
return Handle == other.Handle;
}
bool ComponentRenameEventArgs::operator!=(const ComponentRenameEventArgs& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace System
{
namespace ComponentModel
{
MemberDescriptor::MemberDescriptor(decltype(nullptr))
{
}
MemberDescriptor::MemberDescriptor(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
MemberDescriptor::MemberDescriptor(const MemberDescriptor& other)
: MemberDescriptor(Plugin::InternalUse::Only, other.Handle)
{
}
MemberDescriptor::MemberDescriptor(MemberDescriptor&& other)
: MemberDescriptor(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
MemberDescriptor::~MemberDescriptor()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
MemberDescriptor& MemberDescriptor::operator=(const MemberDescriptor& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
MemberDescriptor& MemberDescriptor::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
MemberDescriptor& MemberDescriptor::operator=(MemberDescriptor&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool MemberDescriptor::operator==(const MemberDescriptor& other) const
{
return Handle == other.Handle;
}
bool MemberDescriptor::operator!=(const MemberDescriptor& other) const
{
return Handle != other.Handle;
}
}
}
namespace UnityEngine
{
PrimitiveType::PrimitiveType(int32_t value)
: Value(value)
{
}
UnityEngine::PrimitiveType::operator int32_t() const
{
return Value;
}
bool UnityEngine::PrimitiveType::operator==(PrimitiveType other)
{
return Value == other.Value;
}
bool UnityEngine::PrimitiveType::operator!=(PrimitiveType other)
{
return Value != other.Value;
}
PrimitiveType::operator System::Enum()
{
int32_t handle = Plugin::BoxPrimitiveType(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Enum(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
PrimitiveType::operator System::ValueType()
{
int32_t handle = Plugin::BoxPrimitiveType(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
PrimitiveType::operator System::Object()
{
int32_t handle = Plugin::BoxPrimitiveType(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
PrimitiveType::operator System::IFormattable()
{
int32_t handle = Plugin::BoxPrimitiveType(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::IFormattable(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
PrimitiveType::operator System::IConvertible()
{
int32_t handle = Plugin::BoxPrimitiveType(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::IConvertible(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
PrimitiveType::operator System::IComparable()
{
int32_t handle = Plugin::BoxPrimitiveType(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::IComparable(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
const UnityEngine::PrimitiveType UnityEngine::PrimitiveType::Sphere(0);
const UnityEngine::PrimitiveType UnityEngine::PrimitiveType::Capsule(1);
const UnityEngine::PrimitiveType UnityEngine::PrimitiveType::Cylinder(2);
const UnityEngine::PrimitiveType UnityEngine::PrimitiveType::Cube(3);
const UnityEngine::PrimitiveType UnityEngine::PrimitiveType::Plane(4);
const UnityEngine::PrimitiveType UnityEngine::PrimitiveType::Quad(5);
namespace System
{
Object::operator UnityEngine::PrimitiveType()
{
UnityEngine::PrimitiveType returnVal(Plugin::UnboxPrimitiveType(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace UnityEngine
{
Time::Time(decltype(nullptr))
{
}
Time::Time(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Time::Time(const Time& other)
: Time(Plugin::InternalUse::Only, other.Handle)
{
}
Time::Time(Time&& other)
: Time(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Time::~Time()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Time& Time::operator=(const Time& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Time& Time::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Time& Time::operator=(Time&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Time::operator==(const Time& other) const
{
return Handle == other.Handle;
}
bool Time::operator!=(const Time& other) const
{
return Handle != other.Handle;
}
System::Single Time::GetDeltaTime()
{
auto returnValue = Plugin::UnityEngineTimePropertyGetDeltaTime();
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnValue;
}
}
namespace System
{
namespace IO
{
FileMode::FileMode(int32_t value)
: Value(value)
{
}
System::IO::FileMode::operator int32_t() const
{
return Value;
}
bool System::IO::FileMode::operator==(FileMode other)
{
return Value == other.Value;
}
bool System::IO::FileMode::operator!=(FileMode other)
{
return Value != other.Value;
}
FileMode::operator System::Enum()
{
int32_t handle = Plugin::BoxFileMode(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Enum(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
FileMode::operator System::ValueType()
{
int32_t handle = Plugin::BoxFileMode(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::ValueType(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
FileMode::operator System::Object()
{
int32_t handle = Plugin::BoxFileMode(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::Object(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
FileMode::operator System::IFormattable()
{
int32_t handle = Plugin::BoxFileMode(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::IFormattable(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
FileMode::operator System::IConvertible()
{
int32_t handle = Plugin::BoxFileMode(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::IConvertible(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
FileMode::operator System::IComparable()
{
int32_t handle = Plugin::BoxFileMode(*this);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (handle)
{
Plugin::ReferenceManagedClass(handle);
return System::IComparable(Plugin::InternalUse::Only, handle);
}
return nullptr;
}
}
}
const System::IO::FileMode System::IO::FileMode::CreateNew(1);
const System::IO::FileMode System::IO::FileMode::Create(2);
const System::IO::FileMode System::IO::FileMode::Open(3);
const System::IO::FileMode System::IO::FileMode::OpenOrCreate(4);
const System::IO::FileMode System::IO::FileMode::Truncate(5);
const System::IO::FileMode System::IO::FileMode::Append(6);
namespace System
{
Object::operator System::IO::FileMode()
{
System::IO::FileMode returnVal(Plugin::UnboxFileMode(Handle));
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
return returnVal;
}
}
namespace System
{
MarshalByRefObject::MarshalByRefObject(decltype(nullptr))
{
}
MarshalByRefObject::MarshalByRefObject(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
MarshalByRefObject::MarshalByRefObject(const MarshalByRefObject& other)
: MarshalByRefObject(Plugin::InternalUse::Only, other.Handle)
{
}
MarshalByRefObject::MarshalByRefObject(MarshalByRefObject&& other)
: MarshalByRefObject(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
MarshalByRefObject::~MarshalByRefObject()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
MarshalByRefObject& MarshalByRefObject::operator=(const MarshalByRefObject& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
MarshalByRefObject& MarshalByRefObject::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
MarshalByRefObject& MarshalByRefObject::operator=(MarshalByRefObject&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool MarshalByRefObject::operator==(const MarshalByRefObject& other) const
{
return Handle == other.Handle;
}
bool MarshalByRefObject::operator!=(const MarshalByRefObject& other) const
{
return Handle != other.Handle;
}
}
namespace System
{
namespace IO
{
Stream::Stream(decltype(nullptr))
: System::MarshalByRefObject(nullptr)
, System::IDisposable(nullptr)
{
}
Stream::Stream(Plugin::InternalUse, int32_t handle)
: System::MarshalByRefObject(nullptr)
, System::IDisposable(nullptr)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
Stream::Stream(const Stream& other)
: Stream(Plugin::InternalUse::Only, other.Handle)
{
}
Stream::Stream(Stream&& other)
: Stream(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
Stream::~Stream()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
Stream& Stream::operator=(const Stream& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
Stream& Stream::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
Stream& Stream::operator=(Stream&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool Stream::operator==(const Stream& other) const
{
return Handle == other.Handle;
}
bool Stream::operator!=(const Stream& other) const
{
return Handle != other.Handle;
}
}
}
namespace System
{
namespace Collections
{
namespace Generic
{
IComparer::IComparer(decltype(nullptr))
{
}
IComparer::IComparer(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IComparer::IComparer(const IComparer& other)
: IComparer(Plugin::InternalUse::Only, other.Handle)
{
}
IComparer::IComparer(IComparer&& other)
: IComparer(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IComparer::~IComparer()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IComparer& IComparer::operator=(const IComparer& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IComparer& IComparer::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IComparer& IComparer::operator=(IComparer&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IComparer::operator==(const IComparer& other) const
{
return Handle == other.Handle;
}
bool IComparer::operator!=(const IComparer& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace System
{
namespace Collections
{
namespace Generic
{
IComparer::IComparer(decltype(nullptr))
{
}
IComparer::IComparer(Plugin::InternalUse, int32_t handle)
{
Handle = handle;
if (handle)
{
Plugin::ReferenceManagedClass(handle);
}
}
IComparer::IComparer(const IComparer& other)
: IComparer(Plugin::InternalUse::Only, other.Handle)
{
}
IComparer::IComparer(IComparer&& other)
: IComparer(Plugin::InternalUse::Only, other.Handle)
{
other.Handle = 0;
}
IComparer::~IComparer()
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
}
IComparer& IComparer::operator=(const IComparer& other)
{
if (this->Handle)
{
Plugin::DereferenceManagedClass(this->Handle);
}
this->Handle = other.Handle;
if (this->Handle)
{
Plugin::ReferenceManagedClass(this->Handle);
}
return *this;
}
IComparer& IComparer::operator=(decltype(nullptr))
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
Handle = 0;
}
return *this;
}
IComparer& IComparer::operator=(IComparer&& other)
{
if (Handle)
{
Plugin::DereferenceManagedClass(Handle);
}
Handle = other.Handle;
other.Handle = 0;
return *this;
}
bool IComparer::operator==(const IComparer& other) const
{
return Handle == other.Handle;
}
bool IComparer::operator!=(const IComparer& other) const
{
return Handle != other.Handle;
}
}
}
}
namespace System
{
namespace Collections
{
namespace Generic
{
BaseIComparer::BaseIComparer()
: System::Collections::Generic::IComparer(nullptr)
{
CppHandle = Plugin::StoreSystemCollectionsGenericBaseIComparerSystemInt32(this);
System::Int32* handle = (System::Int32*)&Handle;
int32_t cppHandle = CppHandle;
Plugin::SystemCollectionsGenericBaseIComparerSystemInt32Constructor(cppHandle, &handle->Value);
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
if (Handle)
{
Plugin::ReferenceManagedClass(Handle);
}
else
{
Plugin::RemoveSystemCollectionsGenericBaseIComparerSystemInt32(CppHandle);
CppHandle = 0;
}
if (Plugin::unhandledCsharpException)
{
System::Exception* ex = Plugin::unhandledCsharpException;
Plugin::unhandledCsharpException = nullptr;
ex->ThrowReferenceToThis();
delete ex;
}
}
BaseIComparer::BaseIComparer(decltype(nullptr))
: System::Collections::Generic::IComparer(nullptr)
{
CppHandle = Plugin::StoreSystemCollectionsGenericBaseIComparerSystemInt32(this);
}
BaseIComparer::BaseIComparer(const BaseIComparer