本文整理匯總了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;
}
示例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];
}
}
示例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;
}
示例4: GetHostSystem
public RakNetGUID GetHostSystem() {
RakNetGUID ret = new RakNetGUID(RakNetPINVOKE.FullyConnectedMesh2_GetHostSystem(swigCPtr), true);
return ret;
}
示例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;
}
示例6: GetMyGUID
public virtual RakNetGUID GetMyGUID() {
RakNetGUID ret = new RakNetGUID(RakNetPINVOKE.RakPeerInterface_GetMyGUID(swigCPtr), true);
return ret;
}
示例7: StartVerifiedJoin
public virtual void StartVerifiedJoin(RakNetGUID client)
{
RakNetPINVOKE.FullyConnectedMesh2_StartVerifiedJoin(swigCPtr, RakNetGUID.getCPtr(client));
if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
}
示例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();
}
示例9: getCPtr
internal static HandleRef getCPtr(RakNetGUID obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
示例10: AddressOrGUID
public AddressOrGUID(RakNetGUID input) : this(RakNetPINVOKE.new_AddressOrGUID__SWIG_4(RakNetGUID.getCPtr(input)), true) {
if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
}
示例11: SetHostGuid
public void SetHostGuid(RakNetGUID _hostGuid)
{
RakNetPINVOKE.TeamBalancer_SetHostGuid(swigCPtr, RakNetGUID.getCPtr(_hostGuid));
if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
}
示例12: GetMyGUIDUnified
public RakNetGUID GetMyGUIDUnified() {
RakNetGUID ret = new RakNetGUID(RakNetPINVOKE.PluginInterface2_GetMyGUIDUnified(swigCPtr), true);
return ret;
}
示例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;
}
示例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();
}
示例15: Get
public RakNetGUID Get(uint position)
{
RakNetGUID ret = new RakNetGUID(RakNetPINVOKE.RakNetListRakNetGUID_Get(swigCPtr, position), false);
return ret;
}