TapCommon-Unity/Runtime/Internal/Duration/Wrapper/Config.cs

73 lines
2.0 KiB
C#
Raw Normal View History

2023-10-26 20:05:12 +08:00
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 4.0.2
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace com.taptap.tapsdk.bindings.csharp {
public class Config : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;
internal Config(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Config obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
~Config() {
Dispose(false);
}
public void Dispose() {
Dispose(true);
global::System.GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
TapSDKPINVOKE.delete_Config(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
}
}
public bool enable_duration_statistics {
set {
TapSDKPINVOKE.Config_enable_duration_statistics_set(swigCPtr, value);
}
get {
bool ret = TapSDKPINVOKE.Config_enable_duration_statistics_get(swigCPtr);
return ret;
}
}
public Region region {
set {
TapSDKPINVOKE.Config_region_set(swigCPtr, (int)value);
}
get {
Region ret = (Region)TapSDKPINVOKE.Config_region_get(swigCPtr);
return ret;
}
}
public Config() : this(TapSDKPINVOKE.new_Config(), true) {
}
}
}