예제 #1
0
        public void BindingData()
        {
            bool           enableCache = (CDHelper.Config.EnableCache == "true");
            List <Article> result      = null;

            string       type  = StateMgr.ConvertEnumToStr(EnumLibrary.ArticleType.Article);
            ArticleQuery query = new ArticleQuery();

            query.AccountID = AccountID;
            query.EnumState = type;
            query.OrderKeys = "ID";
            List <Article> articleList = ArticleHelper.QueryArtilcesByAll(query, 0, 5, null);

            if (articleList != null)
            {
                foreach (Article article in articleList)
                {
                    if (article.Title.Length > 25)
                    {
                        article.Title = article.Title.Substring(0, 25) + "...";
                    }
                }
            }
            result = articleList;

            DataGridView.DataSource = result;
            DataGridView.DataBind();
        }
예제 #2
0
        public void Update(float tpf)
        {
            if (GameWindowState != WindowState.IN_GAME)
            {
                return;
            }

            totalTime += tpf;

            ShowStatistics(tpf);

            StateMgr.Update(tpf);

            if (!stopUpdating)
            {
                AddObjectsReadyToAdd();

                UpdateSceneObjects(tpf);
                RemoveObjectsMarkedForRemoval();

                CheckCollisions(tpf);
                RemoveObjectsMarkedForRemoval();

                UpdateGeomtricState();

                area.RunRender();
            }
        }
예제 #3
0
    public void Init(int mapId)
    {
        resSvc   = ResSvc.instance;
        audioSvc = AudioSvc.instance;
        timerSvc = TimerSvc.instance;

        stateMgr = this.gameObject.AddComponent <StateMgr>();
        stateMgr.Init();
        skillMgr = this.gameObject.AddComponent <SkillMgr>();
        skillMgr.Init();


        mapCfg = resSvc.GetMapCfgData(mapId);
        resSvc.AsyncLoadScene(mapCfg.sceneName, () =>
        {
            GameObject mapObj = GameObject.FindWithTag("MapRoot");
            mapMgr            = mapObj.GetComponent <MapMgr>();
            mapMgr.Init();
            audioSvc.PlayBgMusic(Constants.BGHuangye);

            mapObj.transform.position   = Vector3.zero;
            mapObj.transform.localScale = Vector3.one;

            Camera.main.transform.position         = mapCfg.mainCamPos;
            Camera.main.transform.localEulerAngles = mapCfg.mainCamRote;

            LoadPlayer(mapCfg);

            SetActiveCurrentBatchMonsters();
        });
    }
예제 #4
0
 public Role(int player_id) : base(player_id)
 {
     this.equip_mgr = new EquipMgr(this);
     this.skill_mgr = new SkillMgr(this);
     this.buff_mgr  = new BuffMgr(this);
     this.state_mgr = new StateMgr(this);
 }
예제 #5
0
파일: State.cs 프로젝트: RockyF/GVBASIC
	// Update is called once per frame
	void Awake () 
	{
        m_stateMgr = GetComponentInParent<StateMgr>();
        m_stateMgr.AddState(this);

        onInit();
	}
예제 #6
0
    public void Init(int mapId)
    {
        mResSvc   = ResSvc.Instance;
        mAudioSvc = AudioSvc.Instance;
        mCfgSvc   = CfgSvc.Instance;

        mSkillMgr = gameObject.AddComponent <SkillMgr>();
        mSkillMgr.Init();
        mStateMgr = gameObject.AddComponent <StateMgr>();
        mStateMgr.Init();


        mAudioSvc.PlayBgAudio(Constant.Audio_BgHuangYe);

        CfgMap cfg = mCfgSvc.GetCfgMap(mapId);

        if (cfg == null)
        {
            Debug.LogError("╪сть╣ьм╪й╖╟э:  " + mapId);
            return;
        }

        mResSvc.AsyncLoadScene(cfg.sceneName, () =>
        {
            GameObject mapGo = GameObject.FindGameObjectWithTag("MapRoot");

            mMapMgr = mapGo.AddComponent <MapMgr>();
            mMapMgr.Init();
            InitScene(cfg);
        });
    }
