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,50 @@
using UnityEngine;
public class NetPackagePickUpNPCRebirth : global::NetPackage
{
private int _entityId;
private int _playerId;
public NetPackagePickUpNPCRebirth Setup(int entityId, int playerId)
{
_entityId = entityId;
_playerId = playerId;
return this;
}
public override void read(PooledBinaryReader br)
{
_entityId = br.ReadInt32();
_playerId = br.ReadInt32();
}
public override void write(PooledBinaryWriter bw)
{
base.write(bw);
bw.Write(_entityId);
bw.Write(_playerId);
}
public override int GetLength()
{
return 8;
}
public override void ProcessPackage(World world, GameManager callbacks)
{
if (world == null)
{
return;
}
if (!world.IsRemote())
{
EntityUtilities.CollectEntityServer(_entityId, _playerId);
return;
}
EntityUtilities.CollectEntityClient(_entityId, _playerId);
}
}