my attempt

This commit is contained in:
Evil Factory
2021-01-12 20:52:35 -03:00
parent c2e181ee6d
commit a0c6794b01
11 changed files with 451 additions and 60 deletions
@@ -1,6 +1,7 @@
using Microsoft.Xna.Framework;
using System;
using System.Text;
using MoonSharp.Interpreter;
namespace Barotrauma.Networking
{
@@ -169,6 +170,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)