Samples

Introducing modules and use case-specific samples using Diarkis.

The Diarkis Client SDK provides a variety of samples.

C++ Samples

These are sample programs to demonstrate the usage of the C++ version of the client runtime. They are located under the samples directory of the C++ version of the Diarkis Client SDK package. For more details, please refer to the SAMPLE_README.md included in the C++ version of the Diarkis Client SDK package.

  • directmessage_simple

    • This is a sample program demonstrating the basic usage of the DM module.

  • group_sample

    • This is a sample program demonstrating the usage of the Group module.

  • matching_and_turn

    • This is a sample demonstrating a flow commonly used in games, where the client connects to a Diarkis server for matchmaking through the MatchMaker module, then reconnects to another Diarkis server to enter the same Room with the matched users for communication.

  • matchmaker_ticket

    • This is a sample program demonstrating the usage of the MatchMaker ticket feature.

  • p2p_rudp_sample

    • This is a sample program demonstrating the usage of the RUDP feature in the P2P module.

  • room_broadcast

    • This is a sample program demonstrating the usage of relay communication via the Room module and P2P communication. It shows how to use both the Room module and the P2P module.

  • session_simple

    • This is a sample demonstrating the basic usage of the Session module.

C++ Unreal Engine Plugin Samples

  • FieldWalker

    • This sample integrates the C++ version of the client SDK as a plugin in Unreal Engine. This sample uses multiple modules of Diarkis to perform integrated tasks such as position synchronization, message sending and receiving, and matchmaking.

C# Unity Plugin Samples

  • FieldWalker

    • This sample integrates the C# version of the client SDK as a plugin in Unity. This sample uses multiple modules of Diarkis to perform integrated tasks such as position synchronization, message sending and receiving, and matchmaking.

最終更新