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
@@ -0,0 +1,15 @@
using Barotrauma;
using Barotrauma.Networking;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MoreLevelContent.Missions
{
// Server
internal partial class CablePuzzleMission : Mission
{
}
}
@@ -0,0 +1,21 @@
using Barotrauma;
using Barotrauma.Networking;
using MoreLevelContent.Shared.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MoreLevelContent.Missions
{
// Server
partial class DistressEscortMission : DistressMission
{
public override void ServerWriteInitial(IWriteMessage msg, Client c)
{
base.ServerWriteInitial(msg, c);
missionNPCs.Write(msg);
}
}
}
@@ -0,0 +1,19 @@
using Barotrauma.Networking;
using MoreLevelContent.Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MoreLevelContent.Missions
{
partial class DistressGhostshipMission
{
public override void ServerWriteInitial(IWriteMessage msg, Client c)
{
base.ServerWriteInitial(msg, c);
missionNPCs.Write(msg);
}
}
}
@@ -0,0 +1,23 @@
using Barotrauma.Networking;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MoreLevelContent.Missions
{
// Server
partial class DistressSubmarineMission : DistressMission
{
public override void ServerWriteInitial(IWriteMessage msg, Client c)
{
base.ServerWriteInitial(msg, c);
missionNPCs.Write(msg);
foreach (var character in rewardLookup.Keys)
{
msg.WriteUInt16((ushort)rewardLookup[character]);
}
}
}
}
@@ -0,0 +1,33 @@
using Barotrauma.Networking;
using Barotrauma;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MoreLevelContent.Shared.Data;
namespace MoreLevelContent.Missions
{
// Server
partial class MissionNPCCollection
{
internal void Write(IWriteMessage msg)
{
msg.WriteBoolean(characters.Count > 0);
if (characters.Count == 0) return;
msg.WriteByte((byte)characters.Count);
foreach (Character character in characters)
{
character.WriteSpawnData(msg, character.ID, restrictMessageSize: false);
msg.WriteBoolean(character.MLC().NPCElement.GetAttributeBool("allowordering", false));
msg.WriteUInt16((ushort)characterItems[character].Count());
foreach (Item item in characterItems[character])
{
item.WriteSpawnData(msg, item.ID, item.ParentInventory?.Owner?.ID ?? Entity.NullEntityID, 0, item.ParentInventory?.FindIndex(item) ?? -1);
}
}
}
}
}
@@ -0,0 +1,9 @@
using Barotrauma;
namespace MoreLevelContent.Missions
{
// Server
internal partial class TriangulationMission : Mission
{
}
}