Update FishNet

This commit is contained in:
2026-04-07 03:11:52 +07:00
parent 9675b7b31d
commit ba7513d478
869 changed files with 3675 additions and 2764 deletions
@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 207815
packageName: 'FishNet: Networking Evolved'
packageVersion: 4.6.22R
packageVersion: 4.7.1R
assetPath: Assets/FishNet/CodeGenerating/Processing/Rpc/AttributeData.cs
uploadId: 866910
uploadId: 892096
@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 207815
packageName: 'FishNet: Networking Evolved'
packageVersion: 4.6.22R
packageVersion: 4.7.1R
assetPath: Assets/FishNet/CodeGenerating/Processing/Rpc/Attributes.cs
uploadId: 866910
uploadId: 892096
@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 207815
packageName: 'FishNet: Networking Evolved'
packageVersion: 4.6.22R
packageVersion: 4.7.1R
assetPath: Assets/FishNet/CodeGenerating/Processing/Rpc/CreatedRpc.cs
uploadId: 866910
uploadId: 892096
@@ -349,7 +349,7 @@ namespace FishNet.CodeGenerating.Processing.Rpc
ILProcessor processor = writerMd.Body.GetILProcessor();
// Add all parameters from the original.
for (int i = 0; i < originalMd.Parameters.Count; i++)
writerMd.Parameters.Add(originalMd.Parameters[i]);
writerMd.Parameters.Add(originalMd.Parameters[i].CloneImported(Session, writerMd));
// Get channel if it exist, and get target parameter.
ParameterDefinition channelParameterDef = GetChannelParameter(writerMd, RpcType.None);
@@ -413,7 +413,7 @@ namespace FishNet.CodeGenerating.Processing.Rpc
// Add all parameters from the original.
for (int i = 0; i < originalMd.Parameters.Count; i++)
writerMd.Parameters.Add(originalMd.Parameters[i]);
writerMd.Parameters.Add(originalMd.Parameters[i].CloneImported(Session, writerMd));
// Add in channel if it doesnt exist.
ParameterDefinition channelParameterDef = GetChannelParameter(writerMd, RpcType.Server);
@@ -880,7 +880,7 @@ namespace FishNet.CodeGenerating.Processing.Rpc
* that some reason is the resolution, because Unity. However, even with this fix if the
* developer makes use of the generic properties of the class from the offending method
* there is a fair chance the application will crash. */
#if !UNITY_2022_3_OR_NEWER
#if !UNITY_2022_3_OR_NEWER
/* If the declaring type has a generic then we need to see if any
* logic instructions call methods in another or same generic class. */
ILProcessor processor = createdMd.Body.GetILProcessor();
@@ -894,7 +894,7 @@ namespace FishNet.CodeGenerating.Processing.Rpc
Instruction v = instructions[i];
OpCode instrOpCode = v.OpCode;
if (instrOpCode == OpCodes.Callvirt || instrOpCode == OpCodes.Call)
{
MethodDefinition calledMd = null;
@@ -919,7 +919,7 @@ namespace FishNet.CodeGenerating.Processing.Rpc
}
}
}
#endif
#endif
return createdMd;
}
@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 207815
packageName: 'FishNet: Networking Evolved'
packageVersion: 4.6.22R
packageVersion: 4.7.1R
assetPath: Assets/FishNet/CodeGenerating/Processing/Rpc/RpcProcessor.cs
uploadId: 866910
uploadId: 892096