예제 #7
0
    void SetEffectFlag(int id, bool v)
    {
        excel_can_not_flag excel = excel_can_not_flag.Find(id);

        if (excel == null)
        {
            return;
        }
        StateMgr stateMgr = stateGroup.mSelf.mStateMgr;

        if (stateMgr == null)
        {
            return;
        }

        if (excel.canNotMove != 0)
        {
            SetFlag(stateMgr, CannotFlag.CannotMove, v);
        }
        if (excel.canNotControl != 0)
        {
            SetFlag(stateMgr, CannotFlag.CannotControl, v);
        }
        if (excel.canNotSkill != 0)
        {
            SetFlag(stateMgr, CannotFlag.CannotSkill, v);
        }
        if (excel.canNotSelected != 0)
        {
            SetFlag(stateMgr, CannotFlag.CannotSelected, v);
        }
    }
예제 #8
0
 public void Restart()
 {
     if (null != GDSMgr)
     {
         GDSMgr.DestroyGDS();
         GDSMgr = null;
     }
     if (null != LanguageMgr)
     {
         LanguageMgr.Destroy();
         LanguageMgr = null;
     }
     if (null != ProxyMgr)
     {
         ProxyMgr.Destroy();
         ProxyMgr = null;
     }
     EventMgr.Destroy();
     SceneMgr.Destroy();
     StateMgr.Destroy();
     PlatformMgr.Destroy();
     ResMgr.Destroy();
     GameSceneMgr.Destroy();
     Instance = null;
     GameObject.Destroy(gameObject);
     SceneMgr.EnterScene("Lancher", null);
     EffectManager.Instance.ClearAllEffect();
 }
예제 #9
0
        private void CreateAndAddBot(Player plr)
        {
            if (plr.Data.BotType == BotType.NONE || !plr.IsActivePlayer())
            {
                return;
            }

            // jinak budou provadet update na vice klientech - n-nasobek akci
            if (GameType == Gametype.TOURNAMENT_GAME && !GetCurrentPlayer().Data.LobbyLeader)
            {
                return;
            }

            switch (plr.Data.BotType)
            {
            case BotType.LEVEL1:
                StateMgr.AddGameState(new SimpleBot(this, objects, plr));
                break;

            case BotType.LEVEL2:
                StateMgr.AddGameState(new HookerBot(this, objects, plr));
                break;

            case BotType.LEVEL3:
                StateMgr.AddGameState(new MedicoreBot(this, objects, plr));
                break;

            case BotType.LEVEL4:
            case BotType.LEVEL5:
            default:
                break;
            }
        }
예제 #10
0
    public void Init(int mapID)
    {
        resSvc   = ResSvc.Instance;
        audioSvc = AudioSvc.Instance;

        //初始化各个管理器
        stateMgr = gameObject.AddComponent <StateMgr>();
        stateMgr.Init();
        skillMgr = gameObject.AddComponent <SkillMgr>();
        skillMgr.Init();

        MapCfg mapData = resSvc.GetMapCfgData(mapID);

        resSvc.AsyncLoadScene(mapData.sceneName, () =>
        {
            audioSvc.PlayBGMusic(Constants.BGHuangYe);

            GameObject map = GameObject.FindGameObjectWithTag("MapRoot");
            mapMgr         = map.GetComponent <MapMgr>();
            mapMgr.Init();

            Camera.main.transform.position    = mapData.mainCamPos;
            Camera.main.transform.eulerAngles = mapData.mainCamRote;

            LoadPlayer(mapData);
        });
    }
예제 #11
0
파일: State.cs 프로젝트: robot0x/GVBASIC
    // Update is called once per frame
    void Awake()
    {
        m_stateMgr = GetComponentInParent <StateMgr>();
        m_stateMgr.AddState(this);

        onInit();
    }
