Esempio n. 1
0
        public override void SaveState(PluginDataWrapper pluginDataStorage)
        {
            var writer = pluginDataStorage.GetWriterForWrappedSequentialData();

            healthBar.Save(writer);
            writer.StoreNext(AttackMove);
        }
Esempio n. 2
0
File: Gate.cs Progetto: MK4H/MHUrho
        public override void SaveState(PluginDataWrapper pluginData)
        {
            var writer = pluginData.GetWriterForWrappedSequentialData();

            writer.StoreNext(IsOpen);
            healthBar.Save(writer);
        }
Esempio n. 3
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);
        }
Esempio n. 4
0
        public override void SaveState(PluginDataWrapper pluginData)
        {
            var writer = pluginData.GetWriterForWrappedSequentialData();

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