Init
This commit is contained in:
151
bindings/csharp/interfaces/AddressOrGUID.cs
Normal file
151
bindings/csharp/interfaces/AddressOrGUID.cs
Normal file
@ -0,0 +1,151 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class AddressOrGUID : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal AddressOrGUID(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(AddressOrGUID obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~AddressOrGUID() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_AddressOrGUID(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public static implicit operator AddressOrGUID(SystemAddress systemAddress)
|
||||
{
|
||||
return new AddressOrGUID(systemAddress);
|
||||
}
|
||||
|
||||
public static implicit operator AddressOrGUID(RakNetGUID guid)
|
||||
{
|
||||
return new AddressOrGUID(guid);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public RakNetGUID rakNetGuid {
|
||||
set {
|
||||
SLikeNetPINVOKE.AddressOrGUID_rakNetGuid_set(swigCPtr, RakNetGUID.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.AddressOrGUID_rakNetGuid_get(swigCPtr);
|
||||
RakNetGUID ret = (cPtr == IntPtr.Zero) ? null : new RakNetGUID(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public SystemAddress systemAddress {
|
||||
set {
|
||||
SLikeNetPINVOKE.AddressOrGUID_systemAddress_set(swigCPtr, SystemAddress.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.AddressOrGUID_systemAddress_get(swigCPtr);
|
||||
SystemAddress ret = (cPtr == IntPtr.Zero) ? null : new SystemAddress(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public ushort GetSystemIndex() {
|
||||
ushort ret = SLikeNetPINVOKE.AddressOrGUID_GetSystemIndex(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool IsUndefined() {
|
||||
bool ret = SLikeNetPINVOKE.AddressOrGUID_IsUndefined(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void SetUndefined() {
|
||||
SLikeNetPINVOKE.AddressOrGUID_SetUndefined(swigCPtr);
|
||||
}
|
||||
|
||||
public static uint ToInteger(AddressOrGUID aog) {
|
||||
uint ret = SLikeNetPINVOKE.AddressOrGUID_ToInteger(AddressOrGUID.getCPtr(aog));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public string ToString(bool writePort) {
|
||||
string ret = SLikeNetPINVOKE.AddressOrGUID_ToString__SWIG_0(swigCPtr, writePort);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void ToString(bool writePort, string dest, uint destLength) {
|
||||
SLikeNetPINVOKE.AddressOrGUID_ToString__SWIG_1(swigCPtr, writePort, dest, destLength);
|
||||
}
|
||||
|
||||
public AddressOrGUID() : this(SLikeNetPINVOKE.new_AddressOrGUID__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public AddressOrGUID(AddressOrGUID input) : this(SLikeNetPINVOKE.new_AddressOrGUID__SWIG_1(AddressOrGUID.getCPtr(input)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public AddressOrGUID(SystemAddress input) : this(SLikeNetPINVOKE.new_AddressOrGUID__SWIG_2(SystemAddress.getCPtr(input)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public AddressOrGUID(Packet packet) : this(SLikeNetPINVOKE.new_AddressOrGUID__SWIG_3(Packet.getCPtr(packet)), true) {
|
||||
}
|
||||
|
||||
public AddressOrGUID(RakNetGUID input) : this(SLikeNetPINVOKE.new_AddressOrGUID__SWIG_4(RakNetGUID.getCPtr(input)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public AddressOrGUID CopyData(AddressOrGUID input) {
|
||||
AddressOrGUID ret = new AddressOrGUID(SLikeNetPINVOKE.AddressOrGUID_CopyData__SWIG_0(swigCPtr, AddressOrGUID.getCPtr(input)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public AddressOrGUID CopyData(SystemAddress input) {
|
||||
AddressOrGUID ret = new AddressOrGUID(SLikeNetPINVOKE.AddressOrGUID_CopyData__SWIG_1(swigCPtr, SystemAddress.getCPtr(input)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public AddressOrGUID CopyData(RakNetGUID input) {
|
||||
AddressOrGUID ret = new AddressOrGUID(SLikeNetPINVOKE.AddressOrGUID_CopyData__SWIG_2(swigCPtr, RakNetGUID.getCPtr(input)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool Equals(AddressOrGUID right) {
|
||||
bool ret = SLikeNetPINVOKE.AddressOrGUID_Equals(swigCPtr, AddressOrGUID.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
1425
bindings/csharp/interfaces/BitStream.cs
Normal file
1425
bindings/csharp/interfaces/BitStream.cs
Normal file
File diff suppressed because it is too large
Load Diff
96
bindings/csharp/interfaces/ByteQueue.cs
Normal file
96
bindings/csharp/interfaces/ByteQueue.cs
Normal file
@ -0,0 +1,96 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class ByteQueue : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal ByteQueue(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(ByteQueue obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~ByteQueue() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_ByteQueue(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] PeekContiguousBytes(out uint outLength)
|
||||
{
|
||||
return PeekContiguousBytesHelper(out outLength);
|
||||
}
|
||||
|
||||
public ByteQueue() : this(SLikeNetPINVOKE.new_ByteQueue(), true) {
|
||||
}
|
||||
|
||||
public uint GetBytesWritten() {
|
||||
uint ret = SLikeNetPINVOKE.ByteQueue_GetBytesWritten(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void IncrementReadOffset(uint length) {
|
||||
SLikeNetPINVOKE.ByteQueue_IncrementReadOffset(swigCPtr, length);
|
||||
}
|
||||
|
||||
public void DecrementReadOffset(uint length) {
|
||||
SLikeNetPINVOKE.ByteQueue_DecrementReadOffset(swigCPtr, length);
|
||||
}
|
||||
|
||||
public void Clear(string file, uint line) {
|
||||
SLikeNetPINVOKE.ByteQueue_Clear(swigCPtr, file, line);
|
||||
}
|
||||
|
||||
public void Print() {
|
||||
SLikeNetPINVOKE.ByteQueue_Print(swigCPtr);
|
||||
}
|
||||
|
||||
public void WriteBytes(byte[] inByteArray, uint length, string file, uint line) {
|
||||
SLikeNetPINVOKE.ByteQueue_WriteBytes(swigCPtr, inByteArray, length, file, line);
|
||||
}
|
||||
|
||||
public bool ReadBytes(byte[] inOutByteArray, uint maxLengthToRead, bool peek) {
|
||||
bool ret = SLikeNetPINVOKE.ByteQueue_ReadBytes(swigCPtr, inOutByteArray, maxLengthToRead, peek);
|
||||
return ret;
|
||||
}
|
||||
|
||||
private byte[] PeekContiguousBytesHelper(out uint outLength) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.ByteQueue_PeekContiguousBytesHelper(swigCPtr, out outLength);
|
||||
int len = (int)outLength;
|
||||
if (len <= 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
byte[] returnBytes = new byte[len];
|
||||
Marshal.Copy(cPtr, returnBytes, 0, len);
|
||||
return returnBytes;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
136
bindings/csharp/interfaces/Cell.cs
Normal file
136
bindings/csharp/interfaces/Cell.cs
Normal file
@ -0,0 +1,136 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class Cell : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal Cell(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(Cell obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~Cell() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_Cell(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public void Get(out string output)
|
||||
{
|
||||
string temp=new String('c', (int) this.i);
|
||||
output=GetHelper(temp);
|
||||
}
|
||||
|
||||
public Cell() : this(SLikeNetPINVOKE.new_Cell__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
SLikeNetPINVOKE.Cell_Clear(swigCPtr);
|
||||
}
|
||||
|
||||
public void Set(int input) {
|
||||
SLikeNetPINVOKE.Cell_Set__SWIG_0(swigCPtr, input);
|
||||
}
|
||||
|
||||
public void Set(uint input) {
|
||||
SLikeNetPINVOKE.Cell_Set__SWIG_1(swigCPtr, input);
|
||||
}
|
||||
|
||||
public void Set(double input) {
|
||||
SLikeNetPINVOKE.Cell_Set__SWIG_2(swigCPtr, input);
|
||||
}
|
||||
|
||||
public void Set(string input) {
|
||||
SLikeNetPINVOKE.Cell_Set__SWIG_3(swigCPtr, input);
|
||||
}
|
||||
|
||||
public void Get(out int output) {
|
||||
SLikeNetPINVOKE.Cell_Get__SWIG_0(swigCPtr, out output);
|
||||
}
|
||||
|
||||
public void Get(out double output) {
|
||||
SLikeNetPINVOKE.Cell_Get__SWIG_1(swigCPtr, out output);
|
||||
}
|
||||
|
||||
public RakString ToString(Table.ColumnType columnType) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.Cell_ToString(swigCPtr, (int)columnType), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public Cell CopyData(Cell input) {
|
||||
Cell ret = new Cell(SLikeNetPINVOKE.Cell_CopyData(swigCPtr, Cell.getCPtr(input)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public Cell(Cell input) : this(SLikeNetPINVOKE.new_Cell__SWIG_1(Cell.getCPtr(input)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public Table.ColumnType EstimateColumnType() {
|
||||
Table.ColumnType ret = (Table.ColumnType)SLikeNetPINVOKE.Cell_EstimateColumnType(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool isEmpty {
|
||||
set {
|
||||
SLikeNetPINVOKE.Cell_isEmpty_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
bool ret = SLikeNetPINVOKE.Cell_isEmpty_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public double i {
|
||||
set {
|
||||
SLikeNetPINVOKE.Cell_i_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
double ret = SLikeNetPINVOKE.Cell_i_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public void Set(byte[] inByteArray, int inputLength) {
|
||||
SLikeNetPINVOKE.Cell_Set__SWIG_4(swigCPtr, inByteArray, inputLength);
|
||||
}
|
||||
|
||||
public void Get(byte[] inOutByteArray, out int outputLength) {
|
||||
SLikeNetPINVOKE.Cell_Get__SWIG_2(swigCPtr, inOutByteArray, out outputLength);
|
||||
}
|
||||
|
||||
private string GetHelper(string output) {
|
||||
string ret = SLikeNetPINVOKE.Cell_GetHelper(swigCPtr, output);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
72
bindings/csharp/interfaces/ColumnDescriptor.cs
Normal file
72
bindings/csharp/interfaces/ColumnDescriptor.cs
Normal file
@ -0,0 +1,72 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class ColumnDescriptor : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal ColumnDescriptor(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(ColumnDescriptor obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~ColumnDescriptor() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_ColumnDescriptor(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public ColumnDescriptor() : this(SLikeNetPINVOKE.new_ColumnDescriptor__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public ColumnDescriptor(string cn, Table.ColumnType ct) : this(SLikeNetPINVOKE.new_ColumnDescriptor__SWIG_1(cn, (int)ct), true) {
|
||||
}
|
||||
|
||||
public string columnName {
|
||||
set {
|
||||
SLikeNetPINVOKE.ColumnDescriptor_columnName_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
string ret = SLikeNetPINVOKE.ColumnDescriptor_columnName_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public Table.ColumnType columnType {
|
||||
set {
|
||||
SLikeNetPINVOKE.ColumnDescriptor_columnType_set(swigCPtr, (int)value);
|
||||
}
|
||||
get {
|
||||
Table.ColumnType ret = (Table.ColumnType)SLikeNetPINVOKE.ColumnDescriptor_columnType_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
117
bindings/csharp/interfaces/CommandParserInterface.cs
Normal file
117
bindings/csharp/interfaces/CommandParserInterface.cs
Normal file
@ -0,0 +1,117 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class CommandParserInterface : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal CommandParserInterface(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(CommandParserInterface obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~CommandParserInterface() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_CommandParserInterface(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public virtual string GetName() {
|
||||
string ret = SLikeNetPINVOKE.CommandParserInterface_GetName(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void OnNewIncomingConnection(SystemAddress systemAddress, TransportInterface transport) {
|
||||
SLikeNetPINVOKE.CommandParserInterface_OnNewIncomingConnection(swigCPtr, SystemAddress.getCPtr(systemAddress), TransportInterface.getCPtr(transport));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void OnConnectionLost(SystemAddress systemAddress, TransportInterface transport) {
|
||||
SLikeNetPINVOKE.CommandParserInterface_OnConnectionLost(swigCPtr, SystemAddress.getCPtr(systemAddress), TransportInterface.getCPtr(transport));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void SendHelp(TransportInterface transport, SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.CommandParserInterface_SendHelp(swigCPtr, TransportInterface.getCPtr(transport), SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual bool OnCommand(string command, uint numParameters, string[] parameterList, TransportInterface transport, SystemAddress systemAddress, string originalString) {
|
||||
bool ret = SLikeNetPINVOKE.CommandParserInterface_OnCommand(swigCPtr, command, numParameters, parameterList, TransportInterface.getCPtr(transport), SystemAddress.getCPtr(systemAddress), originalString);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void OnTransportChange(TransportInterface transport) {
|
||||
SLikeNetPINVOKE.CommandParserInterface_OnTransportChange(swigCPtr, TransportInterface.getCPtr(transport));
|
||||
}
|
||||
|
||||
public virtual void SendCommandList(TransportInterface transport, SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.CommandParserInterface_SendCommandList(swigCPtr, TransportInterface.getCPtr(transport), SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public static byte VARIABLE_NUMBER_OF_PARAMETERS {
|
||||
get {
|
||||
byte ret = SLikeNetPINVOKE.CommandParserInterface_VARIABLE_NUMBER_OF_PARAMETERS_get();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void RegisterCommand(byte parameterCount, string command, string commandHelp) {
|
||||
SLikeNetPINVOKE.CommandParserInterface_RegisterCommand(swigCPtr, parameterCount, command, commandHelp);
|
||||
}
|
||||
|
||||
public virtual void ReturnResult(bool res, string command, TransportInterface transport, SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.CommandParserInterface_ReturnResult__SWIG_0(swigCPtr, res, command, TransportInterface.getCPtr(transport), SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void ReturnResult(string res, string command, TransportInterface transport, SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.CommandParserInterface_ReturnResult__SWIG_1(swigCPtr, res, command, TransportInterface.getCPtr(transport), SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void ReturnResult(SystemAddress res, string command, TransportInterface transport, SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.CommandParserInterface_ReturnResult__SWIG_2(swigCPtr, SystemAddress.getCPtr(res), command, TransportInterface.getCPtr(transport), SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void ReturnResult(int res, string command, TransportInterface transport, SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.CommandParserInterface_ReturnResult__SWIG_3(swigCPtr, res, command, TransportInterface.getCPtr(transport), SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void ReturnResult(string command, TransportInterface transport, SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.CommandParserInterface_ReturnResult__SWIG_4(swigCPtr, command, TransportInterface.getCPtr(transport), SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
20
bindings/csharp/interfaces/ConnectionAttemptResult.cs
Normal file
20
bindings/csharp/interfaces/ConnectionAttemptResult.cs
Normal file
@ -0,0 +1,20 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
public enum ConnectionAttemptResult {
|
||||
CONNECTION_ATTEMPT_STARTED,
|
||||
INVALID_PARAMETER,
|
||||
CANNOT_RESOLVE_DOMAIN_NAME,
|
||||
ALREADY_CONNECTED_TO_ENDPOINT,
|
||||
CONNECTION_ATTEMPT_ALREADY_IN_PROGRESS,
|
||||
SECURITY_INITIALIZATION_FAILED
|
||||
}
|
||||
|
||||
}
|
||||
141
bindings/csharp/interfaces/ConnectionGraph2.cs
Normal file
141
bindings/csharp/interfaces/ConnectionGraph2.cs
Normal file
@ -0,0 +1,141 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class ConnectionGraph2 : PluginInterface2 {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal ConnectionGraph2(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.ConnectionGraph2_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(ConnectionGraph2 obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~ConnectionGraph2() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_ConnectionGraph2(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public bool GetConnectionListForRemoteSystem(RakNetGUID remoteSystemGuid, SystemAddress[] saOut, RakNetGUID[] guidOut, ref uint inOutLength)
|
||||
{
|
||||
uint minLength = inOutLength;
|
||||
if (guidOut.Length < minLength)
|
||||
{ minLength = (uint)guidOut.Length; }
|
||||
|
||||
if (saOut.Length < minLength)
|
||||
{ minLength = (uint)saOut.Length; }
|
||||
|
||||
RakNetListRakNetGUID passListGUID = new RakNetListRakNetGUID();
|
||||
RakNetListSystemAddress passListSystemAddress = new RakNetListSystemAddress();
|
||||
|
||||
bool returnVal = GetConnectionListForRemoteSystemHelper(remoteSystemGuid, passListSystemAddress, passListGUID, ref inOutLength);
|
||||
|
||||
if (inOutLength< minLength)
|
||||
{ minLength = (uint)inOutLength;}
|
||||
|
||||
for (int i = 0; i < minLength; i++)
|
||||
{
|
||||
guidOut[i] = passListGUID[i];
|
||||
saOut[i] = passListSystemAddress[i];
|
||||
}
|
||||
return returnVal;
|
||||
}
|
||||
|
||||
public void GetParticipantList(RakNetGUID[] participantList)
|
||||
{
|
||||
RakNetListRakNetGUID passListGUID = new RakNetListRakNetGUID();
|
||||
GetParticipantListHelper(passListGUID);
|
||||
for (int i = 0; i < participantList.Length && i < passListGUID.Size(); i++)
|
||||
{
|
||||
participantList[i] = passListGUID[i];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static ConnectionGraph2 GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.ConnectionGraph2_GetInstance();
|
||||
ConnectionGraph2 ret = (cPtr == IntPtr.Zero) ? null : new ConnectionGraph2(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(ConnectionGraph2 i) {
|
||||
SLikeNetPINVOKE.ConnectionGraph2_DestroyInstance(ConnectionGraph2.getCPtr(i));
|
||||
}
|
||||
|
||||
public ConnectionGraph2() : this(SLikeNetPINVOKE.new_ConnectionGraph2(), true) {
|
||||
}
|
||||
|
||||
public bool GetConnectionListForRemoteSystem(RakNetGUID remoteSystemGuid, SystemAddress saOut, RakNetGUID guidOut, out uint outLength) {
|
||||
bool ret = SLikeNetPINVOKE.ConnectionGraph2_GetConnectionListForRemoteSystem(swigCPtr, RakNetGUID.getCPtr(remoteSystemGuid), SystemAddress.getCPtr(saOut), RakNetGUID.getCPtr(guidOut), out outLength);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool ConnectionExists(RakNetGUID g1, RakNetGUID g2) {
|
||||
bool ret = SLikeNetPINVOKE.ConnectionGraph2_ConnectionExists(swigCPtr, RakNetGUID.getCPtr(g1), RakNetGUID.getCPtr(g2));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public ushort GetPingBetweenSystems(RakNetGUID g1, RakNetGUID g2) {
|
||||
ushort ret = SLikeNetPINVOKE.ConnectionGraph2_GetPingBetweenSystems(swigCPtr, RakNetGUID.getCPtr(g1), RakNetGUID.getCPtr(g2));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakNetGUID GetLowestAveragePingSystem() {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.ConnectionGraph2_GetLowestAveragePingSystem(swigCPtr), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void SetAutoProcessNewConnections(bool b) {
|
||||
SLikeNetPINVOKE.ConnectionGraph2_SetAutoProcessNewConnections(swigCPtr, b);
|
||||
}
|
||||
|
||||
public bool GetAutoProcessNewConnections() {
|
||||
bool ret = SLikeNetPINVOKE.ConnectionGraph2_GetAutoProcessNewConnections(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void AddParticipant(SystemAddress systemAddress, RakNetGUID rakNetGUID) {
|
||||
SLikeNetPINVOKE.ConnectionGraph2_AddParticipant(swigCPtr, SystemAddress.getCPtr(systemAddress), RakNetGUID.getCPtr(rakNetGUID));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
private bool GetConnectionListForRemoteSystemHelper(RakNetGUID remoteSystemGuid, RakNetListSystemAddress saOut, RakNetListRakNetGUID guidOut, ref uint inOutLength) {
|
||||
bool ret = SLikeNetPINVOKE.ConnectionGraph2_GetConnectionListForRemoteSystemHelper(swigCPtr, RakNetGUID.getCPtr(remoteSystemGuid), RakNetListSystemAddress.getCPtr(saOut), RakNetListRakNetGUID.getCPtr(guidOut), ref inOutLength);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private void GetParticipantListHelper(RakNetListRakNetGUID guidOut) {
|
||||
SLikeNetPINVOKE.ConnectionGraph2_GetParticipantListHelper(swigCPtr, RakNetListRakNetGUID.getCPtr(guidOut));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
21
bindings/csharp/interfaces/ConnectionState.cs
Normal file
21
bindings/csharp/interfaces/ConnectionState.cs
Normal file
@ -0,0 +1,21 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
public enum ConnectionState {
|
||||
IS_PENDING,
|
||||
IS_CONNECTING,
|
||||
IS_CONNECTED,
|
||||
IS_DISCONNECTING,
|
||||
IS_SILENTLY_DISCONNECTING,
|
||||
IS_DISCONNECTED,
|
||||
IS_NOT_CONNECTED
|
||||
}
|
||||
|
||||
}
|
||||
149
bindings/csharp/interfaces/DefaultMessageIDTypes.cs
Normal file
149
bindings/csharp/interfaces/DefaultMessageIDTypes.cs
Normal file
@ -0,0 +1,149 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
public enum DefaultMessageIDTypes {
|
||||
ID_CONNECTED_PING,
|
||||
ID_UNCONNECTED_PING,
|
||||
ID_UNCONNECTED_PING_OPEN_CONNECTIONS,
|
||||
ID_CONNECTED_PONG,
|
||||
ID_DETECT_LOST_CONNECTIONS,
|
||||
ID_OPEN_CONNECTION_REQUEST_1,
|
||||
ID_OPEN_CONNECTION_REPLY_1,
|
||||
ID_OPEN_CONNECTION_REQUEST_2,
|
||||
ID_OPEN_CONNECTION_REPLY_2,
|
||||
ID_CONNECTION_REQUEST,
|
||||
ID_REMOTE_SYSTEM_REQUIRES_PUBLIC_KEY,
|
||||
ID_OUR_SYSTEM_REQUIRES_SECURITY,
|
||||
ID_PUBLIC_KEY_MISMATCH,
|
||||
ID_OUT_OF_BAND_INTERNAL,
|
||||
ID_SND_RECEIPT_ACKED,
|
||||
ID_SND_RECEIPT_LOSS,
|
||||
ID_CONNECTION_REQUEST_ACCEPTED,
|
||||
ID_CONNECTION_ATTEMPT_FAILED,
|
||||
ID_ALREADY_CONNECTED,
|
||||
ID_NEW_INCOMING_CONNECTION,
|
||||
ID_NO_FREE_INCOMING_CONNECTIONS,
|
||||
ID_DISCONNECTION_NOTIFICATION,
|
||||
ID_CONNECTION_LOST,
|
||||
ID_CONNECTION_BANNED,
|
||||
ID_INVALID_PASSWORD,
|
||||
ID_INCOMPATIBLE_PROTOCOL_VERSION,
|
||||
ID_IP_RECENTLY_CONNECTED,
|
||||
ID_TIMESTAMP,
|
||||
ID_UNCONNECTED_PONG,
|
||||
ID_ADVERTISE_SYSTEM,
|
||||
ID_DOWNLOAD_PROGRESS,
|
||||
ID_REMOTE_DISCONNECTION_NOTIFICATION,
|
||||
ID_REMOTE_CONNECTION_LOST,
|
||||
ID_REMOTE_NEW_INCOMING_CONNECTION,
|
||||
ID_FILE_LIST_TRANSFER_HEADER,
|
||||
ID_FILE_LIST_TRANSFER_FILE,
|
||||
ID_FILE_LIST_REFERENCE_PUSH_ACK,
|
||||
ID_DDT_DOWNLOAD_REQUEST,
|
||||
ID_TRANSPORT_STRING,
|
||||
ID_REPLICA_MANAGER_CONSTRUCTION,
|
||||
ID_REPLICA_MANAGER_SCOPE_CHANGE,
|
||||
ID_REPLICA_MANAGER_SERIALIZE,
|
||||
ID_REPLICA_MANAGER_DOWNLOAD_STARTED,
|
||||
ID_REPLICA_MANAGER_DOWNLOAD_COMPLETE,
|
||||
ID_RAKVOICE_OPEN_CHANNEL_REQUEST,
|
||||
ID_RAKVOICE_OPEN_CHANNEL_REPLY,
|
||||
ID_RAKVOICE_CLOSE_CHANNEL,
|
||||
ID_RAKVOICE_DATA,
|
||||
ID_AUTOPATCHER_GET_CHANGELIST_SINCE_DATE,
|
||||
ID_AUTOPATCHER_CREATION_LIST,
|
||||
ID_AUTOPATCHER_DELETION_LIST,
|
||||
ID_AUTOPATCHER_GET_PATCH,
|
||||
ID_AUTOPATCHER_PATCH_LIST,
|
||||
ID_AUTOPATCHER_REPOSITORY_FATAL_ERROR,
|
||||
ID_AUTOPATCHER_CANNOT_DOWNLOAD_ORIGINAL_UNMODIFIED_FILES,
|
||||
ID_AUTOPATCHER_FINISHED_INTERNAL,
|
||||
ID_AUTOPATCHER_FINISHED,
|
||||
ID_AUTOPATCHER_RESTART_APPLICATION,
|
||||
ID_NAT_PUNCHTHROUGH_REQUEST,
|
||||
ID_NAT_CONNECT_AT_TIME,
|
||||
ID_NAT_GET_MOST_RECENT_PORT,
|
||||
ID_NAT_CLIENT_READY,
|
||||
ID_NAT_TARGET_NOT_CONNECTED,
|
||||
ID_NAT_TARGET_UNRESPONSIVE,
|
||||
ID_NAT_CONNECTION_TO_TARGET_LOST,
|
||||
ID_NAT_ALREADY_IN_PROGRESS,
|
||||
ID_NAT_PUNCHTHROUGH_FAILED,
|
||||
ID_NAT_PUNCHTHROUGH_SUCCEEDED,
|
||||
ID_READY_EVENT_SET,
|
||||
ID_READY_EVENT_UNSET,
|
||||
ID_READY_EVENT_ALL_SET,
|
||||
ID_READY_EVENT_QUERY,
|
||||
ID_LOBBY_GENERAL,
|
||||
ID_RPC_REMOTE_ERROR,
|
||||
ID_RPC_PLUGIN,
|
||||
ID_FILE_LIST_REFERENCE_PUSH,
|
||||
ID_READY_EVENT_FORCE_ALL_SET,
|
||||
ID_ROOMS_EXECUTE_FUNC,
|
||||
ID_ROOMS_LOGON_STATUS,
|
||||
ID_ROOMS_HANDLE_CHANGE,
|
||||
ID_LOBBY2_SEND_MESSAGE,
|
||||
ID_LOBBY2_SERVER_ERROR,
|
||||
ID_FCM2_NEW_HOST,
|
||||
ID_FCM2_REQUEST_FCMGUID,
|
||||
ID_FCM2_RESPOND_CONNECTION_COUNT,
|
||||
ID_FCM2_INFORM_FCMGUID,
|
||||
ID_FCM2_UPDATE_MIN_TOTAL_CONNECTION_COUNT,
|
||||
ID_FCM2_VERIFIED_JOIN_START,
|
||||
ID_FCM2_VERIFIED_JOIN_CAPABLE,
|
||||
ID_FCM2_VERIFIED_JOIN_FAILED,
|
||||
ID_FCM2_VERIFIED_JOIN_ACCEPTED,
|
||||
ID_FCM2_VERIFIED_JOIN_REJECTED,
|
||||
ID_UDP_PROXY_GENERAL,
|
||||
ID_SQLite3_EXEC,
|
||||
ID_SQLite3_UNKNOWN_DB,
|
||||
ID_SQLLITE_LOGGER,
|
||||
ID_NAT_TYPE_DETECTION_REQUEST,
|
||||
ID_NAT_TYPE_DETECTION_RESULT,
|
||||
ID_ROUTER_2_INTERNAL,
|
||||
ID_ROUTER_2_FORWARDING_NO_PATH,
|
||||
ID_ROUTER_2_FORWARDING_ESTABLISHED,
|
||||
ID_ROUTER_2_REROUTED,
|
||||
ID_TEAM_BALANCER_INTERNAL,
|
||||
ID_TEAM_BALANCER_REQUESTED_TEAM_FULL,
|
||||
ID_TEAM_BALANCER_REQUESTED_TEAM_LOCKED,
|
||||
ID_TEAM_BALANCER_TEAM_REQUESTED_CANCELLED,
|
||||
ID_TEAM_BALANCER_TEAM_ASSIGNED,
|
||||
ID_LIGHTSPEED_INTEGRATION,
|
||||
ID_XBOX_LOBBY,
|
||||
ID_TWO_WAY_AUTHENTICATION_INCOMING_CHALLENGE_SUCCESS,
|
||||
ID_TWO_WAY_AUTHENTICATION_OUTGOING_CHALLENGE_SUCCESS,
|
||||
ID_TWO_WAY_AUTHENTICATION_INCOMING_CHALLENGE_FAILURE,
|
||||
ID_TWO_WAY_AUTHENTICATION_OUTGOING_CHALLENGE_FAILURE,
|
||||
ID_TWO_WAY_AUTHENTICATION_OUTGOING_CHALLENGE_TIMEOUT,
|
||||
ID_TWO_WAY_AUTHENTICATION_NEGOTIATION,
|
||||
ID_CLOUD_POST_REQUEST,
|
||||
ID_CLOUD_RELEASE_REQUEST,
|
||||
ID_CLOUD_GET_REQUEST,
|
||||
ID_CLOUD_GET_RESPONSE,
|
||||
ID_CLOUD_UNSUBSCRIBE_REQUEST,
|
||||
ID_CLOUD_SERVER_TO_SERVER_COMMAND,
|
||||
ID_CLOUD_SUBSCRIPTION_NOTIFICATION,
|
||||
ID_LIB_VOICE,
|
||||
ID_RELAY_PLUGIN,
|
||||
ID_NAT_REQUEST_BOUND_ADDRESSES,
|
||||
ID_NAT_RESPOND_BOUND_ADDRESSES,
|
||||
ID_FCM2_UPDATE_USER_CONTEXT,
|
||||
ID_RESERVED_3,
|
||||
ID_RESERVED_4,
|
||||
ID_RESERVED_5,
|
||||
ID_RESERVED_6,
|
||||
ID_RESERVED_7,
|
||||
ID_RESERVED_8,
|
||||
ID_RESERVED_9,
|
||||
ID_USER_PACKET_ENUM
|
||||
}
|
||||
|
||||
}
|
||||
104
bindings/csharp/interfaces/DirectoryDeltaTransfer.cs
Normal file
104
bindings/csharp/interfaces/DirectoryDeltaTransfer.cs
Normal file
@ -0,0 +1,104 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class DirectoryDeltaTransfer : PluginInterface2 {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal DirectoryDeltaTransfer(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.DirectoryDeltaTransfer_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(DirectoryDeltaTransfer obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~DirectoryDeltaTransfer() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_DirectoryDeltaTransfer(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public static DirectoryDeltaTransfer GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.DirectoryDeltaTransfer_GetInstance();
|
||||
DirectoryDeltaTransfer ret = (cPtr == IntPtr.Zero) ? null : new DirectoryDeltaTransfer(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(DirectoryDeltaTransfer i) {
|
||||
SLikeNetPINVOKE.DirectoryDeltaTransfer_DestroyInstance(DirectoryDeltaTransfer.getCPtr(i));
|
||||
}
|
||||
|
||||
public DirectoryDeltaTransfer() : this(SLikeNetPINVOKE.new_DirectoryDeltaTransfer(), true) {
|
||||
}
|
||||
|
||||
public void SetFileListTransferPlugin(FileListTransfer flt) {
|
||||
SLikeNetPINVOKE.DirectoryDeltaTransfer_SetFileListTransferPlugin(swigCPtr, FileListTransfer.getCPtr(flt));
|
||||
}
|
||||
|
||||
public void SetApplicationDirectory(string pathToApplication) {
|
||||
SLikeNetPINVOKE.DirectoryDeltaTransfer_SetApplicationDirectory(swigCPtr, pathToApplication);
|
||||
}
|
||||
|
||||
public void SetUploadSendParameters(PacketPriority _priority, char _orderingChannel) {
|
||||
SLikeNetPINVOKE.DirectoryDeltaTransfer_SetUploadSendParameters(swigCPtr, (int)_priority, _orderingChannel);
|
||||
}
|
||||
|
||||
public void AddUploadsFromSubdirectory(string subdir) {
|
||||
SLikeNetPINVOKE.DirectoryDeltaTransfer_AddUploadsFromSubdirectory(swigCPtr, subdir);
|
||||
}
|
||||
|
||||
public ushort DownloadFromSubdirectory(string subdir, string outputSubdir, bool prependAppDirToOutputSubdir, SystemAddress host, FileListTransferCBInterface onFileCallback, PacketPriority _priority, char _orderingChannel, FileListProgress cb) {
|
||||
ushort ret = SLikeNetPINVOKE.DirectoryDeltaTransfer_DownloadFromSubdirectory__SWIG_0(swigCPtr, subdir, outputSubdir, prependAppDirToOutputSubdir, SystemAddress.getCPtr(host), FileListTransferCBInterface.getCPtr(onFileCallback), (int)_priority, _orderingChannel, FileListProgress.getCPtr(cb));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public ushort DownloadFromSubdirectory(FileList localFiles, string subdir, string outputSubdir, bool prependAppDirToOutputSubdir, SystemAddress host, FileListTransferCBInterface onFileCallback, PacketPriority _priority, char _orderingChannel, FileListProgress cb) {
|
||||
ushort ret = SLikeNetPINVOKE.DirectoryDeltaTransfer_DownloadFromSubdirectory__SWIG_1(swigCPtr, FileList.getCPtr(localFiles), subdir, outputSubdir, prependAppDirToOutputSubdir, SystemAddress.getCPtr(host), FileListTransferCBInterface.getCPtr(onFileCallback), (int)_priority, _orderingChannel, FileListProgress.getCPtr(cb));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void GenerateHashes(FileList localFiles, string outputSubdir, bool prependAppDirToOutputSubdir) {
|
||||
SLikeNetPINVOKE.DirectoryDeltaTransfer_GenerateHashes(swigCPtr, FileList.getCPtr(localFiles), outputSubdir, prependAppDirToOutputSubdir);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void ClearUploads() {
|
||||
SLikeNetPINVOKE.DirectoryDeltaTransfer_ClearUploads(swigCPtr);
|
||||
}
|
||||
|
||||
public uint GetNumberOfFilesForUpload() {
|
||||
uint ret = SLikeNetPINVOKE.DirectoryDeltaTransfer_GetNumberOfFilesForUpload(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void SetDownloadRequestIncrementalReadInterface(IncrementalReadInterface _incrementalReadInterface, uint _chunkSize) {
|
||||
SLikeNetPINVOKE.DirectoryDeltaTransfer_SetDownloadRequestIncrementalReadInterface(swigCPtr, IncrementalReadInterface.getCPtr(_incrementalReadInterface), _chunkSize);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
101
bindings/csharp/interfaces/DownloadCompleteStruct.cs
Normal file
101
bindings/csharp/interfaces/DownloadCompleteStruct.cs
Normal file
@ -0,0 +1,101 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class DownloadCompleteStruct : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal DownloadCompleteStruct(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(DownloadCompleteStruct obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~DownloadCompleteStruct() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_DownloadCompleteStruct(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public ushort setID {
|
||||
set {
|
||||
SLikeNetPINVOKE.DownloadCompleteStruct_setID_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
ushort ret = SLikeNetPINVOKE.DownloadCompleteStruct_setID_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint numberOfFilesInThisSet {
|
||||
set {
|
||||
SLikeNetPINVOKE.DownloadCompleteStruct_numberOfFilesInThisSet_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.DownloadCompleteStruct_numberOfFilesInThisSet_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint byteLengthOfThisSet {
|
||||
set {
|
||||
SLikeNetPINVOKE.DownloadCompleteStruct_byteLengthOfThisSet_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.DownloadCompleteStruct_byteLengthOfThisSet_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public SystemAddress senderSystemAddress {
|
||||
set {
|
||||
SLikeNetPINVOKE.DownloadCompleteStruct_senderSystemAddress_set(swigCPtr, SystemAddress.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.DownloadCompleteStruct_senderSystemAddress_get(swigCPtr);
|
||||
SystemAddress ret = (cPtr == IntPtr.Zero) ? null : new SystemAddress(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public RakNetGUID senderGuid {
|
||||
set {
|
||||
SLikeNetPINVOKE.DownloadCompleteStruct_senderGuid_set(swigCPtr, RakNetGUID.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.DownloadCompleteStruct_senderGuid_get(swigCPtr);
|
||||
RakNetGUID ret = (cPtr == IntPtr.Zero) ? null : new RakNetGUID(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public DownloadCompleteStruct() : this(SLikeNetPINVOKE.new_DownloadCompleteStruct(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
76
bindings/csharp/interfaces/FLP_Printf.cs
Normal file
76
bindings/csharp/interfaces/FLP_Printf.cs
Normal file
@ -0,0 +1,76 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class FLP_Printf : FileListProgress {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal FLP_Printf(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.FLP_Printf_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(FLP_Printf obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~FLP_Printf() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_FLP_Printf(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public new static FLP_Printf GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FLP_Printf_GetInstance();
|
||||
FLP_Printf ret = (cPtr == IntPtr.Zero) ? null : new FLP_Printf(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(FLP_Printf i) {
|
||||
SLikeNetPINVOKE.FLP_Printf_DestroyInstance(FLP_Printf.getCPtr(i));
|
||||
}
|
||||
|
||||
public FLP_Printf() : this(SLikeNetPINVOKE.new_FLP_Printf(), true) {
|
||||
}
|
||||
|
||||
public override void OnAddFilesFromDirectoryStarted(FileList fileList, string dir) {
|
||||
SLikeNetPINVOKE.FLP_Printf_OnAddFilesFromDirectoryStarted(swigCPtr, FileList.getCPtr(fileList), dir);
|
||||
}
|
||||
|
||||
public override void OnDirectory(FileList fileList, string dir, uint directoriesRemaining) {
|
||||
SLikeNetPINVOKE.FLP_Printf_OnDirectory(swigCPtr, FileList.getCPtr(fileList), dir, directoriesRemaining);
|
||||
}
|
||||
|
||||
public override void OnFilePushesComplete(SystemAddress systemAddress, ushort setID) {
|
||||
SLikeNetPINVOKE.FLP_Printf_OnFilePushesComplete(swigCPtr, SystemAddress.getCPtr(systemAddress), setID);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public override void OnSendAborted(SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.FLP_Printf_OnSendAborted(swigCPtr, SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
149
bindings/csharp/interfaces/FileList.cs
Normal file
149
bindings/csharp/interfaces/FileList.cs
Normal file
@ -0,0 +1,149 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class FileList : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal FileList(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(FileList obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~FileList() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_FileList(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public static FileList GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FileList_GetInstance();
|
||||
FileList ret = (cPtr == IntPtr.Zero) ? null : new FileList(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(FileList i) {
|
||||
SLikeNetPINVOKE.FileList_DestroyInstance(FileList.getCPtr(i));
|
||||
}
|
||||
|
||||
public FileList() : this(SLikeNetPINVOKE.new_FileList(), true) {
|
||||
}
|
||||
|
||||
public void AddFilesFromDirectory(string applicationDirectory, string subDirectory, bool writeHash, bool writeData, bool recursive, FileListNodeContext context) {
|
||||
SLikeNetPINVOKE.FileList_AddFilesFromDirectory(swigCPtr, applicationDirectory, subDirectory, writeHash, writeData, recursive, FileListNodeContext.getCPtr(context));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
SLikeNetPINVOKE.FileList_Clear(swigCPtr);
|
||||
}
|
||||
|
||||
public void Serialize(BitStream outBitStream) {
|
||||
SLikeNetPINVOKE.FileList_Serialize(swigCPtr, BitStream.getCPtr(outBitStream));
|
||||
}
|
||||
|
||||
public bool Deserialize(BitStream inBitStream) {
|
||||
bool ret = SLikeNetPINVOKE.FileList_Deserialize(swigCPtr, BitStream.getCPtr(inBitStream));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void ListMissingOrChangedFiles(string applicationDirectory, FileList missingOrChangedFiles, bool alwaysWriteHash, bool neverWriteHash) {
|
||||
SLikeNetPINVOKE.FileList_ListMissingOrChangedFiles(swigCPtr, applicationDirectory, FileList.getCPtr(missingOrChangedFiles), alwaysWriteHash, neverWriteHash);
|
||||
}
|
||||
|
||||
public void GetDeltaToCurrent(FileList input, FileList output, string dirSubset, string remoteSubdir) {
|
||||
SLikeNetPINVOKE.FileList_GetDeltaToCurrent(swigCPtr, FileList.getCPtr(input), FileList.getCPtr(output), dirSubset, remoteSubdir);
|
||||
}
|
||||
|
||||
public void PopulateDataFromDisk(string applicationDirectory, bool writeFileData, bool writeFileHash, bool removeUnknownFiles) {
|
||||
SLikeNetPINVOKE.FileList_PopulateDataFromDisk(swigCPtr, applicationDirectory, writeFileData, writeFileHash, removeUnknownFiles);
|
||||
}
|
||||
|
||||
public void FlagFilesAsReferences() {
|
||||
SLikeNetPINVOKE.FileList_FlagFilesAsReferences(swigCPtr);
|
||||
}
|
||||
|
||||
public void WriteDataToDisk(string applicationDirectory) {
|
||||
SLikeNetPINVOKE.FileList_WriteDataToDisk(swigCPtr, applicationDirectory);
|
||||
}
|
||||
|
||||
public void AddFile(string filepath, string filename, FileListNodeContext context) {
|
||||
SLikeNetPINVOKE.FileList_AddFile__SWIG_0(swigCPtr, filepath, filename, FileListNodeContext.getCPtr(context));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void DeleteFiles(string applicationDirectory) {
|
||||
SLikeNetPINVOKE.FileList_DeleteFiles(swigCPtr, applicationDirectory);
|
||||
}
|
||||
|
||||
public void AddCallback(FileListProgress cb) {
|
||||
SLikeNetPINVOKE.FileList_AddCallback(swigCPtr, FileListProgress.getCPtr(cb));
|
||||
}
|
||||
|
||||
public void RemoveCallback(FileListProgress cb) {
|
||||
SLikeNetPINVOKE.FileList_RemoveCallback(swigCPtr, FileListProgress.getCPtr(cb));
|
||||
}
|
||||
|
||||
public void ClearCallbacks() {
|
||||
SLikeNetPINVOKE.FileList_ClearCallbacks(swigCPtr);
|
||||
}
|
||||
|
||||
public RakNetListFileListNode fileList {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileList_fileList_set(swigCPtr, RakNetListFileListNode.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FileList_fileList_get(swigCPtr);
|
||||
RakNetListFileListNode ret = (cPtr == IntPtr.Zero) ? null : new RakNetListFileListNode(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool FixEndingSlash(string str) {
|
||||
bool ret = SLikeNetPINVOKE.FileList_FixEndingSlash__SWIG_0(str);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool FixEndingSlash(string str, uint strLength) {
|
||||
bool ret = SLikeNetPINVOKE.FileList_FixEndingSlash__SWIG_1(str, strLength);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void AddFile(string filename, string fullPathToFile, byte[] inByteArray, uint dataLength, uint fileLength, FileListNodeContext context, bool isAReference) {
|
||||
SLikeNetPINVOKE.FileList_AddFile__SWIG_1(swigCPtr, filename, fullPathToFile, inByteArray, dataLength, fileLength, FileListNodeContext.getCPtr(context), isAReference);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void AddFile(string filename, string fullPathToFile, byte[] inByteArray, uint dataLength, uint fileLength, FileListNodeContext context) {
|
||||
SLikeNetPINVOKE.FileList_AddFile__SWIG_2(swigCPtr, filename, fullPathToFile, inByteArray, dataLength, fileLength, FileListNodeContext.getCPtr(context));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
152
bindings/csharp/interfaces/FileListNode.cs
Normal file
152
bindings/csharp/interfaces/FileListNode.cs
Normal file
@ -0,0 +1,152 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class FileListNode : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal FileListNode(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(FileListNode obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~FileListNode() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_FileListNode(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
private bool dataIsCached = false;
|
||||
private byte[] dataCache;
|
||||
|
||||
public RakString filename {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileListNode_filename_set(swigCPtr, RakString.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FileListNode_filename_get(swigCPtr);
|
||||
RakString ret = (cPtr == IntPtr.Zero) ? null : new RakString(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public RakString fullPathToFile {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileListNode_fullPathToFile_set(swigCPtr, RakString.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FileListNode_fullPathToFile_get(swigCPtr);
|
||||
RakString ret = (cPtr == IntPtr.Zero) ? null : new RakString(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] data {
|
||||
set
|
||||
{
|
||||
dataCache=value;
|
||||
dataIsCached = true;
|
||||
SetData (value, value.Length);
|
||||
}
|
||||
get
|
||||
{
|
||||
byte[] returnArray;
|
||||
if (!dataIsCached)
|
||||
{
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FileListNode_data_get (swigCPtr);
|
||||
int len = (int) dataLengthBytes;
|
||||
if (len<=0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
returnArray = new byte[len];
|
||||
byte[] marshalArray = new byte[len];
|
||||
Marshal.Copy(cPtr, marshalArray, 0, len);
|
||||
marshalArray.CopyTo(returnArray, 0);
|
||||
dataCache = returnArray;
|
||||
dataIsCached = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
returnArray = dataCache;
|
||||
}
|
||||
return returnArray;
|
||||
}
|
||||
}
|
||||
|
||||
public uint dataLengthBytes {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileListNode_dataLengthBytes_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.FileListNode_dataLengthBytes_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint fileLengthBytes {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileListNode_fileLengthBytes_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.FileListNode_fileLengthBytes_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public FileListNodeContext context {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileListNode_context_set(swigCPtr, FileListNodeContext.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FileListNode_context_get(swigCPtr);
|
||||
FileListNodeContext ret = (cPtr == IntPtr.Zero) ? null : new FileListNodeContext(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public bool isAReference {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileListNode_isAReference_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
bool ret = SLikeNetPINVOKE.FileListNode_isAReference_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public FileListNode() : this(SLikeNetPINVOKE.new_FileListNode(), true) {
|
||||
}
|
||||
|
||||
public void SetData(byte[] inByteArray, int numBytes) {
|
||||
SLikeNetPINVOKE.FileListNode_SetData(swigCPtr, inByteArray, numBytes);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
113
bindings/csharp/interfaces/FileListNodeContext.cs
Normal file
113
bindings/csharp/interfaces/FileListNodeContext.cs
Normal file
@ -0,0 +1,113 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class FileListNodeContext : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal FileListNodeContext(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(FileListNodeContext obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~FileListNodeContext() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_FileListNodeContext(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public FileListNodeContext() : this(SLikeNetPINVOKE.new_FileListNodeContext__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public FileListNodeContext(byte o, uint f1, uint f2, uint f3) : this(SLikeNetPINVOKE.new_FileListNodeContext__SWIG_1(o, f1, f2, f3), true) {
|
||||
}
|
||||
|
||||
public byte op {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileListNodeContext_op_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
byte ret = SLikeNetPINVOKE.FileListNodeContext_op_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint flnc_extraData1 {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileListNodeContext_flnc_extraData1_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.FileListNodeContext_flnc_extraData1_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint flnc_extraData2 {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileListNodeContext_flnc_extraData2_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.FileListNodeContext_flnc_extraData2_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint flnc_extraData3 {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileListNodeContext_flnc_extraData3_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.FileListNodeContext_flnc_extraData3_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_void dataPtr {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileListNodeContext_dataPtr_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FileListNodeContext_dataPtr_get(swigCPtr);
|
||||
SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint dataLength {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileListNodeContext_dataLength_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.FileListNodeContext_dataLength_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
86
bindings/csharp/interfaces/FileListProgress.cs
Normal file
86
bindings/csharp/interfaces/FileListProgress.cs
Normal file
@ -0,0 +1,86 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class FileListProgress : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal FileListProgress(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(FileListProgress obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~FileListProgress() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_FileListProgress(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public static FileListProgress GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FileListProgress_GetInstance();
|
||||
FileListProgress ret = (cPtr == IntPtr.Zero) ? null : new FileListProgress(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(FileListProgress i) {
|
||||
SLikeNetPINVOKE.FileListProgress_DestroyInstance(FileListProgress.getCPtr(i));
|
||||
}
|
||||
|
||||
public FileListProgress() : this(SLikeNetPINVOKE.new_FileListProgress(), true) {
|
||||
}
|
||||
|
||||
public virtual void OnAddFilesFromDirectoryStarted(FileList fileList, string dir) {
|
||||
SLikeNetPINVOKE.FileListProgress_OnAddFilesFromDirectoryStarted(swigCPtr, FileList.getCPtr(fileList), dir);
|
||||
}
|
||||
|
||||
public virtual void OnDirectory(FileList fileList, string dir, uint directoriesRemaining) {
|
||||
SLikeNetPINVOKE.FileListProgress_OnDirectory(swigCPtr, FileList.getCPtr(fileList), dir, directoriesRemaining);
|
||||
}
|
||||
|
||||
public virtual void OnFile(FileList fileList, string dir, string fileName, uint fileSize) {
|
||||
SLikeNetPINVOKE.FileListProgress_OnFile(swigCPtr, FileList.getCPtr(fileList), dir, fileName, fileSize);
|
||||
}
|
||||
|
||||
public virtual void OnFilePush(string fileName, uint fileLengthBytes, uint offset, uint bytesBeingSent, bool done, SystemAddress targetSystem, ushort setId) {
|
||||
SLikeNetPINVOKE.FileListProgress_OnFilePush(swigCPtr, fileName, fileLengthBytes, offset, bytesBeingSent, done, SystemAddress.getCPtr(targetSystem), setId);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void OnFilePushesComplete(SystemAddress systemAddress, ushort setId) {
|
||||
SLikeNetPINVOKE.FileListProgress_OnFilePushesComplete(swigCPtr, SystemAddress.getCPtr(systemAddress), setId);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void OnSendAborted(SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.FileListProgress_OnSendAborted(swigCPtr, SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
119
bindings/csharp/interfaces/FileListTransfer.cs
Normal file
119
bindings/csharp/interfaces/FileListTransfer.cs
Normal file
@ -0,0 +1,119 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class FileListTransfer : PluginInterface2 {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal FileListTransfer(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.FileListTransfer_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(FileListTransfer obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~FileListTransfer() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_FileListTransfer(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public static FileListTransfer GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FileListTransfer_GetInstance();
|
||||
FileListTransfer ret = (cPtr == IntPtr.Zero) ? null : new FileListTransfer(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(FileListTransfer i) {
|
||||
SLikeNetPINVOKE.FileListTransfer_DestroyInstance(FileListTransfer.getCPtr(i));
|
||||
}
|
||||
|
||||
public FileListTransfer() : this(SLikeNetPINVOKE.new_FileListTransfer(), true) {
|
||||
}
|
||||
|
||||
public void StartIncrementalReadThreads(int numThreads, int threadPriority) {
|
||||
SLikeNetPINVOKE.FileListTransfer_StartIncrementalReadThreads__SWIG_0(swigCPtr, numThreads, threadPriority);
|
||||
}
|
||||
|
||||
public void StartIncrementalReadThreads(int numThreads) {
|
||||
SLikeNetPINVOKE.FileListTransfer_StartIncrementalReadThreads__SWIG_1(swigCPtr, numThreads);
|
||||
}
|
||||
|
||||
public ushort SetupReceive(FileListTransferCBInterface handler, bool deleteHandler, SystemAddress allowedSender) {
|
||||
ushort ret = SLikeNetPINVOKE.FileListTransfer_SetupReceive(swigCPtr, FileListTransferCBInterface.getCPtr(handler), deleteHandler, SystemAddress.getCPtr(allowedSender));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Send(FileList fileList, RakPeerInterface rakPeer, SystemAddress recipient, ushort setID, PacketPriority priority, char orderingChannel, IncrementalReadInterface _incrementalReadInterface, uint _chunkSize) {
|
||||
SLikeNetPINVOKE.FileListTransfer_Send__SWIG_0(swigCPtr, FileList.getCPtr(fileList), RakPeerInterface.getCPtr(rakPeer), SystemAddress.getCPtr(recipient), setID, (int)priority, orderingChannel, IncrementalReadInterface.getCPtr(_incrementalReadInterface), _chunkSize);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Send(FileList fileList, RakPeerInterface rakPeer, SystemAddress recipient, ushort setID, PacketPriority priority, char orderingChannel, IncrementalReadInterface _incrementalReadInterface) {
|
||||
SLikeNetPINVOKE.FileListTransfer_Send__SWIG_1(swigCPtr, FileList.getCPtr(fileList), RakPeerInterface.getCPtr(rakPeer), SystemAddress.getCPtr(recipient), setID, (int)priority, orderingChannel, IncrementalReadInterface.getCPtr(_incrementalReadInterface));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Send(FileList fileList, RakPeerInterface rakPeer, SystemAddress recipient, ushort setID, PacketPriority priority, char orderingChannel) {
|
||||
SLikeNetPINVOKE.FileListTransfer_Send__SWIG_2(swigCPtr, FileList.getCPtr(fileList), RakPeerInterface.getCPtr(rakPeer), SystemAddress.getCPtr(recipient), setID, (int)priority, orderingChannel);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public uint GetPendingFilesToAddress(SystemAddress recipient) {
|
||||
uint ret = SLikeNetPINVOKE.FileListTransfer_GetPendingFilesToAddress(swigCPtr, SystemAddress.getCPtr(recipient));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void CancelReceive(ushort inSetId) {
|
||||
SLikeNetPINVOKE.FileListTransfer_CancelReceive(swigCPtr, inSetId);
|
||||
}
|
||||
|
||||
public void RemoveReceiver(SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.FileListTransfer_RemoveReceiver(swigCPtr, SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public bool IsHandlerActive(ushort inSetId) {
|
||||
bool ret = SLikeNetPINVOKE.FileListTransfer_IsHandlerActive(swigCPtr, inSetId);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void AddCallback(FileListProgress cb) {
|
||||
SLikeNetPINVOKE.FileListTransfer_AddCallback(swigCPtr, FileListProgress.getCPtr(cb));
|
||||
}
|
||||
|
||||
public void RemoveCallback(FileListProgress cb) {
|
||||
SLikeNetPINVOKE.FileListTransfer_RemoveCallback(swigCPtr, FileListProgress.getCPtr(cb));
|
||||
}
|
||||
|
||||
public void ClearCallbacks() {
|
||||
SLikeNetPINVOKE.FileListTransfer_ClearCallbacks(swigCPtr);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
130
bindings/csharp/interfaces/FileListTransferCBInterface.cs
Normal file
130
bindings/csharp/interfaces/FileListTransferCBInterface.cs
Normal file
@ -0,0 +1,130 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class FileListTransferCBInterface : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal FileListTransferCBInterface(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(FileListTransferCBInterface obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~FileListTransferCBInterface() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_FileListTransferCBInterface(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public FileListTransferCBInterface() : this(SLikeNetPINVOKE.new_FileListTransferCBInterface(), true) {
|
||||
SwigDirectorConnect();
|
||||
}
|
||||
|
||||
public virtual bool OnFile(OnFileStruct onFileStruct) {
|
||||
bool ret = SLikeNetPINVOKE.FileListTransferCBInterface_OnFile(swigCPtr, OnFileStruct.getCPtr(onFileStruct));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void OnFileProgress(FileProgressStruct fps) {
|
||||
SLikeNetPINVOKE.FileListTransferCBInterface_OnFileProgress(swigCPtr, FileProgressStruct.getCPtr(fps));
|
||||
}
|
||||
|
||||
public virtual bool Update() {
|
||||
bool ret = (SwigDerivedClassHasMethod("Update", swigMethodTypes2) ? SLikeNetPINVOKE.FileListTransferCBInterface_UpdateSwigExplicitFileListTransferCBInterface(swigCPtr) : SLikeNetPINVOKE.FileListTransferCBInterface_Update(swigCPtr));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual bool OnDownloadComplete(DownloadCompleteStruct dcs) {
|
||||
bool ret = (SwigDerivedClassHasMethod("OnDownloadComplete", swigMethodTypes3) ? SLikeNetPINVOKE.FileListTransferCBInterface_OnDownloadCompleteSwigExplicitFileListTransferCBInterface(swigCPtr, DownloadCompleteStruct.getCPtr(dcs)) : SLikeNetPINVOKE.FileListTransferCBInterface_OnDownloadComplete(swigCPtr, DownloadCompleteStruct.getCPtr(dcs)));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void OnDereference() {
|
||||
if (SwigDerivedClassHasMethod("OnDereference", swigMethodTypes4)) SLikeNetPINVOKE.FileListTransferCBInterface_OnDereferenceSwigExplicitFileListTransferCBInterface(swigCPtr); else SLikeNetPINVOKE.FileListTransferCBInterface_OnDereference(swigCPtr);
|
||||
}
|
||||
|
||||
private void SwigDirectorConnect() {
|
||||
if (SwigDerivedClassHasMethod("OnFile", swigMethodTypes0))
|
||||
swigDelegate0 = new SwigDelegateFileListTransferCBInterface_0(SwigDirectorOnFile);
|
||||
if (SwigDerivedClassHasMethod("OnFileProgress", swigMethodTypes1))
|
||||
swigDelegate1 = new SwigDelegateFileListTransferCBInterface_1(SwigDirectorOnFileProgress);
|
||||
if (SwigDerivedClassHasMethod("Update", swigMethodTypes2))
|
||||
swigDelegate2 = new SwigDelegateFileListTransferCBInterface_2(SwigDirectorUpdate);
|
||||
if (SwigDerivedClassHasMethod("OnDownloadComplete", swigMethodTypes3))
|
||||
swigDelegate3 = new SwigDelegateFileListTransferCBInterface_3(SwigDirectorOnDownloadComplete);
|
||||
if (SwigDerivedClassHasMethod("OnDereference", swigMethodTypes4))
|
||||
swigDelegate4 = new SwigDelegateFileListTransferCBInterface_4(SwigDirectorOnDereference);
|
||||
SLikeNetPINVOKE.FileListTransferCBInterface_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4);
|
||||
}
|
||||
|
||||
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) {
|
||||
System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null);
|
||||
bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(FileListTransferCBInterface));
|
||||
return hasDerivedMethod;
|
||||
}
|
||||
|
||||
private bool SwigDirectorOnFile(IntPtr onFileStruct) {
|
||||
return OnFile((onFileStruct == IntPtr.Zero) ? null : new OnFileStruct(onFileStruct, false));
|
||||
}
|
||||
|
||||
private void SwigDirectorOnFileProgress(IntPtr fps) {
|
||||
OnFileProgress((fps == IntPtr.Zero) ? null : new FileProgressStruct(fps, false));
|
||||
}
|
||||
|
||||
private bool SwigDirectorUpdate() {
|
||||
return Update();
|
||||
}
|
||||
|
||||
private bool SwigDirectorOnDownloadComplete(IntPtr dcs) {
|
||||
return OnDownloadComplete((dcs == IntPtr.Zero) ? null : new DownloadCompleteStruct(dcs, false));
|
||||
}
|
||||
|
||||
private void SwigDirectorOnDereference() {
|
||||
OnDereference();
|
||||
}
|
||||
|
||||
public delegate bool SwigDelegateFileListTransferCBInterface_0(IntPtr onFileStruct);
|
||||
public delegate void SwigDelegateFileListTransferCBInterface_1(IntPtr fps);
|
||||
public delegate bool SwigDelegateFileListTransferCBInterface_2();
|
||||
public delegate bool SwigDelegateFileListTransferCBInterface_3(IntPtr dcs);
|
||||
public delegate void SwigDelegateFileListTransferCBInterface_4();
|
||||
|
||||
private SwigDelegateFileListTransferCBInterface_0 swigDelegate0;
|
||||
private SwigDelegateFileListTransferCBInterface_1 swigDelegate1;
|
||||
private SwigDelegateFileListTransferCBInterface_2 swigDelegate2;
|
||||
private SwigDelegateFileListTransferCBInterface_3 swigDelegate3;
|
||||
private SwigDelegateFileListTransferCBInterface_4 swigDelegate4;
|
||||
|
||||
private static Type[] swigMethodTypes0 = new Type[] { typeof(OnFileStruct) };
|
||||
private static Type[] swigMethodTypes1 = new Type[] { typeof(FileProgressStruct) };
|
||||
private static Type[] swigMethodTypes2 = new Type[] { };
|
||||
private static Type[] swigMethodTypes3 = new Type[] { typeof(DownloadCompleteStruct) };
|
||||
private static Type[] swigMethodTypes4 = new Type[] { };
|
||||
}
|
||||
|
||||
}
|
||||
226
bindings/csharp/interfaces/FileProgressStruct.cs
Normal file
226
bindings/csharp/interfaces/FileProgressStruct.cs
Normal file
@ -0,0 +1,226 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class FileProgressStruct : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal FileProgressStruct(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(FileProgressStruct obj) {
|
||||
|
||||
if (obj != null)
|
||||
{
|
||||
if (obj.firstDataChunkIsCached)
|
||||
{
|
||||
obj.SetFirstDataChunk(obj.firstDataChunk, obj.firstDataChunk.Length);
|
||||
}
|
||||
if (obj.iriDataChunkIsCached)
|
||||
{
|
||||
obj.SetIriDataChunk(obj.iriDataChunk, obj.iriDataChunk.Length);
|
||||
}
|
||||
obj.firstDataChunkIsCached=false;
|
||||
obj.iriDataChunkIsCached=false;
|
||||
}
|
||||
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~FileProgressStruct() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_FileProgressStruct(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
private bool firstDataChunkIsCached = false;
|
||||
private byte[] firstDataChunkCache;
|
||||
private bool iriDataChunkIsCached = false;
|
||||
private byte[] iriDataChunkCache;
|
||||
|
||||
public OnFileStruct onFileStruct {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileProgressStruct_onFileStruct_set(swigCPtr, OnFileStruct.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FileProgressStruct_onFileStruct_get(swigCPtr);
|
||||
OnFileStruct ret = (cPtr == IntPtr.Zero) ? null : new OnFileStruct(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint partCount {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileProgressStruct_partCount_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.FileProgressStruct_partCount_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint partTotal {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileProgressStruct_partTotal_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.FileProgressStruct_partTotal_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint dataChunkLength {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileProgressStruct_dataChunkLength_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.FileProgressStruct_dataChunkLength_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] firstDataChunk {
|
||||
set
|
||||
{
|
||||
firstDataChunkCache=value;
|
||||
firstDataChunkIsCached = true;
|
||||
SetFirstDataChunk (value, value.Length);
|
||||
}
|
||||
get
|
||||
{
|
||||
byte[] returnArray;
|
||||
if (!firstDataChunkIsCached)
|
||||
{
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FileProgressStruct_firstDataChunk_get (swigCPtr);
|
||||
int len = (int) dataChunkLength;
|
||||
if (len<=0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
returnArray = new byte[len];
|
||||
byte[] marshalArray = new byte[len];
|
||||
Marshal.Copy(cPtr, marshalArray, 0, len);
|
||||
marshalArray.CopyTo(returnArray, 0);
|
||||
firstDataChunkCache = returnArray;
|
||||
firstDataChunkIsCached = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
returnArray = firstDataChunkCache;
|
||||
}
|
||||
return returnArray;
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] iriDataChunk {
|
||||
set
|
||||
{
|
||||
iriDataChunkCache=value;
|
||||
iriDataChunkIsCached = true;
|
||||
SetIriDataChunk (value, value.Length);
|
||||
}
|
||||
get
|
||||
{
|
||||
byte[] returnArray;
|
||||
if (!iriDataChunkIsCached)
|
||||
{
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FileProgressStruct_iriDataChunk_get (swigCPtr);
|
||||
int len = (int) dataChunkLength;
|
||||
if (len<=0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
returnArray = new byte[len];
|
||||
byte[] marshalArray = new byte[len];
|
||||
Marshal.Copy(cPtr, marshalArray, 0, len);
|
||||
marshalArray.CopyTo(returnArray, 0);
|
||||
iriDataChunkCache = returnArray;
|
||||
iriDataChunkIsCached = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
returnArray = iriDataChunkCache;
|
||||
}
|
||||
return returnArray;
|
||||
}
|
||||
}
|
||||
|
||||
public uint iriWriteOffset {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileProgressStruct_iriWriteOffset_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.FileProgressStruct_iriWriteOffset_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public SystemAddress senderSystemAddress {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileProgressStruct_senderSystemAddress_set(swigCPtr, SystemAddress.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FileProgressStruct_senderSystemAddress_get(swigCPtr);
|
||||
SystemAddress ret = (cPtr == IntPtr.Zero) ? null : new SystemAddress(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public RakNetGUID senderGuid {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileProgressStruct_senderGuid_set(swigCPtr, RakNetGUID.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FileProgressStruct_senderGuid_get(swigCPtr);
|
||||
RakNetGUID ret = (cPtr == IntPtr.Zero) ? null : new RakNetGUID(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public bool allocateIrIDataChunkAutomatically {
|
||||
set {
|
||||
SLikeNetPINVOKE.FileProgressStruct_allocateIrIDataChunkAutomatically_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
bool ret = SLikeNetPINVOKE.FileProgressStruct_allocateIrIDataChunkAutomatically_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public FileProgressStruct() : this(SLikeNetPINVOKE.new_FileProgressStruct(), true) {
|
||||
}
|
||||
|
||||
private void SetFirstDataChunk(byte[] inByteArray, int numBytes) {
|
||||
SLikeNetPINVOKE.FileProgressStruct_SetFirstDataChunk(swigCPtr, inByteArray, numBytes);
|
||||
}
|
||||
|
||||
private void SetIriDataChunk(byte[] inByteArray, int numBytes) {
|
||||
SLikeNetPINVOKE.FileProgressStruct_SetIriDataChunk(swigCPtr, inByteArray, numBytes);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
93
bindings/csharp/interfaces/FilterQuery.cs
Normal file
93
bindings/csharp/interfaces/FilterQuery.cs
Normal file
@ -0,0 +1,93 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class FilterQuery : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal FilterQuery(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(FilterQuery obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~FilterQuery() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_FilterQuery(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public FilterQuery() : this(SLikeNetPINVOKE.new_FilterQuery__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public FilterQuery(uint column, Cell cell, Table.FilterQueryType op) : this(SLikeNetPINVOKE.new_FilterQuery__SWIG_1(column, Cell.getCPtr(cell), (int)op), true) {
|
||||
}
|
||||
|
||||
public string columnName {
|
||||
set {
|
||||
SLikeNetPINVOKE.FilterQuery_columnName_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
string ret = SLikeNetPINVOKE.FilterQuery_columnName_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint columnIndex {
|
||||
set {
|
||||
SLikeNetPINVOKE.FilterQuery_columnIndex_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.FilterQuery_columnIndex_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public Cell cellValue {
|
||||
set {
|
||||
SLikeNetPINVOKE.FilterQuery_cellValue_set(swigCPtr, Cell.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FilterQuery_cellValue_get(swigCPtr);
|
||||
Cell ret = (cPtr == IntPtr.Zero) ? null : new Cell(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public Table.FilterQueryType operation {
|
||||
set {
|
||||
SLikeNetPINVOKE.FilterQuery_operation_set(swigCPtr, (int)value);
|
||||
}
|
||||
get {
|
||||
Table.FilterQueryType ret = (Table.FilterQueryType)SLikeNetPINVOKE.FilterQuery_operation_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
182
bindings/csharp/interfaces/FullyConnectedMesh2.cs
Normal file
182
bindings/csharp/interfaces/FullyConnectedMesh2.cs
Normal file
@ -0,0 +1,182 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class FullyConnectedMesh2 : PluginInterface2 {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal FullyConnectedMesh2(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.FullyConnectedMesh2_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(FullyConnectedMesh2 obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~FullyConnectedMesh2() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_FullyConnectedMesh2(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public static FullyConnectedMesh2 GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.FullyConnectedMesh2_GetInstance();
|
||||
FullyConnectedMesh2 ret = (cPtr == IntPtr.Zero) ? null : new FullyConnectedMesh2(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(FullyConnectedMesh2 i) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_DestroyInstance(FullyConnectedMesh2.getCPtr(i));
|
||||
}
|
||||
|
||||
public FullyConnectedMesh2() : this(SLikeNetPINVOKE.new_FullyConnectedMesh2(), true) {
|
||||
}
|
||||
|
||||
public void SetConnectOnNewRemoteConnection(bool attemptConnection, RakString pw) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_SetConnectOnNewRemoteConnection(swigCPtr, attemptConnection, RakString.getCPtr(pw));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetGUID GetConnectedHost() {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.FullyConnectedMesh2_GetConnectedHost(swigCPtr), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public SystemAddress GetConnectedHostAddr() {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.FullyConnectedMesh2_GetConnectedHostAddr(swigCPtr), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakNetGUID GetHostSystem() {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.FullyConnectedMesh2_GetHostSystem(swigCPtr), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool IsHostSystem() {
|
||||
bool ret = SLikeNetPINVOKE.FullyConnectedMesh2_IsHostSystem(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void GetHostOrder(RakNetListRakNetGUID hostList) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_GetHostOrder(swigCPtr, RakNetListRakNetGUID.getCPtr(hostList));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public bool IsConnectedHost() {
|
||||
bool ret = SLikeNetPINVOKE.FullyConnectedMesh2_IsConnectedHost(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void SetAutoparticipateConnections(bool b) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_SetAutoparticipateConnections(swigCPtr, b);
|
||||
}
|
||||
|
||||
public void ResetHostCalculation() {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_ResetHostCalculation(swigCPtr);
|
||||
}
|
||||
|
||||
public void AddParticipant(RakNetGUID rakNetGuid) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_AddParticipant(swigCPtr, RakNetGUID.getCPtr(rakNetGuid));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void GetParticipantList(RakNetListRakNetGUID participantList) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_GetParticipantList(swigCPtr, RakNetListRakNetGUID.getCPtr(participantList));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public bool HasParticipant(RakNetGUID participantGuid) {
|
||||
bool ret = SLikeNetPINVOKE.FullyConnectedMesh2_HasParticipant(swigCPtr, RakNetGUID.getCPtr(participantGuid));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void ConnectToRemoteNewIncomingConnections(Packet packet) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_ConnectToRemoteNewIncomingConnections(swigCPtr, Packet.getCPtr(packet));
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_Clear(swigCPtr);
|
||||
}
|
||||
|
||||
public uint GetParticipantCount() {
|
||||
uint ret = SLikeNetPINVOKE.FullyConnectedMesh2_GetParticipantCount__SWIG_0(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void GetParticipantCount(SWIGTYPE_p_unsigned_int participantListSize) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_GetParticipantCount__SWIG_1(swigCPtr, SWIGTYPE_p_unsigned_int.getCPtr(participantListSize));
|
||||
}
|
||||
|
||||
public virtual void StartVerifiedJoin(RakNetGUID client) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_StartVerifiedJoin(swigCPtr, RakNetGUID.getCPtr(client));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void RespondOnVerifiedJoinCapable(Packet packet, bool accept, BitStream additionalData) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_RespondOnVerifiedJoinCapable(swigCPtr, Packet.getCPtr(packet), accept, BitStream.getCPtr(additionalData));
|
||||
}
|
||||
|
||||
public virtual void GetVerifiedJoinRequiredProcessingList(RakNetGUID host, RakNetListSystemAddress addresses, RakNetListRakNetGUID guids, SWIGTYPE_p_DataStructures__ListT_SLNet__BitStream_p_t userData) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_GetVerifiedJoinRequiredProcessingList(swigCPtr, RakNetGUID.getCPtr(host), RakNetListSystemAddress.getCPtr(addresses), RakNetListRakNetGUID.getCPtr(guids), SWIGTYPE_p_DataStructures__ListT_SLNet__BitStream_p_t.getCPtr(userData));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void GetVerifiedJoinAcceptedAdditionalData(Packet packet, SWIGTYPE_p_bool thisSystemAccepted, RakNetListRakNetGUID systemsAccepted, BitStream additionalData) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_GetVerifiedJoinAcceptedAdditionalData(swigCPtr, Packet.getCPtr(packet), SWIGTYPE_p_bool.getCPtr(thisSystemAccepted), RakNetListRakNetGUID.getCPtr(systemsAccepted), BitStream.getCPtr(additionalData));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void GetVerifiedJoinRejectedAdditionalData(Packet packet, BitStream additionalData) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_GetVerifiedJoinRejectedAdditionalData(swigCPtr, Packet.getCPtr(packet), BitStream.getCPtr(additionalData));
|
||||
}
|
||||
|
||||
public virtual void WriteVJCUserData(BitStream bsOut) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_WriteVJCUserData(swigCPtr, BitStream.getCPtr(bsOut));
|
||||
}
|
||||
|
||||
public static void SkipToVJCUserData(BitStream bsIn) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_SkipToVJCUserData(BitStream.getCPtr(bsIn));
|
||||
}
|
||||
|
||||
public virtual void WriteVJSUserData(BitStream bsOut, RakNetGUID userGuid) {
|
||||
SLikeNetPINVOKE.FullyConnectedMesh2_WriteVJSUserData(swigCPtr, BitStream.getCPtr(bsOut), RakNetGUID.getCPtr(userGuid));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public uint GetTotalConnectionCount() {
|
||||
uint ret = SLikeNetPINVOKE.FullyConnectedMesh2_GetTotalConnectionCount(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public enum JoinInProgressState {
|
||||
JIPS_PROCESSING,
|
||||
JIPS_FAILED,
|
||||
JIPS_CONNECTED,
|
||||
JIPS_UNNECESSARY
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
55
bindings/csharp/interfaces/IncrementalReadInterface.cs
Normal file
55
bindings/csharp/interfaces/IncrementalReadInterface.cs
Normal file
@ -0,0 +1,55 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class IncrementalReadInterface : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal IncrementalReadInterface(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(IncrementalReadInterface obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~IncrementalReadInterface() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_IncrementalReadInterface(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public IncrementalReadInterface() : this(SLikeNetPINVOKE.new_IncrementalReadInterface(), true) {
|
||||
}
|
||||
|
||||
public uint GetFilePart(string filename, uint startReadBytes, uint numBytesToRead, byte[] inOutByteArray, FileListNodeContext context) {
|
||||
uint ret = SLikeNetPINVOKE.IncrementalReadInterface_GetFilePart(swigCPtr, filename, startReadBytes, numBytesToRead, inOutByteArray, FileListNodeContext.getCPtr(context));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
17
bindings/csharp/interfaces/JoinTeamType.cs
Normal file
17
bindings/csharp/interfaces/JoinTeamType.cs
Normal file
@ -0,0 +1,17 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
public enum JoinTeamType {
|
||||
JOIN_ANY_AVAILABLE_TEAM,
|
||||
JOIN_SPECIFIC_TEAM,
|
||||
JOIN_NO_TEAM
|
||||
}
|
||||
|
||||
}
|
||||
96
bindings/csharp/interfaces/LogCommandParser.cs
Normal file
96
bindings/csharp/interfaces/LogCommandParser.cs
Normal file
@ -0,0 +1,96 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class LogCommandParser : CommandParserInterface {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal LogCommandParser(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.LogCommandParser_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(LogCommandParser obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~LogCommandParser() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_LogCommandParser(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public static LogCommandParser GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.LogCommandParser_GetInstance();
|
||||
LogCommandParser ret = (cPtr == IntPtr.Zero) ? null : new LogCommandParser(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(LogCommandParser i) {
|
||||
SLikeNetPINVOKE.LogCommandParser_DestroyInstance(LogCommandParser.getCPtr(i));
|
||||
}
|
||||
|
||||
public LogCommandParser() : this(SLikeNetPINVOKE.new_LogCommandParser(), true) {
|
||||
}
|
||||
|
||||
public override bool OnCommand(string command, uint numParameters, string[] parameterList, TransportInterface transport, SystemAddress systemAddress, string originalString) {
|
||||
bool ret = SLikeNetPINVOKE.LogCommandParser_OnCommand(swigCPtr, command, numParameters, parameterList, TransportInterface.getCPtr(transport), SystemAddress.getCPtr(systemAddress), originalString);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override string GetName() {
|
||||
string ret = SLikeNetPINVOKE.LogCommandParser_GetName(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void SendHelp(TransportInterface transport, SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.LogCommandParser_SendHelp(swigCPtr, TransportInterface.getCPtr(transport), SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void AddChannel(string channelName) {
|
||||
SLikeNetPINVOKE.LogCommandParser_AddChannel(swigCPtr, channelName);
|
||||
}
|
||||
|
||||
public void WriteLog(string channelName, string format) {
|
||||
SLikeNetPINVOKE.LogCommandParser_WriteLog(swigCPtr, channelName, format);
|
||||
}
|
||||
|
||||
public override void OnNewIncomingConnection(SystemAddress systemAddress, TransportInterface transport) {
|
||||
SLikeNetPINVOKE.LogCommandParser_OnNewIncomingConnection(swigCPtr, SystemAddress.getCPtr(systemAddress), TransportInterface.getCPtr(transport));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public override void OnConnectionLost(SystemAddress systemAddress, TransportInterface transport) {
|
||||
SLikeNetPINVOKE.LogCommandParser_OnConnectionLost(swigCPtr, SystemAddress.getCPtr(systemAddress), TransportInterface.getCPtr(transport));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public override void OnTransportChange(TransportInterface transport) {
|
||||
SLikeNetPINVOKE.LogCommandParser_OnTransportChange(swigCPtr, TransportInterface.getCPtr(transport));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
108
bindings/csharp/interfaces/MessageFilter.cs
Normal file
108
bindings/csharp/interfaces/MessageFilter.cs
Normal file
@ -0,0 +1,108 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class MessageFilter : PluginInterface2 {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal MessageFilter(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.MessageFilter_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(MessageFilter obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~MessageFilter() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_MessageFilter(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public static MessageFilter GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.MessageFilter_GetInstance();
|
||||
MessageFilter ret = (cPtr == IntPtr.Zero) ? null : new MessageFilter(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(MessageFilter i) {
|
||||
SLikeNetPINVOKE.MessageFilter_DestroyInstance(MessageFilter.getCPtr(i));
|
||||
}
|
||||
|
||||
public MessageFilter() : this(SLikeNetPINVOKE.new_MessageFilter(), true) {
|
||||
}
|
||||
|
||||
public void SetAutoAddNewConnectionsToFilter(int filterSetID) {
|
||||
SLikeNetPINVOKE.MessageFilter_SetAutoAddNewConnectionsToFilter(swigCPtr, filterSetID);
|
||||
}
|
||||
|
||||
public void SetAllowMessageID(bool allow, int messageIDStart, int messageIDEnd, int filterSetID) {
|
||||
SLikeNetPINVOKE.MessageFilter_SetAllowMessageID(swigCPtr, allow, messageIDStart, messageIDEnd, filterSetID);
|
||||
}
|
||||
|
||||
public void SetAllowRPC4(bool allow, string uniqueID, int filterSetID) {
|
||||
SLikeNetPINVOKE.MessageFilter_SetAllowRPC4(swigCPtr, allow, uniqueID, filterSetID);
|
||||
}
|
||||
|
||||
public void SetActionOnDisallowedMessage(bool kickOnDisallowed, bool banOnDisallowed, uint banTimeMS, int filterSetID) {
|
||||
SLikeNetPINVOKE.MessageFilter_SetActionOnDisallowedMessage(swigCPtr, kickOnDisallowed, banOnDisallowed, banTimeMS, filterSetID);
|
||||
}
|
||||
|
||||
public void SetFilterMaxTime(int allowedTimeMS, bool banOnExceed, uint banTimeMS, int filterSetID) {
|
||||
SLikeNetPINVOKE.MessageFilter_SetFilterMaxTime(swigCPtr, allowedTimeMS, banOnExceed, banTimeMS, filterSetID);
|
||||
}
|
||||
|
||||
public int GetSystemFilterSet(AddressOrGUID addressOrGUID) {
|
||||
int ret = SLikeNetPINVOKE.MessageFilter_GetSystemFilterSet(swigCPtr, AddressOrGUID.getCPtr(addressOrGUID));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void SetSystemFilterSet(AddressOrGUID addressOrGUID, int filterSetID) {
|
||||
SLikeNetPINVOKE.MessageFilter_SetSystemFilterSet(swigCPtr, AddressOrGUID.getCPtr(addressOrGUID), filterSetID);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public uint GetSystemCount(int filterSetID) {
|
||||
uint ret = SLikeNetPINVOKE.MessageFilter_GetSystemCount(swigCPtr, filterSetID);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint GetFilterSetCount() {
|
||||
uint ret = SLikeNetPINVOKE.MessageFilter_GetFilterSetCount(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public int GetFilterSetIDByIndex(uint index) {
|
||||
int ret = SLikeNetPINVOKE.MessageFilter_GetFilterSetIDByIndex(swigCPtr, index);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void DeleteFilterSet(int filterSetID) {
|
||||
SLikeNetPINVOKE.MessageFilter_DeleteFilterSet(swigCPtr, filterSetID);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
19
bindings/csharp/interfaces/MultilistType.cs
Normal file
19
bindings/csharp/interfaces/MultilistType.cs
Normal file
@ -0,0 +1,19 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
public enum MultilistType {
|
||||
ML_UNORDERED_LIST,
|
||||
ML_STACK,
|
||||
ML_QUEUE,
|
||||
ML_ORDERED_LIST,
|
||||
ML_VARIABLE_DURING_RUNTIME
|
||||
}
|
||||
|
||||
}
|
||||
99
bindings/csharp/interfaces/NatPunchthroughClient.cs
Normal file
99
bindings/csharp/interfaces/NatPunchthroughClient.cs
Normal file
@ -0,0 +1,99 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class NatPunchthroughClient : PluginInterface2 {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal NatPunchthroughClient(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.NatPunchthroughClient_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(NatPunchthroughClient obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~NatPunchthroughClient() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_NatPunchthroughClient(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public static NatPunchthroughClient GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.NatPunchthroughClient_GetInstance();
|
||||
NatPunchthroughClient ret = (cPtr == IntPtr.Zero) ? null : new NatPunchthroughClient(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(NatPunchthroughClient i) {
|
||||
SLikeNetPINVOKE.NatPunchthroughClient_DestroyInstance(NatPunchthroughClient.getCPtr(i));
|
||||
}
|
||||
|
||||
public NatPunchthroughClient() : this(SLikeNetPINVOKE.new_NatPunchthroughClient(), true) {
|
||||
}
|
||||
|
||||
public void FindRouterPortStride(SystemAddress facilitator) {
|
||||
SLikeNetPINVOKE.NatPunchthroughClient_FindRouterPortStride(swigCPtr, SystemAddress.getCPtr(facilitator));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public bool OpenNAT(RakNetGUID destination, SystemAddress facilitator) {
|
||||
bool ret = SLikeNetPINVOKE.NatPunchthroughClient_OpenNAT(swigCPtr, RakNetGUID.getCPtr(destination), SystemAddress.getCPtr(facilitator));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public PunchthroughConfiguration GetPunchthroughConfiguration() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.NatPunchthroughClient_GetPunchthroughConfiguration(swigCPtr);
|
||||
PunchthroughConfiguration ret = (cPtr == IntPtr.Zero) ? null : new PunchthroughConfiguration(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void SetDebugInterface(NatPunchthroughDebugInterface i) {
|
||||
SLikeNetPINVOKE.NatPunchthroughClient_SetDebugInterface(swigCPtr, NatPunchthroughDebugInterface.getCPtr(i));
|
||||
}
|
||||
|
||||
public void GetUPNPPortMappings(string externalPort, string internalPort, SystemAddress natPunchthroughServerAddress) {
|
||||
SLikeNetPINVOKE.NatPunchthroughClient_GetUPNPPortMappings(swigCPtr, externalPort, internalPort, SystemAddress.getCPtr(natPunchthroughServerAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
SLikeNetPINVOKE.NatPunchthroughClient_Clear(swigCPtr);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_SLNet__NatPunchthroughClient__SendPing sp {
|
||||
set {
|
||||
SLikeNetPINVOKE.NatPunchthroughClient_sp_set(swigCPtr, SWIGTYPE_p_SLNet__NatPunchthroughClient__SendPing.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.NatPunchthroughClient_sp_get(swigCPtr);
|
||||
SWIGTYPE_p_SLNet__NatPunchthroughClient__SendPing ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_SLNet__NatPunchthroughClient__SendPing(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
75
bindings/csharp/interfaces/NatPunchthroughDebugInterface.cs
Normal file
75
bindings/csharp/interfaces/NatPunchthroughDebugInterface.cs
Normal file
@ -0,0 +1,75 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class NatPunchthroughDebugInterface : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal NatPunchthroughDebugInterface(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(NatPunchthroughDebugInterface obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~NatPunchthroughDebugInterface() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_NatPunchthroughDebugInterface(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public NatPunchthroughDebugInterface() : this(SLikeNetPINVOKE.new_NatPunchthroughDebugInterface(), true) {
|
||||
SwigDirectorConnect();
|
||||
}
|
||||
|
||||
public virtual void OnClientMessage(string msg) {
|
||||
SLikeNetPINVOKE.NatPunchthroughDebugInterface_OnClientMessage(swigCPtr, msg);
|
||||
}
|
||||
|
||||
private void SwigDirectorConnect() {
|
||||
if (SwigDerivedClassHasMethod("OnClientMessage", swigMethodTypes0))
|
||||
swigDelegate0 = new SwigDelegateNatPunchthroughDebugInterface_0(SwigDirectorOnClientMessage);
|
||||
SLikeNetPINVOKE.NatPunchthroughDebugInterface_director_connect(swigCPtr, swigDelegate0);
|
||||
}
|
||||
|
||||
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) {
|
||||
System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null);
|
||||
bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(NatPunchthroughDebugInterface));
|
||||
return hasDerivedMethod;
|
||||
}
|
||||
|
||||
private void SwigDirectorOnClientMessage(string msg) {
|
||||
OnClientMessage(msg);
|
||||
}
|
||||
|
||||
public delegate void SwigDelegateNatPunchthroughDebugInterface_0(string msg);
|
||||
|
||||
private SwigDelegateNatPunchthroughDebugInterface_0 swigDelegate0;
|
||||
|
||||
private static Type[] swigMethodTypes0 = new Type[] { typeof(string) };
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class NatPunchthroughDebugInterface_PacketLogger : NatPunchthroughDebugInterface {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal NatPunchthroughDebugInterface_PacketLogger(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.NatPunchthroughDebugInterface_PacketLogger_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(NatPunchthroughDebugInterface_PacketLogger obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~NatPunchthroughDebugInterface_PacketLogger() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_NatPunchthroughDebugInterface_PacketLogger(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public PacketLogger pl {
|
||||
set {
|
||||
SLikeNetPINVOKE.NatPunchthroughDebugInterface_PacketLogger_pl_set(swigCPtr, PacketLogger.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.NatPunchthroughDebugInterface_PacketLogger_pl_get(swigCPtr);
|
||||
PacketLogger ret = (cPtr == IntPtr.Zero) ? null : new PacketLogger(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public NatPunchthroughDebugInterface_PacketLogger() : this(SLikeNetPINVOKE.new_NatPunchthroughDebugInterface_PacketLogger(), true) {
|
||||
}
|
||||
|
||||
public override void OnClientMessage(string msg) {
|
||||
SLikeNetPINVOKE.NatPunchthroughDebugInterface_PacketLogger_OnClientMessage(swigCPtr, msg);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class NatPunchthroughDebugInterface_Printf : NatPunchthroughDebugInterface {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal NatPunchthroughDebugInterface_Printf(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.NatPunchthroughDebugInterface_Printf_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(NatPunchthroughDebugInterface_Printf obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~NatPunchthroughDebugInterface_Printf() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_NatPunchthroughDebugInterface_Printf(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnClientMessage(string msg) {
|
||||
SLikeNetPINVOKE.NatPunchthroughDebugInterface_Printf_OnClientMessage(swigCPtr, msg);
|
||||
}
|
||||
|
||||
public NatPunchthroughDebugInterface_Printf() : this(SLikeNetPINVOKE.new_NatPunchthroughDebugInterface_Printf(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
72
bindings/csharp/interfaces/NatPunchthroughServer.cs
Normal file
72
bindings/csharp/interfaces/NatPunchthroughServer.cs
Normal file
@ -0,0 +1,72 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class NatPunchthroughServer : PluginInterface2 {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal NatPunchthroughServer(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.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;
|
||||
SLikeNetPINVOKE.delete_NatPunchthroughServer(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public static NatPunchthroughServer GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.NatPunchthroughServer_GetInstance();
|
||||
NatPunchthroughServer ret = (cPtr == IntPtr.Zero) ? null : new NatPunchthroughServer(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(NatPunchthroughServer i) {
|
||||
SLikeNetPINVOKE.NatPunchthroughServer_DestroyInstance(NatPunchthroughServer.getCPtr(i));
|
||||
}
|
||||
|
||||
public NatPunchthroughServer() : this(SLikeNetPINVOKE.new_NatPunchthroughServer(), true) {
|
||||
}
|
||||
|
||||
public void SetDebugInterface(NatPunchthroughServerDebugInterface i) {
|
||||
SLikeNetPINVOKE.NatPunchthroughServer_SetDebugInterface(swigCPtr, NatPunchthroughServerDebugInterface.getCPtr(i));
|
||||
}
|
||||
|
||||
public ulong lastUpdate {
|
||||
set {
|
||||
SLikeNetPINVOKE.NatPunchthroughServer_lastUpdate_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
ulong ret = SLikeNetPINVOKE.NatPunchthroughServer_lastUpdate_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class NatPunchthroughServerDebugInterface : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal NatPunchthroughServerDebugInterface(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(NatPunchthroughServerDebugInterface obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~NatPunchthroughServerDebugInterface() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_NatPunchthroughServerDebugInterface(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void OnServerMessage(string msg) {
|
||||
SLikeNetPINVOKE.NatPunchthroughServerDebugInterface_OnServerMessage(swigCPtr, msg);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class NatPunchthroughServerDebugInterface_PacketLogger : NatPunchthroughServerDebugInterface {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal NatPunchthroughServerDebugInterface_PacketLogger(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.NatPunchthroughServerDebugInterface_PacketLogger_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(NatPunchthroughServerDebugInterface_PacketLogger obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~NatPunchthroughServerDebugInterface_PacketLogger() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_NatPunchthroughServerDebugInterface_PacketLogger(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public PacketLogger pl {
|
||||
set {
|
||||
SLikeNetPINVOKE.NatPunchthroughServerDebugInterface_PacketLogger_pl_set(swigCPtr, PacketLogger.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.NatPunchthroughServerDebugInterface_PacketLogger_pl_get(swigCPtr);
|
||||
PacketLogger ret = (cPtr == IntPtr.Zero) ? null : new PacketLogger(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public NatPunchthroughServerDebugInterface_PacketLogger() : this(SLikeNetPINVOKE.new_NatPunchthroughServerDebugInterface_PacketLogger(), true) {
|
||||
}
|
||||
|
||||
public override void OnServerMessage(string msg) {
|
||||
SLikeNetPINVOKE.NatPunchthroughServerDebugInterface_PacketLogger_OnServerMessage(swigCPtr, msg);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class NatPunchthroughServerDebugInterface_Printf : NatPunchthroughServerDebugInterface {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal NatPunchthroughServerDebugInterface_Printf(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.NatPunchthroughServerDebugInterface_Printf_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(NatPunchthroughServerDebugInterface_Printf obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~NatPunchthroughServerDebugInterface_Printf() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_NatPunchthroughServerDebugInterface_Printf(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnServerMessage(string msg) {
|
||||
SLikeNetPINVOKE.NatPunchthroughServerDebugInterface_Printf_OnServerMessage(swigCPtr, msg);
|
||||
}
|
||||
|
||||
public NatPunchthroughServerDebugInterface_Printf() : this(SLikeNetPINVOKE.new_NatPunchthroughServerDebugInterface_Printf(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
77
bindings/csharp/interfaces/NatTypeDetectionClient.cs
Normal file
77
bindings/csharp/interfaces/NatTypeDetectionClient.cs
Normal file
@ -0,0 +1,77 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class NatTypeDetectionClient : PluginInterface2 {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal NatTypeDetectionClient(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.NatTypeDetectionClient_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(NatTypeDetectionClient obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~NatTypeDetectionClient() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_NatTypeDetectionClient(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public static NatTypeDetectionClient GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.NatTypeDetectionClient_GetInstance();
|
||||
NatTypeDetectionClient ret = (cPtr == IntPtr.Zero) ? null : new NatTypeDetectionClient(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(NatTypeDetectionClient i) {
|
||||
SLikeNetPINVOKE.NatTypeDetectionClient_DestroyInstance(NatTypeDetectionClient.getCPtr(i));
|
||||
}
|
||||
|
||||
public NatTypeDetectionClient() : this(SLikeNetPINVOKE.new_NatTypeDetectionClient(), true) {
|
||||
}
|
||||
|
||||
public void DetectNATType(SystemAddress _serverAddress) {
|
||||
SLikeNetPINVOKE.NatTypeDetectionClient_DetectNATType(swigCPtr, SystemAddress.getCPtr(_serverAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void OnRNS2Recv(SWIGTYPE_p_RNS2RecvStruct recvStruct) {
|
||||
SLikeNetPINVOKE.NatTypeDetectionClient_OnRNS2Recv(swigCPtr, SWIGTYPE_p_RNS2RecvStruct.getCPtr(recvStruct));
|
||||
}
|
||||
|
||||
public virtual void DeallocRNS2RecvStruct(SWIGTYPE_p_RNS2RecvStruct s, string file, uint line) {
|
||||
SLikeNetPINVOKE.NatTypeDetectionClient_DeallocRNS2RecvStruct(swigCPtr, SWIGTYPE_p_RNS2RecvStruct.getCPtr(s), file, line);
|
||||
}
|
||||
|
||||
public virtual SWIGTYPE_p_RNS2RecvStruct AllocRNS2RecvStruct(string file, uint line) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.NatTypeDetectionClient_AllocRNS2RecvStruct(swigCPtr, file, line);
|
||||
SWIGTYPE_p_RNS2RecvStruct ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_RNS2RecvStruct(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
93
bindings/csharp/interfaces/NatTypeDetectionServer.cs
Normal file
93
bindings/csharp/interfaces/NatTypeDetectionServer.cs
Normal file
@ -0,0 +1,93 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class NatTypeDetectionServer : PluginInterface2 {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal NatTypeDetectionServer(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.NatTypeDetectionServer_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(NatTypeDetectionServer obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~NatTypeDetectionServer() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_NatTypeDetectionServer(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public static NatTypeDetectionServer GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.NatTypeDetectionServer_GetInstance();
|
||||
NatTypeDetectionServer ret = (cPtr == IntPtr.Zero) ? null : new NatTypeDetectionServer(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(NatTypeDetectionServer i) {
|
||||
SLikeNetPINVOKE.NatTypeDetectionServer_DestroyInstance(NatTypeDetectionServer.getCPtr(i));
|
||||
}
|
||||
|
||||
public NatTypeDetectionServer() : this(SLikeNetPINVOKE.new_NatTypeDetectionServer(), true) {
|
||||
}
|
||||
|
||||
public void Startup(string nonRakNetIP2, string nonRakNetIP3, string nonRakNetIP4) {
|
||||
SLikeNetPINVOKE.NatTypeDetectionServer_Startup(swigCPtr, nonRakNetIP2, nonRakNetIP3, nonRakNetIP4);
|
||||
}
|
||||
|
||||
public void Shutdown() {
|
||||
SLikeNetPINVOKE.NatTypeDetectionServer_Shutdown(swigCPtr);
|
||||
}
|
||||
|
||||
public virtual void OnRNS2Recv(SWIGTYPE_p_RNS2RecvStruct recvStruct) {
|
||||
SLikeNetPINVOKE.NatTypeDetectionServer_OnRNS2Recv(swigCPtr, SWIGTYPE_p_RNS2RecvStruct.getCPtr(recvStruct));
|
||||
}
|
||||
|
||||
public virtual void DeallocRNS2RecvStruct(SWIGTYPE_p_RNS2RecvStruct s, string file, uint line) {
|
||||
SLikeNetPINVOKE.NatTypeDetectionServer_DeallocRNS2RecvStruct(swigCPtr, SWIGTYPE_p_RNS2RecvStruct.getCPtr(s), file, line);
|
||||
}
|
||||
|
||||
public virtual SWIGTYPE_p_RNS2RecvStruct AllocRNS2RecvStruct(string file, uint line) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.NatTypeDetectionServer_AllocRNS2RecvStruct(swigCPtr, file, line);
|
||||
SWIGTYPE_p_RNS2RecvStruct ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_RNS2RecvStruct(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public enum NATDetectionState {
|
||||
STATE_NONE,
|
||||
STATE_TESTING_NONE_1,
|
||||
STATE_TESTING_NONE_2,
|
||||
STATE_TESTING_FULL_CONE_1,
|
||||
STATE_TESTING_FULL_CONE_2,
|
||||
STATE_TESTING_ADDRESS_RESTRICTED_1,
|
||||
STATE_TESTING_ADDRESS_RESTRICTED_2,
|
||||
STATE_TESTING_PORT_RESTRICTED_1,
|
||||
STATE_TESTING_PORT_RESTRICTED_2,
|
||||
STATE_DONE
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
78
bindings/csharp/interfaces/NetworkIDManager.cs
Normal file
78
bindings/csharp/interfaces/NetworkIDManager.cs
Normal file
@ -0,0 +1,78 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class NetworkIDManager : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal NetworkIDManager(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(NetworkIDManager obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~NetworkIDManager() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_NetworkIDManager(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public Dictionary<IntPtr, NetworkIDObject> pointerDictionary = new Dictionary<IntPtr, NetworkIDObject>();
|
||||
|
||||
public NetworkIDObject GET_BASE_OBJECT_FROM_ID(ulong x)
|
||||
{
|
||||
return pointerDictionary[GET_BASE_OBJECT_FROM_IDORIG(x).GetIntPtr()];
|
||||
}
|
||||
|
||||
|
||||
public static NetworkIDManager GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.NetworkIDManager_GetInstance();
|
||||
NetworkIDManager ret = (cPtr == IntPtr.Zero) ? null : new NetworkIDManager(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(NetworkIDManager i) {
|
||||
SLikeNetPINVOKE.NetworkIDManager_DestroyInstance(NetworkIDManager.getCPtr(i));
|
||||
}
|
||||
|
||||
public NetworkIDManager() : this(SLikeNetPINVOKE.new_NetworkIDManager(), true) {
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
SLikeNetPINVOKE.NetworkIDManager_Clear(swigCPtr);
|
||||
}
|
||||
|
||||
protected NetworkIDObject GET_BASE_OBJECT_FROM_IDORIG(ulong x) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.NetworkIDManager_GET_BASE_OBJECT_FROM_IDORIG(swigCPtr, x);
|
||||
NetworkIDObject ret = (cPtr == IntPtr.Zero) ? null : new NetworkIDObject(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
137
bindings/csharp/interfaces/NetworkIDObject.cs
Normal file
137
bindings/csharp/interfaces/NetworkIDObject.cs
Normal file
@ -0,0 +1,137 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class NetworkIDObject : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal NetworkIDObject(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(NetworkIDObject obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~NetworkIDObject() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_NetworkIDObject(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
NetworkIDManager oldManager;
|
||||
public virtual void SetNetworkIDManager(NetworkIDManager manager)
|
||||
{
|
||||
if (oldManager != null)
|
||||
{
|
||||
oldManager.pointerDictionary.Remove(GetIntPtr());
|
||||
}
|
||||
if (manager != null)
|
||||
{
|
||||
manager.pointerDictionary.Add(GetIntPtr(), this);
|
||||
oldManager = manager;
|
||||
}
|
||||
SetNetworkIDManagerOrig(manager);
|
||||
}
|
||||
|
||||
public IntPtr GetIntPtr()
|
||||
{
|
||||
return swigCPtr.Handle;
|
||||
}
|
||||
|
||||
public NetworkIDObject() : this(SLikeNetPINVOKE.new_NetworkIDObject(), true) {
|
||||
SwigDirectorConnect();
|
||||
}
|
||||
|
||||
protected void SetNetworkIDManagerOrig(NetworkIDManager manager) {
|
||||
if (SwigDerivedClassHasMethod("SetNetworkIDManagerOrig", swigMethodTypes0)) SLikeNetPINVOKE.NetworkIDObject_SetNetworkIDManagerOrigSwigExplicitNetworkIDObject(swigCPtr, NetworkIDManager.getCPtr(manager)); else SLikeNetPINVOKE.NetworkIDObject_SetNetworkIDManagerOrig(swigCPtr, NetworkIDManager.getCPtr(manager));
|
||||
}
|
||||
|
||||
public virtual NetworkIDManager GetNetworkIDManager() {
|
||||
IntPtr cPtr = (SwigDerivedClassHasMethod("GetNetworkIDManager", swigMethodTypes1) ? SLikeNetPINVOKE.NetworkIDObject_GetNetworkIDManagerSwigExplicitNetworkIDObject(swigCPtr) : SLikeNetPINVOKE.NetworkIDObject_GetNetworkIDManager(swigCPtr));
|
||||
NetworkIDManager ret = (cPtr == IntPtr.Zero) ? null : new NetworkIDManager(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual ulong GetNetworkID() {
|
||||
ulong ret = (SwigDerivedClassHasMethod("GetNetworkID", swigMethodTypes2) ? SLikeNetPINVOKE.NetworkIDObject_GetNetworkIDSwigExplicitNetworkIDObject(swigCPtr) : SLikeNetPINVOKE.NetworkIDObject_GetNetworkID(swigCPtr));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void SetNetworkID(ulong id) {
|
||||
if (SwigDerivedClassHasMethod("SetNetworkID", swigMethodTypes3)) SLikeNetPINVOKE.NetworkIDObject_SetNetworkIDSwigExplicitNetworkIDObject(swigCPtr, id); else SLikeNetPINVOKE.NetworkIDObject_SetNetworkID(swigCPtr, id);
|
||||
}
|
||||
|
||||
private void SwigDirectorConnect() {
|
||||
if (SwigDerivedClassHasMethod("SetNetworkIDManagerOrig", swigMethodTypes0))
|
||||
swigDelegate0 = new SwigDelegateNetworkIDObject_0(SwigDirectorSetNetworkIDManagerOrig);
|
||||
if (SwigDerivedClassHasMethod("GetNetworkIDManager", swigMethodTypes1))
|
||||
swigDelegate1 = new SwigDelegateNetworkIDObject_1(SwigDirectorGetNetworkIDManager);
|
||||
if (SwigDerivedClassHasMethod("GetNetworkID", swigMethodTypes2))
|
||||
swigDelegate2 = new SwigDelegateNetworkIDObject_2(SwigDirectorGetNetworkID);
|
||||
if (SwigDerivedClassHasMethod("SetNetworkID", swigMethodTypes3))
|
||||
swigDelegate3 = new SwigDelegateNetworkIDObject_3(SwigDirectorSetNetworkID);
|
||||
SLikeNetPINVOKE.NetworkIDObject_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3);
|
||||
}
|
||||
|
||||
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) {
|
||||
System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null);
|
||||
bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(NetworkIDObject));
|
||||
return hasDerivedMethod;
|
||||
}
|
||||
|
||||
private void SwigDirectorSetNetworkIDManagerOrig(IntPtr manager) {
|
||||
SetNetworkIDManagerOrig((manager == IntPtr.Zero) ? null : new NetworkIDManager(manager, false));
|
||||
}
|
||||
|
||||
private IntPtr SwigDirectorGetNetworkIDManager() {
|
||||
return NetworkIDManager.getCPtr(GetNetworkIDManager()).Handle;
|
||||
}
|
||||
|
||||
private ulong SwigDirectorGetNetworkID() {
|
||||
return GetNetworkID();
|
||||
}
|
||||
|
||||
private void SwigDirectorSetNetworkID(ulong id) {
|
||||
SetNetworkID(id);
|
||||
}
|
||||
|
||||
public delegate void SwigDelegateNetworkIDObject_0(IntPtr manager);
|
||||
public delegate IntPtr SwigDelegateNetworkIDObject_1();
|
||||
public delegate ulong SwigDelegateNetworkIDObject_2();
|
||||
public delegate void SwigDelegateNetworkIDObject_3(ulong id);
|
||||
|
||||
private SwigDelegateNetworkIDObject_0 swigDelegate0;
|
||||
private SwigDelegateNetworkIDObject_1 swigDelegate1;
|
||||
private SwigDelegateNetworkIDObject_2 swigDelegate2;
|
||||
private SwigDelegateNetworkIDObject_3 swigDelegate3;
|
||||
|
||||
private static Type[] swigMethodTypes0 = new Type[] { typeof(NetworkIDManager) };
|
||||
private static Type[] swigMethodTypes1 = new Type[] { };
|
||||
private static Type[] swigMethodTypes2 = new Type[] { };
|
||||
private static Type[] swigMethodTypes3 = new Type[] { typeof(ulong) };
|
||||
}
|
||||
|
||||
}
|
||||
202
bindings/csharp/interfaces/OnFileStruct.cs
Normal file
202
bindings/csharp/interfaces/OnFileStruct.cs
Normal file
@ -0,0 +1,202 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class OnFileStruct : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal OnFileStruct(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(OnFileStruct obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~OnFileStruct() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_OnFileStruct(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
private bool fileDataIsCached = false;
|
||||
private byte[] fileDataCache;
|
||||
|
||||
public uint fileIndex {
|
||||
set {
|
||||
SLikeNetPINVOKE.OnFileStruct_fileIndex_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.OnFileStruct_fileIndex_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public string fileName {
|
||||
set {
|
||||
SLikeNetPINVOKE.OnFileStruct_fileName_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
string ret = SLikeNetPINVOKE.OnFileStruct_fileName_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] fileData {
|
||||
set
|
||||
{
|
||||
fileDataCache=value;
|
||||
fileDataIsCached = true;
|
||||
SetFileData (value, value.Length);
|
||||
}
|
||||
get
|
||||
{
|
||||
byte[] returnArray;
|
||||
if (!fileDataIsCached)
|
||||
{
|
||||
IntPtr cPtr = SLikeNetPINVOKE.OnFileStruct_fileData_get (swigCPtr);
|
||||
int len = (int) byteLengthOfThisFile;
|
||||
if (len<=0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
returnArray = new byte[len];
|
||||
byte[] marshalArray = new byte[len];
|
||||
Marshal.Copy(cPtr, marshalArray, 0, len);
|
||||
marshalArray.CopyTo(returnArray, 0);
|
||||
fileDataCache = returnArray;
|
||||
fileDataIsCached = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
returnArray = fileDataCache;
|
||||
}
|
||||
return returnArray;
|
||||
}
|
||||
}
|
||||
|
||||
public uint byteLengthOfThisFile {
|
||||
set {
|
||||
SLikeNetPINVOKE.OnFileStruct_byteLengthOfThisFile_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.OnFileStruct_byteLengthOfThisFile_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint bytesDownloadedForThisFile {
|
||||
set {
|
||||
SLikeNetPINVOKE.OnFileStruct_bytesDownloadedForThisFile_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.OnFileStruct_bytesDownloadedForThisFile_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public ushort setID {
|
||||
set {
|
||||
SLikeNetPINVOKE.OnFileStruct_setID_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
ushort ret = SLikeNetPINVOKE.OnFileStruct_setID_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint numberOfFilesInThisSet {
|
||||
set {
|
||||
SLikeNetPINVOKE.OnFileStruct_numberOfFilesInThisSet_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.OnFileStruct_numberOfFilesInThisSet_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint byteLengthOfThisSet {
|
||||
set {
|
||||
SLikeNetPINVOKE.OnFileStruct_byteLengthOfThisSet_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.OnFileStruct_byteLengthOfThisSet_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint bytesDownloadedForThisSet {
|
||||
set {
|
||||
SLikeNetPINVOKE.OnFileStruct_bytesDownloadedForThisSet_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.OnFileStruct_bytesDownloadedForThisSet_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public FileListNodeContext context {
|
||||
set {
|
||||
SLikeNetPINVOKE.OnFileStruct_context_set(swigCPtr, FileListNodeContext.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.OnFileStruct_context_get(swigCPtr);
|
||||
FileListNodeContext ret = (cPtr == IntPtr.Zero) ? null : new FileListNodeContext(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public SystemAddress senderSystemAddress {
|
||||
set {
|
||||
SLikeNetPINVOKE.OnFileStruct_senderSystemAddress_set(swigCPtr, SystemAddress.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.OnFileStruct_senderSystemAddress_get(swigCPtr);
|
||||
SystemAddress ret = (cPtr == IntPtr.Zero) ? null : new SystemAddress(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public RakNetGUID senderGuid {
|
||||
set {
|
||||
SLikeNetPINVOKE.OnFileStruct_senderGuid_set(swigCPtr, RakNetGUID.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.OnFileStruct_senderGuid_get(swigCPtr);
|
||||
RakNetGUID ret = (cPtr == IntPtr.Zero) ? null : new RakNetGUID(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public OnFileStruct() : this(SLikeNetPINVOKE.new_OnFileStruct(), true) {
|
||||
}
|
||||
|
||||
private void SetFileData(byte[] inByteArray, int numBytes) {
|
||||
SLikeNetPINVOKE.OnFileStruct_SetFileData(swigCPtr, inByteArray, numBytes);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
26
bindings/csharp/interfaces/OutOfBandIdentifiers.cs
Normal file
26
bindings/csharp/interfaces/OutOfBandIdentifiers.cs
Normal file
@ -0,0 +1,26 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
public enum OutOfBandIdentifiers {
|
||||
ID_NAT_ESTABLISH_UNIDIRECTIONAL,
|
||||
ID_NAT_ESTABLISH_BIDIRECTIONAL,
|
||||
ID_NAT_TYPE_DETECT,
|
||||
ID_ROUTER_2_REPLY_TO_SENDER_PORT,
|
||||
ID_ROUTER_2_REPLY_TO_SPECIFIED_PORT,
|
||||
ID_ROUTER_2_MINI_PUNCH_REPLY,
|
||||
ID_ROUTER_2_MINI_PUNCH_REPLY_BOUNCE,
|
||||
ID_XBOX_360_VOICE,
|
||||
ID_XBOX_360_GET_NETWORK_ROOM,
|
||||
ID_XBOX_360_RETURN_NETWORK_ROOM,
|
||||
ID_NAT_PING,
|
||||
ID_NAT_PONG
|
||||
}
|
||||
|
||||
}
|
||||
161
bindings/csharp/interfaces/Packet.cs
Normal file
161
bindings/csharp/interfaces/Packet.cs
Normal file
@ -0,0 +1,161 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class Packet : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal Packet(IntPtr cPtr, bool cMemoryOwn)
|
||||
{
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(Packet obj)
|
||||
{
|
||||
if (obj != null)
|
||||
{
|
||||
if (obj.dataIsCached)
|
||||
{
|
||||
obj.SetPacketData(obj.data, obj.data.Length); //If an individual index was modified we need to copy the data before passing to C++
|
||||
}
|
||||
obj.dataIsCached=false;
|
||||
}
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~Packet() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_Packet(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
private bool dataIsCached = false;
|
||||
private byte[] dataCache;
|
||||
|
||||
public SystemAddress systemAddress {
|
||||
set {
|
||||
SLikeNetPINVOKE.Packet_systemAddress_set(swigCPtr, SystemAddress.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.Packet_systemAddress_get(swigCPtr);
|
||||
SystemAddress ret = (cPtr == IntPtr.Zero) ? null : new SystemAddress(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public RakNetGUID guid {
|
||||
set {
|
||||
SLikeNetPINVOKE.Packet_guid_set(swigCPtr, RakNetGUID.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.Packet_guid_get(swigCPtr);
|
||||
RakNetGUID ret = (cPtr == IntPtr.Zero) ? null : new RakNetGUID(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint length {
|
||||
set {
|
||||
SLikeNetPINVOKE.Packet_length_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.Packet_length_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint bitSize {
|
||||
set {
|
||||
SLikeNetPINVOKE.Packet_bitSize_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.Packet_bitSize_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] data {
|
||||
set
|
||||
{
|
||||
dataCache=value;
|
||||
dataIsCached = true;
|
||||
SetPacketData (value, value.Length);
|
||||
|
||||
|
||||
}
|
||||
get
|
||||
{
|
||||
byte[] returnBytes;
|
||||
if (!dataIsCached)
|
||||
{
|
||||
IntPtr cPtr = SLikeNetPINVOKE.Packet_data_get (swigCPtr);
|
||||
int len = (int)((Packet)swigCPtr.Wrapper).length;
|
||||
if (len<=0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
returnBytes = new byte[len];
|
||||
Marshal.Copy(cPtr, returnBytes, 0, len);
|
||||
dataCache = returnBytes;
|
||||
dataIsCached = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
returnBytes = dataCache;
|
||||
}
|
||||
return returnBytes;
|
||||
}
|
||||
}
|
||||
|
||||
public bool deleteData {
|
||||
set {
|
||||
SLikeNetPINVOKE.Packet_deleteData_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
bool ret = SLikeNetPINVOKE.Packet_deleteData_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public bool wasGeneratedLocally {
|
||||
set {
|
||||
SLikeNetPINVOKE.Packet_wasGeneratedLocally_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
bool ret = SLikeNetPINVOKE.Packet_wasGeneratedLocally_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public Packet() : this(SLikeNetPINVOKE.new_Packet(), true) {
|
||||
}
|
||||
|
||||
public void SetPacketData(byte[] inByteArray, int numBytes) {
|
||||
SLikeNetPINVOKE.Packet_SetPacketData(swigCPtr, inByteArray, numBytes);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
56
bindings/csharp/interfaces/PacketConsoleLogger.cs
Normal file
56
bindings/csharp/interfaces/PacketConsoleLogger.cs
Normal file
@ -0,0 +1,56 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class PacketConsoleLogger : PacketLogger {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal PacketConsoleLogger(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.PacketConsoleLogger_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(PacketConsoleLogger obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~PacketConsoleLogger() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_PacketConsoleLogger(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public PacketConsoleLogger() : this(SLikeNetPINVOKE.new_PacketConsoleLogger(), true) {
|
||||
}
|
||||
|
||||
public virtual void SetLogCommandParser(LogCommandParser lcp) {
|
||||
SLikeNetPINVOKE.PacketConsoleLogger_SetLogCommandParser(swigCPtr, LogCommandParser.getCPtr(lcp));
|
||||
}
|
||||
|
||||
public override void WriteLog(string str) {
|
||||
SLikeNetPINVOKE.PacketConsoleLogger_WriteLog(swigCPtr, str);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
66
bindings/csharp/interfaces/PacketFileLogger.cs
Normal file
66
bindings/csharp/interfaces/PacketFileLogger.cs
Normal file
@ -0,0 +1,66 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class PacketFileLogger : PacketLogger {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal PacketFileLogger(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.PacketFileLogger_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(PacketFileLogger obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~PacketFileLogger() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_PacketFileLogger(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public new static PacketFileLogger GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.PacketFileLogger_GetInstance();
|
||||
PacketFileLogger ret = (cPtr == IntPtr.Zero) ? null : new PacketFileLogger(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(PacketFileLogger i) {
|
||||
SLikeNetPINVOKE.PacketFileLogger_DestroyInstance(PacketFileLogger.getCPtr(i));
|
||||
}
|
||||
|
||||
public PacketFileLogger() : this(SLikeNetPINVOKE.new_PacketFileLogger(), true) {
|
||||
}
|
||||
|
||||
public void StartLog(string filenamePrefix) {
|
||||
SLikeNetPINVOKE.PacketFileLogger_StartLog(swigCPtr, filenamePrefix);
|
||||
}
|
||||
|
||||
public override void WriteLog(string str) {
|
||||
SLikeNetPINVOKE.PacketFileLogger_WriteLog(swigCPtr, str);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
120
bindings/csharp/interfaces/PacketLogger.cs
Normal file
120
bindings/csharp/interfaces/PacketLogger.cs
Normal file
@ -0,0 +1,120 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class PacketLogger : PluginInterface2 {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal PacketLogger(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.PacketLogger_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(PacketLogger obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~PacketLogger() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_PacketLogger(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void FormatLine(ref string preInitializedStringBigEnoughToFitResult, string dir, string type, uint packet, uint frame, byte messageIdentifier, uint bitLen, ulong time, SystemAddress local, SystemAddress remote, uint splitPacketId, uint splitPacketIndex, uint splitPacketCount, uint orderingIndex) {
|
||||
preInitializedStringBigEnoughToFitResult=FormatLineHelper( preInitializedStringBigEnoughToFitResult, dir, type, packet, frame, messageIdentifier, bitLen, time, local, remote, splitPacketId, splitPacketIndex, splitPacketCount, orderingIndex);
|
||||
}
|
||||
|
||||
public virtual void FormatLine(ref string preInitializedStringBigEnoughToFitResult, string dir, string type, uint packet, uint frame, string idToPrint, uint bitLen, ulong time, SystemAddress local, SystemAddress remote, uint splitPacketId, uint splitPacketIndex, uint splitPacketCount, uint orderingIndex) {
|
||||
preInitializedStringBigEnoughToFitResult=FormatLineHelper( preInitializedStringBigEnoughToFitResult, dir, type, packet, frame, idToPrint, bitLen, time, local, remote, splitPacketId, splitPacketIndex, splitPacketCount, orderingIndex);
|
||||
}
|
||||
|
||||
public static PacketLogger GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.PacketLogger_GetInstance();
|
||||
PacketLogger ret = (cPtr == IntPtr.Zero) ? null : new PacketLogger(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(PacketLogger i) {
|
||||
SLikeNetPINVOKE.PacketLogger_DestroyInstance(PacketLogger.getCPtr(i));
|
||||
}
|
||||
|
||||
public PacketLogger() : this(SLikeNetPINVOKE.new_PacketLogger(), true) {
|
||||
}
|
||||
|
||||
public override void OnReliabilityLayerNotification(string errorMessage, uint bitsUsed, SystemAddress remoteSystemAddress, bool isError) {
|
||||
SLikeNetPINVOKE.PacketLogger_OnReliabilityLayerNotification(swigCPtr, errorMessage, bitsUsed, SystemAddress.getCPtr(remoteSystemAddress), isError);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void LogHeader() {
|
||||
SLikeNetPINVOKE.PacketLogger_LogHeader(swigCPtr);
|
||||
}
|
||||
|
||||
public virtual void WriteLog(string str) {
|
||||
SLikeNetPINVOKE.PacketLogger_WriteLog(swigCPtr, str);
|
||||
}
|
||||
|
||||
public virtual void WriteMiscellaneous(string type, string msg) {
|
||||
SLikeNetPINVOKE.PacketLogger_WriteMiscellaneous(swigCPtr, type, msg);
|
||||
}
|
||||
|
||||
public virtual void SetPrintID(bool print) {
|
||||
SLikeNetPINVOKE.PacketLogger_SetPrintID(swigCPtr, print);
|
||||
}
|
||||
|
||||
public virtual void SetPrintAcks(bool print) {
|
||||
SLikeNetPINVOKE.PacketLogger_SetPrintAcks(swigCPtr, print);
|
||||
}
|
||||
|
||||
public virtual void SetPrefix(string _prefix) {
|
||||
SLikeNetPINVOKE.PacketLogger_SetPrefix(swigCPtr, _prefix);
|
||||
}
|
||||
|
||||
public virtual void SetSuffix(string _suffix) {
|
||||
SLikeNetPINVOKE.PacketLogger_SetSuffix(swigCPtr, _suffix);
|
||||
}
|
||||
|
||||
public static string BaseIDTOString(byte Id) {
|
||||
string ret = SLikeNetPINVOKE.PacketLogger_BaseIDTOString(Id);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void SetLogDirectMessages(bool send) {
|
||||
SLikeNetPINVOKE.PacketLogger_SetLogDirectMessages(swigCPtr, send);
|
||||
}
|
||||
|
||||
private string FormatLineHelper(string into, string dir, string type, uint packet, uint frame, byte messageIdentifier, uint bitLen, ulong time, SystemAddress local, SystemAddress remote, uint splitPacketId, uint splitPacketIndex, uint splitPacketCount, uint orderingIndex) {
|
||||
string ret = SLikeNetPINVOKE.PacketLogger_FormatLineHelper__SWIG_0(swigCPtr, into, dir, type, packet, frame, messageIdentifier, bitLen, time, SystemAddress.getCPtr(local), SystemAddress.getCPtr(remote), splitPacketId, splitPacketIndex, splitPacketCount, orderingIndex);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private string FormatLineHelper(string into, string dir, string type, uint packet, uint frame, string idToPrint, uint bitLen, ulong time, SystemAddress local, SystemAddress remote, uint splitPacketId, uint splitPacketIndex, uint splitPacketCount, uint orderingIndex) {
|
||||
string ret = SLikeNetPINVOKE.PacketLogger_FormatLineHelper__SWIG_1(swigCPtr, into, dir, type, packet, frame, idToPrint, bitLen, time, SystemAddress.getCPtr(local), SystemAddress.getCPtr(remote), splitPacketId, splitPacketIndex, splitPacketCount, orderingIndex);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
19
bindings/csharp/interfaces/PacketPriority.cs
Normal file
19
bindings/csharp/interfaces/PacketPriority.cs
Normal file
@ -0,0 +1,19 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
public enum PacketPriority {
|
||||
IMMEDIATE_PRIORITY,
|
||||
HIGH_PRIORITY,
|
||||
MEDIUM_PRIORITY,
|
||||
LOW_PRIORITY,
|
||||
NUMBER_OF_PRIORITIES
|
||||
}
|
||||
|
||||
}
|
||||
23
bindings/csharp/interfaces/PacketReliability.cs
Normal file
23
bindings/csharp/interfaces/PacketReliability.cs
Normal file
@ -0,0 +1,23 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
public enum PacketReliability {
|
||||
UNRELIABLE,
|
||||
UNRELIABLE_SEQUENCED,
|
||||
RELIABLE,
|
||||
RELIABLE_ORDERED,
|
||||
RELIABLE_SEQUENCED,
|
||||
UNRELIABLE_WITH_ACK_RECEIPT,
|
||||
RELIABLE_WITH_ACK_RECEIPT,
|
||||
RELIABLE_ORDERED_WITH_ACK_RECEIPT,
|
||||
NUMBER_OF_RELIABILITIES
|
||||
}
|
||||
|
||||
}
|
||||
74
bindings/csharp/interfaces/PluginInterface2.cs
Normal file
74
bindings/csharp/interfaces/PluginInterface2.cs
Normal file
@ -0,0 +1,74 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class PluginInterface2 : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal PluginInterface2(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(PluginInterface2 obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~PluginInterface2() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_PluginInterface2(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public PluginInterface2() : this(SLikeNetPINVOKE.new_PluginInterface2(), true) {
|
||||
}
|
||||
|
||||
public virtual bool UsesReliabilityLayer() {
|
||||
bool ret = SLikeNetPINVOKE.PluginInterface2_UsesReliabilityLayer(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void OnReliabilityLayerNotification(string errorMessage, uint bitsUsed, SystemAddress remoteSystemAddress, bool isError) {
|
||||
SLikeNetPINVOKE.PluginInterface2_OnReliabilityLayerNotification(swigCPtr, errorMessage, bitsUsed, SystemAddress.getCPtr(remoteSystemAddress), isError);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakPeerInterface GetRakPeerInterface() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.PluginInterface2_GetRakPeerInterface(swigCPtr);
|
||||
RakPeerInterface ret = (cPtr == IntPtr.Zero) ? null : new RakPeerInterface(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakNetGUID GetMyGUIDUnified() {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.PluginInterface2_GetMyGUIDUnified(swigCPtr), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void SetTCPInterface(SWIGTYPE_p_SLNet__TCPInterface ptr) {
|
||||
SLikeNetPINVOKE.PluginInterface2_SetTCPInterface(swigCPtr, SWIGTYPE_p_SLNet__TCPInterface.getCPtr(ptr));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
17
bindings/csharp/interfaces/PluginReceiveResult.cs
Normal file
17
bindings/csharp/interfaces/PluginReceiveResult.cs
Normal file
@ -0,0 +1,17 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
public enum PluginReceiveResult {
|
||||
RR_STOP_PROCESSING_AND_DEALLOCATE = 0,
|
||||
RR_CONTINUE_PROCESSING,
|
||||
RR_STOP_PROCESSING
|
||||
}
|
||||
|
||||
}
|
||||
89
bindings/csharp/interfaces/PublicKey.cs
Normal file
89
bindings/csharp/interfaces/PublicKey.cs
Normal file
@ -0,0 +1,89 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class PublicKey : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal PublicKey(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(PublicKey obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~PublicKey() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_PublicKey(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public PublicKeyMode publicKeyMode {
|
||||
set {
|
||||
SLikeNetPINVOKE.PublicKey_publicKeyMode_set(swigCPtr, (int)value);
|
||||
}
|
||||
get {
|
||||
PublicKeyMode ret = (PublicKeyMode)SLikeNetPINVOKE.PublicKey_publicKeyMode_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public string remoteServerPublicKey {
|
||||
set {
|
||||
SLikeNetPINVOKE.PublicKey_remoteServerPublicKey_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
string ret = SLikeNetPINVOKE.PublicKey_remoteServerPublicKey_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public string myPublicKey {
|
||||
set {
|
||||
SLikeNetPINVOKE.PublicKey_myPublicKey_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
string ret = SLikeNetPINVOKE.PublicKey_myPublicKey_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public string myPrivateKey {
|
||||
set {
|
||||
SLikeNetPINVOKE.PublicKey_myPrivateKey_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
string ret = SLikeNetPINVOKE.PublicKey_myPrivateKey_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public PublicKey() : this(SLikeNetPINVOKE.new_PublicKey(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
18
bindings/csharp/interfaces/PublicKeyMode.cs
Normal file
18
bindings/csharp/interfaces/PublicKeyMode.cs
Normal file
@ -0,0 +1,18 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
public enum PublicKeyMode {
|
||||
PKM_INSECURE_CONNECTION,
|
||||
PKM_ACCEPT_ANY_PUBLIC_KEY,
|
||||
PKM_USE_KNOWN_PUBLIC_KEY,
|
||||
PKM_USE_TWO_WAY_AUTHENTICATION
|
||||
}
|
||||
|
||||
}
|
||||
159
bindings/csharp/interfaces/PunchthroughConfiguration.cs
Normal file
159
bindings/csharp/interfaces/PunchthroughConfiguration.cs
Normal file
@ -0,0 +1,159 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class PunchthroughConfiguration : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal PunchthroughConfiguration(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(PunchthroughConfiguration obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~PunchthroughConfiguration() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_PunchthroughConfiguration(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public PunchthroughConfiguration() : this(SLikeNetPINVOKE.new_PunchthroughConfiguration(), true) {
|
||||
}
|
||||
|
||||
public ulong TIME_BETWEEN_PUNCH_ATTEMPTS_INTERNAL {
|
||||
set {
|
||||
SLikeNetPINVOKE.PunchthroughConfiguration_TIME_BETWEEN_PUNCH_ATTEMPTS_INTERNAL_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
ulong ret = SLikeNetPINVOKE.PunchthroughConfiguration_TIME_BETWEEN_PUNCH_ATTEMPTS_INTERNAL_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public ulong TIME_BETWEEN_PUNCH_ATTEMPTS_EXTERNAL {
|
||||
set {
|
||||
SLikeNetPINVOKE.PunchthroughConfiguration_TIME_BETWEEN_PUNCH_ATTEMPTS_EXTERNAL_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
ulong ret = SLikeNetPINVOKE.PunchthroughConfiguration_TIME_BETWEEN_PUNCH_ATTEMPTS_EXTERNAL_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public int UDP_SENDS_PER_PORT_INTERNAL {
|
||||
set {
|
||||
SLikeNetPINVOKE.PunchthroughConfiguration_UDP_SENDS_PER_PORT_INTERNAL_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
int ret = SLikeNetPINVOKE.PunchthroughConfiguration_UDP_SENDS_PER_PORT_INTERNAL_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public int UDP_SENDS_PER_PORT_EXTERNAL {
|
||||
set {
|
||||
SLikeNetPINVOKE.PunchthroughConfiguration_UDP_SENDS_PER_PORT_EXTERNAL_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
int ret = SLikeNetPINVOKE.PunchthroughConfiguration_UDP_SENDS_PER_PORT_EXTERNAL_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public int INTERNAL_IP_WAIT_AFTER_ATTEMPTS {
|
||||
set {
|
||||
SLikeNetPINVOKE.PunchthroughConfiguration_INTERNAL_IP_WAIT_AFTER_ATTEMPTS_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
int ret = SLikeNetPINVOKE.PunchthroughConfiguration_INTERNAL_IP_WAIT_AFTER_ATTEMPTS_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public int MAX_PREDICTIVE_PORT_RANGE {
|
||||
set {
|
||||
SLikeNetPINVOKE.PunchthroughConfiguration_MAX_PREDICTIVE_PORT_RANGE_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
int ret = SLikeNetPINVOKE.PunchthroughConfiguration_MAX_PREDICTIVE_PORT_RANGE_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public int EXTERNAL_IP_WAIT_AFTER_FIRST_TTL {
|
||||
set {
|
||||
SLikeNetPINVOKE.PunchthroughConfiguration_EXTERNAL_IP_WAIT_AFTER_FIRST_TTL_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
int ret = SLikeNetPINVOKE.PunchthroughConfiguration_EXTERNAL_IP_WAIT_AFTER_FIRST_TTL_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public int EXTERNAL_IP_WAIT_BETWEEN_PORTS {
|
||||
set {
|
||||
SLikeNetPINVOKE.PunchthroughConfiguration_EXTERNAL_IP_WAIT_BETWEEN_PORTS_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
int ret = SLikeNetPINVOKE.PunchthroughConfiguration_EXTERNAL_IP_WAIT_BETWEEN_PORTS_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public int EXTERNAL_IP_WAIT_AFTER_ALL_ATTEMPTS {
|
||||
set {
|
||||
SLikeNetPINVOKE.PunchthroughConfiguration_EXTERNAL_IP_WAIT_AFTER_ALL_ATTEMPTS_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
int ret = SLikeNetPINVOKE.PunchthroughConfiguration_EXTERNAL_IP_WAIT_AFTER_ALL_ATTEMPTS_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public int MAXIMUM_NUMBER_OF_INTERNAL_IDS_TO_CHECK {
|
||||
set {
|
||||
SLikeNetPINVOKE.PunchthroughConfiguration_MAXIMUM_NUMBER_OF_INTERNAL_IDS_TO_CHECK_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
int ret = SLikeNetPINVOKE.PunchthroughConfiguration_MAXIMUM_NUMBER_OF_INTERNAL_IDS_TO_CHECK_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public bool retryOnFailure {
|
||||
set {
|
||||
SLikeNetPINVOKE.PunchthroughConfiguration_retryOnFailure_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
bool ret = SLikeNetPINVOKE.PunchthroughConfiguration_retryOnFailure_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
22
bindings/csharp/interfaces/RNSPerSecondMetrics.cs
Normal file
22
bindings/csharp/interfaces/RNSPerSecondMetrics.cs
Normal file
@ -0,0 +1,22 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
public enum RNSPerSecondMetrics {
|
||||
USER_MESSAGE_BYTES_PUSHED,
|
||||
USER_MESSAGE_BYTES_SENT,
|
||||
USER_MESSAGE_BYTES_RESENT,
|
||||
USER_MESSAGE_BYTES_RECEIVED_PROCESSED,
|
||||
USER_MESSAGE_BYTES_RECEIVED_IGNORED,
|
||||
ACTUAL_BYTES_SENT,
|
||||
ACTUAL_BYTES_RECEIVED,
|
||||
RNS_PER_SECOND_METRICS_COUNT
|
||||
}
|
||||
|
||||
}
|
||||
92
bindings/csharp/interfaces/RakNetBPlusTreeRow.cs
Normal file
92
bindings/csharp/interfaces/RakNetBPlusTreeRow.cs
Normal file
@ -0,0 +1,92 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakNetBPlusTreeRow : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetBPlusTreeRow(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetBPlusTreeRow obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetBPlusTreeRow() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetBPlusTreeRow(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public RakNetBPlusTreeRow() : this(SLikeNetPINVOKE.new_RakNetBPlusTreeRow(), true) {
|
||||
}
|
||||
|
||||
public void SetPoolPageSize(int size) {
|
||||
SLikeNetPINVOKE.RakNetBPlusTreeRow_SetPoolPageSize(swigCPtr, size);
|
||||
}
|
||||
|
||||
public bool Insert(uint key, Row data) {
|
||||
bool ret = SLikeNetPINVOKE.RakNetBPlusTreeRow_Insert(swigCPtr, key, Row.getCPtr(data));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
SLikeNetPINVOKE.RakNetBPlusTreeRow_Clear(swigCPtr);
|
||||
}
|
||||
|
||||
public uint Size() {
|
||||
uint ret = SLikeNetPINVOKE.RakNetBPlusTreeRow_Size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool IsEmpty() {
|
||||
bool ret = SLikeNetPINVOKE.RakNetBPlusTreeRow_IsEmpty(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakNetPageRow GetListHead() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakNetBPlusTreeRow_GetListHead(swigCPtr);
|
||||
RakNetPageRow ret = (cPtr == IntPtr.Zero) ? null : new RakNetPageRow(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public Row GetDataHead() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakNetBPlusTreeRow_GetDataHead(swigCPtr);
|
||||
Row ret = (cPtr == IntPtr.Zero) ? null : new Row(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void PrintLeaves() {
|
||||
SLikeNetPINVOKE.RakNetBPlusTreeRow_PrintLeaves(swigCPtr);
|
||||
}
|
||||
|
||||
public void PrintGraph() {
|
||||
SLikeNetPINVOKE.RakNetBPlusTreeRow_PrintGraph(swigCPtr);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
182
bindings/csharp/interfaces/RakNetGUID.cs
Normal file
182
bindings/csharp/interfaces/RakNetGUID.cs
Normal file
@ -0,0 +1,182 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
#pragma warning disable 0660
|
||||
|
||||
public class RakNetGUID : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetGUID(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetGUID obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetGUID() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetGUID(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
// return (int)(this.g%int.MaxValue);
|
||||
return (int) ToUint32(this);
|
||||
}
|
||||
|
||||
public static bool operator ==(RakNetGUID a, RakNetGUID b)
|
||||
{
|
||||
// If both are null, or both are same instance, return true.
|
||||
if (System.Object.ReferenceEquals(a, b))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// If one is null, but not both, return false.
|
||||
if (((object)a == null) || ((object)b == null))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return a.Equals(b);//Equals should be overloaded as well
|
||||
}
|
||||
|
||||
public static bool operator !=(RakNetGUID a, RakNetGUID b)
|
||||
{
|
||||
return a.OpNotEqual(b);
|
||||
}
|
||||
|
||||
public static bool operator < (RakNetGUID a, RakNetGUID b)
|
||||
{
|
||||
return a.OpLess(b);
|
||||
}
|
||||
|
||||
public static bool operator >(RakNetGUID a, RakNetGUID b)
|
||||
{
|
||||
return a.OpGreater(b);
|
||||
}
|
||||
|
||||
public static bool operator <=(RakNetGUID a, RakNetGUID b)
|
||||
{
|
||||
return (a.OpLess(b) || a==b);
|
||||
}
|
||||
|
||||
public static bool operator >=(RakNetGUID a, RakNetGUID b)
|
||||
{
|
||||
return (a.OpGreater(b) || a==b);
|
||||
}
|
||||
|
||||
public void ToString(out string dest)
|
||||
{
|
||||
dest = ToString();
|
||||
}
|
||||
|
||||
public RakNetGUID() : this(SLikeNetPINVOKE.new_RakNetGUID__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakNetGUID(ulong _g) : this(SLikeNetPINVOKE.new_RakNetGUID__SWIG_1(_g), true) {
|
||||
}
|
||||
|
||||
public ulong g {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetGUID_g_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
ulong ret = SLikeNetPINVOKE.RakNetGUID_g_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
string ret = SLikeNetPINVOKE.RakNetGUID_ToString__SWIG_0(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void ToString(string dest, uint destSize) {
|
||||
SLikeNetPINVOKE.RakNetGUID_ToString__SWIG_1(swigCPtr, dest, destSize);
|
||||
}
|
||||
|
||||
public bool FromString(string source) {
|
||||
bool ret = SLikeNetPINVOKE.RakNetGUID_FromString(swigCPtr, source);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static uint ToUint32(RakNetGUID g) {
|
||||
uint ret = SLikeNetPINVOKE.RakNetGUID_ToUint32(RakNetGUID.getCPtr(g));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakNetGUID CopyData(RakNetGUID input) {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.RakNetGUID_CopyData(swigCPtr, RakNetGUID.getCPtr(input)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public ushort systemIndex {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetGUID_systemIndex_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
ushort ret = SLikeNetPINVOKE.RakNetGUID_systemIndex_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public static int size() {
|
||||
int ret = SLikeNetPINVOKE.RakNetGUID_size();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool Equals(RakNetGUID right) {
|
||||
bool ret = SLikeNetPINVOKE.RakNetGUID_Equals(swigCPtr, RakNetGUID.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private bool OpNotEqual(RakNetGUID right) {
|
||||
bool ret = SLikeNetPINVOKE.RakNetGUID_OpNotEqual(swigCPtr, RakNetGUID.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private bool OpGreater(RakNetGUID right) {
|
||||
bool ret = SLikeNetPINVOKE.RakNetGUID_OpGreater(swigCPtr, RakNetGUID.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private bool OpLess(RakNetGUID right) {
|
||||
bool ret = SLikeNetPINVOKE.RakNetGUID_OpLess(swigCPtr, RakNetGUID.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
139
bindings/csharp/interfaces/RakNetListCell.cs
Normal file
139
bindings/csharp/interfaces/RakNetListCell.cs
Normal file
@ -0,0 +1,139 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakNetListCell : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetListCell(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetListCell obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetListCell() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetListCell(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public Cell 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 RakNetListCell() : this(SLikeNetPINVOKE.new_RakNetListCell__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakNetListCell(RakNetListCell original_copy) : this(SLikeNetPINVOKE.new_RakNetListCell__SWIG_1(RakNetListCell.getCPtr(original_copy)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetListCell CopyData(RakNetListCell original_copy) {
|
||||
RakNetListCell ret = new RakNetListCell(SLikeNetPINVOKE.RakNetListCell_CopyData(swigCPtr, RakNetListCell.getCPtr(original_copy)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public Cell Get(uint position) {
|
||||
Cell ret = new Cell(SLikeNetPINVOKE.RakNetListCell_Get(swigCPtr, position), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Push(Cell input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListCell_Push(swigCPtr, Cell.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public Cell Pop() {
|
||||
Cell ret = new Cell(SLikeNetPINVOKE.RakNetListCell_Pop(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Insert(Cell input, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListCell_Insert__SWIG_0(swigCPtr, Cell.getCPtr(input), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Insert(Cell input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListCell_Insert__SWIG_1(swigCPtr, Cell.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(Cell input, Cell filler, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListCell_Replace__SWIG_0(swigCPtr, Cell.getCPtr(input), Cell.getCPtr(filler), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(Cell input) {
|
||||
SLikeNetPINVOKE.RakNetListCell_Replace__SWIG_1(swigCPtr, Cell.getCPtr(input));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void RemoveAtIndex(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListCell_RemoveAtIndex(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveAtIndexFast(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListCell_RemoveAtIndexFast(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd(uint num) {
|
||||
SLikeNetPINVOKE.RakNetListCell_RemoveFromEnd__SWIG_0(swigCPtr, num);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd() {
|
||||
SLikeNetPINVOKE.RakNetListCell_RemoveFromEnd__SWIG_1(swigCPtr);
|
||||
}
|
||||
|
||||
public uint Size() {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListCell_Size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListCell_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line);
|
||||
}
|
||||
|
||||
public void Preallocate(uint countNeeded, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListCell_Preallocate(swigCPtr, countNeeded, file, line);
|
||||
}
|
||||
|
||||
public void Compress(string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListCell_Compress(swigCPtr, file, line);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
153
bindings/csharp/interfaces/RakNetListCellPointer.cs
Normal file
153
bindings/csharp/interfaces/RakNetListCellPointer.cs
Normal file
@ -0,0 +1,153 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakNetListCellPointer : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetListCellPointer(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetListCellPointer obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetListCellPointer() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetListCellPointer(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public Cell 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 Cell Get(uint position)
|
||||
{
|
||||
return GetHelper(position);
|
||||
}
|
||||
|
||||
public Cell Pop()
|
||||
{
|
||||
return PopHelper();
|
||||
}
|
||||
|
||||
|
||||
public RakNetListCellPointer() : this(SLikeNetPINVOKE.new_RakNetListCellPointer__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakNetListCellPointer(RakNetListCellPointer original_copy) : this(SLikeNetPINVOKE.new_RakNetListCellPointer__SWIG_1(RakNetListCellPointer.getCPtr(original_copy)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetListCellPointer CopyData(RakNetListCellPointer original_copy) {
|
||||
RakNetListCellPointer ret = new RakNetListCellPointer(SLikeNetPINVOKE.RakNetListCellPointer_CopyData(swigCPtr, RakNetListCellPointer.getCPtr(original_copy)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Push(Cell input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListCellPointer_Push(swigCPtr, Cell.getCPtr(input), file, line);
|
||||
}
|
||||
|
||||
public void Insert(Cell input, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListCellPointer_Insert__SWIG_0(swigCPtr, Cell.getCPtr(input), position, file, line);
|
||||
}
|
||||
|
||||
public void Insert(Cell input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListCellPointer_Insert__SWIG_1(swigCPtr, Cell.getCPtr(input), file, line);
|
||||
}
|
||||
|
||||
public void Replace(Cell input, Cell filler, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListCellPointer_Replace__SWIG_0(swigCPtr, Cell.getCPtr(input), Cell.getCPtr(filler), position, file, line);
|
||||
}
|
||||
|
||||
public void Replace(Cell input) {
|
||||
SLikeNetPINVOKE.RakNetListCellPointer_Replace__SWIG_1(swigCPtr, Cell.getCPtr(input));
|
||||
}
|
||||
|
||||
public void RemoveAtIndex(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListCellPointer_RemoveAtIndex(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveAtIndexFast(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListCellPointer_RemoveAtIndexFast(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd(uint num) {
|
||||
SLikeNetPINVOKE.RakNetListCellPointer_RemoveFromEnd__SWIG_0(swigCPtr, num);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd() {
|
||||
SLikeNetPINVOKE.RakNetListCellPointer_RemoveFromEnd__SWIG_1(swigCPtr);
|
||||
}
|
||||
|
||||
public uint GetIndexOf(Cell input) {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListCellPointer_GetIndexOf(swigCPtr, Cell.getCPtr(input));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint Size() {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListCellPointer_Size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListCellPointer_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line);
|
||||
}
|
||||
|
||||
public void Preallocate(uint countNeeded, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListCellPointer_Preallocate(swigCPtr, countNeeded, file, line);
|
||||
}
|
||||
|
||||
public void Compress(string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListCellPointer_Compress(swigCPtr, file, line);
|
||||
}
|
||||
|
||||
public Cell GetHelper(uint position) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakNetListCellPointer_GetHelper(swigCPtr, position);
|
||||
Cell ret = (cPtr == IntPtr.Zero) ? null : new Cell(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public Cell PopHelper() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakNetListCellPointer_PopHelper(swigCPtr);
|
||||
Cell ret = (cPtr == IntPtr.Zero) ? null : new Cell(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
139
bindings/csharp/interfaces/RakNetListColumnDescriptor.cs
Normal file
139
bindings/csharp/interfaces/RakNetListColumnDescriptor.cs
Normal file
@ -0,0 +1,139 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakNetListColumnDescriptor : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetListColumnDescriptor(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetListColumnDescriptor obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetListColumnDescriptor() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetListColumnDescriptor(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public ColumnDescriptor 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 RakNetListColumnDescriptor() : this(SLikeNetPINVOKE.new_RakNetListColumnDescriptor__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakNetListColumnDescriptor(RakNetListColumnDescriptor original_copy) : this(SLikeNetPINVOKE.new_RakNetListColumnDescriptor__SWIG_1(RakNetListColumnDescriptor.getCPtr(original_copy)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetListColumnDescriptor CopyData(RakNetListColumnDescriptor original_copy) {
|
||||
RakNetListColumnDescriptor ret = new RakNetListColumnDescriptor(SLikeNetPINVOKE.RakNetListColumnDescriptor_CopyData(swigCPtr, RakNetListColumnDescriptor.getCPtr(original_copy)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public ColumnDescriptor Get(uint position) {
|
||||
ColumnDescriptor ret = new ColumnDescriptor(SLikeNetPINVOKE.RakNetListColumnDescriptor_Get(swigCPtr, position), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Push(ColumnDescriptor input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListColumnDescriptor_Push(swigCPtr, ColumnDescriptor.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public ColumnDescriptor Pop() {
|
||||
ColumnDescriptor ret = new ColumnDescriptor(SLikeNetPINVOKE.RakNetListColumnDescriptor_Pop(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Insert(ColumnDescriptor input, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListColumnDescriptor_Insert__SWIG_0(swigCPtr, ColumnDescriptor.getCPtr(input), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Insert(ColumnDescriptor input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListColumnDescriptor_Insert__SWIG_1(swigCPtr, ColumnDescriptor.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(ColumnDescriptor input, ColumnDescriptor filler, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListColumnDescriptor_Replace__SWIG_0(swigCPtr, ColumnDescriptor.getCPtr(input), ColumnDescriptor.getCPtr(filler), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(ColumnDescriptor input) {
|
||||
SLikeNetPINVOKE.RakNetListColumnDescriptor_Replace__SWIG_1(swigCPtr, ColumnDescriptor.getCPtr(input));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void RemoveAtIndex(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListColumnDescriptor_RemoveAtIndex(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveAtIndexFast(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListColumnDescriptor_RemoveAtIndexFast(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd(uint num) {
|
||||
SLikeNetPINVOKE.RakNetListColumnDescriptor_RemoveFromEnd__SWIG_0(swigCPtr, num);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd() {
|
||||
SLikeNetPINVOKE.RakNetListColumnDescriptor_RemoveFromEnd__SWIG_1(swigCPtr);
|
||||
}
|
||||
|
||||
public uint Size() {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListColumnDescriptor_Size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListColumnDescriptor_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line);
|
||||
}
|
||||
|
||||
public void Preallocate(uint countNeeded, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListColumnDescriptor_Preallocate(swigCPtr, countNeeded, file, line);
|
||||
}
|
||||
|
||||
public void Compress(string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListColumnDescriptor_Compress(swigCPtr, file, line);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
139
bindings/csharp/interfaces/RakNetListFileListNode.cs
Normal file
139
bindings/csharp/interfaces/RakNetListFileListNode.cs
Normal file
@ -0,0 +1,139 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakNetListFileListNode : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetListFileListNode(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetListFileListNode obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetListFileListNode() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetListFileListNode(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public FileListNode 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 RakNetListFileListNode() : this(SLikeNetPINVOKE.new_RakNetListFileListNode__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakNetListFileListNode(RakNetListFileListNode original_copy) : this(SLikeNetPINVOKE.new_RakNetListFileListNode__SWIG_1(RakNetListFileListNode.getCPtr(original_copy)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetListFileListNode CopyData(RakNetListFileListNode original_copy) {
|
||||
RakNetListFileListNode ret = new RakNetListFileListNode(SLikeNetPINVOKE.RakNetListFileListNode_CopyData(swigCPtr, RakNetListFileListNode.getCPtr(original_copy)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public FileListNode Get(uint position) {
|
||||
FileListNode ret = new FileListNode(SLikeNetPINVOKE.RakNetListFileListNode_Get(swigCPtr, position), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Push(FileListNode input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListFileListNode_Push(swigCPtr, FileListNode.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public FileListNode Pop() {
|
||||
FileListNode ret = new FileListNode(SLikeNetPINVOKE.RakNetListFileListNode_Pop(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Insert(FileListNode input, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListFileListNode_Insert__SWIG_0(swigCPtr, FileListNode.getCPtr(input), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Insert(FileListNode input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListFileListNode_Insert__SWIG_1(swigCPtr, FileListNode.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(FileListNode input, FileListNode filler, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListFileListNode_Replace__SWIG_0(swigCPtr, FileListNode.getCPtr(input), FileListNode.getCPtr(filler), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(FileListNode input) {
|
||||
SLikeNetPINVOKE.RakNetListFileListNode_Replace__SWIG_1(swigCPtr, FileListNode.getCPtr(input));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void RemoveAtIndex(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListFileListNode_RemoveAtIndex(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveAtIndexFast(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListFileListNode_RemoveAtIndexFast(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd(uint num) {
|
||||
SLikeNetPINVOKE.RakNetListFileListNode_RemoveFromEnd__SWIG_0(swigCPtr, num);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd() {
|
||||
SLikeNetPINVOKE.RakNetListFileListNode_RemoveFromEnd__SWIG_1(swigCPtr);
|
||||
}
|
||||
|
||||
public uint Size() {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListFileListNode_Size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListFileListNode_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line);
|
||||
}
|
||||
|
||||
public void Preallocate(uint countNeeded, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListFileListNode_Preallocate(swigCPtr, countNeeded, file, line);
|
||||
}
|
||||
|
||||
public void Compress(string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListFileListNode_Compress(swigCPtr, file, line);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
139
bindings/csharp/interfaces/RakNetListFilterQuery.cs
Normal file
139
bindings/csharp/interfaces/RakNetListFilterQuery.cs
Normal file
@ -0,0 +1,139 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakNetListFilterQuery : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetListFilterQuery(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetListFilterQuery obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetListFilterQuery() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetListFilterQuery(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public FilterQuery 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 RakNetListFilterQuery() : this(SLikeNetPINVOKE.new_RakNetListFilterQuery__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakNetListFilterQuery(RakNetListFilterQuery original_copy) : this(SLikeNetPINVOKE.new_RakNetListFilterQuery__SWIG_1(RakNetListFilterQuery.getCPtr(original_copy)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetListFilterQuery CopyData(RakNetListFilterQuery original_copy) {
|
||||
RakNetListFilterQuery ret = new RakNetListFilterQuery(SLikeNetPINVOKE.RakNetListFilterQuery_CopyData(swigCPtr, RakNetListFilterQuery.getCPtr(original_copy)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public FilterQuery Get(uint position) {
|
||||
FilterQuery ret = new FilterQuery(SLikeNetPINVOKE.RakNetListFilterQuery_Get(swigCPtr, position), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Push(FilterQuery input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListFilterQuery_Push(swigCPtr, FilterQuery.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public FilterQuery Pop() {
|
||||
FilterQuery ret = new FilterQuery(SLikeNetPINVOKE.RakNetListFilterQuery_Pop(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Insert(FilterQuery input, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListFilterQuery_Insert__SWIG_0(swigCPtr, FilterQuery.getCPtr(input), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Insert(FilterQuery input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListFilterQuery_Insert__SWIG_1(swigCPtr, FilterQuery.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(FilterQuery input, FilterQuery filler, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListFilterQuery_Replace__SWIG_0(swigCPtr, FilterQuery.getCPtr(input), FilterQuery.getCPtr(filler), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(FilterQuery input) {
|
||||
SLikeNetPINVOKE.RakNetListFilterQuery_Replace__SWIG_1(swigCPtr, FilterQuery.getCPtr(input));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void RemoveAtIndex(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListFilterQuery_RemoveAtIndex(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveAtIndexFast(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListFilterQuery_RemoveAtIndexFast(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd(uint num) {
|
||||
SLikeNetPINVOKE.RakNetListFilterQuery_RemoveFromEnd__SWIG_0(swigCPtr, num);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd() {
|
||||
SLikeNetPINVOKE.RakNetListFilterQuery_RemoveFromEnd__SWIG_1(swigCPtr);
|
||||
}
|
||||
|
||||
public uint Size() {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListFilterQuery_Size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListFilterQuery_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line);
|
||||
}
|
||||
|
||||
public void Preallocate(uint countNeeded, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListFilterQuery_Preallocate(swigCPtr, countNeeded, file, line);
|
||||
}
|
||||
|
||||
public void Compress(string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListFilterQuery_Compress(swigCPtr, file, line);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
145
bindings/csharp/interfaces/RakNetListRakNetGUID.cs
Normal file
145
bindings/csharp/interfaces/RakNetListRakNetGUID.cs
Normal file
@ -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 SLNet {
|
||||
|
||||
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;
|
||||
SLikeNetPINVOKE.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(SLikeNetPINVOKE.new_RakNetListRakNetGUID__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakNetListRakNetGUID(RakNetListRakNetGUID original_copy) : this(SLikeNetPINVOKE.new_RakNetListRakNetGUID__SWIG_1(RakNetListRakNetGUID.getCPtr(original_copy)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetListRakNetGUID CopyData(RakNetListRakNetGUID original_copy) {
|
||||
RakNetListRakNetGUID ret = new RakNetListRakNetGUID(SLikeNetPINVOKE.RakNetListRakNetGUID_CopyData(swigCPtr, RakNetListRakNetGUID.getCPtr(original_copy)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakNetGUID Get(uint position) {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.RakNetListRakNetGUID_Get(swigCPtr, position), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Push(RakNetGUID input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListRakNetGUID_Push(swigCPtr, RakNetGUID.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetGUID Pop() {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.RakNetListRakNetGUID_Pop(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Insert(RakNetGUID input, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListRakNetGUID_Insert__SWIG_0(swigCPtr, RakNetGUID.getCPtr(input), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Insert(RakNetGUID input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListRakNetGUID_Insert__SWIG_1(swigCPtr, RakNetGUID.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(RakNetGUID input, RakNetGUID filler, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListRakNetGUID_Replace__SWIG_0(swigCPtr, RakNetGUID.getCPtr(input), RakNetGUID.getCPtr(filler), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(RakNetGUID input) {
|
||||
SLikeNetPINVOKE.RakNetListRakNetGUID_Replace__SWIG_1(swigCPtr, RakNetGUID.getCPtr(input));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void RemoveAtIndex(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListRakNetGUID_RemoveAtIndex(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveAtIndexFast(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListRakNetGUID_RemoveAtIndexFast(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd(uint num) {
|
||||
SLikeNetPINVOKE.RakNetListRakNetGUID_RemoveFromEnd__SWIG_0(swigCPtr, num);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd() {
|
||||
SLikeNetPINVOKE.RakNetListRakNetGUID_RemoveFromEnd__SWIG_1(swigCPtr);
|
||||
}
|
||||
|
||||
public uint GetIndexOf(RakNetGUID input) {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListRakNetGUID_GetIndexOf(swigCPtr, RakNetGUID.getCPtr(input));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint Size() {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListRakNetGUID_Size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListRakNetGUID_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line);
|
||||
}
|
||||
|
||||
public void Preallocate(uint countNeeded, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListRakNetGUID_Preallocate(swigCPtr, countNeeded, file, line);
|
||||
}
|
||||
|
||||
public void Compress(string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListRakNetGUID_Compress(swigCPtr, file, line);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
145
bindings/csharp/interfaces/RakNetListRakString.cs
Normal file
145
bindings/csharp/interfaces/RakNetListRakString.cs
Normal file
@ -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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakNetListRakString : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetListRakString(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetListRakString obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetListRakString() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetListRakString(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public RakString 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 RakNetListRakString() : this(SLikeNetPINVOKE.new_RakNetListRakString__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakNetListRakString(RakNetListRakString original_copy) : this(SLikeNetPINVOKE.new_RakNetListRakString__SWIG_1(RakNetListRakString.getCPtr(original_copy)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetListRakString CopyData(RakNetListRakString original_copy) {
|
||||
RakNetListRakString ret = new RakNetListRakString(SLikeNetPINVOKE.RakNetListRakString_CopyData(swigCPtr, RakNetListRakString.getCPtr(original_copy)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakString Get(uint position) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakNetListRakString_Get(swigCPtr, position), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Push(RakString input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListRakString_Push(swigCPtr, RakString.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakString Pop() {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakNetListRakString_Pop(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Insert(RakString input, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListRakString_Insert__SWIG_0(swigCPtr, RakString.getCPtr(input), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Insert(RakString input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListRakString_Insert__SWIG_1(swigCPtr, RakString.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(RakString input, RakString filler, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListRakString_Replace__SWIG_0(swigCPtr, RakString.getCPtr(input), RakString.getCPtr(filler), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(RakString input) {
|
||||
SLikeNetPINVOKE.RakNetListRakString_Replace__SWIG_1(swigCPtr, RakString.getCPtr(input));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void RemoveAtIndex(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListRakString_RemoveAtIndex(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveAtIndexFast(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListRakString_RemoveAtIndexFast(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd(uint num) {
|
||||
SLikeNetPINVOKE.RakNetListRakString_RemoveFromEnd__SWIG_0(swigCPtr, num);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd() {
|
||||
SLikeNetPINVOKE.RakNetListRakString_RemoveFromEnd__SWIG_1(swigCPtr);
|
||||
}
|
||||
|
||||
public uint GetIndexOf(RakString input) {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListRakString_GetIndexOf(swigCPtr, RakString.getCPtr(input));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint Size() {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListRakString_Size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListRakString_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line);
|
||||
}
|
||||
|
||||
public void Preallocate(uint countNeeded, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListRakString_Preallocate(swigCPtr, countNeeded, file, line);
|
||||
}
|
||||
|
||||
public void Compress(string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListRakString_Compress(swigCPtr, file, line);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
139
bindings/csharp/interfaces/RakNetListSortQuery.cs
Normal file
139
bindings/csharp/interfaces/RakNetListSortQuery.cs
Normal file
@ -0,0 +1,139 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakNetListSortQuery : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetListSortQuery(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetListSortQuery obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetListSortQuery() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetListSortQuery(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SortQuery 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 RakNetListSortQuery() : this(SLikeNetPINVOKE.new_RakNetListSortQuery__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakNetListSortQuery(RakNetListSortQuery original_copy) : this(SLikeNetPINVOKE.new_RakNetListSortQuery__SWIG_1(RakNetListSortQuery.getCPtr(original_copy)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetListSortQuery CopyData(RakNetListSortQuery original_copy) {
|
||||
RakNetListSortQuery ret = new RakNetListSortQuery(SLikeNetPINVOKE.RakNetListSortQuery_CopyData(swigCPtr, RakNetListSortQuery.getCPtr(original_copy)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public SortQuery Get(uint position) {
|
||||
SortQuery ret = new SortQuery(SLikeNetPINVOKE.RakNetListSortQuery_Get(swigCPtr, position), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Push(SortQuery input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListSortQuery_Push(swigCPtr, SortQuery.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public SortQuery Pop() {
|
||||
SortQuery ret = new SortQuery(SLikeNetPINVOKE.RakNetListSortQuery_Pop(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Insert(SortQuery input, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListSortQuery_Insert__SWIG_0(swigCPtr, SortQuery.getCPtr(input), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Insert(SortQuery input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListSortQuery_Insert__SWIG_1(swigCPtr, SortQuery.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(SortQuery input, SortQuery filler, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListSortQuery_Replace__SWIG_0(swigCPtr, SortQuery.getCPtr(input), SortQuery.getCPtr(filler), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(SortQuery input) {
|
||||
SLikeNetPINVOKE.RakNetListSortQuery_Replace__SWIG_1(swigCPtr, SortQuery.getCPtr(input));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void RemoveAtIndex(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListSortQuery_RemoveAtIndex(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveAtIndexFast(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListSortQuery_RemoveAtIndexFast(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd(uint num) {
|
||||
SLikeNetPINVOKE.RakNetListSortQuery_RemoveFromEnd__SWIG_0(swigCPtr, num);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd() {
|
||||
SLikeNetPINVOKE.RakNetListSortQuery_RemoveFromEnd__SWIG_1(swigCPtr);
|
||||
}
|
||||
|
||||
public uint Size() {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListSortQuery_Size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListSortQuery_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line);
|
||||
}
|
||||
|
||||
public void Preallocate(uint countNeeded, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListSortQuery_Preallocate(swigCPtr, countNeeded, file, line);
|
||||
}
|
||||
|
||||
public void Compress(string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListSortQuery_Compress(swigCPtr, file, line);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
145
bindings/csharp/interfaces/RakNetListSystemAddress.cs
Normal file
145
bindings/csharp/interfaces/RakNetListSystemAddress.cs
Normal file
@ -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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakNetListSystemAddress : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetListSystemAddress(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetListSystemAddress obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetListSystemAddress() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetListSystemAddress(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SystemAddress 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 RakNetListSystemAddress() : this(SLikeNetPINVOKE.new_RakNetListSystemAddress__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakNetListSystemAddress(RakNetListSystemAddress original_copy) : this(SLikeNetPINVOKE.new_RakNetListSystemAddress__SWIG_1(RakNetListSystemAddress.getCPtr(original_copy)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetListSystemAddress CopyData(RakNetListSystemAddress original_copy) {
|
||||
RakNetListSystemAddress ret = new RakNetListSystemAddress(SLikeNetPINVOKE.RakNetListSystemAddress_CopyData(swigCPtr, RakNetListSystemAddress.getCPtr(original_copy)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public SystemAddress Get(uint position) {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakNetListSystemAddress_Get(swigCPtr, position), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Push(SystemAddress input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListSystemAddress_Push(swigCPtr, SystemAddress.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public SystemAddress Pop() {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakNetListSystemAddress_Pop(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Insert(SystemAddress input, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListSystemAddress_Insert__SWIG_0(swigCPtr, SystemAddress.getCPtr(input), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Insert(SystemAddress input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListSystemAddress_Insert__SWIG_1(swigCPtr, SystemAddress.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(SystemAddress input, SystemAddress filler, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListSystemAddress_Replace__SWIG_0(swigCPtr, SystemAddress.getCPtr(input), SystemAddress.getCPtr(filler), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(SystemAddress input) {
|
||||
SLikeNetPINVOKE.RakNetListSystemAddress_Replace__SWIG_1(swigCPtr, SystemAddress.getCPtr(input));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void RemoveAtIndex(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListSystemAddress_RemoveAtIndex(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveAtIndexFast(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListSystemAddress_RemoveAtIndexFast(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd(uint num) {
|
||||
SLikeNetPINVOKE.RakNetListSystemAddress_RemoveFromEnd__SWIG_0(swigCPtr, num);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd() {
|
||||
SLikeNetPINVOKE.RakNetListSystemAddress_RemoveFromEnd__SWIG_1(swigCPtr);
|
||||
}
|
||||
|
||||
public uint GetIndexOf(SystemAddress input) {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListSystemAddress_GetIndexOf(swigCPtr, SystemAddress.getCPtr(input));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint Size() {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListSystemAddress_Size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListSystemAddress_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line);
|
||||
}
|
||||
|
||||
public void Preallocate(uint countNeeded, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListSystemAddress_Preallocate(swigCPtr, countNeeded, file, line);
|
||||
}
|
||||
|
||||
public void Compress(string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListSystemAddress_Compress(swigCPtr, file, line);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
139
bindings/csharp/interfaces/RakNetListTableRow.cs
Normal file
139
bindings/csharp/interfaces/RakNetListTableRow.cs
Normal file
@ -0,0 +1,139 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakNetListTableRow : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetListTableRow(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetListTableRow obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetListTableRow() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetListTableRow(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public Row 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 RakNetListTableRow() : this(SLikeNetPINVOKE.new_RakNetListTableRow__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakNetListTableRow(RakNetListTableRow original_copy) : this(SLikeNetPINVOKE.new_RakNetListTableRow__SWIG_1(RakNetListTableRow.getCPtr(original_copy)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetListTableRow CopyData(RakNetListTableRow original_copy) {
|
||||
RakNetListTableRow ret = new RakNetListTableRow(SLikeNetPINVOKE.RakNetListTableRow_CopyData(swigCPtr, RakNetListTableRow.getCPtr(original_copy)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public Row Get(uint position) {
|
||||
Row ret = new Row(SLikeNetPINVOKE.RakNetListTableRow_Get(swigCPtr, position), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Push(Row input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListTableRow_Push(swigCPtr, Row.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public Row Pop() {
|
||||
Row ret = new Row(SLikeNetPINVOKE.RakNetListTableRow_Pop(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Insert(Row input, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListTableRow_Insert__SWIG_0(swigCPtr, Row.getCPtr(input), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Insert(Row input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListTableRow_Insert__SWIG_1(swigCPtr, Row.getCPtr(input), file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(Row input, Row filler, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListTableRow_Replace__SWIG_0(swigCPtr, Row.getCPtr(input), Row.getCPtr(filler), position, file, line);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Replace(Row input) {
|
||||
SLikeNetPINVOKE.RakNetListTableRow_Replace__SWIG_1(swigCPtr, Row.getCPtr(input));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void RemoveAtIndex(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListTableRow_RemoveAtIndex(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveAtIndexFast(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListTableRow_RemoveAtIndexFast(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd(uint num) {
|
||||
SLikeNetPINVOKE.RakNetListTableRow_RemoveFromEnd__SWIG_0(swigCPtr, num);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd() {
|
||||
SLikeNetPINVOKE.RakNetListTableRow_RemoveFromEnd__SWIG_1(swigCPtr);
|
||||
}
|
||||
|
||||
public uint Size() {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListTableRow_Size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListTableRow_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line);
|
||||
}
|
||||
|
||||
public void Preallocate(uint countNeeded, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListTableRow_Preallocate(swigCPtr, countNeeded, file, line);
|
||||
}
|
||||
|
||||
public void Compress(string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListTableRow_Compress(swigCPtr, file, line);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
148
bindings/csharp/interfaces/RakNetListUnsignedInt.cs
Normal file
148
bindings/csharp/interfaces/RakNetListUnsignedInt.cs
Normal file
@ -0,0 +1,148 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakNetListUnsignedInt : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetListUnsignedInt(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetListUnsignedInt obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetListUnsignedInt() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetListUnsignedInt(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public uint Get(uint position) {
|
||||
SWIGTYPE_p_unsigned_int ret = GetHelper(position);
|
||||
return UnsignedIntPointer.frompointer(ret).value();
|
||||
}
|
||||
|
||||
public uint Pop() {
|
||||
SWIGTYPE_p_unsigned_int ret = PopHelper();
|
||||
return UnsignedIntPointer.frompointer(ret).value();
|
||||
}
|
||||
public uint 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 RakNetListUnsignedInt() : this(SLikeNetPINVOKE.new_RakNetListUnsignedInt__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakNetListUnsignedInt(RakNetListUnsignedInt original_copy) : this(SLikeNetPINVOKE.new_RakNetListUnsignedInt__SWIG_1(RakNetListUnsignedInt.getCPtr(original_copy)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetListUnsignedInt CopyData(RakNetListUnsignedInt original_copy) {
|
||||
RakNetListUnsignedInt ret = new RakNetListUnsignedInt(SLikeNetPINVOKE.RakNetListUnsignedInt_CopyData(swigCPtr, RakNetListUnsignedInt.getCPtr(original_copy)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private SWIGTYPE_p_unsigned_int GetHelper(uint position) {
|
||||
SWIGTYPE_p_unsigned_int ret = new SWIGTYPE_p_unsigned_int(SLikeNetPINVOKE.RakNetListUnsignedInt_GetHelper(swigCPtr, position), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Push(uint input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedInt_Push(swigCPtr, input, file, line);
|
||||
}
|
||||
|
||||
private SWIGTYPE_p_unsigned_int PopHelper() {
|
||||
SWIGTYPE_p_unsigned_int ret = new SWIGTYPE_p_unsigned_int(SLikeNetPINVOKE.RakNetListUnsignedInt_PopHelper(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Insert(uint input, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedInt_Insert__SWIG_0(swigCPtr, input, position, file, line);
|
||||
}
|
||||
|
||||
public void Insert(uint input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedInt_Insert__SWIG_1(swigCPtr, input, file, line);
|
||||
}
|
||||
|
||||
public void Replace(uint input, uint filler, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedInt_Replace__SWIG_0(swigCPtr, input, filler, position, file, line);
|
||||
}
|
||||
|
||||
public void Replace(uint input) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedInt_Replace__SWIG_1(swigCPtr, input);
|
||||
}
|
||||
|
||||
public void RemoveAtIndex(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedInt_RemoveAtIndex(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveAtIndexFast(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedInt_RemoveAtIndexFast(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd(uint num) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedInt_RemoveFromEnd__SWIG_0(swigCPtr, num);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd() {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedInt_RemoveFromEnd__SWIG_1(swigCPtr);
|
||||
}
|
||||
|
||||
public uint GetIndexOf(uint input) {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListUnsignedInt_GetIndexOf(swigCPtr, input);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint Size() {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListUnsignedInt_Size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedInt_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line);
|
||||
}
|
||||
|
||||
public void Preallocate(uint countNeeded, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedInt_Preallocate(swigCPtr, countNeeded, file, line);
|
||||
}
|
||||
|
||||
public void Compress(string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedInt_Compress(swigCPtr, file, line);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
148
bindings/csharp/interfaces/RakNetListUnsignedShort.cs
Normal file
148
bindings/csharp/interfaces/RakNetListUnsignedShort.cs
Normal file
@ -0,0 +1,148 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakNetListUnsignedShort : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetListUnsignedShort(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetListUnsignedShort obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetListUnsignedShort() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetListUnsignedShort(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public ushort Get(uint position) {
|
||||
SWIGTYPE_p_unsigned_short ret = GetHelper(position);
|
||||
return UnsignedShortPointer.frompointer(ret).value();
|
||||
}
|
||||
|
||||
public ushort Pop() {
|
||||
SWIGTYPE_p_unsigned_short ret = PopHelper();
|
||||
return UnsignedShortPointer.frompointer(ret).value();
|
||||
}
|
||||
public ushort 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 RakNetListUnsignedShort() : this(SLikeNetPINVOKE.new_RakNetListUnsignedShort__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakNetListUnsignedShort(RakNetListUnsignedShort original_copy) : this(SLikeNetPINVOKE.new_RakNetListUnsignedShort__SWIG_1(RakNetListUnsignedShort.getCPtr(original_copy)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetListUnsignedShort CopyData(RakNetListUnsignedShort original_copy) {
|
||||
RakNetListUnsignedShort ret = new RakNetListUnsignedShort(SLikeNetPINVOKE.RakNetListUnsignedShort_CopyData(swigCPtr, RakNetListUnsignedShort.getCPtr(original_copy)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private SWIGTYPE_p_unsigned_short GetHelper(uint position) {
|
||||
SWIGTYPE_p_unsigned_short ret = new SWIGTYPE_p_unsigned_short(SLikeNetPINVOKE.RakNetListUnsignedShort_GetHelper(swigCPtr, position), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Push(ushort input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedShort_Push(swigCPtr, input, file, line);
|
||||
}
|
||||
|
||||
private SWIGTYPE_p_unsigned_short PopHelper() {
|
||||
SWIGTYPE_p_unsigned_short ret = new SWIGTYPE_p_unsigned_short(SLikeNetPINVOKE.RakNetListUnsignedShort_PopHelper(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Insert(ushort input, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedShort_Insert__SWIG_0(swigCPtr, input, position, file, line);
|
||||
}
|
||||
|
||||
public void Insert(ushort input, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedShort_Insert__SWIG_1(swigCPtr, input, file, line);
|
||||
}
|
||||
|
||||
public void Replace(ushort input, ushort filler, uint position, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedShort_Replace__SWIG_0(swigCPtr, input, filler, position, file, line);
|
||||
}
|
||||
|
||||
public void Replace(ushort input) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedShort_Replace__SWIG_1(swigCPtr, input);
|
||||
}
|
||||
|
||||
public void RemoveAtIndex(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedShort_RemoveAtIndex(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveAtIndexFast(uint position) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedShort_RemoveAtIndexFast(swigCPtr, position);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd(uint num) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedShort_RemoveFromEnd__SWIG_0(swigCPtr, num);
|
||||
}
|
||||
|
||||
public void RemoveFromEnd() {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedShort_RemoveFromEnd__SWIG_1(swigCPtr);
|
||||
}
|
||||
|
||||
public uint GetIndexOf(ushort input) {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListUnsignedShort_GetIndexOf(swigCPtr, input);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint Size() {
|
||||
uint ret = SLikeNetPINVOKE.RakNetListUnsignedShort_Size(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedShort_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line);
|
||||
}
|
||||
|
||||
public void Preallocate(uint countNeeded, string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedShort_Preallocate(swigCPtr, countNeeded, file, line);
|
||||
}
|
||||
|
||||
public void Compress(string file, uint line) {
|
||||
SLikeNetPINVOKE.RakNetListUnsignedShort_Compress(swigCPtr, file, line);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
91
bindings/csharp/interfaces/RakNetPageRow.cs
Normal file
91
bindings/csharp/interfaces/RakNetPageRow.cs
Normal file
@ -0,0 +1,91 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakNetPageRow : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetPageRow(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetPageRow obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakNetPageRow() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetPageRow(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public bool isLeaf {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetPageRow_isLeaf_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
bool ret = SLikeNetPINVOKE.RakNetPageRow_isLeaf_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public int size {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetPageRow_size_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
int ret = SLikeNetPINVOKE.RakNetPageRow_size_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public RakNetPageRow next {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetPageRow_next_set(swigCPtr, RakNetPageRow.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakNetPageRow_next_get(swigCPtr);
|
||||
RakNetPageRow ret = (cPtr == IntPtr.Zero) ? null : new RakNetPageRow(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public RakNetPageRow previous {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetPageRow_previous_set(swigCPtr, RakNetPageRow.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakNetPageRow_previous_get(swigCPtr);
|
||||
RakNetPageRow ret = (cPtr == IntPtr.Zero) ? null : new RakNetPageRow(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public RakNetPageRow() : this(SLikeNetPINVOKE.new_RakNetPageRow(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
334
bindings/csharp/interfaces/RakNetStatistics.cs
Normal file
334
bindings/csharp/interfaces/RakNetStatistics.cs
Normal file
@ -0,0 +1,334 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakNetStatistics : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakNetStatistics(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakNetStatistics obj) {
|
||||
if (obj != null)
|
||||
{
|
||||
if (obj.bytesInSendBufferIsCached)
|
||||
{
|
||||
obj.SetBytesInSendBuffer(obj.bytesInSendBuffer, obj.bytesInSendBuffer.Length);
|
||||
}
|
||||
if (obj.messageInSendBufferIsCached)
|
||||
{
|
||||
obj.SetMessageInSendBuffer(obj.messageInSendBuffer, obj.messageInSendBuffer.Length);
|
||||
}
|
||||
if (obj.runningTotalIsCached)
|
||||
{
|
||||
obj.SetRunningTotal(obj.runningTotal, obj.runningTotal.Length);
|
||||
}
|
||||
if (obj.valueOverLastSecondIsCached)
|
||||
{
|
||||
obj.SetValueOverLastSecond(obj.valueOverLastSecond, obj.valueOverLastSecond.Length);
|
||||
}
|
||||
obj.bytesInSendBufferIsCached=false;
|
||||
obj.messageInSendBufferIsCached=false;
|
||||
obj.runningTotalIsCached=false;
|
||||
obj.valueOverLastSecondIsCached=false;
|
||||
}
|
||||
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
|
||||
~RakNetStatistics() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakNetStatistics(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private bool bytesInSendBufferIsCached = false;
|
||||
private bool messageInSendBufferIsCached = false;
|
||||
private bool runningTotalIsCached = false;
|
||||
private bool valueOverLastSecondIsCached = false;
|
||||
private double[] bytesInSendBufferCache;
|
||||
private uint[] messageInSendBufferCache;
|
||||
private ulong[] runningTotalCache;
|
||||
private ulong[] valueOverLastSecondCache;
|
||||
|
||||
public ulong[] valueOverLastSecond {
|
||||
set
|
||||
{
|
||||
valueOverLastSecondCache=value;
|
||||
valueOverLastSecondIsCached = true;
|
||||
SetValueOverLastSecond (value, value.Length);
|
||||
}
|
||||
get
|
||||
{
|
||||
ulong[] returnArray;
|
||||
if (!valueOverLastSecondIsCached)
|
||||
{
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakNetStatistics_valueOverLastSecond_get (swigCPtr);
|
||||
int len = (int) RNSPerSecondMetrics.RNS_PER_SECOND_METRICS_COUNT;
|
||||
if (len<=0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
returnArray = new ulong[len];
|
||||
long[] marshalArray = new long[len];
|
||||
Marshal.Copy(cPtr, marshalArray, 0, len);
|
||||
for (int i=0;i<len;i++)
|
||||
{
|
||||
returnArray[i]= (ulong) ( marshalArray[i] );
|
||||
}
|
||||
valueOverLastSecondCache = returnArray;
|
||||
valueOverLastSecondIsCached = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
returnArray = valueOverLastSecondCache;
|
||||
}
|
||||
return returnArray;
|
||||
}
|
||||
}
|
||||
|
||||
public ulong[] runningTotal {
|
||||
set
|
||||
{
|
||||
runningTotalCache=value;
|
||||
runningTotalIsCached = true;
|
||||
SetRunningTotal (value, value.Length);
|
||||
}
|
||||
get
|
||||
{
|
||||
ulong[] returnArray;
|
||||
if (!runningTotalIsCached)
|
||||
{
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakNetStatistics_runningTotal_get (swigCPtr);
|
||||
int len = (int) RNSPerSecondMetrics.RNS_PER_SECOND_METRICS_COUNT;
|
||||
if (len<=0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
returnArray = new ulong[len];
|
||||
long[] marshalArray = new long[len];
|
||||
Marshal.Copy(cPtr, marshalArray, 0, len);
|
||||
for (int i=0;i<len;i++)
|
||||
{
|
||||
returnArray[i]= (ulong) ( marshalArray[i] );
|
||||
}
|
||||
runningTotalCache = returnArray;
|
||||
runningTotalIsCached = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
returnArray = runningTotalCache;
|
||||
}
|
||||
return returnArray;
|
||||
}
|
||||
}
|
||||
|
||||
public ulong connectionStartTime {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetStatistics_connectionStartTime_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
ulong ret = SLikeNetPINVOKE.RakNetStatistics_connectionStartTime_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public bool isLimitedByCongestionControl {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetStatistics_isLimitedByCongestionControl_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
bool ret = SLikeNetPINVOKE.RakNetStatistics_isLimitedByCongestionControl_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public ulong BPSLimitByCongestionControl {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetStatistics_BPSLimitByCongestionControl_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
ulong ret = SLikeNetPINVOKE.RakNetStatistics_BPSLimitByCongestionControl_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public bool isLimitedByOutgoingBandwidthLimit {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetStatistics_isLimitedByOutgoingBandwidthLimit_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
bool ret = SLikeNetPINVOKE.RakNetStatistics_isLimitedByOutgoingBandwidthLimit_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public ulong BPSLimitByOutgoingBandwidthLimit {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetStatistics_BPSLimitByOutgoingBandwidthLimit_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
ulong ret = SLikeNetPINVOKE.RakNetStatistics_BPSLimitByOutgoingBandwidthLimit_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public uint[] messageInSendBuffer {
|
||||
set
|
||||
{
|
||||
messageInSendBufferCache=value;
|
||||
messageInSendBufferIsCached = true;
|
||||
SetMessageInSendBuffer (value, value.Length);
|
||||
}
|
||||
get
|
||||
{
|
||||
uint[] returnArray;
|
||||
if (!messageInSendBufferIsCached)
|
||||
{
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakNetStatistics_messageInSendBuffer_get (swigCPtr);
|
||||
int len = (int) PacketPriority.NUMBER_OF_PRIORITIES;
|
||||
if (len<=0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
returnArray = new uint[len];
|
||||
int[] marshalArray = new int[len];
|
||||
Marshal.Copy(cPtr, marshalArray, 0, len);
|
||||
for (int i=0;i<len;i++)
|
||||
{
|
||||
returnArray[i]= (uint) ( marshalArray[i] );
|
||||
}
|
||||
messageInSendBufferCache = returnArray;
|
||||
messageInSendBufferIsCached = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
returnArray = messageInSendBufferCache;
|
||||
}
|
||||
return returnArray;
|
||||
}
|
||||
}
|
||||
|
||||
public double[] bytesInSendBuffer {
|
||||
set
|
||||
{
|
||||
bytesInSendBufferCache=value;
|
||||
bytesInSendBufferIsCached = true;
|
||||
SetBytesInSendBuffer (value, value.Length);
|
||||
}
|
||||
get
|
||||
{
|
||||
double[] returnArray;
|
||||
if (!bytesInSendBufferIsCached)
|
||||
{
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakNetStatistics_bytesInSendBuffer_get (swigCPtr);
|
||||
int len = (int) PacketPriority.NUMBER_OF_PRIORITIES;
|
||||
if (len<=0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
returnArray = new double[len];
|
||||
double[] marshalArray = new double[len];
|
||||
Marshal.Copy(cPtr, marshalArray, 0, len);
|
||||
for (int i=0;i<len;i++)
|
||||
{
|
||||
returnArray[i]= (double) ( marshalArray[i] );
|
||||
}
|
||||
bytesInSendBufferCache = returnArray;
|
||||
bytesInSendBufferIsCached = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
returnArray = bytesInSendBufferCache;
|
||||
}
|
||||
return returnArray;
|
||||
}
|
||||
}
|
||||
|
||||
public uint messagesInResendBuffer {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetStatistics_messagesInResendBuffer_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.RakNetStatistics_messagesInResendBuffer_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public ulong bytesInResendBuffer {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetStatistics_bytesInResendBuffer_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
ulong ret = SLikeNetPINVOKE.RakNetStatistics_bytesInResendBuffer_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public float packetlossLastSecond {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetStatistics_packetlossLastSecond_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
float ret = SLikeNetPINVOKE.RakNetStatistics_packetlossLastSecond_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public float packetlossTotal {
|
||||
set {
|
||||
SLikeNetPINVOKE.RakNetStatistics_packetlossTotal_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
float ret = SLikeNetPINVOKE.RakNetStatistics_packetlossTotal_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public void SetBytesInSendBuffer(double[] inDoubleArray, int numDoubles) {
|
||||
SLikeNetPINVOKE.RakNetStatistics_SetBytesInSendBuffer(swigCPtr, inDoubleArray, numDoubles);
|
||||
}
|
||||
|
||||
public void SetMessageInSendBuffer(uint[] inUnsignedIntArray, int numInts) {
|
||||
SLikeNetPINVOKE.RakNetStatistics_SetMessageInSendBuffer(swigCPtr, inUnsignedIntArray, numInts);
|
||||
}
|
||||
|
||||
public void SetRunningTotal(ulong[] inUint64Array, int numUint64) {
|
||||
SLikeNetPINVOKE.RakNetStatistics_SetRunningTotal(swigCPtr, inUint64Array, numUint64);
|
||||
}
|
||||
|
||||
public void SetValueOverLastSecond(ulong[] inUint64Array, int numUint64) {
|
||||
SLikeNetPINVOKE.RakNetStatistics_SetValueOverLastSecond(swigCPtr, inUint64Array, numUint64);
|
||||
}
|
||||
|
||||
public RakNetStatistics() : this(SLikeNetPINVOKE.new_RakNetStatistics(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
610
bindings/csharp/interfaces/RakPeer.cs
Normal file
610
bindings/csharp/interfaces/RakPeer.cs
Normal file
@ -0,0 +1,610 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakPeer : RakPeerInterface {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal RakPeer(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.RakPeer_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakPeer obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakPeer() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakPeer(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public override void GetIncomingPassword(ref string passwordData, ref int passwordDataLength )
|
||||
{
|
||||
passwordData=CSharpGetIncomingPasswordHelper(passwordData,ref passwordDataLength);
|
||||
}
|
||||
|
||||
public override void GetOfflinePingResponse( byte[] inOutByteArray, out uint length )
|
||||
{
|
||||
CSharpGetOfflinePingResponseHelper(inOutByteArray,out length);
|
||||
}
|
||||
|
||||
public override bool GetConnectionList(out SystemAddress[] remoteSystems, ref ushort numberOfSystems)
|
||||
{
|
||||
RakNetListSystemAddress passVal= new RakNetListSystemAddress();
|
||||
bool returnVal = GetConnectionList(passVal,ref numberOfSystems);
|
||||
SystemAddress[] outVal = new SystemAddress[numberOfSystems];
|
||||
for (int i=0; i<numberOfSystems;i++)
|
||||
{
|
||||
outVal[i]=passVal[i];
|
||||
}
|
||||
remoteSystems=outVal;
|
||||
return returnVal;
|
||||
}
|
||||
|
||||
|
||||
public RakPeer() : this(SLikeNetPINVOKE.new_RakPeer(), true) {
|
||||
}
|
||||
|
||||
public override StartupResult Startup(uint maxConnections, SocketDescriptor socketDescriptors, uint socketDescriptorCount, int threadPriority) {
|
||||
StartupResult ret = (StartupResult)SLikeNetPINVOKE.RakPeer_Startup__SWIG_0(swigCPtr, maxConnections, SocketDescriptor.getCPtr(socketDescriptors), socketDescriptorCount, threadPriority);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override StartupResult Startup(uint maxConnections, SocketDescriptor socketDescriptors, uint socketDescriptorCount) {
|
||||
StartupResult ret = (StartupResult)SLikeNetPINVOKE.RakPeer_Startup__SWIG_1(swigCPtr, maxConnections, SocketDescriptor.getCPtr(socketDescriptors), socketDescriptorCount);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override bool InitializeSecurity(string publicKey, string privateKey, bool bRequireClientKey) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_InitializeSecurity__SWIG_0(swigCPtr, publicKey, privateKey, bRequireClientKey);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override bool InitializeSecurity(string publicKey, string privateKey) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_InitializeSecurity__SWIG_1(swigCPtr, publicKey, privateKey);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void DisableSecurity() {
|
||||
SLikeNetPINVOKE.RakPeer_DisableSecurity(swigCPtr);
|
||||
}
|
||||
|
||||
public override void AddToSecurityExceptionList(string ip) {
|
||||
SLikeNetPINVOKE.RakPeer_AddToSecurityExceptionList(swigCPtr, ip);
|
||||
}
|
||||
|
||||
public override void RemoveFromSecurityExceptionList(string ip) {
|
||||
SLikeNetPINVOKE.RakPeer_RemoveFromSecurityExceptionList(swigCPtr, ip);
|
||||
}
|
||||
|
||||
public override bool IsInSecurityExceptionList(string ip) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_IsInSecurityExceptionList(swigCPtr, ip);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void SetMaximumIncomingConnections(ushort numberAllowed) {
|
||||
SLikeNetPINVOKE.RakPeer_SetMaximumIncomingConnections(swigCPtr, numberAllowed);
|
||||
}
|
||||
|
||||
public override uint GetMaximumIncomingConnections() {
|
||||
uint ret = SLikeNetPINVOKE.RakPeer_GetMaximumIncomingConnections(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override ushort NumberOfConnections() {
|
||||
ushort ret = SLikeNetPINVOKE.RakPeer_NumberOfConnections(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void SetIncomingPassword(string passwordData, int passwordDataLength) {
|
||||
SLikeNetPINVOKE.RakPeer_SetIncomingPassword__SWIG_0(swigCPtr, passwordData, passwordDataLength);
|
||||
}
|
||||
|
||||
public override ConnectionAttemptResult Connect(string host, ushort remotePort, string passwordData, int passwordDataLength, PublicKey publicKey, uint connectionSocketIndex, uint sendConnectionAttemptCount, uint timeBetweenSendConnectionAttemptsMS, uint timeoutTime) {
|
||||
ConnectionAttemptResult ret = (ConnectionAttemptResult)SLikeNetPINVOKE.RakPeer_Connect__SWIG_0(swigCPtr, host, remotePort, passwordData, passwordDataLength, PublicKey.getCPtr(publicKey), connectionSocketIndex, sendConnectionAttemptCount, timeBetweenSendConnectionAttemptsMS, timeoutTime);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override ConnectionAttemptResult Connect(string host, ushort remotePort, string passwordData, int passwordDataLength, PublicKey publicKey, uint connectionSocketIndex, uint sendConnectionAttemptCount, uint timeBetweenSendConnectionAttemptsMS) {
|
||||
ConnectionAttemptResult ret = (ConnectionAttemptResult)SLikeNetPINVOKE.RakPeer_Connect__SWIG_1(swigCPtr, host, remotePort, passwordData, passwordDataLength, PublicKey.getCPtr(publicKey), connectionSocketIndex, sendConnectionAttemptCount, timeBetweenSendConnectionAttemptsMS);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override ConnectionAttemptResult Connect(string host, ushort remotePort, string passwordData, int passwordDataLength, PublicKey publicKey, uint connectionSocketIndex, uint sendConnectionAttemptCount) {
|
||||
ConnectionAttemptResult ret = (ConnectionAttemptResult)SLikeNetPINVOKE.RakPeer_Connect__SWIG_2(swigCPtr, host, remotePort, passwordData, passwordDataLength, PublicKey.getCPtr(publicKey), connectionSocketIndex, sendConnectionAttemptCount);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override ConnectionAttemptResult Connect(string host, ushort remotePort, string passwordData, int passwordDataLength, PublicKey publicKey, uint connectionSocketIndex) {
|
||||
ConnectionAttemptResult ret = (ConnectionAttemptResult)SLikeNetPINVOKE.RakPeer_Connect__SWIG_3(swigCPtr, host, remotePort, passwordData, passwordDataLength, PublicKey.getCPtr(publicKey), connectionSocketIndex);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override ConnectionAttemptResult Connect(string host, ushort remotePort, string passwordData, int passwordDataLength, PublicKey publicKey) {
|
||||
ConnectionAttemptResult ret = (ConnectionAttemptResult)SLikeNetPINVOKE.RakPeer_Connect__SWIG_4(swigCPtr, host, remotePort, passwordData, passwordDataLength, PublicKey.getCPtr(publicKey));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override ConnectionAttemptResult Connect(string host, ushort remotePort, string passwordData, int passwordDataLength) {
|
||||
ConnectionAttemptResult ret = (ConnectionAttemptResult)SLikeNetPINVOKE.RakPeer_Connect__SWIG_5(swigCPtr, host, remotePort, passwordData, passwordDataLength);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void Shutdown(uint blockDuration, byte orderingChannel, PacketPriority disconnectionNotificationPriority) {
|
||||
SLikeNetPINVOKE.RakPeer_Shutdown__SWIG_0(swigCPtr, blockDuration, orderingChannel, (int)disconnectionNotificationPriority);
|
||||
}
|
||||
|
||||
public override void Shutdown(uint blockDuration, byte orderingChannel) {
|
||||
SLikeNetPINVOKE.RakPeer_Shutdown__SWIG_1(swigCPtr, blockDuration, orderingChannel);
|
||||
}
|
||||
|
||||
public override void Shutdown(uint blockDuration) {
|
||||
SLikeNetPINVOKE.RakPeer_Shutdown__SWIG_2(swigCPtr, blockDuration);
|
||||
}
|
||||
|
||||
public override bool IsActive() {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_IsActive(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override uint GetNextSendReceipt() {
|
||||
uint ret = SLikeNetPINVOKE.RakPeer_GetNextSendReceipt(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override uint IncrementNextSendReceipt() {
|
||||
uint ret = SLikeNetPINVOKE.RakPeer_IncrementNextSendReceipt(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override uint Send(string data, int length, PacketPriority priority, PacketReliability reliability, char orderingChannel, AddressOrGUID systemIdentifier, bool broadcast, uint forceReceiptNumber) {
|
||||
uint ret = SLikeNetPINVOKE.RakPeer_Send__SWIG_0(swigCPtr, data, length, (int)priority, (int)reliability, orderingChannel, AddressOrGUID.getCPtr(systemIdentifier), broadcast, forceReceiptNumber);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override uint Send(string data, int length, PacketPriority priority, PacketReliability reliability, char orderingChannel, AddressOrGUID systemIdentifier, bool broadcast) {
|
||||
uint ret = SLikeNetPINVOKE.RakPeer_Send__SWIG_1(swigCPtr, data, length, (int)priority, (int)reliability, orderingChannel, AddressOrGUID.getCPtr(systemIdentifier), broadcast);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void SendLoopback(string data, int length) {
|
||||
SLikeNetPINVOKE.RakPeer_SendLoopback__SWIG_0(swigCPtr, data, length);
|
||||
}
|
||||
|
||||
public override uint Send(BitStream bitStream, PacketPriority priority, PacketReliability reliability, char orderingChannel, AddressOrGUID systemIdentifier, bool broadcast, uint forceReceiptNumber) {
|
||||
uint ret = SLikeNetPINVOKE.RakPeer_Send__SWIG_2(swigCPtr, BitStream.getCPtr(bitStream), (int)priority, (int)reliability, orderingChannel, AddressOrGUID.getCPtr(systemIdentifier), broadcast, forceReceiptNumber);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override uint Send(BitStream bitStream, PacketPriority priority, PacketReliability reliability, char orderingChannel, AddressOrGUID systemIdentifier, bool broadcast) {
|
||||
uint ret = SLikeNetPINVOKE.RakPeer_Send__SWIG_3(swigCPtr, BitStream.getCPtr(bitStream), (int)priority, (int)reliability, orderingChannel, AddressOrGUID.getCPtr(systemIdentifier), broadcast);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override Packet Receive() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakPeer_Receive(swigCPtr);
|
||||
Packet ret = (cPtr == IntPtr.Zero) ? null : new Packet(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void DeallocatePacket(Packet packet) {
|
||||
SLikeNetPINVOKE.RakPeer_DeallocatePacket(swigCPtr, Packet.getCPtr(packet));
|
||||
}
|
||||
|
||||
public override uint GetMaximumNumberOfPeers() {
|
||||
uint ret = SLikeNetPINVOKE.RakPeer_GetMaximumNumberOfPeers(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void CloseConnection(AddressOrGUID target, bool sendDisconnectionNotification, byte orderingChannel, PacketPriority disconnectionNotificationPriority) {
|
||||
SLikeNetPINVOKE.RakPeer_CloseConnection__SWIG_0(swigCPtr, AddressOrGUID.getCPtr(target), sendDisconnectionNotification, orderingChannel, (int)disconnectionNotificationPriority);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public override void CloseConnection(AddressOrGUID target, bool sendDisconnectionNotification, byte orderingChannel) {
|
||||
SLikeNetPINVOKE.RakPeer_CloseConnection__SWIG_1(swigCPtr, AddressOrGUID.getCPtr(target), sendDisconnectionNotification, orderingChannel);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public override void CloseConnection(AddressOrGUID target, bool sendDisconnectionNotification) {
|
||||
SLikeNetPINVOKE.RakPeer_CloseConnection__SWIG_2(swigCPtr, AddressOrGUID.getCPtr(target), sendDisconnectionNotification);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public override void CancelConnectionAttempt(SystemAddress target) {
|
||||
SLikeNetPINVOKE.RakPeer_CancelConnectionAttempt(swigCPtr, SystemAddress.getCPtr(target));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public override ConnectionState GetConnectionState(AddressOrGUID systemIdentifier) {
|
||||
ConnectionState ret = (ConnectionState)SLikeNetPINVOKE.RakPeer_GetConnectionState(swigCPtr, AddressOrGUID.getCPtr(systemIdentifier));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override int GetIndexFromSystemAddress(SystemAddress systemAddress) {
|
||||
int ret = SLikeNetPINVOKE.RakPeer_GetIndexFromSystemAddress(swigCPtr, SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override SystemAddress GetSystemAddressFromIndex(uint index) {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeer_GetSystemAddressFromIndex(swigCPtr, index), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override RakNetGUID GetGUIDFromIndex(uint index) {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.RakPeer_GetGUIDFromIndex(swigCPtr, index), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void GetSystemList(RakNetListSystemAddress addresses, RakNetListRakNetGUID guids) {
|
||||
SLikeNetPINVOKE.RakPeer_GetSystemList(swigCPtr, RakNetListSystemAddress.getCPtr(addresses), RakNetListRakNetGUID.getCPtr(guids));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public override void AddToBanList(string IP, uint milliseconds) {
|
||||
SLikeNetPINVOKE.RakPeer_AddToBanList__SWIG_0(swigCPtr, IP, milliseconds);
|
||||
}
|
||||
|
||||
public override void AddToBanList(string IP) {
|
||||
SLikeNetPINVOKE.RakPeer_AddToBanList__SWIG_1(swigCPtr, IP);
|
||||
}
|
||||
|
||||
public override void RemoveFromBanList(string IP) {
|
||||
SLikeNetPINVOKE.RakPeer_RemoveFromBanList(swigCPtr, IP);
|
||||
}
|
||||
|
||||
public override void ClearBanList() {
|
||||
SLikeNetPINVOKE.RakPeer_ClearBanList(swigCPtr);
|
||||
}
|
||||
|
||||
public override bool IsBanned(string IP) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_IsBanned(swigCPtr, IP);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void SetLimitIPConnectionFrequency(bool b) {
|
||||
SLikeNetPINVOKE.RakPeer_SetLimitIPConnectionFrequency(swigCPtr, b);
|
||||
}
|
||||
|
||||
public override void Ping(SystemAddress target) {
|
||||
SLikeNetPINVOKE.RakPeer_Ping__SWIG_0(swigCPtr, SystemAddress.getCPtr(target));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public override bool Ping(string host, ushort remotePort, bool onlyReplyOnAcceptingConnections, uint connectionSocketIndex) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_Ping__SWIG_1(swigCPtr, host, remotePort, onlyReplyOnAcceptingConnections, connectionSocketIndex);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override bool Ping(string host, ushort remotePort, bool onlyReplyOnAcceptingConnections) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_Ping__SWIG_2(swigCPtr, host, remotePort, onlyReplyOnAcceptingConnections);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override int GetAveragePing(AddressOrGUID systemIdentifier) {
|
||||
int ret = SLikeNetPINVOKE.RakPeer_GetAveragePing(swigCPtr, AddressOrGUID.getCPtr(systemIdentifier));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override int GetLastPing(AddressOrGUID systemIdentifier) {
|
||||
int ret = SLikeNetPINVOKE.RakPeer_GetLastPing(swigCPtr, AddressOrGUID.getCPtr(systemIdentifier));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override int GetLowestPing(AddressOrGUID systemIdentifier) {
|
||||
int ret = SLikeNetPINVOKE.RakPeer_GetLowestPing(swigCPtr, AddressOrGUID.getCPtr(systemIdentifier));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void SetOccasionalPing(bool doPing) {
|
||||
SLikeNetPINVOKE.RakPeer_SetOccasionalPing(swigCPtr, doPing);
|
||||
}
|
||||
|
||||
public override ulong GetClockDifferential(AddressOrGUID systemIdentifier) {
|
||||
ulong ret = SLikeNetPINVOKE.RakPeer_GetClockDifferential(swigCPtr, AddressOrGUID.getCPtr(systemIdentifier));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void SetOfflinePingResponse(string data, uint length) {
|
||||
SLikeNetPINVOKE.RakPeer_SetOfflinePingResponse__SWIG_0(swigCPtr, data, length);
|
||||
}
|
||||
|
||||
public override SystemAddress GetInternalID(SystemAddress systemAddress, int index) {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeer_GetInternalID__SWIG_0(swigCPtr, SystemAddress.getCPtr(systemAddress), index), true);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override SystemAddress GetInternalID(SystemAddress systemAddress) {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeer_GetInternalID__SWIG_1(swigCPtr, SystemAddress.getCPtr(systemAddress)), true);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override SystemAddress GetInternalID() {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeer_GetInternalID__SWIG_2(swigCPtr), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void SetInternalID(SystemAddress systemAddress, int index) {
|
||||
SLikeNetPINVOKE.RakPeer_SetInternalID__SWIG_0(swigCPtr, SystemAddress.getCPtr(systemAddress), index);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public override void SetInternalID(SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.RakPeer_SetInternalID__SWIG_1(swigCPtr, SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public override SystemAddress GetExternalID(SystemAddress target) {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeer_GetExternalID(swigCPtr, SystemAddress.getCPtr(target)), true);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override RakNetGUID GetMyGUID() {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.RakPeer_GetMyGUID(swigCPtr), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override SystemAddress GetMyBoundAddress(int socketIndex) {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeer_GetMyBoundAddress__SWIG_0(swigCPtr, socketIndex), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override SystemAddress GetMyBoundAddress() {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeer_GetMyBoundAddress__SWIG_1(swigCPtr), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override RakNetGUID GetGuidFromSystemAddress(SystemAddress input) {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.RakPeer_GetGuidFromSystemAddress(swigCPtr, SystemAddress.getCPtr(input)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override SystemAddress GetSystemAddressFromGuid(RakNetGUID input) {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeer_GetSystemAddressFromGuid(swigCPtr, RakNetGUID.getCPtr(input)), true);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override bool GetClientPublicKeyFromSystemAddress(SystemAddress input, string client_public_key) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_GetClientPublicKeyFromSystemAddress(swigCPtr, SystemAddress.getCPtr(input), client_public_key);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void SetTimeoutTime(uint timeMS, SystemAddress target) {
|
||||
SLikeNetPINVOKE.RakPeer_SetTimeoutTime(swigCPtr, timeMS, SystemAddress.getCPtr(target));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public override uint GetTimeoutTime(SystemAddress target) {
|
||||
uint ret = SLikeNetPINVOKE.RakPeer_GetTimeoutTime(swigCPtr, SystemAddress.getCPtr(target));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override int GetMTUSize(SystemAddress target) {
|
||||
int ret = SLikeNetPINVOKE.RakPeer_GetMTUSize(swigCPtr, SystemAddress.getCPtr(target));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override uint GetNumberOfAddresses() {
|
||||
uint ret = SLikeNetPINVOKE.RakPeer_GetNumberOfAddresses(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override string GetLocalIP(uint index) {
|
||||
string ret = SLikeNetPINVOKE.RakPeer_GetLocalIP(swigCPtr, index);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override bool IsLocalIP(string ip) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_IsLocalIP(swigCPtr, ip);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void AllowConnectionResponseIPMigration(bool allow) {
|
||||
SLikeNetPINVOKE.RakPeer_AllowConnectionResponseIPMigration(swigCPtr, allow);
|
||||
}
|
||||
|
||||
public override bool AdvertiseSystem(string host, ushort remotePort, string data, int dataLength, uint connectionSocketIndex) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_AdvertiseSystem__SWIG_0(swigCPtr, host, remotePort, data, dataLength, connectionSocketIndex);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override bool AdvertiseSystem(string host, ushort remotePort, string data, int dataLength) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_AdvertiseSystem__SWIG_1(swigCPtr, host, remotePort, data, dataLength);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void SetSplitMessageProgressInterval(int interval) {
|
||||
SLikeNetPINVOKE.RakPeer_SetSplitMessageProgressInterval(swigCPtr, interval);
|
||||
}
|
||||
|
||||
public override int GetSplitMessageProgressInterval() {
|
||||
int ret = SLikeNetPINVOKE.RakPeer_GetSplitMessageProgressInterval(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void SetUnreliableTimeout(uint timeoutMS) {
|
||||
SLikeNetPINVOKE.RakPeer_SetUnreliableTimeout(swigCPtr, timeoutMS);
|
||||
}
|
||||
|
||||
public override void SendTTL(string host, ushort remotePort, int ttl, uint connectionSocketIndex) {
|
||||
SLikeNetPINVOKE.RakPeer_SendTTL__SWIG_0(swigCPtr, host, remotePort, ttl, connectionSocketIndex);
|
||||
}
|
||||
|
||||
public override void SendTTL(string host, ushort remotePort, int ttl) {
|
||||
SLikeNetPINVOKE.RakPeer_SendTTL__SWIG_1(swigCPtr, host, remotePort, ttl);
|
||||
}
|
||||
|
||||
public override void AttachPlugin(PluginInterface2 plugin) {
|
||||
SLikeNetPINVOKE.RakPeer_AttachPlugin(swigCPtr, PluginInterface2.getCPtr(plugin));
|
||||
}
|
||||
|
||||
public override void DetachPlugin(PluginInterface2 messageHandler) {
|
||||
SLikeNetPINVOKE.RakPeer_DetachPlugin(swigCPtr, PluginInterface2.getCPtr(messageHandler));
|
||||
}
|
||||
|
||||
public override void PushBackPacket(Packet packet, bool pushAtHead) {
|
||||
SLikeNetPINVOKE.RakPeer_PushBackPacket(swigCPtr, Packet.getCPtr(packet), pushAtHead);
|
||||
}
|
||||
|
||||
public override void ChangeSystemAddress(RakNetGUID guid, SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.RakPeer_ChangeSystemAddress(swigCPtr, RakNetGUID.getCPtr(guid), SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public override Packet AllocatePacket(uint dataSize) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakPeer_AllocatePacket(swigCPtr, dataSize);
|
||||
Packet ret = (cPtr == IntPtr.Zero) ? null : new Packet(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override void GetSockets(SWIGTYPE_p_DataStructures__ListT_RakNetSocket2_p_t sockets) {
|
||||
SLikeNetPINVOKE.RakPeer_GetSockets(swigCPtr, SWIGTYPE_p_DataStructures__ListT_RakNetSocket2_p_t.getCPtr(sockets));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public override void WriteOutOfBandHeader(BitStream bitStream) {
|
||||
SLikeNetPINVOKE.RakPeer_WriteOutOfBandHeader(swigCPtr, BitStream.getCPtr(bitStream));
|
||||
}
|
||||
|
||||
public override void ApplyNetworkSimulator(float packetloss, ushort minExtraPing, ushort extraPingVariance) {
|
||||
SLikeNetPINVOKE.RakPeer_ApplyNetworkSimulator(swigCPtr, packetloss, minExtraPing, extraPingVariance);
|
||||
}
|
||||
|
||||
public override void SetPerConnectionOutgoingBandwidthLimit(uint maxBitsPerSecond) {
|
||||
SLikeNetPINVOKE.RakPeer_SetPerConnectionOutgoingBandwidthLimit(swigCPtr, maxBitsPerSecond);
|
||||
}
|
||||
|
||||
public override bool IsNetworkSimulatorActive() {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_IsNetworkSimulatorActive(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override RakNetStatistics GetStatistics(SystemAddress systemAddress, RakNetStatistics rns) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakPeer_GetStatistics__SWIG_0(swigCPtr, SystemAddress.getCPtr(systemAddress), RakNetStatistics.getCPtr(rns));
|
||||
RakNetStatistics ret = (cPtr == IntPtr.Zero) ? null : new RakNetStatistics(cPtr, false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override RakNetStatistics GetStatistics(SystemAddress systemAddress) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakPeer_GetStatistics__SWIG_1(swigCPtr, SystemAddress.getCPtr(systemAddress));
|
||||
RakNetStatistics ret = (cPtr == IntPtr.Zero) ? null : new RakNetStatistics(cPtr, false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override bool GetStatistics(uint index, RakNetStatistics rns) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_GetStatistics__SWIG_2(swigCPtr, index, RakNetStatistics.getCPtr(rns));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override uint GetReceiveBufferSize() {
|
||||
uint ret = SLikeNetPINVOKE.RakPeer_GetReceiveBufferSize(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override bool RunUpdateCycle(BitStream updateBitStream) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_RunUpdateCycle(swigCPtr, BitStream.getCPtr(updateBitStream));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override bool SendOutOfBand(string host, ushort remotePort, string data, uint dataLength, uint connectionSocketIndex) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_SendOutOfBand__SWIG_0(swigCPtr, host, remotePort, data, dataLength, connectionSocketIndex);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override bool SendOutOfBand(string host, ushort remotePort, string data, uint dataLength) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_SendOutOfBand__SWIG_1(swigCPtr, host, remotePort, data, dataLength);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public new uint Send(byte[] inByteArray, int length, PacketPriority priority, PacketReliability reliability, char orderingChannel, AddressOrGUID systemIdentifier, bool broadcast) {
|
||||
uint ret = SLikeNetPINVOKE.RakPeer_Send__SWIG_4(swigCPtr, inByteArray, length, (int)priority, (int)reliability, orderingChannel, AddressOrGUID.getCPtr(systemIdentifier), broadcast);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public new void SendLoopback(byte[] inByteArray, int length) {
|
||||
SLikeNetPINVOKE.RakPeer_SendLoopback__SWIG_1(swigCPtr, inByteArray, length);
|
||||
}
|
||||
|
||||
public new void SetOfflinePingResponse(byte[] inByteArray, uint length) {
|
||||
SLikeNetPINVOKE.RakPeer_SetOfflinePingResponse__SWIG_1(swigCPtr, inByteArray, length);
|
||||
}
|
||||
|
||||
public new bool AdvertiseSystem(string host, ushort remotePort, byte[] inByteArray, int dataLength, uint connectionSocketIndex) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_AdvertiseSystem__SWIG_2(swigCPtr, host, remotePort, inByteArray, dataLength, connectionSocketIndex);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public new bool AdvertiseSystem(string host, ushort remotePort, byte[] inByteArray, int dataLength) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_AdvertiseSystem__SWIG_3(swigCPtr, host, remotePort, inByteArray, dataLength);
|
||||
return ret;
|
||||
}
|
||||
|
||||
private string CSharpGetIncomingPasswordHelper(string passwordData, ref int passwordDataLength) {
|
||||
string ret = SLikeNetPINVOKE.RakPeer_CSharpGetIncomingPasswordHelper(swigCPtr, passwordData, ref passwordDataLength);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public new void SetIncomingPassword(byte[] passwordDataByteArray, int passwordDataLength) {
|
||||
SLikeNetPINVOKE.RakPeer_SetIncomingPassword__SWIG_1(swigCPtr, passwordDataByteArray, passwordDataLength);
|
||||
}
|
||||
|
||||
public new void GetIncomingPassword(byte[] passwordDataByteArray, ref int passwordDataLength) {
|
||||
SLikeNetPINVOKE.RakPeer_GetIncomingPassword(swigCPtr, passwordDataByteArray, ref passwordDataLength);
|
||||
}
|
||||
|
||||
private void CSharpGetOfflinePingResponseHelper(byte[] inOutByteArray, out uint outLength) {
|
||||
SLikeNetPINVOKE.RakPeer_CSharpGetOfflinePingResponseHelper(swigCPtr, inOutByteArray, out outLength);
|
||||
}
|
||||
|
||||
public new bool GetConnectionList(RakNetListSystemAddress remoteSystems, ref ushort numberOfSystems) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeer_GetConnectionList(swigCPtr, RakNetListSystemAddress.getCPtr(remoteSystems), ref numberOfSystems);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
623
bindings/csharp/interfaces/RakPeerInterface.cs
Normal file
623
bindings/csharp/interfaces/RakPeerInterface.cs
Normal file
@ -0,0 +1,623 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakPeerInterface : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakPeerInterface(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakPeerInterface obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakPeerInterface() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakPeerInterface(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void GetIncomingPassword(ref string passwordData, ref int passwordDataLength )
|
||||
{
|
||||
passwordData=CSharpGetIncomingPasswordHelper(passwordData,ref passwordDataLength);
|
||||
}
|
||||
|
||||
public virtual void GetOfflinePingResponse( byte[] inOutByteArray, out uint length )
|
||||
{
|
||||
CSharpGetOfflinePingResponseHelper(inOutByteArray,out length);
|
||||
}
|
||||
|
||||
public virtual bool GetConnectionList(out SystemAddress[] remoteSystems, ref ushort numberOfSystems)
|
||||
{
|
||||
RakNetListSystemAddress passVal= new RakNetListSystemAddress();
|
||||
bool returnVal = GetConnectionList(passVal,ref numberOfSystems);
|
||||
SystemAddress[] outVal = new SystemAddress[numberOfSystems];
|
||||
for (int i=0; i<numberOfSystems;i++)
|
||||
{
|
||||
outVal[i]=passVal[i];
|
||||
}
|
||||
remoteSystems=outVal;
|
||||
return returnVal;
|
||||
}
|
||||
|
||||
|
||||
public static RakPeerInterface GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakPeerInterface_GetInstance();
|
||||
RakPeerInterface ret = (cPtr == IntPtr.Zero) ? null : new RakPeerInterface(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(RakPeerInterface i) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_DestroyInstance(RakPeerInterface.getCPtr(i));
|
||||
}
|
||||
|
||||
public virtual StartupResult Startup(uint maxConnections, SocketDescriptor socketDescriptors, uint socketDescriptorCount, int threadPriority) {
|
||||
StartupResult ret = (StartupResult)SLikeNetPINVOKE.RakPeerInterface_Startup__SWIG_0(swigCPtr, maxConnections, SocketDescriptor.getCPtr(socketDescriptors), socketDescriptorCount, threadPriority);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual StartupResult Startup(uint maxConnections, SocketDescriptor socketDescriptors, uint socketDescriptorCount) {
|
||||
StartupResult ret = (StartupResult)SLikeNetPINVOKE.RakPeerInterface_Startup__SWIG_1(swigCPtr, maxConnections, SocketDescriptor.getCPtr(socketDescriptors), socketDescriptorCount);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual bool InitializeSecurity(string publicKey, string privateKey, bool bRequireClientKey) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_InitializeSecurity__SWIG_0(swigCPtr, publicKey, privateKey, bRequireClientKey);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual bool InitializeSecurity(string publicKey, string privateKey) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_InitializeSecurity__SWIG_1(swigCPtr, publicKey, privateKey);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void DisableSecurity() {
|
||||
SLikeNetPINVOKE.RakPeerInterface_DisableSecurity(swigCPtr);
|
||||
}
|
||||
|
||||
public virtual void AddToSecurityExceptionList(string ip) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_AddToSecurityExceptionList(swigCPtr, ip);
|
||||
}
|
||||
|
||||
public virtual void RemoveFromSecurityExceptionList(string ip) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_RemoveFromSecurityExceptionList(swigCPtr, ip);
|
||||
}
|
||||
|
||||
public virtual bool IsInSecurityExceptionList(string ip) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_IsInSecurityExceptionList(swigCPtr, ip);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void SetMaximumIncomingConnections(ushort numberAllowed) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SetMaximumIncomingConnections(swigCPtr, numberAllowed);
|
||||
}
|
||||
|
||||
public virtual uint GetMaximumIncomingConnections() {
|
||||
uint ret = SLikeNetPINVOKE.RakPeerInterface_GetMaximumIncomingConnections(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual ushort NumberOfConnections() {
|
||||
ushort ret = SLikeNetPINVOKE.RakPeerInterface_NumberOfConnections(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void SetIncomingPassword(string passwordData, int passwordDataLength) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SetIncomingPassword__SWIG_0(swigCPtr, passwordData, passwordDataLength);
|
||||
}
|
||||
|
||||
public virtual ConnectionAttemptResult Connect(string host, ushort remotePort, string passwordData, int passwordDataLength, PublicKey publicKey, uint connectionSocketIndex, uint sendConnectionAttemptCount, uint timeBetweenSendConnectionAttemptsMS, uint timeoutTime) {
|
||||
ConnectionAttemptResult ret = (ConnectionAttemptResult)SLikeNetPINVOKE.RakPeerInterface_Connect__SWIG_0(swigCPtr, host, remotePort, passwordData, passwordDataLength, PublicKey.getCPtr(publicKey), connectionSocketIndex, sendConnectionAttemptCount, timeBetweenSendConnectionAttemptsMS, timeoutTime);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual ConnectionAttemptResult Connect(string host, ushort remotePort, string passwordData, int passwordDataLength, PublicKey publicKey, uint connectionSocketIndex, uint sendConnectionAttemptCount, uint timeBetweenSendConnectionAttemptsMS) {
|
||||
ConnectionAttemptResult ret = (ConnectionAttemptResult)SLikeNetPINVOKE.RakPeerInterface_Connect__SWIG_1(swigCPtr, host, remotePort, passwordData, passwordDataLength, PublicKey.getCPtr(publicKey), connectionSocketIndex, sendConnectionAttemptCount, timeBetweenSendConnectionAttemptsMS);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual ConnectionAttemptResult Connect(string host, ushort remotePort, string passwordData, int passwordDataLength, PublicKey publicKey, uint connectionSocketIndex, uint sendConnectionAttemptCount) {
|
||||
ConnectionAttemptResult ret = (ConnectionAttemptResult)SLikeNetPINVOKE.RakPeerInterface_Connect__SWIG_2(swigCPtr, host, remotePort, passwordData, passwordDataLength, PublicKey.getCPtr(publicKey), connectionSocketIndex, sendConnectionAttemptCount);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual ConnectionAttemptResult Connect(string host, ushort remotePort, string passwordData, int passwordDataLength, PublicKey publicKey, uint connectionSocketIndex) {
|
||||
ConnectionAttemptResult ret = (ConnectionAttemptResult)SLikeNetPINVOKE.RakPeerInterface_Connect__SWIG_3(swigCPtr, host, remotePort, passwordData, passwordDataLength, PublicKey.getCPtr(publicKey), connectionSocketIndex);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual ConnectionAttemptResult Connect(string host, ushort remotePort, string passwordData, int passwordDataLength, PublicKey publicKey) {
|
||||
ConnectionAttemptResult ret = (ConnectionAttemptResult)SLikeNetPINVOKE.RakPeerInterface_Connect__SWIG_4(swigCPtr, host, remotePort, passwordData, passwordDataLength, PublicKey.getCPtr(publicKey));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual ConnectionAttemptResult Connect(string host, ushort remotePort, string passwordData, int passwordDataLength) {
|
||||
ConnectionAttemptResult ret = (ConnectionAttemptResult)SLikeNetPINVOKE.RakPeerInterface_Connect__SWIG_5(swigCPtr, host, remotePort, passwordData, passwordDataLength);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void Shutdown(uint blockDuration, byte orderingChannel, PacketPriority disconnectionNotificationPriority) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_Shutdown__SWIG_0(swigCPtr, blockDuration, orderingChannel, (int)disconnectionNotificationPriority);
|
||||
}
|
||||
|
||||
public virtual void Shutdown(uint blockDuration, byte orderingChannel) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_Shutdown__SWIG_1(swigCPtr, blockDuration, orderingChannel);
|
||||
}
|
||||
|
||||
public virtual void Shutdown(uint blockDuration) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_Shutdown__SWIG_2(swigCPtr, blockDuration);
|
||||
}
|
||||
|
||||
public virtual bool IsActive() {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_IsActive(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual uint GetNextSendReceipt() {
|
||||
uint ret = SLikeNetPINVOKE.RakPeerInterface_GetNextSendReceipt(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual uint IncrementNextSendReceipt() {
|
||||
uint ret = SLikeNetPINVOKE.RakPeerInterface_IncrementNextSendReceipt(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual uint Send(string data, int length, PacketPriority priority, PacketReliability reliability, char orderingChannel, AddressOrGUID systemIdentifier, bool broadcast, uint forceReceiptNumber) {
|
||||
uint ret = SLikeNetPINVOKE.RakPeerInterface_Send__SWIG_0(swigCPtr, data, length, (int)priority, (int)reliability, orderingChannel, AddressOrGUID.getCPtr(systemIdentifier), broadcast, forceReceiptNumber);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual uint Send(string data, int length, PacketPriority priority, PacketReliability reliability, char orderingChannel, AddressOrGUID systemIdentifier, bool broadcast) {
|
||||
uint ret = SLikeNetPINVOKE.RakPeerInterface_Send__SWIG_1(swigCPtr, data, length, (int)priority, (int)reliability, orderingChannel, AddressOrGUID.getCPtr(systemIdentifier), broadcast);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void SendLoopback(string data, int length) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SendLoopback__SWIG_0(swigCPtr, data, length);
|
||||
}
|
||||
|
||||
public virtual uint Send(BitStream bitStream, PacketPriority priority, PacketReliability reliability, char orderingChannel, AddressOrGUID systemIdentifier, bool broadcast, uint forceReceiptNumber) {
|
||||
uint ret = SLikeNetPINVOKE.RakPeerInterface_Send__SWIG_2(swigCPtr, BitStream.getCPtr(bitStream), (int)priority, (int)reliability, orderingChannel, AddressOrGUID.getCPtr(systemIdentifier), broadcast, forceReceiptNumber);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual uint Send(BitStream bitStream, PacketPriority priority, PacketReliability reliability, char orderingChannel, AddressOrGUID systemIdentifier, bool broadcast) {
|
||||
uint ret = SLikeNetPINVOKE.RakPeerInterface_Send__SWIG_3(swigCPtr, BitStream.getCPtr(bitStream), (int)priority, (int)reliability, orderingChannel, AddressOrGUID.getCPtr(systemIdentifier), broadcast);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual Packet Receive() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakPeerInterface_Receive(swigCPtr);
|
||||
Packet ret = (cPtr == IntPtr.Zero) ? null : new Packet(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void DeallocatePacket(Packet packet) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_DeallocatePacket(swigCPtr, Packet.getCPtr(packet));
|
||||
}
|
||||
|
||||
public virtual uint GetMaximumNumberOfPeers() {
|
||||
uint ret = SLikeNetPINVOKE.RakPeerInterface_GetMaximumNumberOfPeers(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void CloseConnection(AddressOrGUID target, bool sendDisconnectionNotification, byte orderingChannel, PacketPriority disconnectionNotificationPriority) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_CloseConnection__SWIG_0(swigCPtr, AddressOrGUID.getCPtr(target), sendDisconnectionNotification, orderingChannel, (int)disconnectionNotificationPriority);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void CloseConnection(AddressOrGUID target, bool sendDisconnectionNotification, byte orderingChannel) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_CloseConnection__SWIG_1(swigCPtr, AddressOrGUID.getCPtr(target), sendDisconnectionNotification, orderingChannel);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void CloseConnection(AddressOrGUID target, bool sendDisconnectionNotification) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_CloseConnection__SWIG_2(swigCPtr, AddressOrGUID.getCPtr(target), sendDisconnectionNotification);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual ConnectionState GetConnectionState(AddressOrGUID systemIdentifier) {
|
||||
ConnectionState ret = (ConnectionState)SLikeNetPINVOKE.RakPeerInterface_GetConnectionState(swigCPtr, AddressOrGUID.getCPtr(systemIdentifier));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void CancelConnectionAttempt(SystemAddress target) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_CancelConnectionAttempt(swigCPtr, SystemAddress.getCPtr(target));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual int GetIndexFromSystemAddress(SystemAddress systemAddress) {
|
||||
int ret = SLikeNetPINVOKE.RakPeerInterface_GetIndexFromSystemAddress(swigCPtr, SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual SystemAddress GetSystemAddressFromIndex(uint index) {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeerInterface_GetSystemAddressFromIndex(swigCPtr, index), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual RakNetGUID GetGUIDFromIndex(uint index) {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.RakPeerInterface_GetGUIDFromIndex(swigCPtr, index), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void GetSystemList(RakNetListSystemAddress addresses, RakNetListRakNetGUID guids) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_GetSystemList(swigCPtr, RakNetListSystemAddress.getCPtr(addresses), RakNetListRakNetGUID.getCPtr(guids));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void AddToBanList(string IP, uint milliseconds) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_AddToBanList__SWIG_0(swigCPtr, IP, milliseconds);
|
||||
}
|
||||
|
||||
public virtual void AddToBanList(string IP) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_AddToBanList__SWIG_1(swigCPtr, IP);
|
||||
}
|
||||
|
||||
public virtual void RemoveFromBanList(string IP) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_RemoveFromBanList(swigCPtr, IP);
|
||||
}
|
||||
|
||||
public virtual void ClearBanList() {
|
||||
SLikeNetPINVOKE.RakPeerInterface_ClearBanList(swigCPtr);
|
||||
}
|
||||
|
||||
public virtual bool IsBanned(string IP) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_IsBanned(swigCPtr, IP);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void SetLimitIPConnectionFrequency(bool b) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SetLimitIPConnectionFrequency(swigCPtr, b);
|
||||
}
|
||||
|
||||
public virtual void Ping(SystemAddress target) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_Ping__SWIG_0(swigCPtr, SystemAddress.getCPtr(target));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual bool Ping(string host, ushort remotePort, bool onlyReplyOnAcceptingConnections, uint connectionSocketIndex) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_Ping__SWIG_1(swigCPtr, host, remotePort, onlyReplyOnAcceptingConnections, connectionSocketIndex);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual bool Ping(string host, ushort remotePort, bool onlyReplyOnAcceptingConnections) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_Ping__SWIG_2(swigCPtr, host, remotePort, onlyReplyOnAcceptingConnections);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual int GetAveragePing(AddressOrGUID systemIdentifier) {
|
||||
int ret = SLikeNetPINVOKE.RakPeerInterface_GetAveragePing(swigCPtr, AddressOrGUID.getCPtr(systemIdentifier));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual int GetLastPing(AddressOrGUID systemIdentifier) {
|
||||
int ret = SLikeNetPINVOKE.RakPeerInterface_GetLastPing(swigCPtr, AddressOrGUID.getCPtr(systemIdentifier));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual int GetLowestPing(AddressOrGUID systemIdentifier) {
|
||||
int ret = SLikeNetPINVOKE.RakPeerInterface_GetLowestPing(swigCPtr, AddressOrGUID.getCPtr(systemIdentifier));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void SetOccasionalPing(bool doPing) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SetOccasionalPing(swigCPtr, doPing);
|
||||
}
|
||||
|
||||
public virtual ulong GetClockDifferential(AddressOrGUID systemIdentifier) {
|
||||
ulong ret = SLikeNetPINVOKE.RakPeerInterface_GetClockDifferential(swigCPtr, AddressOrGUID.getCPtr(systemIdentifier));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void SetOfflinePingResponse(string data, uint length) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SetOfflinePingResponse__SWIG_0(swigCPtr, data, length);
|
||||
}
|
||||
|
||||
public virtual SystemAddress GetInternalID(SystemAddress systemAddress, int index) {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeerInterface_GetInternalID__SWIG_0(swigCPtr, SystemAddress.getCPtr(systemAddress), index), true);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual SystemAddress GetInternalID(SystemAddress systemAddress) {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeerInterface_GetInternalID__SWIG_1(swigCPtr, SystemAddress.getCPtr(systemAddress)), true);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual SystemAddress GetInternalID() {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeerInterface_GetInternalID__SWIG_2(swigCPtr), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void SetInternalID(SystemAddress systemAddress, int index) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SetInternalID__SWIG_0(swigCPtr, SystemAddress.getCPtr(systemAddress), index);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void SetInternalID(SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SetInternalID__SWIG_1(swigCPtr, SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual SystemAddress GetExternalID(SystemAddress target) {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeerInterface_GetExternalID(swigCPtr, SystemAddress.getCPtr(target)), true);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual RakNetGUID GetMyGUID() {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.RakPeerInterface_GetMyGUID(swigCPtr), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual SystemAddress GetMyBoundAddress(int socketIndex) {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeerInterface_GetMyBoundAddress__SWIG_0(swigCPtr, socketIndex), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual SystemAddress GetMyBoundAddress() {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeerInterface_GetMyBoundAddress__SWIG_1(swigCPtr), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static ulong Get64BitUniqueRandomNumber() {
|
||||
ulong ret = SLikeNetPINVOKE.RakPeerInterface_Get64BitUniqueRandomNumber();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual RakNetGUID GetGuidFromSystemAddress(SystemAddress input) {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.RakPeerInterface_GetGuidFromSystemAddress(swigCPtr, SystemAddress.getCPtr(input)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual SystemAddress GetSystemAddressFromGuid(RakNetGUID input) {
|
||||
SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeerInterface_GetSystemAddressFromGuid(swigCPtr, RakNetGUID.getCPtr(input)), true);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual bool GetClientPublicKeyFromSystemAddress(SystemAddress input, string client_public_key) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_GetClientPublicKeyFromSystemAddress(swigCPtr, SystemAddress.getCPtr(input), client_public_key);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void SetTimeoutTime(uint timeMS, SystemAddress target) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SetTimeoutTime(swigCPtr, timeMS, SystemAddress.getCPtr(target));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual uint GetTimeoutTime(SystemAddress target) {
|
||||
uint ret = SLikeNetPINVOKE.RakPeerInterface_GetTimeoutTime(swigCPtr, SystemAddress.getCPtr(target));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual int GetMTUSize(SystemAddress target) {
|
||||
int ret = SLikeNetPINVOKE.RakPeerInterface_GetMTUSize(swigCPtr, SystemAddress.getCPtr(target));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual uint GetNumberOfAddresses() {
|
||||
uint ret = SLikeNetPINVOKE.RakPeerInterface_GetNumberOfAddresses(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual string GetLocalIP(uint index) {
|
||||
string ret = SLikeNetPINVOKE.RakPeerInterface_GetLocalIP(swigCPtr, index);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual bool IsLocalIP(string ip) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_IsLocalIP(swigCPtr, ip);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void AllowConnectionResponseIPMigration(bool allow) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_AllowConnectionResponseIPMigration(swigCPtr, allow);
|
||||
}
|
||||
|
||||
public virtual bool AdvertiseSystem(string host, ushort remotePort, string data, int dataLength, uint connectionSocketIndex) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_AdvertiseSystem__SWIG_0(swigCPtr, host, remotePort, data, dataLength, connectionSocketIndex);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual bool AdvertiseSystem(string host, ushort remotePort, string data, int dataLength) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_AdvertiseSystem__SWIG_1(swigCPtr, host, remotePort, data, dataLength);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void SetSplitMessageProgressInterval(int interval) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SetSplitMessageProgressInterval(swigCPtr, interval);
|
||||
}
|
||||
|
||||
public virtual int GetSplitMessageProgressInterval() {
|
||||
int ret = SLikeNetPINVOKE.RakPeerInterface_GetSplitMessageProgressInterval(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void SetUnreliableTimeout(uint timeoutMS) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SetUnreliableTimeout(swigCPtr, timeoutMS);
|
||||
}
|
||||
|
||||
public virtual void SendTTL(string host, ushort remotePort, int ttl, uint connectionSocketIndex) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SendTTL__SWIG_0(swigCPtr, host, remotePort, ttl, connectionSocketIndex);
|
||||
}
|
||||
|
||||
public virtual void SendTTL(string host, ushort remotePort, int ttl) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SendTTL__SWIG_1(swigCPtr, host, remotePort, ttl);
|
||||
}
|
||||
|
||||
public virtual void AttachPlugin(PluginInterface2 plugin) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_AttachPlugin(swigCPtr, PluginInterface2.getCPtr(plugin));
|
||||
}
|
||||
|
||||
public virtual void DetachPlugin(PluginInterface2 messageHandler) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_DetachPlugin(swigCPtr, PluginInterface2.getCPtr(messageHandler));
|
||||
}
|
||||
|
||||
public virtual void PushBackPacket(Packet packet, bool pushAtHead) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_PushBackPacket(swigCPtr, Packet.getCPtr(packet), pushAtHead);
|
||||
}
|
||||
|
||||
public virtual void ChangeSystemAddress(RakNetGUID guid, SystemAddress systemAddress) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_ChangeSystemAddress(swigCPtr, RakNetGUID.getCPtr(guid), SystemAddress.getCPtr(systemAddress));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual Packet AllocatePacket(uint dataSize) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakPeerInterface_AllocatePacket(swigCPtr, dataSize);
|
||||
Packet ret = (cPtr == IntPtr.Zero) ? null : new Packet(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void GetSockets(SWIGTYPE_p_DataStructures__ListT_RakNetSocket2_p_t sockets) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_GetSockets(swigCPtr, SWIGTYPE_p_DataStructures__ListT_RakNetSocket2_p_t.getCPtr(sockets));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public virtual void WriteOutOfBandHeader(BitStream bitStream) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_WriteOutOfBandHeader(swigCPtr, BitStream.getCPtr(bitStream));
|
||||
}
|
||||
|
||||
public virtual void ApplyNetworkSimulator(float packetloss, ushort minExtraPing, ushort extraPingVariance) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_ApplyNetworkSimulator(swigCPtr, packetloss, minExtraPing, extraPingVariance);
|
||||
}
|
||||
|
||||
public virtual void SetPerConnectionOutgoingBandwidthLimit(uint maxBitsPerSecond) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SetPerConnectionOutgoingBandwidthLimit(swigCPtr, maxBitsPerSecond);
|
||||
}
|
||||
|
||||
public virtual bool IsNetworkSimulatorActive() {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_IsNetworkSimulatorActive(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual RakNetStatistics GetStatistics(SystemAddress systemAddress, RakNetStatistics rns) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakPeerInterface_GetStatistics__SWIG_0(swigCPtr, SystemAddress.getCPtr(systemAddress), RakNetStatistics.getCPtr(rns));
|
||||
RakNetStatistics ret = (cPtr == IntPtr.Zero) ? null : new RakNetStatistics(cPtr, false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual RakNetStatistics GetStatistics(SystemAddress systemAddress) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakPeerInterface_GetStatistics__SWIG_1(swigCPtr, SystemAddress.getCPtr(systemAddress));
|
||||
RakNetStatistics ret = (cPtr == IntPtr.Zero) ? null : new RakNetStatistics(cPtr, false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual bool GetStatistics(uint index, RakNetStatistics rns) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_GetStatistics__SWIG_2(swigCPtr, index, RakNetStatistics.getCPtr(rns));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual uint GetReceiveBufferSize() {
|
||||
uint ret = SLikeNetPINVOKE.RakPeerInterface_GetReceiveBufferSize(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual bool RunUpdateCycle(BitStream updateBitStream) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_RunUpdateCycle(swigCPtr, BitStream.getCPtr(updateBitStream));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual bool SendOutOfBand(string host, ushort remotePort, string data, uint dataLength, uint connectionSocketIndex) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_SendOutOfBand__SWIG_0(swigCPtr, host, remotePort, data, dataLength, connectionSocketIndex);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual bool SendOutOfBand(string host, ushort remotePort, string data, uint dataLength) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_SendOutOfBand__SWIG_1(swigCPtr, host, remotePort, data, dataLength);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint Send(byte[] inByteArray, int length, PacketPriority priority, PacketReliability reliability, char orderingChannel, AddressOrGUID systemIdentifier, bool broadcast) {
|
||||
uint ret = SLikeNetPINVOKE.RakPeerInterface_Send__SWIG_4(swigCPtr, inByteArray, length, (int)priority, (int)reliability, orderingChannel, AddressOrGUID.getCPtr(systemIdentifier), broadcast);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void SendLoopback(byte[] inByteArray, int length) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SendLoopback__SWIG_1(swigCPtr, inByteArray, length);
|
||||
}
|
||||
|
||||
public void SetOfflinePingResponse(byte[] inByteArray, uint length) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SetOfflinePingResponse__SWIG_1(swigCPtr, inByteArray, length);
|
||||
}
|
||||
|
||||
public bool AdvertiseSystem(string host, ushort remotePort, byte[] inByteArray, int dataLength, uint connectionSocketIndex) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_AdvertiseSystem__SWIG_2(swigCPtr, host, remotePort, inByteArray, dataLength, connectionSocketIndex);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool AdvertiseSystem(string host, ushort remotePort, byte[] inByteArray, int dataLength) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_AdvertiseSystem__SWIG_3(swigCPtr, host, remotePort, inByteArray, dataLength);
|
||||
return ret;
|
||||
}
|
||||
|
||||
private string CSharpGetIncomingPasswordHelper(string passwordData, ref int passwordDataLength) {
|
||||
string ret = SLikeNetPINVOKE.RakPeerInterface_CSharpGetIncomingPasswordHelper(swigCPtr, passwordData, ref passwordDataLength);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void SetIncomingPassword(byte[] passwordDataByteArray, int passwordDataLength) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_SetIncomingPassword__SWIG_1(swigCPtr, passwordDataByteArray, passwordDataLength);
|
||||
}
|
||||
|
||||
public void GetIncomingPassword(byte[] passwordDataByteArray, ref int passwordDataLength) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_GetIncomingPassword(swigCPtr, passwordDataByteArray, ref passwordDataLength);
|
||||
}
|
||||
|
||||
private void CSharpGetOfflinePingResponseHelper(byte[] inOutByteArray, out uint outLength) {
|
||||
SLikeNetPINVOKE.RakPeerInterface_CSharpGetOfflinePingResponseHelper(swigCPtr, inOutByteArray, out outLength);
|
||||
}
|
||||
|
||||
public bool GetConnectionList(RakNetListSystemAddress remoteSystems, ref ushort numberOfSystems) {
|
||||
bool ret = SLikeNetPINVOKE.RakPeerInterface_GetConnectionList(swigCPtr, RakNetListSystemAddress.getCPtr(remoteSystems), ref numberOfSystems);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
614
bindings/csharp/interfaces/RakString.cs
Normal file
614
bindings/csharp/interfaces/RakString.cs
Normal file
@ -0,0 +1,614 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
#pragma warning disable 0660
|
||||
|
||||
public class RakString : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakString(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakString obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakString() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakString(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return this.C_String().GetHashCode();
|
||||
}
|
||||
|
||||
public static bool operator ==(RakString a, RakString b)
|
||||
{
|
||||
// If both are null, or both are same instance, return true.
|
||||
if (System.Object.ReferenceEquals(a, b))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// If one is null, but not both, return false.
|
||||
if (((object)a == null) || ((object)b == null))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return a.Equals(b);//Equals should be overloaded as well
|
||||
}
|
||||
|
||||
public static bool operator ==(RakString a, string b)
|
||||
{
|
||||
// If both are null, or both are same instance, return true.
|
||||
if (System.Object.ReferenceEquals(a, b))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// If one is null, but not both, return false.
|
||||
if (((object)a == null) || ((object)b == null))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return a.Equals(b);//Equals should be overloaded as well
|
||||
}
|
||||
|
||||
public static bool operator ==(RakString a, char b)
|
||||
{
|
||||
// If both are null, or both are same instance, return true.
|
||||
if (System.Object.ReferenceEquals(a, b))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// If one is null, but not both, return false.
|
||||
if (((object)a == null) || ((object)b == null))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return a.Equals(b);//Equals should be overloaded as well
|
||||
}
|
||||
|
||||
public static bool operator !=(RakString a, char b)
|
||||
{
|
||||
return !(a==b);
|
||||
}
|
||||
|
||||
public static bool operator !=(RakString a, RakString b)
|
||||
{
|
||||
return a.OpNotEqual(b);
|
||||
}
|
||||
|
||||
public static bool operator !=(RakString a, string b)
|
||||
{
|
||||
return a.OpNotEqual(b);
|
||||
}
|
||||
|
||||
public static bool operator < (RakString a, RakString b)
|
||||
{
|
||||
return a.OpLess(b);
|
||||
}
|
||||
|
||||
public static bool operator >(RakString a, RakString b)
|
||||
{
|
||||
return a.OpGreater(b);
|
||||
}
|
||||
|
||||
public static bool operator <=(RakString a, RakString b)
|
||||
{
|
||||
return a.OpLessEquals(b);
|
||||
}
|
||||
|
||||
public static bool operator >=(RakString a, RakString b)
|
||||
{
|
||||
return a.OpGreaterEquals(b);
|
||||
}
|
||||
|
||||
public char this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return (char)OpArray((uint)index); // use indexto retrieve and return another value.
|
||||
}
|
||||
set
|
||||
{
|
||||
Replace((uint)index,1,(byte)value);// use index and value to set the value somewhere.
|
||||
}
|
||||
}
|
||||
|
||||
public static RakString operator +(RakString a, RakString b)
|
||||
{
|
||||
return SLikeNet.OpPlus(a,b);
|
||||
}
|
||||
|
||||
public static implicit operator RakString(String s)
|
||||
{
|
||||
return new RakString(s);
|
||||
}
|
||||
|
||||
public static implicit operator RakString(char c)
|
||||
{
|
||||
return new RakString(c);
|
||||
}
|
||||
|
||||
public static implicit operator RakString(byte c)
|
||||
{
|
||||
return new RakString(c);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return C_String();
|
||||
}
|
||||
|
||||
public void SetChar(uint index, char inChar)
|
||||
{
|
||||
SetChar(index,(byte)inChar);
|
||||
}
|
||||
|
||||
public void Replace(uint index, uint count, char inChar)
|
||||
{
|
||||
Replace(index,count,(byte)inChar);
|
||||
}
|
||||
public RakString() : this(SLikeNetPINVOKE.new_RakString__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakString(char input) : this(SLikeNetPINVOKE.new_RakString__SWIG_1(input), true) {
|
||||
}
|
||||
|
||||
public RakString(byte input) : this(SLikeNetPINVOKE.new_RakString__SWIG_2(input), true) {
|
||||
}
|
||||
|
||||
public RakString(string format) : this(SLikeNetPINVOKE.new_RakString__SWIG_3(format), true) {
|
||||
}
|
||||
|
||||
public RakString(RakString rhs) : this(SLikeNetPINVOKE.new_RakString__SWIG_4(RakString.getCPtr(rhs)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public string C_String() {
|
||||
string ret = SLikeNetPINVOKE.RakString_C_String(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public string C_StringUnsafe() {
|
||||
string ret = SLikeNetPINVOKE.RakString_C_StringUnsafe(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakString CopyData(RakString rhs) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_CopyData__SWIG_0(swigCPtr, RakString.getCPtr(rhs)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakString CopyData(string str) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_CopyData__SWIG_1(swigCPtr, str), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakString CopyData(SWIGTYPE_p_unsigned_char str) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_CopyData__SWIG_2(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(str)), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakString CopyData(char c) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_CopyData__SWIG_4(swigCPtr, c), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
private byte OpArray(uint position) {
|
||||
byte ret = SLikeNetPINVOKE.RakString_OpArray(swigCPtr, position);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint Find(string stringToFind, uint pos) {
|
||||
uint ret = SLikeNetPINVOKE.RakString_Find__SWIG_0(swigCPtr, stringToFind, pos);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint Find(string stringToFind) {
|
||||
uint ret = SLikeNetPINVOKE.RakString_Find__SWIG_1(swigCPtr, stringToFind);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool Equals(RakString rhs) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_Equals__SWIG_0(swigCPtr, RakString.getCPtr(rhs));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool Equals(string str) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_Equals__SWIG_1(swigCPtr, str);
|
||||
return ret;
|
||||
}
|
||||
|
||||
private bool OpLess(RakString right) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_OpLess(swigCPtr, RakString.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private bool OpLessEquals(RakString right) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_OpLessEquals(swigCPtr, RakString.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private bool OpGreater(RakString right) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_OpGreater(swigCPtr, RakString.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private bool OpGreaterEquals(RakString right) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_OpGreaterEquals(swigCPtr, RakString.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private bool OpNotEqual(RakString rhs) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_OpNotEqual__SWIG_0(swigCPtr, RakString.getCPtr(rhs));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private bool OpNotEqual(string str) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_OpNotEqual__SWIG_1(swigCPtr, str);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public string ToLower() {
|
||||
string ret = SLikeNetPINVOKE.RakString_ToLower(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public string ToUpper() {
|
||||
string ret = SLikeNetPINVOKE.RakString_ToUpper(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Set(string format) {
|
||||
SLikeNetPINVOKE.RakString_Set(swigCPtr, format);
|
||||
}
|
||||
|
||||
public RakString Assign(string str, uint pos, uint n) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_Assign(swigCPtr, str, pos, n), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool IsEmpty() {
|
||||
bool ret = SLikeNetPINVOKE.RakString_IsEmpty(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint GetLength() {
|
||||
uint ret = SLikeNetPINVOKE.RakString_GetLength(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint GetLengthUTF8() {
|
||||
uint ret = SLikeNetPINVOKE.RakString_GetLengthUTF8(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Replace(uint index, uint count, byte c) {
|
||||
SLikeNetPINVOKE.RakString_Replace(swigCPtr, index, count, c);
|
||||
}
|
||||
|
||||
public void SetChar(uint index, byte c) {
|
||||
SLikeNetPINVOKE.RakString_SetChar__SWIG_0(swigCPtr, index, c);
|
||||
}
|
||||
|
||||
public void SetChar(uint index, RakString s) {
|
||||
SLikeNetPINVOKE.RakString_SetChar__SWIG_1(swigCPtr, index, RakString.getCPtr(s));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void Truncate(uint length) {
|
||||
SLikeNetPINVOKE.RakString_Truncate(swigCPtr, length);
|
||||
}
|
||||
|
||||
public void TruncateUTF8(uint length) {
|
||||
SLikeNetPINVOKE.RakString_TruncateUTF8(swigCPtr, length);
|
||||
}
|
||||
|
||||
public RakString SubStr(uint index, uint count) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_SubStr(swigCPtr, index, count), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Erase(uint index, uint count) {
|
||||
SLikeNetPINVOKE.RakString_Erase(swigCPtr, index, count);
|
||||
}
|
||||
|
||||
public void TerminateAtFirstCharacter(char c) {
|
||||
SLikeNetPINVOKE.RakString_TerminateAtFirstCharacter(swigCPtr, c);
|
||||
}
|
||||
|
||||
public void TerminateAtLastCharacter(char c) {
|
||||
SLikeNetPINVOKE.RakString_TerminateAtLastCharacter(swigCPtr, c);
|
||||
}
|
||||
|
||||
public void StartAfterFirstCharacter(char c) {
|
||||
SLikeNetPINVOKE.RakString_StartAfterFirstCharacter(swigCPtr, c);
|
||||
}
|
||||
|
||||
public void StartAfterLastCharacter(char c) {
|
||||
SLikeNetPINVOKE.RakString_StartAfterLastCharacter(swigCPtr, c);
|
||||
}
|
||||
|
||||
public int GetCharacterCount(char c) {
|
||||
int ret = SLikeNetPINVOKE.RakString_GetCharacterCount(swigCPtr, c);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void RemoveCharacter(char c) {
|
||||
SLikeNetPINVOKE.RakString_RemoveCharacter(swigCPtr, c);
|
||||
}
|
||||
|
||||
public static RakString NonVariadic(string str) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_NonVariadic(str), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static uint ToInteger(string str) {
|
||||
uint ret = SLikeNetPINVOKE.RakString_ToInteger__SWIG_0(str);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static uint ToInteger(RakString rs) {
|
||||
uint ret = SLikeNetPINVOKE.RakString_ToInteger__SWIG_1(RakString.getCPtr(rs));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int ReadIntFromSubstring(string str, uint pos, uint n) {
|
||||
int ret = SLikeNetPINVOKE.RakString_ReadIntFromSubstring(str, pos, n);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void AppendBytes(string bytes, uint count) {
|
||||
SLikeNetPINVOKE.RakString_AppendBytes__SWIG_0(swigCPtr, bytes, count);
|
||||
}
|
||||
|
||||
public int StrCmp(RakString rhs) {
|
||||
int ret = SLikeNetPINVOKE.RakString_StrCmp(swigCPtr, RakString.getCPtr(rhs));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public int StrNCmp(RakString rhs, uint num) {
|
||||
int ret = SLikeNetPINVOKE.RakString_StrNCmp(swigCPtr, RakString.getCPtr(rhs), num);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public int StrICmp(RakString rhs) {
|
||||
int ret = SLikeNetPINVOKE.RakString_StrICmp(swigCPtr, RakString.getCPtr(rhs));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
SLikeNetPINVOKE.RakString_Clear(swigCPtr);
|
||||
}
|
||||
|
||||
public void Printf() {
|
||||
SLikeNetPINVOKE.RakString_Printf(swigCPtr);
|
||||
}
|
||||
|
||||
public bool IPAddressMatch(string IP) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_IPAddressMatch(swigCPtr, IP);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool ContainsNonprintableExceptSpaces() {
|
||||
bool ret = SLikeNetPINVOKE.RakString_ContainsNonprintableExceptSpaces(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool IsEmailAddress() {
|
||||
bool ret = SLikeNetPINVOKE.RakString_IsEmailAddress(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakString URLEncode() {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_URLEncode(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakString URLDecode() {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_URLDecode(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void SplitURI(RakString header, RakString domain, RakString path) {
|
||||
SLikeNetPINVOKE.RakString_SplitURI(swigCPtr, RakString.getCPtr(header), RakString.getCPtr(domain), RakString.getCPtr(path));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakString SQLEscape() {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_SQLEscape(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static RakString FormatForPOST(string uri, string contentType, string body, string extraHeaders) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_FormatForPOST__SWIG_0(uri, contentType, body, extraHeaders), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static RakString FormatForPOST(string uri, string contentType, string body) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_FormatForPOST__SWIG_1(uri, contentType, body), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static RakString FormatForPUT(string uri, string contentType, string body, string extraHeaders) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_FormatForPUT__SWIG_0(uri, contentType, body, extraHeaders), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static RakString FormatForPUT(string uri, string contentType, string body) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_FormatForPUT__SWIG_1(uri, contentType, body), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static RakString FormatForGET(string uri, string extraHeaders) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_FormatForGET__SWIG_0(uri, extraHeaders), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static RakString FormatForGET(string uri) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_FormatForGET__SWIG_1(uri), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static RakString FormatForDELETE(string uri, string extraHeaders) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_FormatForDELETE__SWIG_0(uri, extraHeaders), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static RakString FormatForDELETE(string uri) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_FormatForDELETE__SWIG_1(uri), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakString MakeFilePath() {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.RakString_MakeFilePath(swigCPtr), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void FreeMemory() {
|
||||
SLikeNetPINVOKE.RakString_FreeMemory();
|
||||
}
|
||||
|
||||
public static void FreeMemoryNoMutex() {
|
||||
SLikeNetPINVOKE.RakString_FreeMemoryNoMutex();
|
||||
}
|
||||
|
||||
public void Serialize(BitStream bs) {
|
||||
SLikeNetPINVOKE.RakString_Serialize__SWIG_0(swigCPtr, BitStream.getCPtr(bs));
|
||||
}
|
||||
|
||||
public static void Serialize(string str, BitStream bs) {
|
||||
SLikeNetPINVOKE.RakString_Serialize__SWIG_1(str, BitStream.getCPtr(bs));
|
||||
}
|
||||
|
||||
public void SerializeCompressed(BitStream bs, byte languageId, bool writeLanguageId) {
|
||||
SLikeNetPINVOKE.RakString_SerializeCompressed__SWIG_0(swigCPtr, BitStream.getCPtr(bs), languageId, writeLanguageId);
|
||||
}
|
||||
|
||||
public void SerializeCompressed(BitStream bs, byte languageId) {
|
||||
SLikeNetPINVOKE.RakString_SerializeCompressed__SWIG_1(swigCPtr, BitStream.getCPtr(bs), languageId);
|
||||
}
|
||||
|
||||
public void SerializeCompressed(BitStream bs) {
|
||||
SLikeNetPINVOKE.RakString_SerializeCompressed__SWIG_2(swigCPtr, BitStream.getCPtr(bs));
|
||||
}
|
||||
|
||||
public static void SerializeCompressed(string str, BitStream bs, byte languageId, bool writeLanguageId) {
|
||||
SLikeNetPINVOKE.RakString_SerializeCompressed__SWIG_3(str, BitStream.getCPtr(bs), languageId, writeLanguageId);
|
||||
}
|
||||
|
||||
public static void SerializeCompressed(string str, BitStream bs, byte languageId) {
|
||||
SLikeNetPINVOKE.RakString_SerializeCompressed__SWIG_4(str, BitStream.getCPtr(bs), languageId);
|
||||
}
|
||||
|
||||
public static void SerializeCompressed(string str, BitStream bs) {
|
||||
SLikeNetPINVOKE.RakString_SerializeCompressed__SWIG_5(str, BitStream.getCPtr(bs));
|
||||
}
|
||||
|
||||
public bool Deserialize(BitStream bs) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_Deserialize__SWIG_0(swigCPtr, BitStream.getCPtr(bs));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool Deserialize(string str, BitStream bs) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_Deserialize__SWIG_1(str, BitStream.getCPtr(bs));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool DeserializeCompressed(BitStream bs, bool readLanguageId) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_DeserializeCompressed__SWIG_0(swigCPtr, BitStream.getCPtr(bs), readLanguageId);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool DeserializeCompressed(BitStream bs) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_DeserializeCompressed__SWIG_1(swigCPtr, BitStream.getCPtr(bs));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool DeserializeCompressed(string str, BitStream bs, bool readLanguageId) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_DeserializeCompressed__SWIG_2(str, BitStream.getCPtr(bs), readLanguageId);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool DeserializeCompressed(string str, BitStream bs) {
|
||||
bool ret = SLikeNetPINVOKE.RakString_DeserializeCompressed__SWIG_3(str, BitStream.getCPtr(bs));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static string ToString(long i) {
|
||||
string ret = SLikeNetPINVOKE.RakString_ToString__SWIG_0(i);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static string ToString(ulong i) {
|
||||
string ret = SLikeNetPINVOKE.RakString_ToString__SWIG_1(i);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static uint GetSizeToAllocate(uint bytes) {
|
||||
uint ret = SLikeNetPINVOKE.RakString_GetSizeToAllocate(bytes);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int RakStringComp(RakString key, RakString data) {
|
||||
int ret = SLikeNetPINVOKE.RakString_RakStringComp(RakString.getCPtr(key), RakString.getCPtr(data));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void LockMutex() {
|
||||
SLikeNetPINVOKE.RakString_LockMutex();
|
||||
}
|
||||
|
||||
public static void UnlockMutex() {
|
||||
SLikeNetPINVOKE.RakString_UnlockMutex();
|
||||
}
|
||||
|
||||
public void AppendBytes(byte[] inByteArray, uint count) {
|
||||
SLikeNetPINVOKE.RakString_AppendBytes__SWIG_1(swigCPtr, inByteArray, count);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
194
bindings/csharp/interfaces/RakWString.cs
Normal file
194
bindings/csharp/interfaces/RakWString.cs
Normal file
@ -0,0 +1,194 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RakWString : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RakWString(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RakWString obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RakWString() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RakWString(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public RakWString() : this(SLikeNetPINVOKE.new_RakWString__SWIG_0(), true) {
|
||||
}
|
||||
|
||||
public RakWString(RakString right) : this(SLikeNetPINVOKE.new_RakWString__SWIG_1(RakString.getCPtr(right)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakWString(SWIGTYPE_p_wchar_t input) : this(SLikeNetPINVOKE.new_RakWString__SWIG_2(SWIGTYPE_p_wchar_t.getCPtr(input)), true) {
|
||||
}
|
||||
|
||||
public RakWString(RakWString right) : this(SLikeNetPINVOKE.new_RakWString__SWIG_3(RakWString.getCPtr(right)), true) {
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakWString(string input) : this(SLikeNetPINVOKE.new_RakWString__SWIG_4(input), true) {
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_wchar_t C_String() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RakWString_C_String(swigCPtr);
|
||||
SWIGTYPE_p_wchar_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_wchar_t(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakWString CopyData(RakWString right) {
|
||||
RakWString ret = new RakWString(SLikeNetPINVOKE.RakWString_CopyData__SWIG_0(swigCPtr, RakWString.getCPtr(right)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakWString CopyData(RakString right) {
|
||||
RakWString ret = new RakWString(SLikeNetPINVOKE.RakWString_CopyData__SWIG_1(swigCPtr, RakString.getCPtr(right)), false);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakWString CopyData(SWIGTYPE_p_wchar_t str) {
|
||||
RakWString ret = new RakWString(SLikeNetPINVOKE.RakWString_CopyData__SWIG_2(swigCPtr, SWIGTYPE_p_wchar_t.getCPtr(str)), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakWString CopyData(string str) {
|
||||
RakWString ret = new RakWString(SLikeNetPINVOKE.RakWString_CopyData__SWIG_4(swigCPtr, str), false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool Equals(RakWString right) {
|
||||
bool ret = SLikeNetPINVOKE.RakWString_Equals(swigCPtr, RakWString.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private bool OpLess(RakWString right) {
|
||||
bool ret = SLikeNetPINVOKE.RakWString_OpLess(swigCPtr, RakWString.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private bool OpLessEquals(RakWString right) {
|
||||
bool ret = SLikeNetPINVOKE.RakWString_OpLessEquals(swigCPtr, RakWString.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private bool OpGreater(RakWString right) {
|
||||
bool ret = SLikeNetPINVOKE.RakWString_OpGreater(swigCPtr, RakWString.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private bool OpGreaterEquals(RakWString right) {
|
||||
bool ret = SLikeNetPINVOKE.RakWString_OpGreaterEquals(swigCPtr, RakWString.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private bool OpNotEqual(RakWString right) {
|
||||
bool ret = SLikeNetPINVOKE.RakWString_OpNotEqual(swigCPtr, RakWString.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Set(SWIGTYPE_p_wchar_t str) {
|
||||
SLikeNetPINVOKE.RakWString_Set(swigCPtr, SWIGTYPE_p_wchar_t.getCPtr(str));
|
||||
}
|
||||
|
||||
public bool IsEmpty() {
|
||||
bool ret = SLikeNetPINVOKE.RakWString_IsEmpty(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint GetLength() {
|
||||
uint ret = SLikeNetPINVOKE.RakWString_GetLength(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static uint ToInteger(RakWString rs) {
|
||||
uint ret = SLikeNetPINVOKE.RakWString_ToInteger(RakWString.getCPtr(rs));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public int StrCmp(RakWString right) {
|
||||
int ret = SLikeNetPINVOKE.RakWString_StrCmp(swigCPtr, RakWString.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public int StrICmp(RakWString right) {
|
||||
int ret = SLikeNetPINVOKE.RakWString_StrICmp(swigCPtr, RakWString.getCPtr(right));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
SLikeNetPINVOKE.RakWString_Clear(swigCPtr);
|
||||
}
|
||||
|
||||
public void Printf() {
|
||||
SLikeNetPINVOKE.RakWString_Printf(swigCPtr);
|
||||
}
|
||||
|
||||
public void FPrintf(SWIGTYPE_p_FILE fp) {
|
||||
SLikeNetPINVOKE.RakWString_FPrintf(swigCPtr, SWIGTYPE_p_FILE.getCPtr(fp));
|
||||
}
|
||||
|
||||
public void Serialize(BitStream bs) {
|
||||
SLikeNetPINVOKE.RakWString_Serialize__SWIG_0(swigCPtr, BitStream.getCPtr(bs));
|
||||
}
|
||||
|
||||
public static void Serialize(SWIGTYPE_p_wchar_t str, BitStream bs) {
|
||||
SLikeNetPINVOKE.RakWString_Serialize__SWIG_1(SWIGTYPE_p_wchar_t.getCPtr(str), BitStream.getCPtr(bs));
|
||||
}
|
||||
|
||||
public bool Deserialize(BitStream bs) {
|
||||
bool ret = SLikeNetPINVOKE.RakWString_Deserialize__SWIG_0(swigCPtr, BitStream.getCPtr(bs));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool Deserialize(SWIGTYPE_p_wchar_t str, BitStream bs) {
|
||||
bool ret = SLikeNetPINVOKE.RakWString_Deserialize__SWIG_1(SWIGTYPE_p_wchar_t.getCPtr(str), BitStream.getCPtr(bs));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool Deserialize(SWIGTYPE_p_wchar_t str, uint strLength, BitStream bs) {
|
||||
bool ret = SLikeNetPINVOKE.RakWString_Deserialize__SWIG_2(SWIGTYPE_p_wchar_t.getCPtr(str), strLength, BitStream.getCPtr(bs));
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
146
bindings/csharp/interfaces/ReadyEvent.cs
Normal file
146
bindings/csharp/interfaces/ReadyEvent.cs
Normal file
@ -0,0 +1,146 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class ReadyEvent : PluginInterface2 {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal ReadyEvent(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.ReadyEvent_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(ReadyEvent obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~ReadyEvent() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_ReadyEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public static ReadyEvent GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.ReadyEvent_GetInstance();
|
||||
ReadyEvent ret = (cPtr == IntPtr.Zero) ? null : new ReadyEvent(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(ReadyEvent i) {
|
||||
SLikeNetPINVOKE.ReadyEvent_DestroyInstance(ReadyEvent.getCPtr(i));
|
||||
}
|
||||
|
||||
public ReadyEvent() : this(SLikeNetPINVOKE.new_ReadyEvent(), true) {
|
||||
}
|
||||
|
||||
public bool SetEvent(int eventId, bool isReady) {
|
||||
bool ret = SLikeNetPINVOKE.ReadyEvent_SetEvent(swigCPtr, eventId, isReady);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void ForceCompletion(int eventId) {
|
||||
SLikeNetPINVOKE.ReadyEvent_ForceCompletion(swigCPtr, eventId);
|
||||
}
|
||||
|
||||
public bool DeleteEvent(int eventId) {
|
||||
bool ret = SLikeNetPINVOKE.ReadyEvent_DeleteEvent(swigCPtr, eventId);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool IsEventSet(int eventId) {
|
||||
bool ret = SLikeNetPINVOKE.ReadyEvent_IsEventSet(swigCPtr, eventId);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool IsEventCompletionProcessing(int eventId) {
|
||||
bool ret = SLikeNetPINVOKE.ReadyEvent_IsEventCompletionProcessing(swigCPtr, eventId);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool IsEventCompleted(int eventId) {
|
||||
bool ret = SLikeNetPINVOKE.ReadyEvent_IsEventCompleted(swigCPtr, eventId);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool HasEvent(int eventId) {
|
||||
bool ret = SLikeNetPINVOKE.ReadyEvent_HasEvent(swigCPtr, eventId);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint GetEventListSize() {
|
||||
uint ret = SLikeNetPINVOKE.ReadyEvent_GetEventListSize(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public int GetEventAtIndex(uint index) {
|
||||
int ret = SLikeNetPINVOKE.ReadyEvent_GetEventAtIndex(swigCPtr, index);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool AddToWaitList(int eventId, RakNetGUID guid) {
|
||||
bool ret = SLikeNetPINVOKE.ReadyEvent_AddToWaitList(swigCPtr, eventId, RakNetGUID.getCPtr(guid));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool RemoveFromWaitList(int eventId, RakNetGUID guid) {
|
||||
bool ret = SLikeNetPINVOKE.ReadyEvent_RemoveFromWaitList(swigCPtr, eventId, RakNetGUID.getCPtr(guid));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool IsInWaitList(int eventId, RakNetGUID guid) {
|
||||
bool ret = SLikeNetPINVOKE.ReadyEvent_IsInWaitList(swigCPtr, eventId, RakNetGUID.getCPtr(guid));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint GetRemoteWaitListSize(int eventId) {
|
||||
uint ret = SLikeNetPINVOKE.ReadyEvent_GetRemoteWaitListSize(swigCPtr, eventId);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RakNetGUID GetFromWaitListAtIndex(int eventId, uint index) {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.ReadyEvent_GetFromWaitListAtIndex(swigCPtr, eventId, index), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public ReadyEventSystemStatus GetReadyStatus(int eventId, RakNetGUID guid) {
|
||||
ReadyEventSystemStatus ret = (ReadyEventSystemStatus)SLikeNetPINVOKE.ReadyEvent_GetReadyStatus(swigCPtr, eventId, RakNetGUID.getCPtr(guid));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void SetSendChannel(byte newChannel) {
|
||||
SLikeNetPINVOKE.ReadyEvent_SetSendChannel(swigCPtr, newChannel);
|
||||
}
|
||||
|
||||
public static int RemoteSystemCompByGuid(RakNetGUID key, SWIGTYPE_p_SLNet__ReadyEvent__RemoteSystem data) {
|
||||
int ret = SLikeNetPINVOKE.ReadyEvent_RemoteSystemCompByGuid(RakNetGUID.getCPtr(key), SWIGTYPE_p_SLNet__ReadyEvent__RemoteSystem.getCPtr(data));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
19
bindings/csharp/interfaces/ReadyEventSystemStatus.cs
Normal file
19
bindings/csharp/interfaces/ReadyEventSystemStatus.cs
Normal file
@ -0,0 +1,19 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
public enum ReadyEventSystemStatus {
|
||||
RES_NOT_WAITING,
|
||||
RES_WAITING,
|
||||
RES_READY,
|
||||
RES_ALL_READY,
|
||||
RES_UNKNOWN_EVENT
|
||||
}
|
||||
|
||||
}
|
||||
70
bindings/csharp/interfaces/RemoteSystemIndex.cs
Normal file
70
bindings/csharp/interfaces/RemoteSystemIndex.cs
Normal file
@ -0,0 +1,70 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class RemoteSystemIndex : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal RemoteSystemIndex(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RemoteSystemIndex obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RemoteSystemIndex() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_RemoteSystemIndex(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public uint index {
|
||||
set {
|
||||
SLikeNetPINVOKE.RemoteSystemIndex_index_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.RemoteSystemIndex_index_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public RemoteSystemIndex next {
|
||||
set {
|
||||
SLikeNetPINVOKE.RemoteSystemIndex_next_set(swigCPtr, RemoteSystemIndex.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.RemoteSystemIndex_next_get(swigCPtr);
|
||||
RemoteSystemIndex ret = (cPtr == IntPtr.Zero) ? null : new RemoteSystemIndex(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public RemoteSystemIndex() : this(SLikeNetPINVOKE.new_RemoteSystemIndex(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
92
bindings/csharp/interfaces/Router2.cs
Normal file
92
bindings/csharp/interfaces/Router2.cs
Normal file
@ -0,0 +1,92 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class Router2 : PluginInterface2 {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal Router2(IntPtr cPtr, bool cMemoryOwn) : base(SLikeNetPINVOKE.Router2_SWIGUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(Router2 obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~Router2() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_Router2(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public static Router2 GetInstance() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.Router2_GetInstance();
|
||||
Router2 ret = (cPtr == IntPtr.Zero) ? null : new Router2(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DestroyInstance(Router2 i) {
|
||||
SLikeNetPINVOKE.Router2_DestroyInstance(Router2.getCPtr(i));
|
||||
}
|
||||
|
||||
public Router2() : this(SLikeNetPINVOKE.new_Router2(), true) {
|
||||
}
|
||||
|
||||
public void SetSocketFamily(ushort _socketFamily) {
|
||||
SLikeNetPINVOKE.Router2_SetSocketFamily(swigCPtr, _socketFamily);
|
||||
}
|
||||
|
||||
public void EstablishRouting(RakNetGUID endpointGuid) {
|
||||
SLikeNetPINVOKE.Router2_EstablishRouting(swigCPtr, RakNetGUID.getCPtr(endpointGuid));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void SetMaximumForwardingRequests(int max) {
|
||||
SLikeNetPINVOKE.Router2_SetMaximumForwardingRequests(swigCPtr, max);
|
||||
}
|
||||
|
||||
public void SetDebugInterface(Router2DebugInterface _debugInterface) {
|
||||
SLikeNetPINVOKE.Router2_SetDebugInterface(swigCPtr, Router2DebugInterface.getCPtr(_debugInterface));
|
||||
}
|
||||
|
||||
public Router2DebugInterface GetDebugInterface() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.Router2_GetDebugInterface(swigCPtr);
|
||||
Router2DebugInterface ret = (cPtr == IntPtr.Zero) ? null : new Router2DebugInterface(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint GetConnectionRequestIndex(RakNetGUID endpointGuid) {
|
||||
uint ret = SLikeNetPINVOKE.Router2_GetConnectionRequestIndex(swigCPtr, RakNetGUID.getCPtr(endpointGuid));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public enum Router2RequestStates {
|
||||
R2RS_REQUEST_STATE_QUERY_FORWARDING,
|
||||
REQUEST_STATE_REQUEST_FORWARDING
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
57
bindings/csharp/interfaces/Router2DebugInterface.cs
Normal file
57
bindings/csharp/interfaces/Router2DebugInterface.cs
Normal file
@ -0,0 +1,57 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class Router2DebugInterface : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal Router2DebugInterface(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(Router2DebugInterface obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~Router2DebugInterface() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_Router2DebugInterface(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public Router2DebugInterface() : this(SLikeNetPINVOKE.new_Router2DebugInterface(), true) {
|
||||
}
|
||||
|
||||
public virtual void ShowFailure(string message) {
|
||||
SLikeNetPINVOKE.Router2DebugInterface_ShowFailure(swigCPtr, message);
|
||||
}
|
||||
|
||||
public virtual void ShowDiagnostic(string message) {
|
||||
SLikeNetPINVOKE.Router2DebugInterface_ShowDiagnostic(swigCPtr, message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
72
bindings/csharp/interfaces/Row.cs
Normal file
72
bindings/csharp/interfaces/Row.cs
Normal file
@ -0,0 +1,72 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class Row : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal Row(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(Row obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~Row() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_Row(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public RakNetListCellPointer cells {
|
||||
set {
|
||||
SLikeNetPINVOKE.Row_cells_set(swigCPtr, RakNetListCellPointer.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.Row_cells_get(swigCPtr);
|
||||
RakNetListCellPointer ret = (cPtr == IntPtr.Zero) ? null : new RakNetListCellPointer(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateCell(uint columnIndex, double value) {
|
||||
SLikeNetPINVOKE.Row_UpdateCell__SWIG_0(swigCPtr, columnIndex, value);
|
||||
}
|
||||
|
||||
public void UpdateCell(uint columnIndex, string str) {
|
||||
SLikeNetPINVOKE.Row_UpdateCell__SWIG_1(swigCPtr, columnIndex, str);
|
||||
}
|
||||
|
||||
public void UpdateCell(uint columnIndex, int byteLength, byte[] inByteArray) {
|
||||
SLikeNetPINVOKE.Row_UpdateCell__SWIG_2(swigCPtr, columnIndex, byteLength, inByteArray);
|
||||
}
|
||||
|
||||
public Row() : this(SLikeNetPINVOKE.new_Row(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
190
bindings/csharp/interfaces/SLikeNet.cs
Normal file
190
bindings/csharp/interfaces/SLikeNet.cs
Normal file
@ -0,0 +1,190 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SLikeNet {
|
||||
|
||||
public static readonly SystemAddress UNASSIGNED_SYSTEM_ADDRESS = new SystemAddress();
|
||||
public static readonly RakNetGUID UNASSIGNED_RAKNET_GUID = new RakNetGUID(ulong.MaxValue);
|
||||
|
||||
public static void StatisticsToString(RakNetStatistics s, out string buffer, int verbosityLevel)
|
||||
{
|
||||
String tmp = new String('c', 9999);
|
||||
buffer=StatisticsToStringHelper(s,tmp,verbosityLevel);
|
||||
}
|
||||
|
||||
public static string StatisticsToStringHelper(RakNetStatistics s, string buffer, int verbosityLevel) {
|
||||
string ret = SLikeNetPINVOKE.StatisticsToStringHelper(RakNetStatistics.getCPtr(s), buffer, verbosityLevel);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int MAX_RPC_MAP_SIZE {
|
||||
get {
|
||||
int ret = SLikeNetPINVOKE.MAX_RPC_MAP_SIZE_get();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public static int UNDEFINED_RPC_INDEX {
|
||||
get {
|
||||
int ret = SLikeNetPINVOKE.UNDEFINED_RPC_INDEX_get();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool NonNumericHostString(string host) {
|
||||
bool ret = SLikeNetPINVOKE.NonNumericHostString(host);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static ushort UNASSIGNED_PLAYER_INDEX {
|
||||
get {
|
||||
ushort ret = SLikeNetPINVOKE.UNASSIGNED_PLAYER_INDEX_get();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public static ulong UNASSIGNED_NETWORK_ID {
|
||||
get {
|
||||
ulong ret = SLikeNetPINVOKE.UNASSIGNED_NETWORK_ID_get();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public static int PING_TIMES_ARRAY_SIZE {
|
||||
get {
|
||||
int ret = SLikeNetPINVOKE.PING_TIMES_ARRAY_SIZE_get();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public static RakString OpPlus(RakString lhs, RakString rhs) {
|
||||
RakString ret = new RakString(SLikeNetPINVOKE.OpPlus__SWIG_0(RakString.getCPtr(lhs), RakString.getCPtr(rhs)), true);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
private static RakWString OpPlus(RakWString lhs, RakWString rhs) {
|
||||
RakWString ret = new RakWString(SLikeNetPINVOKE.OpPlus__SWIG_1(RakWString.getCPtr(lhs), RakWString.getCPtr(rhs)), true);
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static uint MAX_UNSIGNED_LONG {
|
||||
get {
|
||||
uint ret = SLikeNetPINVOKE.MAX_UNSIGNED_LONG_get();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public static ulong GetTime() {
|
||||
ulong ret = SLikeNetPINVOKE.GetTime();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static uint GetTimeMS() {
|
||||
uint ret = SLikeNetPINVOKE.GetTimeMS();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static ulong GetTimeUS() {
|
||||
ulong ret = SLikeNetPINVOKE.GetTimeUS();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool GreaterThan(ulong a, ulong b) {
|
||||
bool ret = SLikeNetPINVOKE.GreaterThan(a, b);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool LessThan(ulong a, ulong b) {
|
||||
bool ret = SLikeNetPINVOKE.LessThan(a, b);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static readonly int SWIG_CSHARP_NO_IMCLASS_STATIC_CONSTRUCTOR = SLikeNetPINVOKE.SWIG_CSHARP_NO_IMCLASS_STATIC_CONSTRUCTOR_get();
|
||||
public static readonly int __GET_TIME_64BIT = SLikeNetPINVOKE.__GET_TIME_64BIT_get();
|
||||
public static readonly int MAX_ALLOCA_STACK_ALLOCATION = SLikeNetPINVOKE.MAX_ALLOCA_STACK_ALLOCATION_get();
|
||||
public static readonly int _USE_RAK_MEMORY_OVERRIDE = SLikeNetPINVOKE._USE_RAK_MEMORY_OVERRIDE_get();
|
||||
public static readonly int OPEN_SSL_CLIENT_SUPPORT = SLikeNetPINVOKE.OPEN_SSL_CLIENT_SUPPORT_get();
|
||||
public static readonly int BITSTREAM_STACK_ALLOCATION_SIZE = SLikeNetPINVOKE.BITSTREAM_STACK_ALLOCATION_SIZE_get();
|
||||
public static readonly int MAXIMUM_NUMBER_OF_INTERNAL_IDS = SLikeNetPINVOKE.MAXIMUM_NUMBER_OF_INTERNAL_IDS_get();
|
||||
public static readonly int DATAGRAM_MESSAGE_ID_ARRAY_LENGTH = SLikeNetPINVOKE.DATAGRAM_MESSAGE_ID_ARRAY_LENGTH_get();
|
||||
public static readonly int RESEND_BUFFER_ARRAY_LENGTH = SLikeNetPINVOKE.RESEND_BUFFER_ARRAY_LENGTH_get();
|
||||
public static readonly int RESEND_BUFFER_ARRAY_MASK = SLikeNetPINVOKE.RESEND_BUFFER_ARRAY_MASK_get();
|
||||
public static readonly int GET_TIME_SPIKE_LIMIT = SLikeNetPINVOKE.GET_TIME_SPIKE_LIMIT_get();
|
||||
public static readonly int USE_SLIDING_WINDOW_CONGESTION_CONTROL = SLikeNetPINVOKE.USE_SLIDING_WINDOW_CONGESTION_CONTROL_get();
|
||||
public static readonly int PREALLOCATE_LARGE_MESSAGES = SLikeNetPINVOKE.PREALLOCATE_LARGE_MESSAGES_get();
|
||||
public static readonly int RAKNET_SUPPORT_IPV6 = SLikeNetPINVOKE.RAKNET_SUPPORT_IPV6_get();
|
||||
public static readonly int RAKSTRING_TYPE_IS_UNICODE = SLikeNetPINVOKE.RAKSTRING_TYPE_IS_UNICODE_get();
|
||||
public static readonly int RPC4_GLOBAL_REGISTRATION_MAX_FUNCTIONS = SLikeNetPINVOKE.RPC4_GLOBAL_REGISTRATION_MAX_FUNCTIONS_get();
|
||||
public static readonly int RPC4_GLOBAL_REGISTRATION_MAX_FUNCTION_NAME_LENGTH = SLikeNetPINVOKE.RPC4_GLOBAL_REGISTRATION_MAX_FUNCTION_NAME_LENGTH_get();
|
||||
public static readonly int XBOX_BYPASS_SECURITY = SLikeNetPINVOKE.XBOX_BYPASS_SECURITY_get();
|
||||
public static readonly int BUFFERED_PACKETS_PAGE_SIZE = SLikeNetPINVOKE.BUFFERED_PACKETS_PAGE_SIZE_get();
|
||||
public static readonly int INTERNAL_PACKET_PAGE_SIZE = SLikeNetPINVOKE.INTERNAL_PACKET_PAGE_SIZE_get();
|
||||
public static readonly int RAKPEER_USER_THREADED = SLikeNetPINVOKE.RAKPEER_USER_THREADED_get();
|
||||
public static readonly int USE_ALLOCA = SLikeNetPINVOKE.USE_ALLOCA_get();
|
||||
public static readonly int SLNET_MAX_RETRIEVABLE_FILESIZE = SLikeNetPINVOKE.SLNET_MAX_RETRIEVABLE_FILESIZE_get();
|
||||
public static readonly int LIBCAT_SECURITY = SLikeNetPINVOKE.LIBCAT_SECURITY_get();
|
||||
public static readonly int _RAKNET_SUPPORT_ConnectionGraph2 = SLikeNetPINVOKE._RAKNET_SUPPORT_ConnectionGraph2_get();
|
||||
public static readonly int _RAKNET_SUPPORT_DirectoryDeltaTransfer = SLikeNetPINVOKE._RAKNET_SUPPORT_DirectoryDeltaTransfer_get();
|
||||
public static readonly int _RAKNET_SUPPORT_FileListTransfer = SLikeNetPINVOKE._RAKNET_SUPPORT_FileListTransfer_get();
|
||||
public static readonly int _RAKNET_SUPPORT_FullyConnectedMesh = SLikeNetPINVOKE._RAKNET_SUPPORT_FullyConnectedMesh_get();
|
||||
public static readonly int _RAKNET_SUPPORT_FullyConnectedMesh2 = SLikeNetPINVOKE._RAKNET_SUPPORT_FullyConnectedMesh2_get();
|
||||
public static readonly int _RAKNET_SUPPORT_MessageFilter = SLikeNetPINVOKE._RAKNET_SUPPORT_MessageFilter_get();
|
||||
public static readonly int _RAKNET_SUPPORT_NatPunchthroughClient = SLikeNetPINVOKE._RAKNET_SUPPORT_NatPunchthroughClient_get();
|
||||
public static readonly int _RAKNET_SUPPORT_NatPunchthroughServer = SLikeNetPINVOKE._RAKNET_SUPPORT_NatPunchthroughServer_get();
|
||||
public static readonly int _RAKNET_SUPPORT_NatTypeDetectionClient = SLikeNetPINVOKE._RAKNET_SUPPORT_NatTypeDetectionClient_get();
|
||||
public static readonly int _RAKNET_SUPPORT_NatTypeDetectionServer = SLikeNetPINVOKE._RAKNET_SUPPORT_NatTypeDetectionServer_get();
|
||||
public static readonly int _RAKNET_SUPPORT_PacketLogger = SLikeNetPINVOKE._RAKNET_SUPPORT_PacketLogger_get();
|
||||
public static readonly int _RAKNET_SUPPORT_ReadyEvent = SLikeNetPINVOKE._RAKNET_SUPPORT_ReadyEvent_get();
|
||||
public static readonly int _RAKNET_SUPPORT_ReplicaManager3 = SLikeNetPINVOKE._RAKNET_SUPPORT_ReplicaManager3_get();
|
||||
public static readonly int _RAKNET_SUPPORT_Router2 = SLikeNetPINVOKE._RAKNET_SUPPORT_Router2_get();
|
||||
public static readonly int _RAKNET_SUPPORT_RPC4Plugin = SLikeNetPINVOKE._RAKNET_SUPPORT_RPC4Plugin_get();
|
||||
public static readonly int _RAKNET_SUPPORT_TeamBalancer = SLikeNetPINVOKE._RAKNET_SUPPORT_TeamBalancer_get();
|
||||
public static readonly int _RAKNET_SUPPORT_TeamManager = SLikeNetPINVOKE._RAKNET_SUPPORT_TeamManager_get();
|
||||
public static readonly int _RAKNET_SUPPORT_UDPProxyClient = SLikeNetPINVOKE._RAKNET_SUPPORT_UDPProxyClient_get();
|
||||
public static readonly int _RAKNET_SUPPORT_UDPProxyCoordinator = SLikeNetPINVOKE._RAKNET_SUPPORT_UDPProxyCoordinator_get();
|
||||
public static readonly int _RAKNET_SUPPORT_UDPProxyServer = SLikeNetPINVOKE._RAKNET_SUPPORT_UDPProxyServer_get();
|
||||
public static readonly int _RAKNET_SUPPORT_ConsoleServer = SLikeNetPINVOKE._RAKNET_SUPPORT_ConsoleServer_get();
|
||||
public static readonly int _RAKNET_SUPPORT_RakNetTransport = SLikeNetPINVOKE._RAKNET_SUPPORT_RakNetTransport_get();
|
||||
public static readonly int _RAKNET_SUPPORT_TelnetTransport = SLikeNetPINVOKE._RAKNET_SUPPORT_TelnetTransport_get();
|
||||
public static readonly int _RAKNET_SUPPORT_TCPInterface = SLikeNetPINVOKE._RAKNET_SUPPORT_TCPInterface_get();
|
||||
public static readonly int _RAKNET_SUPPORT_LogCommandParser = SLikeNetPINVOKE._RAKNET_SUPPORT_LogCommandParser_get();
|
||||
public static readonly int _RAKNET_SUPPORT_RakNetCommandParser = SLikeNetPINVOKE._RAKNET_SUPPORT_RakNetCommandParser_get();
|
||||
public static readonly int _RAKNET_SUPPORT_EmailSender = SLikeNetPINVOKE._RAKNET_SUPPORT_EmailSender_get();
|
||||
public static readonly int _RAKNET_SUPPORT_HTTPConnection = SLikeNetPINVOKE._RAKNET_SUPPORT_HTTPConnection_get();
|
||||
public static readonly int _RAKNET_SUPPORT_HTTPConnection2 = SLikeNetPINVOKE._RAKNET_SUPPORT_HTTPConnection2_get();
|
||||
public static readonly int _RAKNET_SUPPORT_PacketizedTCP = SLikeNetPINVOKE._RAKNET_SUPPORT_PacketizedTCP_get();
|
||||
public static readonly int _RAKNET_SUPPORT_TwoWayAuthentication = SLikeNetPINVOKE._RAKNET_SUPPORT_TwoWayAuthentication_get();
|
||||
public static readonly int _RAKNET_SUPPORT_CloudClient = SLikeNetPINVOKE._RAKNET_SUPPORT_CloudClient_get();
|
||||
public static readonly int _RAKNET_SUPPORT_CloudServer = SLikeNetPINVOKE._RAKNET_SUPPORT_CloudServer_get();
|
||||
public static readonly int _RAKNET_SUPPORT_DynDNS = SLikeNetPINVOKE._RAKNET_SUPPORT_DynDNS_get();
|
||||
public static readonly int _RAKNET_SUPPORT_Rackspace = SLikeNetPINVOKE._RAKNET_SUPPORT_Rackspace_get();
|
||||
public static readonly int _RAKNET_SUPPORT_FileOperations = SLikeNetPINVOKE._RAKNET_SUPPORT_FileOperations_get();
|
||||
public static readonly int _RAKNET_SUPPORT_UDPForwarder = SLikeNetPINVOKE._RAKNET_SUPPORT_UDPForwarder_get();
|
||||
public static readonly int _RAKNET_SUPPORT_StatisticsHistory = SLikeNetPINVOKE._RAKNET_SUPPORT_StatisticsHistory_get();
|
||||
public static readonly int _RAKNET_SUPPORT_LibVoice = SLikeNetPINVOKE._RAKNET_SUPPORT_LibVoice_get();
|
||||
public static readonly int _RAKNET_SUPPORT_RelayPlugin = SLikeNetPINVOKE._RAKNET_SUPPORT_RelayPlugin_get();
|
||||
public static readonly string PRINTF_64_BIT_MODIFIER = SLikeNetPINVOKE.PRINTF_64_BIT_MODIFIER_get();
|
||||
public static readonly int NETWORK_ID_MANAGER_HASH_LENGTH = SLikeNetPINVOKE.NETWORK_ID_MANAGER_HASH_LENGTH_get();
|
||||
public static readonly string RAK_TIME_FORMAT_STRING = SLikeNetPINVOKE.RAK_TIME_FORMAT_STRING_get();
|
||||
public static readonly int ALLOW_JOIN_ANY_AVAILABLE_TEAM = SLikeNetPINVOKE.ALLOW_JOIN_ANY_AVAILABLE_TEAM_get();
|
||||
public static readonly int ALLOW_JOIN_SPECIFIC_TEAM = SLikeNetPINVOKE.ALLOW_JOIN_SPECIFIC_TEAM_get();
|
||||
public static readonly int ALLOW_JOIN_REBALANCING = SLikeNetPINVOKE.ALLOW_JOIN_REBALANCING_get();
|
||||
public static readonly int _TABLE_BPLUS_TREE_ORDER = SLikeNetPINVOKE._TABLE_BPLUS_TREE_ORDER_get();
|
||||
public static readonly int _TABLE_MAX_COLUMN_NAME_LENGTH = SLikeNetPINVOKE._TABLE_MAX_COLUMN_NAME_LENGTH_get();
|
||||
public static readonly int REMOTE_MAX_TEXT_INPUT = SLikeNetPINVOKE.REMOTE_MAX_TEXT_INPUT_get();
|
||||
public static readonly int MESSAGE_FILTER_MAX_MESSAGE_ID = SLikeNetPINVOKE.MESSAGE_FILTER_MAX_MESSAGE_ID_get();
|
||||
}
|
||||
|
||||
}
|
||||
5830
bindings/csharp/interfaces/SLikeNetPINVOKE.cs
Normal file
5830
bindings/csharp/interfaces/SLikeNetPINVOKE.cs
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_DataStructures__ListT_RakNetSocket2_p_t {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_DataStructures__ListT_RakNetSocket2_p_t(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_DataStructures__ListT_RakNetSocket2_p_t() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_DataStructures__ListT_RakNetSocket2_p_t obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_DataStructures__ListT_SLNet__BitStream_p_t {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_DataStructures__ListT_SLNet__BitStream_p_t(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_DataStructures__ListT_SLNet__BitStream_p_t() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_DataStructures__ListT_SLNet__BitStream_p_t obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_DataStructures__ListT_SLNet__TM_TeamMember_p_t {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_DataStructures__ListT_SLNet__TM_TeamMember_p_t(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_DataStructures__ListT_SLNet__TM_TeamMember_p_t() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_DataStructures__ListT_SLNet__TM_TeamMember_p_t obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_DataStructures__ListT_SLNet__TM_Team_p_t {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_DataStructures__ListT_SLNet__TM_Team_p_t(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_DataStructures__ListT_SLNet__TM_Team_p_t() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_DataStructures__ListT_SLNet__TM_Team_p_t obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
30
bindings/csharp/interfaces/SWIGTYPE_p_FILE.cs
Normal file
30
bindings/csharp/interfaces/SWIGTYPE_p_FILE.cs
Normal file
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_FILE {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_FILE(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_FILE() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_FILE obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
30
bindings/csharp/interfaces/SWIGTYPE_p_RNS2RecvStruct.cs
Normal file
30
bindings/csharp/interfaces/SWIGTYPE_p_RNS2RecvStruct.cs
Normal file
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_RNS2RecvStruct {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_RNS2RecvStruct(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_RNS2RecvStruct() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_RNS2RecvStruct obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_SLNet__NatPunchthroughClient__SendPing {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_SLNet__NatPunchthroughClient__SendPing(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_SLNet__NatPunchthroughClient__SendPing() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_SLNet__NatPunchthroughClient__SendPing obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_SLNet__ReadyEvent__RemoteSystem {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_SLNet__ReadyEvent__RemoteSystem(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_SLNet__ReadyEvent__RemoteSystem() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_SLNet__ReadyEvent__RemoteSystem obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
30
bindings/csharp/interfaces/SWIGTYPE_p_SLNet__TCPInterface.cs
Normal file
30
bindings/csharp/interfaces/SWIGTYPE_p_SLNet__TCPInterface.cs
Normal file
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_SLNet__TCPInterface {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_SLNet__TCPInterface(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_SLNet__TCPInterface() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_SLNet__TCPInterface obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_SLNet__TM_World__JoinRequestHelper {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_SLNet__TM_World__JoinRequestHelper(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_SLNet__TM_World__JoinRequestHelper() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_SLNet__TM_World__JoinRequestHelper obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
30
bindings/csharp/interfaces/SWIGTYPE_p_bool.cs
Normal file
30
bindings/csharp/interfaces/SWIGTYPE_p_bool.cs
Normal file
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_bool {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_bool(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_bool() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_bool obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
30
bindings/csharp/interfaces/SWIGTYPE_p_double.cs
Normal file
30
bindings/csharp/interfaces/SWIGTYPE_p_double.cs
Normal file
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_double {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_double(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_double() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_double obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
30
bindings/csharp/interfaces/SWIGTYPE_p_p_SLNet__TM_Team.cs
Normal file
30
bindings/csharp/interfaces/SWIGTYPE_p_p_SLNet__TM_Team.cs
Normal file
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_p_SLNet__TM_Team {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_p_SLNet__TM_Team(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_p_SLNet__TM_Team() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_p_SLNet__TM_Team obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_p_SLNet__TM_TeamMember {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_p_SLNet__TM_TeamMember(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_p_SLNet__TM_TeamMember() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_p_SLNet__TM_TeamMember obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
30
bindings/csharp/interfaces/SWIGTYPE_p_p_SLNet__TM_World.cs
Normal file
30
bindings/csharp/interfaces/SWIGTYPE_p_p_SLNet__TM_World.cs
Normal file
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_p_SLNet__TM_World {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_p_SLNet__TM_World(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_p_SLNet__TM_World() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_p_SLNet__TM_World obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
30
bindings/csharp/interfaces/SWIGTYPE_p_p_wchar_t.cs
Normal file
30
bindings/csharp/interfaces/SWIGTYPE_p_p_wchar_t.cs
Normal file
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_p_wchar_t {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_p_wchar_t(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_p_wchar_t() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_p_wchar_t obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
30
bindings/csharp/interfaces/SWIGTYPE_p_unsigned_char.cs
Normal file
30
bindings/csharp/interfaces/SWIGTYPE_p_unsigned_char.cs
Normal file
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_unsigned_char {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_unsigned_char(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_unsigned_char() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_char obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
30
bindings/csharp/interfaces/SWIGTYPE_p_unsigned_int.cs
Normal file
30
bindings/csharp/interfaces/SWIGTYPE_p_unsigned_int.cs
Normal file
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_unsigned_int {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_unsigned_int(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_unsigned_int() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_int obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
30
bindings/csharp/interfaces/SWIGTYPE_p_unsigned_long_long.cs
Normal file
30
bindings/csharp/interfaces/SWIGTYPE_p_unsigned_long_long.cs
Normal file
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_unsigned_long_long {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_unsigned_long_long(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_unsigned_long_long() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_long_long obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user