예제 #12
0
    public void Init(int mapID)
    {
        resSvc   = ResSvc.Instance;
        audioSvc = AudioSvc.Instance;

        //初始化各个管理器
        stateMgr = gameObject.AddComponent <StateMgr>();
        stateMgr.Init();
        skillMgr = gameObject.AddComponent <SkillMgr>();
        skillMgr.Init();


        //加载战场地图
        MapCfgs mapData = resSvc.GetMapCfgData(mapID);

        resSvc.AsyncLoadScene(mapData.sceneName, () =>
        {
            //初始化地图数据
            GameObject map = GameObject.FindGameObjectWithTag("MapRoot");
            mapMgr         = map.GetComponent <MapMgr>();
            mapMgr.Init();

            //初始化地图位置和摄像机位置
            map.transform.localPosition            = Vector3.zero;
            map.transform.localScale               = Vector3.zero;
            Camera.main.transform.position         = mapData.mainCamPos;
            Camera.main.transform.localEulerAngles = mapData.mainCamRote;


            LoadPlayer(mapData);
            audioSvc.PlayBGMusic(Constants.BGHuangYe);
            entityPlayer.Idle();
        });
    }
예제 #13
0
    private void Awake()
    {
        actCtrl = GetComponent <Actor_Controller>();
        GameObject model  = actCtrl.model;
        GameObject sensor = null;

        try
        {
            sensor = transform.Find("sensor").gameObject;
        }
        catch (System.Exception)
        {
            //
            // if there is no sensor object
            //
        }


        btlMgr = Bind <BattleMgr>(sensor);
        wpnMrg = Bind <WeaponMgr>(model);
        staMgr = Bind <StateMgr>(gameObject);
        dirMgr = Bind <DirectorMgr>(gameObject);
        intMgr = Bind <InterationMgr>(sensor);

        actCtrl.OnAction += DoAction;
    }
예제 #14
0
    public void Init(int mapId)
    {
        resSev   = ResSev.Instance;
        audioSev = AudioSev.Instance;

        stateMgr = gameObject.AddComponent <StateMgr>();
        skillMgr = gameObject.AddComponent <SkillMgr>();

        stateMgr.Init();
        skillMgr.Init();

        mapCfg = resSev.GetMapCfgData(mapId);
        resSev.AsyncLoadScene(mapCfg.sceneName, () =>
        {
            GameObject map = GameObject.FindGameObjectWithTag("MapRoot");
            mapMgr         = map.GetComponent <MapMgr>();
            mapMgr.Init(this);

            map.transform.localPosition = Vector3.zero;
            map.transform.localScale    = Vector3.one;

            Camera.main.transform.position         = mapCfg.mainCamPos;
            Camera.main.transform.localEulerAngles = mapCfg.mainCamRote;

            LoadPlayer(mapCfg);

            audioSev.PlayBGM(Constans.HuangYeBGM);

            ActiveCurrentBatchMonsters();
        });
    }
예제 #15
0
    void Start()
    {
        //Should only ever be one player avatar and one main camera!
        healthManagingObject = GameObject.FindGameObjectsWithTag("MainCamera")[0];
        player = GameObject.FindGameObjectsWithTag("PlayerAvatar")[0];

        stateMgr       = healthManagingObject.gameObject.GetComponent(typeof(StateMgr)) as StateMgr;
        playerAnimator = player.gameObject.GetComponent(typeof(Animator)) as Animator;
    }
