my attempt

This commit is contained in:
Evil Factory
2021-01-12 20:52:35 -03:00
parent d0b1ac96a7
commit 8ab7b96d87
11 changed files with 451 additions and 63 deletions
@@ -1,6 +1,7 @@
using Microsoft.Xna.Framework;
using System;
using System.Text;
using MoonSharp.Interpreter;
namespace Barotrauma.Networking
{
@@ -222,6 +223,11 @@ namespace Barotrauma.Networking
{
GameMain.Server.SendChatMessage(txt, null, c);
}
GameMain.Lua.hook.Call("chatMessage", new DynValue[] { DynValue.NewString(txt), UserData.Create(c) });
}
public int EstimateLengthBytesServer(Client c)