namespace AibisDream.SaveSystem { /// /// 一次性注册 P1 所需的全部 。 /// 由 在首次使用时调用。 /// public static class SnapshotBootstrap { private static bool _initialized; /// 幂等;重复调用无副作用。 public static void EnsureInitialized() { if (_initialized) return; _initialized = true; SnapshotRegistry.Register(new EnvironmentSnapshotProvider()); SnapshotRegistry.Register(new ActorSnapshotProvider()); SnapshotRegistry.Register(new AudioSnapshotProvider()); SnapshotRegistry.Register(new TimelineSnapshotProvider()); SnapshotRegistry.Register(new FixSnapshotProvider()); SnapshotRegistry.Register(new ScreenSnapshotProvider()); } } }