command
Version:
v0.0.0-...-dca2a0b
Opens a new window with list of versions in this module.
Published: May 1, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
备忘录模式 memento pattern
在不影响原结构封装的情况下,能够暂时保存一个结构的状态,并能够恢复
这里是一个游戏存档的例子,尝试保存玩家当前位置,并在读档的时候恢复
Source Files
¶
Click to show internal directories.
Click to hide internal directories.