コード例 #1
0
        //float? AHSkill = null;

        public HorseProcessor(ModuleGranger parentModule, GrangerContext context, PlayerManager playerMan, GrangerDebugLogger debugLogger)
        {
            _grangerDebug = debugLogger;
            _parentModule = parentModule;
            _context = context;
            _playerMan = playerMan;
        }
コード例 #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;
        }
コード例 #3
0
        public HorseUpdatesManager(ModuleGranger parentModule, GrangerContext context, PlayerManager playerManager)
        {
            _parentModule = parentModule;
            _context = context;
            _playerMan = playerManager;

            _processor = new HorseProcessor(_parentModule, _context, _playerMan, _grangerDebug);
        }
コード例 #4
0
ファイル: PlayerManager.cs プロジェクト: webba/WurmAssistant2
        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));
        }
コード例 #5
0
 public LogFeedManager(ModuleGranger parentModule, GrangerContext context)
 {
     _parentModule = parentModule;
     _context = context;
 }