Samples

We introduce modules and use-case specific samples using Diarkis.

The Diarkis Client SDK offers various examples.

C++ Samples

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

  • directmessage_simple

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

  • group_sample

    • This sample program demonstrates how to use the Group module.

  • matching_and_turn

    • This is a sample where, after connecting to a Diarkis server and using the MatchMaker module for matchmaking, you reconnect to another Diarkis server and join the same Room as the matched user for communication. It represents a common flow implemented with Diarkis in games, for example.

  • matchmaker_ticket

    • This is a sample program demonstrating how to use the ticket function of the MatchMaker.

  • p2p_rudp_sample

    • This sample program demonstrates how to use the RUDP function of the P2P module.

  • room_broadcast

    • This is a sample program using both the Room module and the P2P module. It introduces the usage of relay communication via Room and P2P communication.

  • session_simple

    • A sample introducing the basic usage of the Session module.

C++ Unreal Engine Plugin Samples

  • FieldWalker

    • This is a sample that incorporates the C++ version Client SDK as a plugin for Unreal Engine. In this sample, it offers an integrated example using multiple modules of Diarkis for position synchronization, message sending and receiving, matchmaking, etc.

C# Unity Plugin Samples

  • FieldWalker

    • This is a sample that incorporates the C# version Client SDK as a plugin for Unity. This sample provides an integrated example using multiple modules of Diarkis for position synchronization, message sending and receiving, matchmaking, etc.

Last updated