- 源码的类图
classDiagram
direction LR
RecordContainer --> IRecord
class IRecord{
<<interface>>
+Unod()
+Redo()
+OnRemove()
+OnException(Exception ex)
}
class RecordContainer{+Record(IRecord record)
+Undo()
+Redo()
+Clear()}
- Demo 的类图
classDiagram
IRecord <|-- DelRecord
IRecord <|-- SpawnRecord
RecordContainer --> IRecord
class IRecord{<<interface>>}
class DelRecord
class SpawnRecord
class RecordContainer{}
github 地址:https://github.com/pangdudu72…