public override void SaveState(PluginDataWrapper pluginDataStorage) { var writer = pluginDataStorage.GetWriterForWrappedSequentialData(); healthBar.Save(writer); writer.StoreNext(AttackMove); }
public override void SaveState(PluginDataWrapper pluginData) { var writer = pluginData.GetWriterForWrappedSequentialData(); writer.StoreNext(IsOpen); healthBar.Save(writer); }
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); }
public override void SaveState(PluginDataWrapper pluginData) { var writer = pluginData.GetWriterForWrappedSequentialData(); healthBar.Save(writer); foreach (var worker in workers) { worker.Store(writer); } }