We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
整个框架的Model只有注册没有移除,且同一个类型的Model只能注册一个,看起来整个MVC针对的都是全局的数据实体。 如果想要在非全局的比如怪物身上使用这套MVC通信机制可以么? 比如每个怪物都挂有一个相同类型的Model实例,Controller监听这些model数据的更改并执行逻辑,有点ecs的味道了。
The text was updated successfully, but these errors were encountered:
现在的model确实就是一个全局的数据实体,他与system和controller同级;要做到ECS这种E 与 C的组合确实对框架有所提升。
Sorry, something went wrong.
我倒是感觉你说的一个意思有点 享元模式的味了,你这个model挂给怪物的,就像是通过scriptobject提前定义好一些基础数据
同感,Model应该能多个实例且可移除才对,看到一整个Architecture是全局的不知道怎么下手。
我是每个怪物基于model层对应的scriptableObject,create一个新的scritableObject来作为runtimeData
No branches or pull requests
整个框架的Model只有注册没有移除,且同一个类型的Model只能注册一个,看起来整个MVC针对的都是全局的数据实体。
如果想要在非全局的比如怪物身上使用这套MVC通信机制可以么? 比如每个怪物都挂有一个相同类型的Model实例,Controller监听这些model数据的更改并执行逻辑,有点ecs的味道了。
The text was updated successfully, but these errors were encountered: