67 lines
2.5 KiB
C#
67 lines
2.5 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated />
|
|
//
|
|
// This file was automatically generated by SWIG (http://www.swig.org).
|
|
// Version 4.0.1
|
|
//
|
|
// Do not make changes to this file unless you know what you are doing--modify
|
|
// the SWIG interface file instead.
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
public class FDatasmithFacadeVariantSet : FDatasmithFacadeElement {
|
|
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
|
|
|
|
internal FDatasmithFacadeVariantSet(global::System.IntPtr cPtr, bool cMemoryOwn) : base(DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeVariantSet_SWIGUpcast(cPtr), cMemoryOwn) {
|
|
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
|
|
}
|
|
|
|
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FDatasmithFacadeVariantSet obj) {
|
|
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
|
|
}
|
|
|
|
protected override void Dispose(bool disposing) {
|
|
lock(this) {
|
|
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
|
|
if (swigCMemOwn) {
|
|
swigCMemOwn = false;
|
|
DatasmithFacadeCSharpPINVOKE.delete_FDatasmithFacadeVariantSet(swigCPtr);
|
|
}
|
|
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
}
|
|
|
|
public FDatasmithFacadeVariantSet(string InElementName) : this(DatasmithFacadeCSharpPINVOKE.new_FDatasmithFacadeVariantSet(InElementName), true) {
|
|
}
|
|
|
|
public void AddVariant(FDatasmithFacadeVariant InVariantPtr) {
|
|
DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeVariantSet_AddVariant(swigCPtr, FDatasmithFacadeVariant.getCPtr(InVariantPtr));
|
|
}
|
|
|
|
public int GetVariantsCount() {
|
|
int ret = DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeVariantSet_GetVariantsCount(swigCPtr);
|
|
return ret;
|
|
}
|
|
|
|
public FDatasmithFacadeVariant GetVariant(int VariantIndex) {
|
|
global::System.IntPtr objectPtr = DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeVariantSet_GetVariant(swigCPtr, VariantIndex);
|
|
if(objectPtr == global::System.IntPtr.Zero)
|
|
{
|
|
return null;
|
|
}
|
|
else
|
|
{
|
|
return new FDatasmithFacadeVariant(objectPtr, true);
|
|
}
|
|
}
|
|
|
|
public void RemoveVariant(FDatasmithFacadeVariant InVariantPtr) {
|
|
DatasmithFacadeCSharpPINVOKE.FDatasmithFacadeVariantSet_RemoveVariant(swigCPtr, FDatasmithFacadeVariant.getCPtr(InVariantPtr));
|
|
}
|
|
|
|
}
|