예제 #16
0
        /// <summary>
        /// vytvori hraci action bar, input manager a zbrane a bazi nebo mining module
        /// </summary>
        /// <param name="p">hrac kteremu se maji vytvorit objekty</param>
        private void CreateActiveObjectsOfPlayer(Player p)
        {
            if (p.IsActivePlayer())
            {
                p.CreateWeapons();

                p.Baze = SceneObjectFactory.CreateBase(this, p);

                BaseIntegrityBar ellipse = SceneObjectFactory.CreateBaseIntegrityBar(this, p);

                HpBarControl control = new HpBarControl(ellipse);
                p.Baze.AddControl(control);

                DelayedAttachToScene(ellipse);
                DelayedAttachToScene(p.Baze);
            }
            else
            {
                if (p.Device == null)
                {
                    MiningModule obj = SceneObjectFactory.CreateMiningModule(this, p.Data.MiningModuleStartPos, p);
                    DelayedAttachToScene(obj);
                    DelayedAttachToScene(SceneObjectFactory.CreateMiningModuleIntegrityBar(this, obj, p));

                    p.Device = obj;
                }
            }

            if (p.IsCurrentPlayer())
            {
                actionBarMgr = new ActionBarMgr(this);
                StateMgr.AddGameState(actionBarMgr);

                if (p.IsActivePlayer())
                {
                    inputMgr = new PlayerInputMgr(p, this, actionBarMgr);
                    actionBarMgr.CreateActionBarItems(p.GetActions <IPlayerAction>(), false);
                    InitAutomaticMineLauncher();
                }
                else
                {
                    if (p.Device.HasControlOfType <MiningModuleControl>())
                    {
                        return;
                    }

                    MiningModuleControl mc = new MiningModuleControl();
                    mc.Owner = p;
                    p.Device.AddControl(mc);

                    inputMgr = new SpectatorInputMgr(p, this, p.Device, actionBarMgr);
                    actionBarMgr.CreateActionBarItems(p.GetActions <ISpectatorAction>(), true);
                    SceneObjectFactory.CreateSpectatorActionReadinessIndicators(p);
                }
            }
        }
예제 #17
0
    public virtual void Init(BattleMgr battleMgr, StateMgr stateMgr, SkillMgr skillMgr, Controller ctrl, BattleAttribute attribute, Vector3 pos, Orient dir)
    {
        this.battleMgr       = battleMgr;
        this.stateMgr        = stateMgr;
        this.skillMgr        = skillMgr;
        this.controller      = ctrl;
        this.battleAttribute = attribute;

        ctrl.Init(pos, dir);
    }
예제 #18
0
        private void StopAndRequestScores(Action action)
        {
            playersRespondedScore = new List <int>();
            savedEndGameAction    = action;
            isInitialized         = false;
            NetOutgoingMessage msg = CreateNetMessage();

            msg.Write((int)PacketType.SCORE_QUERY);
            BroadcastMessage(msg);
            StateMgr.AddGameState(new DelayedActionInvoker(1, new Action(() => SkipWaitingForScoreQueryResponse())));
        }
예제 #19
0
    void Awake()
    {
        // (Need a modification)
        // 로딩

        objectMgr = ObjectMgr.instance;
        stateMgr  = StateMgr.instance;

        // (Tool)
        uiMgr_ToolSkill = UIMgr_Tool_Skill.instance;
    }
예제 #20
0
        public override bool Update(We7.Model.Core.PanelContext data)
        {
            string id     = GetValue <string>(data, "ID");
            Advice advice = AdviceHelper.GetAdvice(id);

            if (advice == null)
            {
                Insert(data);
            }
            else
            {
                advice.Title   = GetValue <string>(data, "Title");
                advice.UserID  = GetValue <string>(data, "UserID");
                advice.Content = GetValue <string>(data, "Content");
                advice.Updated = DateTime.Now;
                advice.Name    = GetValue <string>(data, "Name");
                advice.Email   = GetValue <string>(data, "Email");
                advice.Address = GetValue <string>(data, "Address");
                advice.Phone   = GetValue <string>(data, "Phone");
                advice.Fax     = GetValue <string>(data, "Fax");

                int isshow;
                Int32.TryParse(GetValue <string>(data, "IsShow"), out isshow);
                string stateStr = StateMgr.StateProcess(advice.EnumState, EnumLibrary.Business.AdviceDisplay, isshow);
                advice.IsShow    = isshow;
                advice.EnumState = stateStr;

                advice.Display1 = GetValue <string>(data, "Display1");
                advice.Display2 = GetValue <string>(data, "Display2");
                advice.Display3 = GetValue <string>(data, "Display3");

                //下面是添加模型信息
                string config, schema;
                advice.ModelXml    = GetModelDataXml(data, advice.ModelXml, out schema, out config);//获取模型数据
                advice.ModelConfig = config;
                advice.ModelName   = data.ModelName;
                advice.ModelSchema = schema;
                advice.TypeID      = data.Objects["AdviceTypeID"] as string;

                List <string> udpatedFields = new List <string>()
                {
                    "ModelXml", "ModelName", "ModelSchema", "TypeID", "Title", "UserID", "Content", "Updated", "Name", "Email", "Phone", "Address", "Fax", "Display1", "Display2", "Display3"
                };
                if (!String.IsNullOrEmpty(GetValue <string>(data, "IsShow")))
                {
                    udpatedFields.Add("IsShow");
                }

                AdviceHelper.UpdateAdvice(advice, udpatedFields.ToArray());
                SetValue(data, "ID", advice.ID);
            }
            return(true);
        }
