Esempio n. 1
0
        //float? AHSkill = null;

        public HorseProcessor(ModuleGranger parentModule, GrangerContext context, PlayerManager playerMan, GrangerDebugLogger debugLogger)
        {
            _grangerDebug = debugLogger;
            _parentModule = parentModule;
            _context = context;
            _playerMan = playerMan;
        }
Esempio n. 2
0
        public FormGrangerMain(ModuleGranger moduleGranger, PersistentObject<GrangerSettings> settings, GrangerContext context)
        {
            this.ParentModule = moduleGranger;
            this.Settings = settings;
            this.Context = context;

            InitializeComponent();

            RebuildValuePresets();
            RefreshValuator();
            RebuildAdvisors();
            RefreshAdvisor();

            ucGrangerHerdList1.Init(this, context);
            ucGrangerHorseList1.Init(this, context);
            ucGrangerTraitView1.Init(this, context);

            Context.OnTraitValuesModified += Context_OnTraitValuesModified;

            this.Size = Settings.Value.MainWindowSize;

            this.checkBoxCapturingEnabled.Checked = Settings.Value.LogCaptureEnabled;
            this.UpdateViewsVisibility();
            this.Update_textBoxCaptureForPlayers();

            _WindowInitCompleted = true;
        }
        public HorseUpdatesManager(ModuleGranger parentModule, GrangerContext context, PlayerManager playerManager)
        {
            _parentModule = parentModule;
            _context = context;
            _playerMan = playerManager;

            _processor = new HorseProcessor(_parentModule, _context, _playerMan, _grangerDebug);
        }
Esempio n. 4
0
        public PlayerManager(ModuleGranger parentModule, GrangerContext context, string playerName)
        {
            this._parentModule = parentModule;
            this._context = context;
            this.PlayerName = playerName;

            //SGManager = new ManualServerGroupManager(PlayerName);
            HorseUpdateManager = new HorseUpdatesManager(_parentModule, _context, this);

            InitSkill();

            WurmLogs.SubscribeToLogFeed(PlayerName, new EventHandler<NewLogEntriesEventArgs>(OnNewLogEvents));
        }
Esempio n. 5
0
 public LogFeedManager(ModuleGranger parentModule, GrangerContext context)
 {
     _parentModule = parentModule;
     _context = context;
 }