Upload from upload_mods.ps1

This commit is contained in:
Nathaniel Cosford
2025-06-04 16:44:53 +09:30
commit f1fbbe67bb
1722 changed files with 165268 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
public class NetPackageChangeOption : NetPackage
{
string option = "";
string value = "";
public NetPackageChangeOption Setup(string _option, string _value)
{
//Log.Out("NetPackageChangeOption-Setup START");
this.option = _option;
this.value = _value;
return this;
}
public override void read(PooledBinaryReader _br)
{
this.option = _br.ReadString();
this.value = _br.ReadString();
}
public override void write(PooledBinaryWriter _bw)
{
base.write(_bw);
_bw.Write(this.option);
_bw.Write(this.value);
}
public override int GetLength()
{
return 4;
}
public override void ProcessPackage(World _world, GameManager _callbacks)
{
//Log.Out("NetPackageChangeOption-ProcessPackage START");
if (_world == null)
{
//Log.Out("NetPackageChangeOption-ProcessPackage 1");
return;
}
//Log.Out("NetPackageChangeOption-ProcessPackage 2");
RebirthUtilities.ChangeOption(this.option, this.value);
}
}