예제 #21
0
    public void OnInit(StateMgr _mgr, GameObject rootSprite)
    {
        this.mgr = _mgr;
        this.uiRoot = rootSprite;

        GameObject o = uiRoot.transform.Find("Window/Button - Exit").gameObject;
        UIEventListener.Get(o).onClick = (ooo) =>
        {
            Debug.Log("onclick.");
            mgr.ChangeState("state1");
        };
    }
예제 #22
0
    public void OnInit(StateMgr mgr, GameObject ui)
    {
        List <CSLE.CLS_Content.Value> _params = new List <CSLE.CLS_Content.Value>();

        _params.Add(new CSLE.CLS_Content.Value());
        _params.Add(new CSLE.CLS_Content.Value());
        _params[0].type  = typeof(StateMgr);
        _params[0].value = mgr;
        _params[1].type  = typeof(GameObject);
        _params[1].value = ui;
        type.function.MemberCall(content, inst, "OnInit", _params);
    }
예제 #23
0
    public void OnInit(StateMgr _mgr, GameObject rootSprite)
    {
        this.mgr    = _mgr;
        this.uiRoot = rootSprite;

        GameObject o = uiRoot.transform.Find("Window/Button - Exit").gameObject;

        UIEventListener.Get(o).onClick = (ooo) =>
        {
            Debug.Log("onclick.");
            mgr.ChangeState("state1");
        };
    }
예제 #24
0
        protected void SaveSiteButton_Click(object sender, EventArgs e)
        {
            try
            {
                //获取当前站点siteID与channelID
                SiteConfigInfo si = SiteConfigs.GetConfig();

                string fromSiteID      = si.SiteID;
                string fromChannelID   = ChannelID;
                string fromChannelName = ChannelHelper.GetFullPath(fromChannelID);

                //从前台页面获取关联站点ID及栏目ID
                string[] IDs   = ListValue.Text.Split(new string[] { "||" }, StringSplitOptions.RemoveEmptyEntries);
                string[] Names = ListText.Text.Split(new string[] { "||" }, StringSplitOptions.RemoveEmptyEntries);

                //构造所需传递的状态码字串
                string strEnum = StateMgr.StateInitialize();

                if (IfAutoSharingCHK.Checked)
                {
                    strEnum = StateMgr.StateProcess(strEnum,
                                                    EnumLibrary.Business.SiteSyncType, (int)EnumLibrary.SiteSyncType.AutoSync);
                }
                else
                {
                    strEnum = StateMgr.StateProcess(strEnum,
                                                    EnumLibrary.Business.SiteSyncType, (int)EnumLibrary.SiteSyncType.ManualSync);
                }

                if (IfAutoUseringCHK.Checked)
                {
                    strEnum = StateMgr.StateProcess(strEnum,
                                                    EnumLibrary.Business.SiteAutoUsering, (int)EnumLibrary.SiteAutoUsering.MatchingUser);
                }
                else
                {
                    strEnum = StateMgr.StateProcess(strEnum,
                                                    EnumLibrary.Business.SiteAutoUsering, (int)EnumLibrary.SiteAutoUsering.UnMatchingUser);
                }

                IDHelper.UpdateChannelPartnerships(fromSiteID, fromChannelID, fromChannelName, IDs, Names, strEnum);

                Initilize();

                Messages.ShowMessage("栏目关联关系保存成功!");
            }
            catch (Exception ex)
            {
                Messages.ShowMessage("栏目关联更新失败!出错原因:" + ex.Message);
            }
        }
