Пример #1
0
        public override void SaveState(PluginDataWrapper pluginData)
        {
            var writer = pluginData.GetWriterForWrappedSequentialData();

            writer.StoreNext(IsOpen);
            healthBar.Save(writer);
        }
Пример #2
0
        public override void SaveState(PluginDataWrapper pluginDataStorage)
        {
            var writer = pluginDataStorage.GetWriterForWrappedSequentialData();

            healthBar.Save(writer);
            writer.StoreNext(AttackMove);
        }
Пример #3
0
        public override void SaveState(PluginDataWrapper pluginData)
        {
            var writer = pluginData.GetWriterForWrappedSequentialData();

            CutterWrapper.SaveCutters(this, writer, cutters.Values);
            currentState.Save(writer);
        }
Пример #4
0
        public override void SaveState(PluginDataWrapper pluginData)
        {
            var writer = pluginData.GetWriterForWrappedSequentialData();

            healthBar.Save(writer);
            currentState.Save(writer);
            writer.StoreNext(targetTree?.Building.ID ?? 0);
            writer.StoreNext(Cutter.Building.ID);
        }
Пример #5
0
        public override void SaveState(PluginDataWrapper pluginData)
        {
            var sequential = pluginData.GetWriterForWrappedSequentialData();

            sequential.StoreNext(timeToSplit);
            sequential.StoreNext(splits);
            sequential.StoreNext(despawning);
            sequential.StoreNext(timeToDespawn);
        }
Пример #6
0
        public override void SaveState(PluginDataWrapper pluginData)
        {
            var writer = pluginData.GetWriterForWrappedSequentialData();

            writer.StoreNext(FinalSize);
            writer.StoreNext(changePerSecond);
            writer.StoreNext(currentSize);
            writer.StoreNext(currentStepTimeout);
            writer.StoreNext(curSpreadTimeout);
        }
Пример #7
0
        public override void SaveState(PluginDataWrapper pluginData)
        {
            var writer = pluginData.GetWriterForWrappedSequentialData();

            healthBar.Save(writer);
            foreach (var worker in workers)
            {
                worker.Store(writer);
            }
        }