73 lines
2.2 KiB
C#
73 lines
2.2 KiB
C#
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 2.0.1
|
|
*
|
|
* Do not make changes to this file unless you know what you are doing--modify
|
|
* the SWIG interface file instead.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
namespace RakNet {
|
|
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
public class NatPunchthroughServer : PluginInterface2 {
|
|
private HandleRef swigCPtr;
|
|
|
|
internal NatPunchthroughServer(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.NatPunchthroughServer_SWIGUpcast(cPtr), cMemoryOwn) {
|
|
swigCPtr = new HandleRef(this, cPtr);
|
|
}
|
|
|
|
internal static HandleRef getCPtr(NatPunchthroughServer obj) {
|
|
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
}
|
|
|
|
~NatPunchthroughServer() {
|
|
Dispose();
|
|
}
|
|
|
|
public override void Dispose() {
|
|
lock(this) {
|
|
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
if (swigCMemOwn) {
|
|
swigCMemOwn = false;
|
|
RakNetPINVOKE.delete_NatPunchthroughServer(swigCPtr);
|
|
}
|
|
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
}
|
|
GC.SuppressFinalize(this);
|
|
base.Dispose();
|
|
}
|
|
}
|
|
|
|
public static NatPunchthroughServer GetInstance() {
|
|
IntPtr cPtr = RakNetPINVOKE.NatPunchthroughServer_GetInstance();
|
|
NatPunchthroughServer ret = (cPtr == IntPtr.Zero) ? null : new NatPunchthroughServer(cPtr, false);
|
|
return ret;
|
|
}
|
|
|
|
public static void DestroyInstance(NatPunchthroughServer i) {
|
|
RakNetPINVOKE.NatPunchthroughServer_DestroyInstance(NatPunchthroughServer.getCPtr(i));
|
|
}
|
|
|
|
public NatPunchthroughServer() : this(RakNetPINVOKE.new_NatPunchthroughServer(), true) {
|
|
}
|
|
|
|
public void SetDebugInterface(NatPunchthroughServerDebugInterface i) {
|
|
RakNetPINVOKE.NatPunchthroughServer_SetDebugInterface(swigCPtr, NatPunchthroughServerDebugInterface.getCPtr(i));
|
|
}
|
|
|
|
public ulong lastUpdate {
|
|
set {
|
|
RakNetPINVOKE.NatPunchthroughServer_lastUpdate_set(swigCPtr, value);
|
|
}
|
|
get {
|
|
ulong ret = RakNetPINVOKE.NatPunchthroughServer_lastUpdate_get(swigCPtr);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|