Unstable 1.1.14.0

This commit is contained in:
Markus Isberg
2023-10-02 16:43:54 +03:00
parent 94f5a93a0c
commit cf8f0de659
606 changed files with 21906 additions and 11456 deletions
@@ -0,0 +1,22 @@
#nullable enable
using Barotrauma.Networking;
using System.Collections.Generic;
namespace Barotrauma;
partial class EventLog
{
public bool TryAddEntry(Identifier eventPrefabId, Identifier entryId, string text, IEnumerable<Client> targetClients)
{
if (TryAddEntryInternal(eventPrefabId, entryId, text))
{
foreach (var targetClient in targetClients)
{
EventManager.ServerWriteEventLog(targetClient, new EventManager.NetEventLogEntry(eventPrefabId, entryId, text));
}
return true;
}
return false;
}
}