Esempio n. 1
0
        public void Initialize(ISaveManager saveManager)
        {
            _saveManager = saveManager;

            playButton.onClick.AddListener(() => OnPlayButtonClick());
            Activate();
        }
Esempio n. 2
0
 /// <summary>
 /// Create menu.
 /// </summary>
 /// <param name="rules">'Game of life' rules implementation</param>
 public Menu(IRules rules, IPlayerInterface playerInterface, ISaveManager saveManager)
 {
     _playerInterface = playerInterface;
     _saveManager     = saveManager;
     _gameRepo        = new GameRepository();
     _gameManager     = new (playerInterface, _gameRepo, rules);
 }
Esempio n. 3
0
 AllTabsMenuItemCommand(IFileTabManager fileTabManager, ISaveManager saveManager, ITabsVMSettings tabsVMSettings, IAppWindow appWindow)
     : base(fileTabManager)
 {
     this.saveManager    = saveManager;
     this.tabsVMSettings = tabsVMSettings;
     this.appWindow      = appWindow;
 }
Esempio n. 4
0
        public void Initialize(ISaveManager saveManager, IGameSceneManager gameSceneManager)
        {
            _saveManager      = saveManager;
            _gameSceneManager = gameSceneManager;

            ShowPlayButton();
        }
Esempio n. 5
0
 public void Write(ISaveManager man)
 {
     man.WriteLine("Название:" + getTypeOfProperty() + "\nцена:" + getPriceObject() + "\nрайон:" + getDistrict() + "\nулица:" + getStreet() +
                   "\nномер дома:" + getNumberHouse() + "\nномер квартиры:" + getNumberApartament() +
                   "\nплощадь:" + getAreaObject() + "\nколичество комнат:" + getNumberRoom() +
                   "\nвремя:" + getTime() + "\nдетали:" + getDetails()
                   );
 }
Esempio n. 6
0
 public TabsVM(IFileTabManager fileTabManager, ISaveManager saveManager, ITabsVMSettings tabsVMSettings)
 {
     this.fileTabManager = fileTabManager;
     this.saveManager    = saveManager;
     this.Settings       = tabsVMSettings;
     this.tabsList       = new ObservableCollection <TabVM>(fileTabManager.SortedTabs.Select(a => new TabVM(this, a)));
     this.SelectedItem   = tabsList.Count == 0 ? null : tabsList[0];
     InitializeSaveText();
 }
Esempio n. 7
0
 public TabsVM(IFileTabManager fileTabManager, ISaveManager saveManager, ITabsVMSettings tabsVMSettings)
 {
     this.fileTabManager = fileTabManager;
     this.saveManager = saveManager;
     this.tabsVMSettings = tabsVMSettings;
     this.tabsList = new ObservableCollection<TabVM>(fileTabManager.SortedTabs.Select(a => new TabVM(this, a)));
     this.SelectedItem = tabsList.Count == 0 ? null : tabsList[0];
     InitializeSaveText();
 }
Esempio n. 8
0
 public NestopiaRetroArchAdapter(IPluginProvision provision,
                                 RetroArchProcessHandler processHandler, IStoneProvider stoneProvider,
                                 IConfigurationCollectionStore collectionStore,
                                 IBiosManager biosManager, ISaveManager saveManager,
                                 ShaderManager shaderManager)
     : base(
         provision, processHandler, stoneProvider, collectionStore, biosManager, saveManager, shaderManager)
 {
 }
Esempio n. 9
0
 public void SetDependecies(ISaveManager saveManager, IAnimaManager animaManager, IPublisher publisher, IAudioManager audioManager)
 {
     _saveManager  = saveManager;
     _animaManager = animaManager;
     _publisher    = publisher;
     _audioManager = audioManager;
     _audioManager.SetDependecies(_soundGameObject);
     _publisher.AddSubscriber(this);
 }
Esempio n. 10
0
    private void Awake()
    {
        _uiManager        = GetComponent <IMainUiManager>();
        _saveManager      = GetComponent <ISaveManager>();
        _gameSceneManager = GetComponent <IGameSceneManager>();

        _saveManager.LoadSavedInfo();
        _uiManager.Initialize(_saveManager, _gameSceneManager);
    }
