Skip to content

添加不用支持序列化就可以使用组件的方式 #31

Description

@FuYnAloft

现在想要使用组件,组件必须可以序列化,这给快速开发和使用组件带来了麻烦。

有很多组件其实相当于卡牌本身的一部分,并没有一般组件的可移动性,也不是可变的。

建议为 ComponentsCardModel 添加 StaticCompoents 虚属性,其中的组件不序列化,不会出现在 Components 属性里,不会被 RemoveComponent 等影响,仅会影响卡牌描述和卡牌的效果,如同不是组件而是卡牌本身的一部分。

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions