Due to update 2.4.3, some mods may no longer function. FixedConfig may be necessary.
EntwinedFixed
An advanced Bopl Battle networking library.
| Last updated | 8 months ago |
| Total downloads | 5504 |
| Total rating | 0 |
| Categories | Mods |
| Dependency string | Jo912345-EntwinedFixed-1.0.0 |
| Dependants | 2 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
Entwined
An advanced Bopl Battle networking library.
Example:
[BepInDependency("com.entwinedteam.entwined")]
[BepInPlugin("com.yourname.myFirstEntwinedPlugin", "My First Entwined Plugin", 1.0.0)]
internal class MyPlugin : MonoBehaviour
{
static EntwinedPacketChannel<string> helloWorldChannel;
private void Awake()
{
helloWorldChannel = new EntwinedPacketChannel<string>(this, new StringEntwiner());
helloWorldChannel.OnMessage += OnMessage;
}
private void OnGUI()
{
if (GUI.Button(new Rect(15, 120, 100, 40), "Send Packet"))
{
helloWorldChannel.SendMessage("Hello World!");
}
}
private static void OnMessage(string payload, PacketSourceInfo sourceInfo)
{
Logger.LogInfo($"{sourceInfo.SenderSteamName}: {payload}");
}
}