Init
This commit is contained in:
@ -0,0 +1,145 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 2.0.12
|
||||
*
|
||||
* 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 RakNetListRakNetGUID : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetListRakNetGUID(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetListRakNetGUID obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetListRakNetGUID() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
RakNetPINVOKE.delete_RakNetListRakNetGUID(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public RakNetGUID this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return Get((uint)index); // use indexto retrieve and return another value.
|
||||
}
|
||||
set
|
||||
{
|
||||
Replace(value, value, (uint)index, "Not used", 0);// use index and value to set the value somewhere.
|
||||
}
|
||||
}
|
||||
|
||||
public RakNetListRakNetGUID() : this(RakNetPINVOKE.new_RakNetListRakNetGUID__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakNetListRakNetGUID(RakNetListRakNetGUID original_copy) : this(RakNetPINVOKE.new_RakNetListRakNetGUID__SWIG_1(RakNetListRakNetGUID.getCPtr(original_copy)), true) {
|
||||
if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetListRakNetGUID CopyData(RakNetListRakNetGUID original_copy) {
|
||||
RakNetListRakNetGUID ret = new RakNetListRakNetGUID(RakNetPINVOKE.RakNetListRakNetGUID_CopyData(swigCPtr, RakNetListRakNetGUID.getCPtr(original_copy)), false);
|
||||
if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakNetGUID Get(uint position) {
|
||||
RakNetGUID ret = new RakNetGUID(RakNetPINVOKE.RakNetListRakNetGUID_Get(swigCPtr, position), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Push(RakNetGUID input, string file, uint line) {
|
||||
RakNetPINVOKE.RakNetListRakNetGUID_Push(swigCPtr, RakNetGUID.getCPtr(input), file, line);
|
||||
if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetGUID Pop() {
|
||||
RakNetGUID ret = new RakNetGUID(RakNetPINVOKE.RakNetListRakNetGUID_Pop(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Insert(RakNetGUID input, uint position, string file, uint line) {
|
||||
RakNetPINVOKE.RakNetListRakNetGUID_Insert__SWIG_0(swigCPtr, RakNetGUID.getCPtr(input), position, file, line);
|
||||
if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Insert(RakNetGUID input, string file, uint line) {
|
||||
RakNetPINVOKE.RakNetListRakNetGUID_Insert__SWIG_1(swigCPtr, RakNetGUID.getCPtr(input), file, line);
|
||||
if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(RakNetGUID input, RakNetGUID filler, uint position, string file, uint line) {
|
||||
RakNetPINVOKE.RakNetListRakNetGUID_Replace__SWIG_0(swigCPtr, RakNetGUID.getCPtr(input), RakNetGUID.getCPtr(filler), position, file, line);
|
||||
if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(RakNetGUID input) {
|
||||
RakNetPINVOKE.RakNetListRakNetGUID_Replace__SWIG_1(swigCPtr, RakNetGUID.getCPtr(input));
|
||||
if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void RemoveAtIndex(uint position) {
|
||||
RakNetPINVOKE.RakNetListRakNetGUID_RemoveAtIndex(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveAtIndexFast(uint position) {
|
||||
RakNetPINVOKE.RakNetListRakNetGUID_RemoveAtIndexFast(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd(uint num) {
|
||||
RakNetPINVOKE.RakNetListRakNetGUID_RemoveFromEnd__SWIG_0(swigCPtr, num);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd() {
|
||||
RakNetPINVOKE.RakNetListRakNetGUID_RemoveFromEnd__SWIG_1(swigCPtr);
|
||||
}
|
||||
|
||||
public uint GetIndexOf(RakNetGUID input) {
|
||||
uint ret = RakNetPINVOKE.RakNetListRakNetGUID_GetIndexOf(swigCPtr, RakNetGUID.getCPtr(input));
|
||||
if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint Size() {
|
||||
uint ret = RakNetPINVOKE.RakNetListRakNetGUID_Size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) {
|
||||
RakNetPINVOKE.RakNetListRakNetGUID_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line);
|
||||
}
|
||||
|
||||
public void Preallocate(uint countNeeded, string file, uint line) {
|
||||
RakNetPINVOKE.RakNetListRakNetGUID_Preallocate(swigCPtr, countNeeded, file, line);
|
||||
}
|
||||
|
||||
public void Compress(string file, uint line) {
|
||||
RakNetPINVOKE.RakNetListRakNetGUID_Compress(swigCPtr, file, line);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user