本文整理匯總了C#中RakNet.RakString.Printf方法的典型用法代碼示例。如果您正苦於以下問題:C# RakString.Printf方法的具體用法?C# RakString.Printf怎麽用?C# RakString.Printf使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類RakNet.RakString
的用法示例。
在下文中一共展示了RakString.Printf方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Main
//.........這裏部分代碼省略.........
testFileProgressStruct.allocateIrIDataChunkAutomatically = true;
testFileProgressStruct.dataChunkLength = 99;
testFileProgressStruct.firstDataChunk = testBuffer;
testFileProgressStruct.iriDataChunk = testBuffer;
testFileProgressStruct.iriWriteOffset = 99;
testFileProgressStruct.onFileStruct = new OnFileStruct();
testFileProgressStruct.partCount = 99;
testFileProgressStruct.partTotal = 99;
Console.WriteLine(testFileProgressStruct.allocateIrIDataChunkAutomatically);
Console.WriteLine(testFileProgressStruct.dataChunkLength);
Console.WriteLine(testFileProgressStruct.firstDataChunk[0]);
Console.WriteLine(testFileProgressStruct.iriDataChunk[0]);
Console.WriteLine(testFileProgressStruct.iriWriteOffset);
Console.WriteLine(testFileProgressStruct.onFileStruct);
Console.WriteLine(testFileProgressStruct.partCount);
Console.WriteLine(testFileProgressStruct.partTotal);
//FilterQuery
Console.WriteLine("FilterQuery");
FilterQuery testFilterQuery = new FilterQuery();
testFilterQuery.cellValue = testCell;
testFilterQuery.columnIndex = 0;
testFilterQuery.columnName = "TestName";
testFilterQuery.operation = Table.FilterQueryType.QF_EQUAL;
Console.WriteLine(testFilterQuery.cellValue);
Console.WriteLine(testFilterQuery.columnIndex);
Console.WriteLine(testFilterQuery.columnName);
Console.WriteLine(testFilterQuery.operation);
//FLP_Printf
Console.WriteLine("FLP_Printf");
FLP_Printf testFLP_Printf = new FLP_Printf();
testFLP_Printf.OnAddFilesFromDirectoryStarted(testFileList, "./");
testFLP_Printf.OnDirectory(testFileList, "./", 9);
testFLP_Printf.OnFile(testFileList, "./", "nonexist", 22);
testFLP_Printf.OnFilePush("./Nonexist", 99, 99, 99, true, RakNet.RakNet.UNASSIGNED_SYSTEM_ADDRESS);
//FullyConnectedMesh2
Console.WriteLine("FullyConnectedMesh2");
FullyConnectedMesh2 testFullyConnectedMesh2 = FullyConnectedMesh2.GetInstance();
testClient.AttachPlugin(testFullyConnectedMesh2);
testFullyConnectedMesh2.AddParticipant(testServer.GetGuidFromSystemAddress(RakNet.RakNet.UNASSIGNED_SYSTEM_ADDRESS));
Console.WriteLine(testFullyConnectedMesh2.GetConnectedHost());
Console.WriteLine(testFullyConnectedMesh2.GetConnectedHostAddr());
Console.WriteLine(testFullyConnectedMesh2.GetHostSystem());
Console.WriteLine(testFullyConnectedMesh2.GetParticipantCount());
uint outUint;
testFullyConnectedMesh2.GetParticipantCount(out outUint);
Console.WriteLine(outUint);
Console.WriteLine(testFullyConnectedMesh2.IsConnectedHost());
Console.WriteLine(testFullyConnectedMesh2.IsHostSystem());
testFullyConnectedMesh2.ResetHostCalculation();
testFullyConnectedMesh2.SetAutoparticipateConnections(true);
workingRakStringCopy = "none";
testFullyConnectedMesh2.SetConnectOnNewRemoteConnection(false, workingRakStringCopy);
workingRakStringCopy.Dispose();
//MessageFilter
Console.WriteLine("MessageFilter");
MessageFilter testMessageFilter = new MessageFilter();
testClient.AttachPlugin(testMessageFilter);