Exemplo n.º 1
0
 public RelPanelContext(lc_Religion rel) : base(UIType.RelPanel)
 {
     name           = rel.m_name;
     rel_type       = rel.m_relType;
     this.rel_count = rel.m_count;
     attract        = rel.m_attraction;
     piety          = rel.m_piety;
     org            = rel.m_organization;
     theo           = rel.m_theorypt;
 }
Exemplo n.º 2
0
        public void OnButton01Call()
        {
            lc_ObjViewer objviewer    = MainMapScene.Instance.objviewer;
            uint         playerRel_id = objviewer.ViewPlayerRel();
            lc_Religion  rel          = objviewer.ViewObject <lc_Religion>(playerRel_id);
            int          rel_count    = objviewer.ViewRelCount(playerRel_id);

            rel.m_count = rel_count;
            if (rel != null)
            {
                Singleton <ContextManager> .Instance.Push(new RelPanelContext(rel));
            }
        }
Exemplo n.º 3
0
    private void CreateGameTest()
    {
        //创建GAME数据
        lc_Religion rel    = objmanager.AddObject <lc_Religion>("万法教");
        lc_Seer     player = objmanager.AddObject <lc_Seer>("主角1");

        lc_Building market = objmanager.AddObject <lc_Building>("market");

        market.user_id = 1;
        market.m_cost  = 0;
        lc_Building castle = objmanager.AddObject <lc_Building>("castle");

        castle.user_id = 2;
        castle.m_cost  = 0;

        lc_City city = objmanager.GetObjectByUserId <lc_City>(2);

        objmanager.CityAddBuilding(city.obj_id, 0, market.obj_id);
        objmanager.CityAddBuilding(city.obj_id, 0, castle.obj_id);



        player.m_age          = 17;
        player.m_life         = 55;
        player.m_eloquence    = 50;
        player.m_intelligence = 50;
        player.m_leadership   = 50;
        player.m_willpower    = 50;
        player.m_fame         = 10;
        player.m_wealth       = 100;



        rel.m_relType      = 1;
        rel.m_attraction   = 50;
        rel.m_piety        = 50;
        rel.m_organization = 50;
        rel.m_theorypt     = 2;
        objmanager.setPlayerRelId(rel.obj_id);
        objmanager.setPlayerId(player.obj_id);

        Debug.Log("测试");
    }