Exemple #1
0
 public RakNetListSystemAddress(RakNetListSystemAddress original_copy) : this(RakNetPINVOKE.new_RakNetListSystemAddress__SWIG_1(RakNetListSystemAddress.getCPtr(original_copy)), true)
 {
     if (RakNetPINVOKE.SWIGPendingException.Pending)
     {
         throw RakNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        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);
        }
Exemple #3
0
 public virtual void GetSystemList(RakNetListSystemAddress addresses, RakNetListRakNetGUID guids)
 {
     RakNetPINVOKE.CSharp_RakNet_RakPeerInterface_GetSystemList(swigCPtr, RakNetListSystemAddress.getCPtr(addresses), RakNetListRakNetGUID.getCPtr(guids));
     if (RakNetPINVOKE.SWIGPendingException.Pending)
     {
         throw RakNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #4
0
 public virtual void GetVerifiedJoinRequiredProcessingList(RakNetGUID host, RakNetListSystemAddress addresses, RakNetListRakNetGUID guids, SWIGTYPE_p_DataStructures__ListT_RakNet__BitStream_p_t userData)
 {
     RakNetPINVOKE.FullyConnectedMesh2_GetVerifiedJoinRequiredProcessingList(swigCPtr, RakNetGUID.getCPtr(host), RakNetListSystemAddress.getCPtr(addresses), RakNetListRakNetGUID.getCPtr(guids), SWIGTYPE_p_DataStructures__ListT_RakNet__BitStream_p_t.getCPtr(userData));
     if (RakNetPINVOKE.SWIGPendingException.Pending)
     {
         throw RakNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #5
0
 public override void GetSystemList(RakNetListSystemAddress addresses, RakNetListRakNetGUID guids)
 {
     RakNetPINVOKE.RakPeer_GetSystemList(swigCPtr, RakNetListSystemAddress.getCPtr(addresses), RakNetListRakNetGUID.getCPtr(guids));
     if (RakNetPINVOKE.SWIGPendingException.Pending)
     {
         throw RakNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #6
0
        public RakNetListSystemAddress CopyData(RakNetListSystemAddress original_copy)
        {
            RakNetListSystemAddress ret = new RakNetListSystemAddress(RakNetPINVOKE.RakNetListSystemAddress_CopyData(swigCPtr, RakNetListSystemAddress.getCPtr(original_copy)), false);

            if (RakNetPINVOKE.SWIGPendingException.Pending)
            {
                throw RakNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #7
0
	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;
	}
Exemple #8
0
        public bool GetConnectionList(RakNetListSystemAddress remoteSystems, ref ushort numberOfSystems)
        {
            bool ret = RakNetPINVOKE.CSharp_RakNet_RakPeerInterface_GetConnectionList(swigCPtr, RakNetListSystemAddress.getCPtr(remoteSystems), ref numberOfSystems);

            return(ret);
        }
Exemple #9
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RakNetListSystemAddress obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
        private bool GetConnectionListForRemoteSystemHelper(RakNetGUID remoteSystemGuid, RakNetListSystemAddress saOut, RakNetListRakNetGUID guidOut, ref uint inOutLength)
        {
            bool ret = RakNetPINVOKE.ConnectionGraph2_GetConnectionListForRemoteSystemHelper(swigCPtr, RakNetGUID.getCPtr(remoteSystemGuid), RakNetListSystemAddress.getCPtr(saOut), RakNetListRakNetGUID.getCPtr(guidOut), ref inOutLength);

            if (RakNetPINVOKE.SWIGPendingException.Pending)
            {
                throw RakNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #11
0
        public new bool GetConnectionList(RakNetListSystemAddress remoteSystems, ref ushort numberOfSystems)
        {
            bool ret = RakNetPINVOKE.RakPeer_GetConnectionList(swigCPtr, RakNetListSystemAddress.getCPtr(remoteSystems), ref numberOfSystems);

            return(ret);
        }