Files
Fishing2Server/Fantasy/Fantasy.Packages/Fantasy.MemoryPack/README.md
2025-06-30 10:51:37 +08:00

26 lines
1001 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Fantasy.MemoryPack 扩展包
## Unity
Unity使用只需要再Unity文件夹里导入Fantays.MemoryPack.unitypackage到Unity里即可。
## Net
* 在你的项目里用Nuget或dotnet add package MemoryPack安装MemoryPack的库。
* 再Net文件夹里把MemoryPack文件夹拷贝的项目中。
## Tools
编辑改导表工具ExporterSettings.json文件在文件Serializes里增加MemoryPack协议的说明.
```json
"Serializes": {
"Value": [
{
"KeyIndex": 0,
"NameSpace" : "MemoryPack",
"SerializeName": "MemoryPack",
"Attribute": "\t[MemoryPackable]",
"Ignore": "\t\t[MemoryPackIgnore]",
"Member": "MemoryPackOrder"
}
],
"Comment": "自定义序列化器"
}
```
## 使用注意
无论是Unity或Net下导入所在的项目必须要把当前程序集装载到框架中才可以。