本文整理匯總了C#中RakNet.RakString.Assign方法的典型用法代碼示例。如果您正苦於以下問題:C# RakString.Assign方法的具體用法?C# RakString.Assign怎麽用?C# RakString.Assign使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類RakNet.RakString
的用法示例。
在下文中一共展示了RakString.Assign方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Main
//.........這裏部分代碼省略.........
Console.WriteLine(testRemoteSystemIndex.next);
//Router2
Console.WriteLine("Router2");
Router2 testRouter2 = new Router2();
testClient.AttachPlugin(testRouter2);
testRouter2.EstablishRouting(testClient.GetGUIDFromIndex(0));
testRouter2.GetConnectionRequestIndex(testClient.GetGUIDFromIndex(0));
testRouter2.SetMaximumForwardingRequests(99);
//SimpleMutex
Console.WriteLine("SimpleMutex");
SimpleMutex testSimpleMutex = new SimpleMutex();
testSimpleMutex.Lock();
testSimpleMutex.Unlock();
//SocketDescriptor
Console.WriteLine("SocketDescriptor");
SocketDescriptor testSocketDescriptor = new SocketDescriptor();
testSocketDescriptor.hostAddress = "127.0.0.1";
testSocketDescriptor.port = 60002;
testSocketDescriptor.remotePortRakNetWasStartedOn_PS3 = 0;
Console.WriteLine(testSocketDescriptor.hostAddress);
Console.WriteLine(testSocketDescriptor.port);
Console.WriteLine(testSocketDescriptor.remotePortRakNetWasStartedOn_PS3);
//TeamBalancer
Console.WriteLine("TeamBalancer");
TeamBalancer testTeamBalancer = new TeamBalancer();
testClient.AttachPlugin(testTeamBalancer);
testTeamBalancer.SetAllowHostMigration(false);
testTeamBalancer.SetDefaultAssignmentAlgorithm(TeamBalancer.DefaultAssigmentAlgorithm.FILL_IN_ORDER);
testTeamBalancer.SetHostGuid(testClient.GetGUIDFromIndex(0));
testTeamBalancer.SetLockTeams(false);
RakNetListUnsignedShort ushortList = new RakNetListUnsignedShort();
ushortList.Push(5, "", 0);
testTeamBalancer.SetTeamSizeLimits(ushortList);
testTeamBalancer.SetForceEvenTeams(true);
testTeamBalancer.CancelRequestSpecificTeam();
testTeamBalancer.GetMyTeam();
testTeamBalancer.RequestAnyTeam();
testTeamBalancer.RequestSpecificTeam(0);
//ThreadsafePacketLogger
Console.WriteLine("ThreadsafePacketLogger");
ThreadsafePacketLogger testThreadsafePacketLogger = new ThreadsafePacketLogger();
testClient.AttachPlugin(testThreadsafePacketLogger);
testThreadsafePacketLogger.FormatLine(ref bigString,"./","none",9,9,99,99,99,testClient.GetSystemAddressFromIndex(0),testClient.GetSystemAddressFromIndex(0),99,99,99,99);
testThreadsafePacketLogger.LogHeader();
testThreadsafePacketLogger.SetLogDirectMessages(false);
testThreadsafePacketLogger.SetPrefix("lv");
testThreadsafePacketLogger.SetPrintAcks(false);
testThreadsafePacketLogger.SetPrintID(false);
testThreadsafePacketLogger.SetSuffix("tr");
testThreadsafePacketLogger.WriteLog("gr");
testThreadsafePacketLogger.WriteMiscellaneous("lf","mr");
//UDPForwarder
Console.WriteLine("UDPForwarder");
UDPForwarder testUDPForwarder = new UDPForwarder();
testUDPForwarder.Startup();
testUDPForwarder.GetMaxForwardEntries();
testUDPForwarder.GetUsedForwardEntries();
testUDPForwarder.SetMaxForwardEntries(99);