Beispiel #1
0
    //返回公会建筑信息
    public void onClientGuildBuildInfo(Dictionary <string, object> data)
    {
        int            id   = GameConvert.IntConvert(data["id"]);
        GuildBuildInfo info = GuildBuildConfig.GetGuildBuildInfo(id);

        info.id       = id;
        info.level    = GameConvert.IntConvert(data["level"]);
        info.state    = GameConvert.IntConvert(data["state"]);
        info.endTimes = GameConvert.LongConvert(data["endTime"]);

        if (GUIManager.HasView("guildmainpanel"))
        {
            GuildMainMediator.guildmainMediator.SetBuildInfo(info);
        }
    }
Beispiel #2
0
    //公会信息
    public void onGetGuildInfo(object val, object val1, object val2, object val3, object val4, object val5, object val6, object val7, object val8, object val9, object val10, List <object> list)
    {
        Facade.SendNotification(NotificationID.GuildList_Hide);

        MyGuildInfo info = GuildMainMediator.mMyGuild;

        info.level        = GameConvert.IntConvert(val);
        info.name         = GameConvert.StringConvert(val1);
        info.memberNum    = GameConvert.IntConvert(val2);
        info.guildFunds   = GameConvert.IntConvert(val3);
        info.reputation   = GameConvert.IntConvert(val4);
        info.notice       = GameConvert.StringConvert(val5);
        info.dismissTime  = GameConvert.LongConvert(val6);
        info.id           = GameConvert.IntConvert(val7);
        info.introduction = GameConvert.StringConvert(val8);
        info.protectTime  = GameConvert.IntConvert(val9);
        info.ropleTime    = GameConvert.IntConvert(val10);


        for (int i = 0; i < list.Count; i++)
        {
            Dictionary <string, object> data = list[i] as Dictionary <string, object>;
            int            id    = GameConvert.IntConvert(data["id"]);
            GuildBuildInfo build = GuildBuildConfig.GetGuildBuildInfo(id);
            build.id       = id;
            build.level    = GameConvert.IntConvert(data["level"]);
            build.state    = GameConvert.IntConvert(data["state"]);
            build.endTimes = GameConvert.LongConvert(data["endTime"]);
        }
        Facade.SendNotification(NotificationID.GuildMain_Show);

        //if (GUIManager.HasView("guildmainpanel"))
        //{
        //    GuildMainMediator.guildmainMediator.SetBuild();
        //}
    }