當前位置: 首頁>>代碼示例>>C#>>正文


C# RakNet.RakNetGUID類代碼示例

本文整理匯總了C#中RakNet.RakNetGUID的典型用法代碼示例。如果您正苦於以下問題:C# RakNetGUID類的具體用法?C# RakNetGUID怎麽用?C# RakNetGUID使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


RakNetGUID類屬於RakNet命名空間,在下文中一共展示了RakNetGUID類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Initialise

	public void Initialise(RakNet.SystemAddress _cSystemAddress, RakNet.RakNetGUID _cGuid, bool _bHost)
	{
		ResetNetworkViewSteam();

		m_cSystemAddress = new RakNet.SystemAddress(_cSystemAddress.ToString(), _cSystemAddress.GetPort());
		m_cGuid = new RakNet.RakNetGUID(_cGuid.g);
		m_bHost = _bHost;
	}
開發者ID:nulhax,項目名稱:VOID,代碼行數:8,代碼來源:CNetworkPlayer.cs

示例2: GetParticipantList

    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];
			}
    }
開發者ID:nulhax,項目名稱:VOID,代碼行數:9,代碼來源:ConnectionGraph2.cs

示例3: GetConnectionListForRemoteSystem

    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;
    }
開發者ID:nulhax,項目名稱:VOID,代碼行數:24,代碼來源:ConnectionGraph2.cs

示例4: GetHostSystem

 public RakNetGUID GetHostSystem() {
   RakNetGUID ret = new RakNetGUID(RakNetPINVOKE.FullyConnectedMesh2_GetHostSystem(swigCPtr), true);
   return ret;
 }
開發者ID:0521guo,項目名稱:RakNet,代碼行數:4,代碼來源:FullyConnectedMesh2.cs

示例5: GetSystemAddressFromGuid

 public virtual SystemAddress GetSystemAddressFromGuid(RakNetGUID input) {
   SystemAddress ret = new SystemAddress(RakNetPINVOKE.RakPeerInterface_GetSystemAddressFromGuid(swigCPtr, RakNetGUID.getCPtr(input)), true);
   if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
開發者ID:nulhax,項目名稱:VOID,代碼行數:5,代碼來源:RakPeerInterface.cs

示例6: GetMyGUID

 public virtual RakNetGUID GetMyGUID() {
   RakNetGUID ret = new RakNetGUID(RakNetPINVOKE.RakPeerInterface_GetMyGUID(swigCPtr), true);
   return ret;
 }
開發者ID:nulhax,項目名稱:VOID,代碼行數:4,代碼來源:RakPeerInterface.cs

示例7: StartVerifiedJoin

 public virtual void StartVerifiedJoin(RakNetGUID client)
 {
     RakNetPINVOKE.FullyConnectedMesh2_StartVerifiedJoin(swigCPtr, RakNetGUID.getCPtr(client));
     if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:kmiron,項目名稱:BattleBoy,代碼行數:5,代碼來源:FullyConnectedMesh2.cs

示例8: GetVerifiedJoinRequiredProcessingList

 public virtual void GetVerifiedJoinRequiredProcessingList(RakNetGUID host, RakNetListSystemAddress addresses, RakNetListRakNetGUID guids)
 {
     RakNetPINVOKE.FullyConnectedMesh2_GetVerifiedJoinRequiredProcessingList(swigCPtr, RakNetGUID.getCPtr(host), RakNetListSystemAddress.getCPtr(addresses), RakNetListRakNetGUID.getCPtr(guids));
     if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:kmiron,項目名稱:BattleBoy,代碼行數:5,代碼來源:FullyConnectedMesh2.cs

示例9: getCPtr

 internal static HandleRef getCPtr(RakNetGUID obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
開發者ID:nulhax,項目名稱:VOID,代碼行數:3,代碼來源:RakNetGUID.cs

示例10: AddressOrGUID

 public AddressOrGUID(RakNetGUID input) : this(RakNetPINVOKE.new_AddressOrGUID__SWIG_4(RakNetGUID.getCPtr(input)), true) {
   if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:nulhax,項目名稱:VOID,代碼行數:3,代碼來源:AddressOrGUID.cs

示例11: SetHostGuid

 public void SetHostGuid(RakNetGUID _hostGuid)
 {
     RakNetPINVOKE.TeamBalancer_SetHostGuid(swigCPtr, RakNetGUID.getCPtr(_hostGuid));
     if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:sureandrew,項目名稱:RakNet,代碼行數:5,代碼來源:TeamBalancer.cs

示例12: GetMyGUIDUnified

 public RakNetGUID GetMyGUIDUnified() {
   RakNetGUID ret = new RakNetGUID(RakNetPINVOKE.PluginInterface2_GetMyGUIDUnified(swigCPtr), true);
   return ret;
 }
開發者ID:songotony,項目名稱:RType-Client,代碼行數:4,代碼來源:PluginInterface2.cs

示例13: RequestForwarding

 public bool RequestForwarding(SystemAddress proxyCoordinator, SystemAddress sourceAddress, RakNetGUID targetGuid, uint timeoutOnNoDataMS) {
   bool ret = RakNetPINVOKE.UDPProxyClient_RequestForwarding__SWIG_3(swigCPtr, SystemAddress.getCPtr(proxyCoordinator), SystemAddress.getCPtr(sourceAddress), RakNetGUID.getCPtr(targetGuid), timeoutOnNoDataMS);
   if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
開發者ID:songotony,項目名稱:RType-Client,代碼行數:5,代碼來源:UDPProxyClient.cs

示例14: OnForwardingInProgress

 public virtual void OnForwardingInProgress(SystemAddress proxyCoordinator, SystemAddress sourceAddress, SystemAddress targetAddress, RakNetGUID targetGuid, UDPProxyClient proxyClientPlugin)
 {
     RakNetPINVOKE.UDPProxyClientResultHandler_OnForwardingInProgress(swigCPtr, SystemAddress.getCPtr(proxyCoordinator), SystemAddress.getCPtr(sourceAddress), SystemAddress.getCPtr(targetAddress), RakNetGUID.getCPtr(targetGuid), UDPProxyClient.getCPtr(proxyClientPlugin));
     if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:GreatDivine,項目名稱:GameNetworking,代碼行數:5,代碼來源:UDPProxyClientResultHandler.cs

示例15: Get

 public RakNetGUID Get(uint position)
 {
     RakNetGUID ret = new RakNetGUID(RakNetPINVOKE.RakNetListRakNetGUID_Get(swigCPtr, position), false);
     return ret;
 }
開發者ID:sureandrew,項目名稱:RakNet,代碼行數:5,代碼來源:RakNetListRakNetGUID.cs


注:本文中的RakNet.RakNetGUID類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。