Esempio n. 11
0
            public MiningRoutines(MyIni ini, CommandLine cmd, Autopilot ap, ISaveManager manager)
            {
                this.ap = ap;
                var keys = new List <MyIniKey>();

                ini.GetKeys("mining-routine", keys);
                keys.ForEach(k => this.miningRoutes[k.Name] = ini.Get(k).ToInt32());
                cmd.RegisterCommand(new Command("mine-recall", Command.Wrap(this._recall), "Goes to the given mining position", nArgs: 1));
                cmd.RegisterCommand(new Command("mine-save", Command.Wrap(this._savePos), "Saves the current mining position", nArgs: 1));
                manager.AddOnSave(_save);
            }
Esempio n. 12
0
        public LifeTime(ILogger logger, IConfiguration configuration, AuthServer authServer, IDatabaseManager databaseManager, ISaveManager saveManager, IFrameManager frameManager, IConsoleCommandsManager consoleCommandsManager)
        {
            _logger                 = logger;
            _configuration          = configuration;
            _authServer             = authServer;
            _database               = databaseManager;
            _saveManager            = saveManager;
            _frameManager           = frameManager;
            _consoleCommandsManager = consoleCommandsManager;

            AppDomain.CurrentDomain.ProcessExit += Stop;
        }
Esempio n. 13
0
 public BaseManagers(ISaveManager saveManager, IAnimaManager animaManager,
                     IPublisher publisher, IObjectStorage objectStorage, IConfigurateManager configurateManager,
                     ICoroutiner coroutiner, IAudioManager audioManager)
 {
     SaveManager        = saveManager;
     AnimaManager       = animaManager;
     ObjectStorage      = objectStorage;
     Publisher          = publisher;
     Coroutiner         = coroutiner;
     ConfigurateManager = configurateManager;
     AudioManager       = audioManager;
 }
Esempio n. 14
0
        private void Awake()
        {
            _livesSystem = new LivesSystem();
            _scoreSystem = new ScoreSystem();
            _matchSystem = new MatchSystem(_livesSystem, _scoreSystem);

            _playField            = GetComponent <IPlayField>();
            _saveManager          = GetComponent <ISaveManager>();
            _inputSystem          = GetComponent <IInputSystem>();
            _roundUiManager       = GetComponent <IRoundUiManager>();
            _gameSceneManager     = GetComponent <IGameSceneManager>();
            _lightAndCameraSystem = GetComponent <ILightAndCameraSystem>();
            _cardMeshes           = GetComponent <CardReferences>().GetCardObjects();

            StartCoroutine(InitializeRound());
        }
Esempio n. 15
0
            public Fabricator(MyIni ini, IMyGridTerminalSystem gts, ISaveManager manager, CommandLine command, Action <string> logger)
            {
                this.logger      = logger;
                this.name        = ini.GetThrow(SECTION, "name").ToString();
                this.mainProcess = manager.Spawn(null, "fabricator-process", period: 100);
                this.projector   = new Projector(
                    AssertNonNull(gts.GetBlockWithName(this.name + " Projector Door") as IMyDoor, $"Could not find '{this.name + " Projector Door"}'"),
                    AssertNonNull(gts.GetBlockWithName(this.name + " Projector Piston") as IMyPistonBase, $"Could not find '{this.name + " Projector Piston"}'"),
                    AssertNonNull(gts.GetBlockWithName(this.name + " Projector") as IMyProjector, $"Could not find '{this.name + " Projector Projector"}'"),
                    this.mainProcess,
                    this.log);

                var pistons = new List <IMyPistonBase>();

                gts.GetBlocksOfType(pistons, p => p.DisplayNameText == this.name + " Piston");
                var welders = new List <IMyShipWelder>();

                gts.GetBlocksOfType(welders, w => w.DisplayNameText == this.name + " Welder");
                var lights = new List <IMyLightingBlock>();

                gts.GetBlocksOfType(lights, l => l.DisplayNameText == this.name + " Light");
                this.welder = new Welder(
                    AssertNonEmpty(pistons, $"Could not find any '{this.name + " Piston"}'"),
                    AssertNonNull(gts.GetBlockWithName(this.name + " Sensor") as IMySensorBlock, $"Could not find '{this.name + " Sensor"}'"),
                    AssertNonEmpty(welders, $"Could not find any '{this.name + " Welder"}'"),
                    AssertNonEmpty(lights, $"Could not find any '{this.name + " Light"}'"),
                    ini.Get(SECTION, "position-multiplier").ToInt32(1),
                    this.mainProcess);

                this.inventoryManager = new InventoryManager(this.mainProcess, c => this.containersGetter(c, gts));
                this.display          = new FabricatorDisplay(
                    AssertNonNull(gts.GetBlockWithName(this.name + " Status Display") as IMyTextPanel, $"Could not find '{this.name + " Status Display"}'"),
                    AssertNonNull(gts.GetBlockWithName(this.name + " Mandatory Display") as IMyTextPanel, $"Could not find '{this.name + " Mandatory Display"}'"),
                    AssertNonNull(gts.GetBlockWithName(this.name + " Other Display") as IMyTextPanel, $"Could not find '{this.name + " Other Display"}'"),
                    this.name,
                    this.projector,
                    this.welder,
                    this.inventoryManager,
                    this.mainProcess
                    );

                command.RegisterCommand(new Command("fab-deploy", Command.Wrap(this.deploy), "Deploys the blueprint dispenser"));
                command.RegisterCommand(new Command("fab-retract", Command.Wrap(this.retract), "Deploys the blueprint dispenser"));
                command.RegisterCommand(new Command("fab-step", Command.Wrap((Process p) => this.step(gts)), "Activates the welder"));
            }
