| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- /* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.1
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
- namespace RakNet {
- using System;
- using System.Runtime.InteropServices;
- public class FullyConnectedMesh2 : PluginInterface2 {
- private HandleRef swigCPtr;
- internal FullyConnectedMesh2(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.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;
- RakNetPINVOKE.delete_FullyConnectedMesh2(swigCPtr);
- }
- swigCPtr = new HandleRef(null, IntPtr.Zero);
- }
- GC.SuppressFinalize(this);
- base.Dispose();
- }
- }
- public static FullyConnectedMesh2 GetInstance() {
- IntPtr cPtr = RakNetPINVOKE.FullyConnectedMesh2_GetInstance();
- FullyConnectedMesh2 ret = (cPtr == IntPtr.Zero) ? null : new FullyConnectedMesh2(cPtr, false);
- return ret;
- }
- public static void DestroyInstance(FullyConnectedMesh2 i) {
- RakNetPINVOKE.FullyConnectedMesh2_DestroyInstance(FullyConnectedMesh2.getCPtr(i));
- }
- public FullyConnectedMesh2() : this(RakNetPINVOKE.new_FullyConnectedMesh2(), true) {
- }
- public void SetConnectOnNewRemoteConnection(bool attemptConnection, RakString pw) {
- RakNetPINVOKE.FullyConnectedMesh2_SetConnectOnNewRemoteConnection(swigCPtr, attemptConnection, RakString.getCPtr(pw));
- if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
- }
- public RakNetGUID GetConnectedHost() {
- RakNetGUID ret = new RakNetGUID(RakNetPINVOKE.FullyConnectedMesh2_GetConnectedHost(swigCPtr), true);
- return ret;
- }
- public SystemAddress GetConnectedHostAddr() {
- SystemAddress ret = new SystemAddress(RakNetPINVOKE.FullyConnectedMesh2_GetConnectedHostAddr(swigCPtr), true);
- return ret;
- }
- public RakNetGUID GetHostSystem() {
- RakNetGUID ret = new RakNetGUID(RakNetPINVOKE.FullyConnectedMesh2_GetHostSystem(swigCPtr), true);
- return ret;
- }
- public bool IsHostSystem() {
- bool ret = RakNetPINVOKE.FullyConnectedMesh2_IsHostSystem(swigCPtr);
- return ret;
- }
- public void GetHostOrder(RakNetListRakNetGUID hostList) {
- RakNetPINVOKE.FullyConnectedMesh2_GetHostOrder(swigCPtr, RakNetListRakNetGUID.getCPtr(hostList));
- if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
- }
- public bool IsConnectedHost() {
- bool ret = RakNetPINVOKE.FullyConnectedMesh2_IsConnectedHost(swigCPtr);
- return ret;
- }
- public void SetAutoparticipateConnections(bool b) {
- RakNetPINVOKE.FullyConnectedMesh2_SetAutoparticipateConnections(swigCPtr, b);
- }
- public void ResetHostCalculation() {
- RakNetPINVOKE.FullyConnectedMesh2_ResetHostCalculation(swigCPtr);
- }
- public void AddParticipant(RakNetGUID rakNetGuid) {
- RakNetPINVOKE.FullyConnectedMesh2_AddParticipant(swigCPtr, RakNetGUID.getCPtr(rakNetGuid));
- if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
- }
- public void GetParticipantList(RakNetListRakNetGUID participantList) {
- RakNetPINVOKE.FullyConnectedMesh2_GetParticipantList(swigCPtr, RakNetListRakNetGUID.getCPtr(participantList));
- if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
- }
- public void ConnectToRemoteNewIncomingConnections(Packet packet) {
- RakNetPINVOKE.FullyConnectedMesh2_ConnectToRemoteNewIncomingConnections(swigCPtr, Packet.getCPtr(packet));
- }
- public void Clear() {
- RakNetPINVOKE.FullyConnectedMesh2_Clear(swigCPtr);
- }
- public uint GetParticipantCount() {
- uint ret = RakNetPINVOKE.FullyConnectedMesh2_GetParticipantCount__SWIG_0(swigCPtr);
- return ret;
- }
- public void GetParticipantCount(SWIGTYPE_p_unsigned_int participantListSize) {
- RakNetPINVOKE.FullyConnectedMesh2_GetParticipantCount__SWIG_1(swigCPtr, SWIGTYPE_p_unsigned_int.getCPtr(participantListSize));
- }
- public uint GetTotalConnectionCount() {
- uint ret = RakNetPINVOKE.FullyConnectedMesh2_GetTotalConnectionCount(swigCPtr);
- return ret;
- }
- }
- }
|