コード例 #1
0
        /// <summary>
        ///   Initializes a new instance of the <see cref="GateCamping" /> class.
        /// </summary>
        public GateCamping()
        {
            EngageRules = new EngageRules(100000, true, true, false);

            Entities = new ObservableCollection <EntityViewModel>();
            GateCampingBotBusinessLogic = new GateCampingBotBusinessLogic(BotState.Idle, EngageRules);

            InitRefreshEntitiesTimer();
        }
コード例 #2
0
        /// <summary>
        ///   Initializes a new instance of the <see cref="GateCampingBotBusinessLogic" /> class.
        /// </summary>
        /// <param name="state">The state.</param>
        /// <param name="engageRules"></param>
        public GateCampingBotBusinessLogic(BotState state, EngageRules engageRules)
        {
            CurrentBotState      = state;
            EngageRules          = engageRules;
            FrameActionScheduler = new FrameActionsScheduler(15);

            Entities = new ObservableCollection <EntityViewModel>();

            OneTimeSetup();
            AttachOnFrame();
        }