Details

Last Updated
2 weeks ago
First Uploaded
2 weeks ago
Downloads
8K
Likes
2
Size
35KB
Dependency string
Robyn-CodeTalker-1.1.3
Dependants

Categories

CodeTalker

CodeTalker is a lightweight C# networking library designed to simplify sending and receiving custom packets in Atlyss. It allows you to create your own packet types and register callbacks that are automatically invoked when matching packets are received.

Special Thanks: ButteredLilly for initial inspiration for the delivery method, thanks!

Features

  • Define custom packet classes by inheriting from PacketBase.
  • Easily register listeners for specific packet types.
  • Automatically deserialize incoming messages and dispatch them to the appropriate listener.
  • Packets are serialized into Steam lobby chat messages, avoiding the need for new RPCs that could disrupt multiplayer or clutter the in-game chat.

How it works

  • Create your packet classes by inheriting from PacketBase.
  • Register listeners for your packet types using CodeTalkerNetwork.RegisterListener<T>().
  • Send packets using CodeTalkerNetwork.SendNetworkPacket().
  • Incoming messages are deserialized and routed automatically to the registered listeners.
  • PacketHeader information is included with each payload, providing useful data such as the sender's identity and whether the sender is the host.

For a full example, see the example folder in the repo.


Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.