Esempio n. 16
0
    private void SetDependecies(ILogicManager logicManager)
    {
        _popupManagers      = logicManager.PopupManagers;
        _tokenRewardManager = logicManager.GameManagers.TokenRewardManager;

        _saveManager         = logicManager.BaseManagers.SaveManager;
        _animaManager        = logicManager.BaseManagers.AnimaManager;
        _objectStorage       = logicManager.BaseManagers.ObjectStorage;
        _publisher           = logicManager.BaseManagers.Publisher;
        _gameManager         = logicManager.GameManagers.GameManager;
        _coroutiner          = logicManager.BaseManagers.Coroutiner;
        _deckManager         = logicManager.GameManagers.DeckManager;
        _targetManager       = logicManager.GameManagers.TargetManager;
        _enemyManager        = logicManager.GameManagers.EnemyManager;
        _alliesManager       = logicManager.GameManagers.AlliesManager;
        _configurateManager  = logicManager.BaseManagers.ConfigurateManager;
        _audioManager        = logicManager.BaseManagers.AudioManager;
        _activateCardManager = logicManager.GameManagers.ActivateCardManager;
        _publisher.AddSubscriber(this);
    }
Esempio n. 17
0
            public SolarManager(Program p, CommandLine command, ISaveManager manager, Action <string> logger)
            {
                this.logger = logger;
                var ini = new MyIni();

                ini.TryParse(p.Me.CustomData);
                this.keyword   = ini.GetThrow(SECTION, "keyword").ToString("Solar Rotor");
                this.nightMode = ini.Get(SECTION, "night-mode").ToBoolean();
                Process main = manager.Spawn(process => this.main(), "solar-manager", period: 50);

                this.updator = new SolarUpdator(p, logger);
                this.update();
                main.Spawn(process => this.update(), "solar-manager-update", period: 10000);
                manager.AddOnSave(this.save);
                command.RegisterCommand(new Command("solar-adjust", Command.Wrap(this.adjust), "adjusts the position of a rotor", minArgs: 2, maxArgs: 3,
                                                    detailedHelp: @"first argument is the offset in degree
second argument is the id of the rotor
third (optional) is the id of the auxilliary rotor"));
                command.RegisterCommand(new Command("solar-track", Command.Wrap(this.track), "forces an idle rotor to start tracking", nArgs: 1));
            }
Esempio n. 18
0
    void Start()
    {
        DontDestroyOnLoad(gameObject);            // Команда Unity для сохранения объекта между сценами.

        publisher    = new Publisher();
        saveManager  = new SaveManager();
        gameManager  = new GameManager();
        animaManager = new AnimaManager();
        //logicManager = new LogicManager();
        //loadManager = new LoadManager(_logicManager);

        var            menuObject     = GameObject.FindWithTag("SceneController");
        ControllerMenu controllerMenu = menuObject.GetComponent <ControllerMenu>();

        if (controllerMenu == null)
        {
            throw new UnityException("There is no ControllerMenu script on UI object");
        }

        var buttonObject = GameObject.Find("btnStart");
        MouseClickHandler clickHandler = buttonObject.GetComponent <MouseClickHandler>();

        if (clickHandler == null)
        {
            throw new UnityException("There is no MouseClickHandler script on UI object");
        }

        UiButtonsMenu uiButtonsMenu = buttonObject.GetComponent <UiButtonsMenu>();

        if (clickHandler == null)
        {
            throw new UnityException("There is no MouseClickHandler script on UI object");
        }

        // Set dependencies
        clickHandler.SetDependecies(animaManager);
        uiButtonsMenu.SetDependecies(saveManager, animaManager);
        controllerMenu.SetDependecies(saveManager);
        publisher.AddSubscriber(saveManager);
    }
        private void OnGameLoaded(object sender, EventArgs e)
        {
            ItemDataManager  = new ItemDataManager(Monitor);
            ChestDataManager = new ChestDataManager(ItemDataManager, Monitor);
            ChestFiller      = new ChestFiller(ChestDataManager, Monitor);
            ChestFinder      = new ChestFinder();
            SaveManager      = new SaveManager(ModManifest.Version, ChestDataManager, ChestFinder, ItemDataManager);

            SavePath = Path.Combine(SaveDirectory, Constants.SaveFolderName + ".json");

            try
            {
                if (File.Exists(SavePath))
                {
                    SaveManager.Load(SavePath);
                }
            }
            catch (Exception ex)
            {
                Monitor.Log($"Error loading chest data from {SavePath}", LogLevel.Error);
                Monitor.Log(ex.ToString());
            }
        }
Esempio n. 20
0
 SaveTabCtxMenuCommand(ISaveManager saveManager, IFileTabManager fileTabManager)
     : base(ApplicationCommands.Save)
 {
     this.saveManager = saveManager;
     this.fileTabManager = fileTabManager;
 }
Esempio n. 21
0
    void Start()
   {
       _publisher = new Publisher();

       _saveManager = new SaveManager();
       _animaManager = new AnimaManager();
       _objectLoader = new ObjectLoader();
       _configurateManager = new ConfigurateManager();

       _objectStorage = new ObjectStorage(_objectLoader,_configurateManager);
       _tokenRewardManager = new TokenRewardManager(_publisher, _animaManager, _objectStorage,_configurateManager);
       _audioManager = new AudioManager(_objectStorage, _coroutiner);
       _barsPlayerManager = new BarsPlayerManager(_objectStorage);

       _inventoryManager = new InventoryManager(_objectStorage, _publisher, _coroutiner,_configurateManager);
       
       _gameStageManager = new GameStageManager(_publisher, _coroutiner);
       _gameManager = new GameManager(_publisher, _animaManager, _objectStorage, _coroutiner,_inventoryManager,_configurateManager);
       _enemyManager = new EnemyManager(_publisher, _coroutiner,_animaManager,_objectStorage, _configurateManager);
       _alliesManager = new AlliesManager(_coroutiner, _configurateManager);
       _playersManager = new PlayersManager(_publisher,_animaManager, _tokenRewardManager);
       _barsEnemyManager = new BarsEnemyManager(_enemyManager, _publisher);
       _activateCardManager = new ActivateCardManager(_publisher, _barsPlayerManager,_enemyManager);
       _targetManager = new TargetManager(_publisher, _animaManager, _activateCardManager, _enemyManager);
       _deckManager = new DeckManager(_objectStorage,_inventoryManager,_animaManager,_publisher,_coroutiner, _targetManager,_configurateManager);
       
       _popupEvent = new PopupEvent(_objectStorage,_publisher,_animaManager,_coroutiner, _configurateManager);
       _popupGameMenu = new PopupGameMenu(_objectStorage, _publisher, _animaManager,_coroutiner);
       _popupInventory = new PopupInventory(_inventoryManager, _animaManager);
       _popupPlaceInSlot = new PopupPlaceInSlot(_publisher);
       _popupPlayers = new PopupPlayers(_animaManager, _objectStorage, _publisher, _configurateManager);
       //_descriptionCardPopup = new PopupDescriptionCard(_popupDescriptionCard);
       _popupDescriptionCard = new PopupDescriptionCard(_coroutiner,_animaManager);
       _popupRewardEvent = new PopupRewardEvent(_publisher, _objectStorage, _configurateManager, _coroutiner);
       
       _publisher.AddSubscriber((ISubscriber) _gameManager);
       _publisher.AddSubscriber((ISubscriber) _inventoryManager);
       _publisher.AddSubscriber((ISubscriber) _gameStageManager);
       _publisher.AddSubscriber((ISubscriber) _activateCardManager);
       _publisher.AddSubscriber((ISubscriber) _barsPlayerManager);
       _publisher.AddSubscriber((ISubscriber) _barsEnemyManager);
       _publisher.AddSubscriber((ISubscriber) _enemyManager);
       _publisher.AddSubscriber((ISubscriber) _alliesManager);
       _publisher.AddSubscriber((ISubscriber) _playersManager);
       _publisher.AddSubscriber((ISubscriber) _deckManager);
       _publisher.AddSubscriber((ISubscriber) _targetManager);
       _publisher.AddSubscriber((ISubscriber) _audioManager);
       _publisher.AddSubscriber((ISubscriber) _tokenRewardManager);
       
       _publisher.AddSubscriber((ISubscriber) _popupGameMenu);
       _publisher.AddSubscriber((ISubscriber) _popupInventory);
       _publisher.AddSubscriber((ISubscriber) _popupEvent);
       _publisher.AddSubscriber((ISubscriber) _popupPlayers);
       _publisher.AddSubscriber((ISubscriber) _popupDescriptionCard);
       _publisher.AddSubscriber((ISubscriber) _popupRewardEvent);
       _publisher.AddSubscriber((ISubscriber) _popupPlaceInSlot);
       
       _baseManagers = new BaseManagers(_saveManager,_animaManager,_publisher,_objectStorage,_configurateManager,_coroutiner, _audioManager);
       _gameManagers = new GameManagers(_gameManager, _activateCardManager, _barsPlayerManager, _barsEnemyManager, 
           _enemyManager, _alliesManager,  _playersManager, _deckManager, _inventoryManager, _targetManager, _tokenRewardManager);
       _popupManagers = new PopupManagers(_popupGameMenu,_popupInventory, _popupEvent, _popupPlayers, _popupDescriptionCard,_popupPlaceInSlot, _popupRewardEvent);
       
       
       _logicManager = new LogicManager(_baseManagers,_gameManagers, _popupManagers);
       _loadManager = new LoadManager(_logicManager);
       //-------------------Делаем переход в сцену "Меню"
       _loadManager.Navigate(SceneTypeEnum.Bootstrapper, SceneTypeEnum.Menu, CustomObject.Empty);
   }
Esempio n. 22
0
 SaveCommandInit(ISaveManager saveManager, IAppWindow appWindow, IFileTabManager fileTabManager)
 {
     appWindow.MainWindowCommands.Add(ApplicationCommands.Save, (s, e) => saveManager.Save(fileTabManager.ActiveTab), (s, e) => e.CanExecute = saveManager.CanSave(fileTabManager.ActiveTab));
 }
Esempio n. 23
0
 public void Write(ISaveManager man)
 {
     man.WriteLine($"name:{name}");
     man.WriteLine($"group:{group}");
 }
Esempio n. 24
0
 public ControlBinder(List <IMyShipController> shipControllers, ISaveManager spawner)
 {
     this.shipControllers = shipControllers;
     spawner.Spawn(p => this.handle(), "control-binder");
     this.previous = ACTIONS.ToDictionary(s => s, s => 0f);
 }
 /// <summary>
 /// Initialize a new instance of the <see cref="FileSystemVisitor"/>
 /// </summary>
 /// <param name="validator">The <see cref="IValidator"/>.</param>
 /// <param name="saveManager">The <see cref="ISaveManager"/>.</param>
 public FileSystemVisitor(IValidator validator, ISaveManager saveManager)
 {
     _validator   = validator;
     _saveManager = saveManager;
 }
Esempio n. 26
0
            /// <summary>Class that allow some high level control over the wheels. To be controlled, the wheels must be on the same grid than <paramref name="controller"/> and contain the keyword "Power"</summary>
            /// <param name="command">Command line where the commands will be registered</param>
            /// <param name="controller">Controller on the same grid than the wheels to get some physics information</param>
            /// <param name="gts">To retrieve the wheels</param>
            /// <param name="ini">Contains some serialized information for persistence</param>
            /// <param name="manager">To spawn the updater process</param>
            /// <param name="transformer">Transformer that transform world coordinates into the vehicules coordinate: Z must be parallel to the vehicle's forward direction an Y must be parallel to the vehicle's up direction</param>
            public WheelsController(CommandLine command, IMyShipController controller, IMyGridTerminalSystem gts, MyIni ini, ISaveManager manager, CoordinatesTransformer transformer)
            {
                this.transformer = transformer;
                this.controller  = controller;
                var wheels = new List <IMyMotorSuspension>();

                gts.GetBlocksOfType(wheels, w => w.CubeGrid == controller.CubeGrid && w.DisplayNameText.Contains("Power"));
                this.wheels = wheels.Select(w => new PowerWheel(w, this.WheelBase, transformer)).ToList();
                this.wheels.Sort((w1, w2) => Math.Sign(w1.Position.Z - w2.Position.Z)); // needed for calibration

                this.registerCommands(command);
                manager.Spawn(this.updateWheels, "wheels-controller", period: 10);
                manager.AddOnSave(this.save);

                if (ini.ContainsKey(SECTION, "cal-weight"))
                {
                    this.calibration = new Calibration()
                    {
                        Weight  = ini.Get(SECTION, "cal-weight").ToSingle(),
                        MinZ    = ini.Get(SECTION, "cal-min-z").ToDouble(),
                        MaxZ    = ini.Get(SECTION, "cal-max-z").ToDouble(),
                        MinMult = ini.Get(SECTION, "cal-min-mult").ToSingle(),
                        MaxMult = ini.Get(SECTION, "cal-max-mult").ToSingle()
                    };
                }

                this.targetRatio = ini.Get(SECTION, "target-ratio").ToSingle(0.35f);
                this.WheelBase.CenterOfTurnZOffset = ini.Get(SECTION, "turn-center-offset").ToDouble();
                this.WheelBase.TurnRadiusOverride  = ini.Get(SECTION, "turn-radius").ToDouble();
            }
Esempio n. 27
0
 SaveCommandInit(ISaveManager saveManager, IAppWindow appWindow, IFileTabManager fileTabManager)
 {
     appWindow.MainWindowCommands.Add(ApplicationCommands.Save, (s, e) => saveManager.Save(fileTabManager.ActiveTab), (s, e) => e.CanExecute = saveManager.CanSave(fileTabManager.ActiveTab));
 }
Esempio n. 28
0
 public void Write(ISaveManager man)
 {
     man.WriteLine("Название:" + Name + "\nТелефон:" + Phone + "\nАдресс:" + Adress + "");
 }
Esempio n. 29
0
 SaveTabCtxMenuCommand(ISaveManager saveManager, IFileTabManager fileTabManager)
     : base(ApplicationCommands.Save)
 {
     this.saveManager    = saveManager;
     this.fileTabManager = fileTabManager;
 }
Esempio n. 30
0
 public void SetDependecies(ISaveManager saveManager, IAnimaManager animaManager, IPublisher publisher)
 {
     _saveManager  = saveManager;
     _animaManager = animaManager;
     _publisher    = publisher;
 }
Esempio n. 31
0
 public void Write(ISaveManager man)
 {
     man.WriteLine("Фамилия:" + getFIO() + "\nТелефон:" + getPhone() + "\n");
 }
Esempio n. 32
0
 /// <summary>Creates a PilotAssist</summary>
 /// <param name="gts">To get the different blocks</param>
 /// <param name="ini">Parsed ini that contains the configuration. See <see cref="Read(Ini)"/> for more information</param>
 /// <param name="logger">Optional logger</param>
 /// <param name="manager">Used to schedule itself</param>
 /// <param name="wc">Wheel controller used to actually controll the wheels</param>
 public PilotAssist(IMyGridTerminalSystem gts, IniWatcher ini, Action <string> logger, ISaveManager manager, WheelsController wc)
 {
     this.logger           = logger;
     this.wheelControllers = wc;
     this.gts = gts;
     this.Read(ini);
     this.ManuallyBraked          = !this.shouldBrake() && this.Braked;
     this.wasPreviouslyAutoBraked = this.shouldBrake();
     manager.Spawn(this.handle, "pilot-assist");
     manager.AddOnSave(this.save);
     ini.Add(this);
 }
Esempio n. 33
0
 public void Write(ISaveManager man)
 {
     man.WriteLine("Имя:" + Name + "\nТелефон:" + Phone + "");
 }