예제 #25
0
        /// <summary>
        /// 获取前台当前页面栏目内容类型
        /// </summary>
        /// <returns></returns>
        string GetColumnMode()
        {
            if (Request["mode"] != null)
            {
                return(Request["mode"]);
            }
            else
            {
                if (ArticleID != null && ArticleID != "")
                {
                    Article a         = ArticleHelper.GetArticle(ArticleID);
                    string  channelID = "";
                    if (a != null)
                    {
                        channelID = a.OwnerID;
                    }
                    if (channelID != "")
                    {
                        Channel ch = this.ChannelHelper.GetChannel(channelID, new string[] { "EnumState" });
                        //string type = StateManagement.GetStateName(ch.EnumState, UserEnumLibrary.Business.ArticleType).ToString();
                        EnumLibrary.ArticleType type = (EnumLibrary.ArticleType)StateMgr.GetStateValueEnum(ch.EnumState, EnumLibrary.Business.ArticleType);
                        if (type == EnumLibrary.ArticleType.Product)
                        {
                            return("productDetail");
                        }
                        else if (type == EnumLibrary.ArticleType.Article)
                        {
                            return("detail");
                        }
                        else
                        {
                            return("contentMode");
                        }
                    }
                    else if (AdviceHelper.Exist(ArticleID))
                    {
                        return("adviceMode");
                    }
                    else
                    {
                        return(string.Empty);
                    }
                }

                else
                {
                    return(string.Empty);
                }
            }
        }
예제 #26
0
 private void AttachStateManagers()
 {
     StateMgr.AddGameState(currentPlayer);
     FloatingTextMgr = new FloatingTextManager(this);
     StateMgr.AddGameState(FloatingTextMgr);
     LevelEnv = new LevelEnvironment();
     StateMgr.AddGameState(LevelEnv);
     AlertMessageMgr = new AlertMessageManager(this, 0.5f);
     StateMgr.AddGameState(AlertMessageMgr);
     SpectatorActionMgr = new SpectatorActionsManager();
     StateMgr.AddGameState(SpectatorActionMgr);
     ScreenShakingMgr = new ScreenShakingManager(this);
     StateMgr.AddGameState(ScreenShakingMgr);
 }
예제 #27
0
        /// <summary>
        /// 栏目类构造函数
        /// </summary>
        public Channel()
        {
            created       = DateTime.Now;
            updated       = DateTime.Now;
            channels      = new List <Channel>();
            securityLevel = 0;
            state         = 1;
            type          = "0";
            isComment     = 0;
            enumState     = StateMgr.StateInitialize();
            int enumValue = (int)EnumLibrary.ChannelContentType.Article;

            enumState = StateMgr.StateProcess(enumState, EnumLibrary.Business.ChannelContentType, enumValue);
        }
예제 #28
0
        /// <summary>
        /// 管理员标记为已处理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void AdminHandButton_Click(object sender, EventArgs e)
        {
            Advice advice = new Advice();

            advice.EnumState    = StateMgr.StateProcess(advice.EnumState, EnumLibrary.Business.AdviceEnum, (int)EnumLibrary.AdviceEnum.AdminHandle);
            advice.State        = (int)AdviceState.Finished;
            advice.Updated      = DateTime.Now;
            advice.ID           = AdviceID;
            advice.AdviceTag    = ddlAdviceTag.SelectedItem.Value;
            advice.ProcessState = ((int)ProcessStates.Finished).ToString();
            string[] fields = new string[] { "ID", "State", "EnumState", "Updated", "AdviceTag", "ProcessState" };
            AdviceHelper.UpdateAdvice(advice, fields);
            actionTable.Visible = false;
            Messages.ShowMessage("反馈已标记为处理。");
        }
