Track LocalMods as part of monolith

This commit is contained in:
2026-06-08 18:50:16 +03:00
parent 143f2fed7c
commit 1b214b44c2
1287 changed files with 139255 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
using Barotrauma;
using Barotrauma.Networking;
using MoreLevelContent.Networking;
namespace MoreLevelContent.Shared.Generation
{
// Client
abstract partial class TimedEventMapModule
{
protected override void InitProjSpecific()
{
if (GameMain.IsMultiplayer) NetUtil.Register(EventCreated, CreateEvent);
}
internal void CreateEvent(object[] args)
{
IReadMessage inMsg = (IReadMessage)args[0];
int id = (int)inMsg.ReadUInt32();
byte steps = inMsg.ReadByte();
LocationConnection connection = MapDirector.IdConnectionLookup[id];
CreateEvent(connection, steps);
}
}
}