コード例 #1
0
 public override IRestorableComponent saveComponent(GameObject gameObject,
                                                    IComponentAssigner assigner, GamePersistence.SaveType saveType)
 {
     setSaveData(saveType);
     AutomatedScriptTransfer.TransferScriptsSaving(this, savedDictionary, saveType);
     return(CreatedSaveableMonoBehaviour);
 }
コード例 #2
0
 public override IRestorableComponent saveComponent(GameObject gameObject,
                                                    IComponentAssigner assigner, GamePersistence.SaveType saveType)
 {
     saveComponentValues(gameObject, assigner, saveType);
     AutomatedScriptTransfer.transferComponentSaving
         (this, CreatedSaveableComponent.DataContainer);
     return(CreatedSaveableComponent);
 }
コード例 #3
0
 public override void saveComponentValues(GameObject gameObject,
                                          IComponentAssigner assigner, PersistentGameDataController.SaveType saveType)
 {
     Component = assigner.getComponent <T>();
     saveComponent(Component, saveType);
 }
コード例 #4
0
 public sealed override ISaveableComponent restoreComponent(IComponentAssigner assigner)
 {
     Component = assigner.getComponent <T>();
     restoreComponent(Component);
     return(this);
 }
コード例 #5
0
 protected virtual void componentRestored(ISaveableComponent c, IComponentAssigner assigner)
 {
 }
コード例 #6
0
 public ISaveableComponent restoreComponent(IComponentAssigner assigner)
 {
     AutomatedScriptTransfer.restoreData(values, createdComponent, LastSerializedType);
     componentRestored(createdComponent, assigner);
     return(createdComponent);
 }
コード例 #7
0
 public abstract IRestorableComponent saveComponent(GameObject gameObject,
                                                    IComponentAssigner assigner, PersistentGameDataController.SaveType saveType);
コード例 #8
0
 protected override void componentRestored(ISaveableComponent c, IComponentAssigner assigner)
 {
     ((IHybridComponent)c).restoreComponent(assigner);
 }
コード例 #9
0
 protected override void componentRestored(ISaveableComponent c, IComponentAssigner assigner)
 {
     ((BaseSaveableMonoBehaviour)c).onBehaviourLoaded();
 }
コード例 #10
0
 public abstract ISaveableComponent restoreComponent(IComponentAssigner assigner);
コード例 #11
0
 public abstract void saveComponentValues(GameObject gameObject, IComponentAssigner assigner, GamePersistence.SaveType saveType);
コード例 #12
0
 public abstract void saveComponentValues(GameObject gameObject, IComponentAssigner assigner, PersistentGameDataController.SaveType saveType);
コード例 #13
0
 public abstract IRestorableComponent saveComponent(GameObject gameObject,
                                                    IComponentAssigner assigner, GamePersistence.SaveType saveType);