예제 #29
0
        public string GetDisplayStyle(string enumStateString, string mustHandle)
        {
            string display = "";

            try
            {
                EnumLibrary.AdviceDisplay adDisplay = EnumLibrary.AdviceDisplay.DefaultDisplay;
                adDisplay = (EnumLibrary.AdviceDisplay)StateMgr.GetStateValueEnum(enumStateString, EnumLibrary.Business.AdviceDisplay);
                switch (adDisplay)
                {
                case EnumLibrary.AdviceDisplay.DisplayFront:
                    display = "公开";
                    break;

                case EnumLibrary.AdviceDisplay.UnDisplayFront:
                    display = "";
                    break;

                default:
                case EnumLibrary.AdviceDisplay.DefaultDisplay:
                    display = "";
                    break;
                }

                if (string.IsNullOrEmpty(mustHandle))
                {
                    mustHandle = "0";
                }
                int i = int.Parse(mustHandle);
                if (i == 1)
                {
                    display += ",必办";
                }
                else if (i == 2)
                {
                    display += ",催办";
                }

                if (display.StartsWith(","))
                {
                    display = display.Remove(0, 1);
                }
            }
            catch
            {
            }
            return(display);
        }
예제 #30
0
    private bool ContainsAnimationState(int state)
    {
        var plyCtl = this.PlyStateCtl;

        if (plyCtl == null)
        {
            return(false);
        }
        IState <PlayerState, PlayerStateMgr> st;

        if (StateMgr <PlayerState, PlayerStateMgr> .FindState((PlayerState)state, out st) && st != null)
        {
            return(true);
        }
        return(false);
    }
예제 #31
0
    void Update()
    {
        ulong dtTime = TimeMgr.SinceTimeMs(mLastUpdateTime);

        mLastUpdateTime = TimeMgr.CurTimeMs;

        SocketMgr.Update();
        StateMgr.Update();
        ResMgr.Update();
        HttpMgr.Update();
        if (null != GameSceneMgr)
        {
            GameSceneMgr.Update(dtTime);
        }
        TimerManager.Instance.Update(dtTime);
    }
예제 #32
0
        protected void UnControlDisplayButton_Click(object sender, EventArgs e)
        {
            List <string> adviceIDs = GetIDs();
            int           count     = 0;

            foreach (string adviceID in adviceIDs)
            {
                Advice advice   = AdviceHelper.GetAdvice(adviceID);
                int    state    = (int)EnumLibrary.AdviceDisplay.DefaultDisplay;
                string stateStr = StateMgr.StateProcess(advice.EnumState, EnumLibrary.Business.AdviceDisplay, state);
                advice.EnumState = stateStr;
                string[] fields = new string[] { "EnumState" };
                AdviceHelper.UpdateAdvice(advice, fields);
                count++;
            }
            CurrentQuery = CreateQuery();
            LoadAdvices();
            Messages.ShowMessage(string.Format("您已经成功将{0}条反馈信息追加为 前台显示不控制。", count.ToString()));
        }
예제 #33
0
 public void OnInit(StateMgr mgr,GameObject ui)
 {
     List<CSLE.CLS_Content.Value> _params = new List<CSLE.CLS_Content.Value>();
     _params.Add(new CSLE.CLS_Content.Value());
     _params.Add(new CSLE.CLS_Content.Value());
     _params[0].type = typeof(StateMgr);
     _params[0].value = mgr;
     _params[1].type = typeof(GameObject);
     _params[1].value = ui;
     type.function.MemberCall(content, inst, "OnInit", _params);
 }