cn.wjybxx.commons:commons-agent

热更新Agent模块;保持最小jar包


Keywords
behaviortree, csharp-inject, csharp-poet, disruptor, dson, source-generator, wjybxx
License
Apache-2.0

Documentation

commons

Wjybxx的公共模块,抽取以方便我的其它开源项目依赖这里的部分组件。

  1. Java 相关模块在Maven仓库中搜索cn.wjybxx.commons即可看见。
  2. Csharp 相关模块在Nuget仓库中搜索wjybxx即可看见。

注意:限于个人经历,部分Java库已无法同步维护(如Dson-Codec),最新代码请阅读C#代码。

重要组件一览

  1. Dson文本格式 -- Dson文本格式.
  2. 基于Dson的序列化 -- Java实现c#实现.
  3. 通用任务树(行为树) -- 行为树Java实现c#实现
  4. 改进的Disruptor实现 -- Java实现C#实现
  5. 改进的并发库 -- Java核心并发库C#核心并发库
  6. C#代码生成工具 -- JavaPoet移植
  7. C#依赖注入框架

源码Unity兼容

由于无法简单打出dll引入到unity,所以在unity中使用该项目的代码时,请使用包管理器下载源码。 可直接修改mainfest.json添加以下包:

    "wjybxx.btree.codec": "https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.BTree.Codec#upkg",
    "wjybxx.btree.core": "https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.BTree.Core#upkg",
    "wjybxx.commons.concurrent": "https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.Commons.Concurrent#upkg",
    "wjybxx.commons.core": "https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.Commons.Core#upkg",
    "wjybxx.commons.inject": "https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.Commons.Inject#upkg",
    "wjybxx.disruptor": "https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.Disruptor#upkg",
    "wjybxx.dson.codec": "https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.Dson.Codec#upkg",
    "wjybxx.dson.core": "https://github.com/hl845740757/commons.git?path=/unity/Assets/Scripts/Wjybxx.Dson.Core#upkg",

解释:

  1. 为避免unity相关逻辑影响dev分支(主要是代码重复),unity的包是在upkg分支发布的。
  2. upkg的同步频率可能不及时,用户如果需要最新的代码,可自行根据commons库制作本地包。

个人公众号(游戏开发)

写代码的诗人