Skip to content

Commit fa4370d

Browse files
committed
[修改]1. 修改防裁剪的配置方式
1 parent 5a94529 commit fa4370d

19 files changed

+52
-104
lines changed

Runtime/GameFrameXNetworkCroppingHelper.cs

Lines changed: 0 additions & 46 deletions
This file was deleted.

Runtime/GameFrameXNetworkCroppingHelper.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

Runtime/Network/Base/AddressFamily.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace GameFrameX.Network.Runtime
1010
/// <summary>
1111
/// 网络地址类型。
1212
/// </summary>
13+
[UnityEngine.Scripting.Preserve]
1314
public enum AddressFamily : byte
1415
{
1516
/// <summary>
@@ -27,4 +28,4 @@ public enum AddressFamily : byte
2728
/// </summary>
2829
IPv6
2930
}
30-
}
31+
}

Runtime/Network/Base/MessagePackageObjectAttribute.cs

Lines changed: 0 additions & 37 deletions
This file was deleted.

Runtime/Network/Base/MessagePackageObjectAttribute.cs.meta

Lines changed: 0 additions & 3 deletions
This file was deleted.

Runtime/Network/Base/MessageTypeHandlerAttribute.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ namespace GameFrameX.Network.Runtime
55
/// <summary>
66
/// 网络消息处理器
77
/// </summary>
8+
[UnityEngine.Scripting.Preserve]
89
[AttributeUsage(AttributeTargets.Class)]
910
public class MessageTypeHandlerAttribute : Attribute
1011
{
@@ -17,6 +18,7 @@ public class MessageTypeHandlerAttribute : Attribute
1718
/// 网络消息处理器
1819
/// </summary>
1920
/// <param name="messageId">消息ID,不能重复</param>
21+
[UnityEngine.Scripting.Preserve]
2022
public MessageTypeHandlerAttribute(int messageId)
2123
{
2224
MessageId = messageId;

Runtime/Network/Base/NetworkErrorCode.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace GameFrameX.Network.Runtime
1010
/// <summary>
1111
/// 网络错误码。
1212
/// </summary>
13+
[UnityEngine.Scripting.Preserve]
1314
public enum NetworkErrorCode : byte
1415
{
1516
/// <summary>
@@ -57,4 +58,4 @@ public enum NetworkErrorCode : byte
5758
/// </summary>
5859
DeserializePacketError
5960
}
60-
}
61+
}

Runtime/Network/Base/ServiceType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ namespace GameFrameX.Network.Runtime
33
/// <summary>
44
/// 网络服务类型。
55
/// </summary>
6+
[UnityEngine.Scripting.Preserve]
67
public enum ServiceType : byte
78
{
89
/// <summary>

Runtime/Network/Network/NetworkManager.ConnectState.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public sealed class ConnectState
1313
{
1414
private readonly INetworkSocket m_Socket;
1515

16+
[UnityEngine.Scripting.Preserve]
1617
public ConnectState(INetworkSocket socket, object userData)
1718
{
1819
m_Socket = socket;

Runtime/Network/Network/NetworkManager.HeartBeatState.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public sealed class HeartBeatState
1717
private float _heartBeatElapseSeconds;
1818
private int _missHeartBeatCount;
1919

20+
[UnityEngine.Scripting.Preserve]
2021
public HeartBeatState()
2122
{
2223
_heartBeatElapseSeconds = 0f;

0 commit comments

Comments
 (0)