コード例 #1
0
        private void LoadStorageData(RealTimeStorage storage)
        {
            foreach (IStorageData item in storageData)
            {
                storage.Deserialize(item);
            }

            Log.Info("The 'Real Time' mod successfully loaded its data for the current game.");
        }
コード例 #2
0
ファイル: RealTimeStorage.cs プロジェクト: simog6/RealTime
 /// <summary>
 /// Called when this game object is released by the game engine.
 /// </summary>
 public override void OnReleased()
 {
     base.OnReleased();
     CurrentLevelStorage = null;
 }
コード例 #3
0
ファイル: RealTimeStorage.cs プロジェクト: simog6/RealTime
 /// <summary>
 /// Called when an instance of this class is being initialized by the game engine.
 /// </summary>
 ///
 /// <param name="serializableData">An instance of the <see cref="ISerializableData"/> service.</param>
 public override void OnCreated(ISerializableData serializableData)
 {
     base.OnCreated(serializableData);
     CurrentLevelStorage = this;
 }
コード例 #4
0
 public override void OnReleased()
 {
     base.OnReleased();
     Instance = null;
 }
コード例 #5
0
 public override void OnCreated(ISerializableData serializableData)
 {
     base.OnCreated(serializableData);
     Instance = this;
 }