add NetEntityEvent, CreateEntityEvent and item.readPropertyChange hook
This commit is contained in:
@@ -2718,6 +2718,10 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
var result = new LuaResult(GameMain.Lua.hook.Call("item.readPropertyChange", this, property, parentObject, allowEditing));
|
||||
if (result.Bool())
|
||||
return;
|
||||
|
||||
Type type = property.PropertyType;
|
||||
string logValue = "";
|
||||
if (type == typeof(string))
|
||||
|
||||
@@ -746,6 +746,11 @@ namespace Barotrauma
|
||||
env.hook.EnqueueFunction(callback, e.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
public void CreateEntityEvent(INetSerializable entity, object[] extraData)
|
||||
{
|
||||
GameMain.NetworkMember.CreateEntityEvent(entity, extraData);
|
||||
}
|
||||
}
|
||||
|
||||
public partial class LuaHook
|
||||
|
||||
Reference in New Issue
Block a user