Skip to content

Commit 56de882

Browse files
committed
refactor(Web): 移除旧的JSON相关代码并添加ProtoBuff支持
重构Web模块,删除不再使用的JSON相关类和元数据文件,新增ProtoBuff管理器及组件实现。主要变更包括: 1. 移除HttpJsonResult系列类和WebStringResult 2. 添加WebProtoBuffManager及其相关实现类 3. 新增WebProtoBuffComponent作为Unity组件 4. 更新GameFrameXWebCroppingHelper移除对旧类的引用 此次重构使用Protocol Buffers替代JSON作为主要数据交换格式,提高序列化效率和性能。
1 parent 49fd620 commit 56de882

18 files changed

Lines changed: 0 additions & 208 deletions

Runtime/Extensions.meta

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

Runtime/Extensions/HttpJsonResult.cs

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

Runtime/Extensions/HttpJsonResult.cs.meta

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

Runtime/Extensions/HttpJsonResultData.cs

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

Runtime/Extensions/HttpJsonResultData.cs.meta

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

Runtime/Extensions/HttpJsonResultHelper.cs

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

Runtime/Extensions/HttpJsonResultHelper.cs.meta

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

Runtime/GameFrameXWebCroppingHelper.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using GameFrameX.Web.Runtime;
21
using UnityEngine;
32
using UnityEngine.Scripting;
43

@@ -13,8 +12,6 @@ private void Start()
1312
_ = typeof(WebProtoBuffComponent);
1413
_ = typeof(IWebProtoBuffManager);
1514
_ = typeof(WebProtoBuffManager);
16-
_ = typeof(WebStringResult);
17-
_ = typeof(WebBufferResult);
1815
}
1916
}
2017
}

0 commit comments

Comments
 (0)