Exemple #1
0
    public string[] m_ContinentName;    //大洲英文缩写,用于直接使用大洲来划分大区,当此选项为空,则使用Countrycode来选择大区([AF]非洲, [EU]欧洲, [AS]亚洲, [OA]大洋洲, [NA]北美洲, [SA]南美洲, [AN]南极洲)

    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("GameServerAreaData");

        if (!table.ContainsKey(key))
        {
            throw new Exception("GameServerAreaDataGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key                = key;
        m_Description        = data.GetString("Description");
        m_ClientHotUpdateURL = data.GetString("ClientHotUpdateURL");
        m_SelectServerURL    = data.GetString("SelectServerURL");
        m_CountryCode        = data.GetStringArray("CountryCode");
        m_SpecialServerHost  = data.GetString("SpecialServerHost");


        try
        {
            m_ContinentName = data.GetStringArray("ContinentName");
        }
        catch (Exception e)
        {
            Debug.LogError(e);
        }
    }
Exemple #2
0
    public string[] m_standaloneVersion; //包含Windows,mac,Linux

    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("SelectNetworkData");

        if (!table.ContainsKey(key))
        {
            throw new Exception("SelectNetworkDataGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key            = key;
        m_serverIP       = data.GetString("serverIP");
        m_description    = data.GetString("description");
        m_port           = data.GetInt("port");
        m_androidVersion = data.GetStringArray("androidVersion");
        m_iosVersion     = data.GetStringArray("iosVersion");
        m_channel        = data.GetStringArray("channel");
        try
        {
            m_standaloneVersion = data.GetStringArray("standaloneVersion");
        }
        catch (Exception e)
        {
            Debug.LogError(e);
        }
    }
Exemple #3
0
    public string m_BlowFlyID;      //造成目标击飞ID

    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("FlyData");

        if (!table.ContainsKey(key))
        {
            throw new Exception("FlyDataGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key              = key;
        m_ModelName        = data.GetString("ModelName");
        m_HitFXCreatPoint  = data.GetEnum <HardPointEnum>("HitFXCreatPoint");
        m_HitEffect        = data.GetString("HitEffect");
        m_Speed            = data.GetInt("Speed");
        m_Radius           = data.GetInt("Radius");
        m_LiveTime         = data.GetInt("LiveTime");
        m_CollisionTrigger = data.GetBool("CollisionTrigger");
        m_TriggerSkill     = data.GetString("TriggerSkill");
        m_AcrossEnemy      = data.GetBool("AcrossEnemy");
        m_HitSFX           = data.GetString("HitSFX");
        m_HurtBuff         = data.GetStringArray("HurtBuff");
        m_BlowFlyID        = data.GetString("BlowFlyID");
    }
Exemple #4
0
    public float m_FXOffSet;                   //特效偏移

    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("SkillStatusData");

        if (!table.ContainsKey(key))
        {
            throw new Exception("SkillStatusDataGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key                = key;
        m_AnimName           = data.GetString("AnimName");
        m_Time               = data.GetFloat("Time");
        m_SFXDelay           = data.GetFloat("SFXDelay");
        m_SFXName            = data.GetString("SFXName");
        m_FXCreatPoint       = data.GetEnum <HardPointEnum>("FXCreatPoint");
        m_FXLifeTime         = data.GetFloat("FXLifeTime");
        m_FXDelay            = data.GetFloat("FXDelay");
        m_FXName             = data.GetString("FXName");
        m_FollowFXCreatPoint = data.GetEnum <HardPointEnum>("FollowFXCreatPoint");
        m_FollowFXLifeTime   = data.GetFloat("FollowFXLifeTime");
        m_FollowFXName       = data.GetString("FollowFXName");
        m_CameraMove         = data.GetString("CameraMove");
        m_FollowFXOffSet     = data.GetFloat("FollowFXOffSet");
        m_FXOffSet           = data.GetFloat("FXOffSet");
    }
Exemple #5
0
    public override void LoadData(DataTable table, string key)
    {
        SingleData data = table[key];

        m_key           = key;
        m_HotupdatePath = data.GetString("HotupdatePath");
        m_Description   = data.GetString("Description");
    }
    public override void LoadData(DataTable table, string key)
    {
        SingleData data = table[key];

        m_key                = key;
        m_Description        = data.GetString("Description");
        m_ClientHotUpdateURL = data.GetString("ClientHotUpdateURL");
        m_SelectServerURL    = data.GetString("SelectServerURL");
        m_CountryCode        = data.GetStringArray("CountryCode");
        m_SpecialServerHost  = data.GetString("SpecialServerHost");
    }
    public override void LoadData(DataTable table, string key)
    {
        SingleData data = table[key];

        m_key            = key;
        m_serverIP       = data.GetString("serverIP");
        m_description    = data.GetString("description");
        m_port           = data.GetInt("port");
        m_androidVersion = data.GetStringArray("androidVersion");
        m_iosVersion     = data.GetStringArray("iosVersion");
        m_channel        = data.GetStringArray("channel");
    }
Exemple #8
0
    public string m_Description;     //描述

    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("HotUpdatePathData");

        if (!table.ContainsKey(key))
        {
            throw new Exception("HotUpdatePathDataGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key           = key;
        m_HotupdatePath = data.GetString("HotupdatePath");
        m_Description   = data.GetString("Description");
    }
Exemple #9
0
    public int m_limit;                    //叠加上限

    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("BuffData");

        if (!table.ContainsKey(key))
        {
            throw new Exception("BuffDataGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key                    = key;
        m_BuffCreateFX           = data.GetString("BuffCreateFX");
        m_BuffExitFX             = data.GetString("BuffExitFX");
        m_BuffFX                 = data.GetString("BuffFX");
        m_BuffFollowPos          = data.GetEnum <HardPointEnum>("BuffFollowPos");
        m_BuffTime               = data.GetInt("BuffTime");
        m_AttackChange           = data.GetInt("AttackChange");
        m_AttackChangePercantage = data.GetFloat("AttackChangePercantage");
        m_SpeedChange            = data.GetInt("SpeedChange");
        m_SpeedChangePercentage  = data.GetFloat("SpeedChangePercentage");
        m_BuffEffectSpace        = data.GetInt("BuffEffectSpace");
        m_Invincible             = data.GetBool("Invincible");
        m_BuffCreateSFX          = data.GetString("BuffCreateSFX");
        m_BuffExitSFX            = data.GetString("BuffExitSFX");
        m_BuffSFX                = data.GetString("BuffSFX");
        m_Dizziness              = data.GetBool("Dizziness");
        m_Cloaking               = data.GetBool("Cloaking");
        m_BeDamageInterrupt      = data.GetBool("BeDamageInterrupt");
        m_UseSkilIinterrupt      = data.GetBool("UseSkilIinterrupt");
        m_RecoverNumber          = data.GetInt("RecoverNumber");
        m_DamageNumber           = data.GetInt("DamageNumber");
        m_IsTakeOver             = data.GetBool("IsTakeOver");
        m_AnimName               = data.GetString("AnimName");
        m_TrueSight              = data.GetBool("TrueSight");
        m_BuffhitSFX             = data.GetString("BuffhitSFX");
        m_defChange              = data.GetInt("defChange");
        m_hprecoverChange        = data.GetInt("hprecoverChange");
        m_critChange             = data.GetInt("critChange");
        m_critdamageChange       = data.GetInt("critdamageChange");
        m_ignoredefChange        = data.GetInt("ignoredefChange");
        m_hpabsorbChange         = data.GetInt("hpabsorbChange");
        m_toughChange            = data.GetInt("toughChange");
        m_defPercantage          = data.GetFloat("defPercantage");
        m_hprecoverPercantage    = data.GetFloat("hprecoverPercantage");
        m_critPercantage         = data.GetFloat("critPercantage");
        m_critdamagePercantage   = data.GetFloat("critdamagePercantage");
        m_ignoredefPercantage    = data.GetFloat("ignoredefPercantage");
        m_hpabsorbPercantage     = data.GetFloat("hpabsorbPercantage");
        m_toughPercantage        = data.GetFloat("toughPercantage");
        m_EffectArea             = data.GetString("EffectArea");
        m_limit                  = data.GetInt("limit");
    }
Exemple #10
0
    List <Dictionary <string, object> > GetShopData()
    {
        List <Dictionary <string, object> > data = new List <Dictionary <string, object> >();

        DataTable itemData = DataManager.GetData("item");

        for (int i = 0; i < itemData.TableIDs.Count; i++)
        {
            SingleData singleData = itemData.GetLineFromKey(itemData.TableIDs[i]);

            string itemName = singleData.GetString("ItemName");
            int    cost     = singleData.GetInt("Cost");

            Dictionary <string, object> tmp = new Dictionary <string, object>();

            tmp.Add("Name", DataGenerateManager <itemGenerate> .GetData(itemData.TableIDs[i]).m_ItemName);
            tmp.Add("Cost", DataGenerateManager <itemGenerate> .GetData(itemData.TableIDs[i]).m_key);

            data.Add(tmp);
        }


        //itemGenerate data = DataGenerateManager<itemGenerate>.GetData("1");
        //string itemName = data.m_ItemName;
        //int cost = data.m_Cost;


        return(data);
    }
Exemple #11
0
    public string m_ResType;            //资源类型

    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("PreloadResourcesData");

        if (!table.ContainsKey(key))
        {
            throw new Exception("PreloadResourcesDataGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key                  = key;
        m_instantiateNum       = data.GetInt("instantiateNum");
        m_description          = data.GetString("description");
        m_createInstanceActive = data.GetBool("createInstanceActive");
        m_ResType              = data.GetString("ResType");
    }
    public string[] m_content;   //内容

    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("poemData");

        if (!table.ContainsKey(key))
        {
            throw new Exception("poemDataGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key         = key;
        m_poemName    = data.GetString("poemName");
        m_author      = data.GetString("author");
        m_description = data.GetString("description");
        m_content     = data.GetStringArray("content");
    }
Exemple #13
0
    public int m_quality;         //1白,2蓝,3紫,4金,5橙

    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("ItemsData");

        if (!table.ContainsKey(key))
        {
            throw new Exception("ItemsDataGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key          = key;
        m_name         = data.GetString("name");
        m_info         = data.GetString("info");
        m_item_type    = data.GetString("item_type");
        m_icon         = data.GetString("icon");
        m_att          = data.GetInt("att");
        m_hp           = data.GetInt("hp");
        m_movespeed    = data.GetFloat("movespeed");
        m_resistdamage = data.GetInt("resistdamage");
        m_invincible   = data.GetInt("invincible");
        m_noclip       = data.GetBool("noclip");
        m_time         = data.GetFloat("time");
        m_chipid       = data.GetInt("chipid");
        m_chipnum      = data.GetInt("chipnum");
        m_addatt       = data.GetInt("addatt");
        m_addhp        = data.GetInt("addhp");
        m_addmovespeed = data.GetInt("addmovespeed");
        m_adddef       = data.GetInt("adddef");
        m_modelid      = data.GetString("modelid");
        m_pickupEffect = data.GetString("pickupEffect");
        m_Qualityframe = data.GetString("Qualityframe");
        m_quality      = data.GetInt("quality");
    }
Exemple #14
0
    public override void LoadData(DataTable table, string key)
    {
        SingleData data = table[key];

        m_key                = key;
        m_Description        = data.GetString("Description");
        m_ClientHotUpdateURL = data.GetString("ClientHotUpdateURL");
        m_SelectServerURL    = data.GetString("SelectServerURL");
        m_CountryCode        = data.GetStringArray("CountryCode");
        m_SpecialServerHost  = data.GetString("SpecialServerHost");
        try
        {
            m_ContinentName = data.GetStringArray("ContinentName");
        }
        catch (Exception e)
        {
            Debug.LogError(e);
        }
    }
Exemple #15
0
    public void LoadData(string key, string fileName)
    {
        var table = DataManager.GetData(fileName);

        if (!table.ContainsKey(key))
        {
            throw new Exception(fileName + "LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key = key;

        for (var i = 0; i < 4; ++i)
        {
            m_p_talk_text[i]  = data.GetString(string.Format("p_talk_text_{0}", i + 1));
            m_n_talk_text[i]  = data.GetString(string.Format("n_talk_text_{0}", i + 1));
            m_next_talk_id[i] = data.GetString(string.Format("next_talk_id_{0}", i + 1));
        }
    }
Exemple #16
0
    public string m_CustomInfo;        //传入的自定义文本

    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("LoginConfigData");

        if (!table.ContainsKey(key))
        {
            throw new Exception("LoginConfigDataGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key             = key;
        m_loginName       = data.GetEnum <LoginPlatform>("loginName");
        m_UIIcon          = data.GetString("UIIcon");
        m_UseItem         = data.GetBool("UseItem");
        m_Description     = data.GetString("Description");
        m_LoginClassName  = data.GetString("LoginClassName");
        m_SupportPlatform = data.GetStringArray("SupportPlatform");
        m_CustomInfo      = data.GetString("CustomInfo");
    }
Exemple #17
0
    public override void LoadData(DataTable table, string key)
    {
        SingleData data = table[key];

        m_key            = key;
        m_serverIP       = data.GetString("serverIP");
        m_description    = data.GetString("description");
        m_port           = data.GetInt("port");
        m_androidVersion = data.GetStringArray("androidVersion");
        m_iosVersion     = data.GetStringArray("iosVersion");
        m_channel        = data.GetStringArray("channel");

        try
        {
            m_standaloneVersion = data.GetStringArray("standaloneVersion");
        }
        catch (Exception e)
        {
            Debug.LogError(e);
        }
    }
    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("ShopData");

        if (!table.ContainsKey(key))
        {
            throw new Exception("ShopDataGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key      = key;
        m_page     = data.GetInt("page");
        m_item_id  = data.GetInt("item_id");
        m_item_num = data.GetInt("item_num");
        m_name     = data.GetString("name");
        m_info     = data.GetString("info");
        m_ItemType = data.GetInt("ItemType");
        m_headIcon = data.GetString("headIcon");
        m_IconName = data.GetString("IconName");
        m_pay      = data.GetString("pay");
        m_cost     = data.GetInt("cost");
        m_hot      = data.GetInt("hot");
        m_hot_type = data.GetString("hot_type");
    }
Exemple #19
0
    public string m_Content;     //韵律内容

    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("RhythmData");

        if (!table.ContainsKey(key))
        {
            throw new Exception("RhythmDataGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key     = key;
        m_Content = data.GetString("Content");
    }
Exemple #20
0
    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("item");

        if (!table.ContainsKey(key))
        {
            throw new Exception("itemGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key      = key;
        m_ItemName = data.GetString("ItemName");
        m_Cost     = data.GetInt("Cost");
    }
Exemple #21
0
 static int GetString(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         SingleData obj  = (SingleData)ToLua.CheckObject(L, 1, typeof(SingleData));
         string     arg0 = ToLua.CheckString(L, 2);
         string     o    = obj.GetString(arg0);
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 string GetTipContent(SingleData data)
 {
     return(data.GetString(c_TipContentKey));
 }
 string GetGuideWindowName(SingleData data)
 {
     return(data.GetString(c_GuideWindowNameKey));
 }
 string GetNextGuideNeme(SingleData data)
 {
     return(data.GetString(c_NextGuideNameKey));
 }
 string GetPremise(SingleData data)
 {
     return(data.GetString(c_PremiseKey));
 }
 protected virtual string GetTipContent(SingleData data)
 {
     return(data.GetString(c_TipContentKey));
 }
Exemple #27
0
    public int m_tough;          //韧性

    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("PlayerData");

        if (!table.ContainsKey(key))
        {
            throw new Exception("PlayerDataGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key               = key;
        m_type              = data.GetInt("type");
        m_playername        = data.GetString("playername");
        m_playerint         = data.GetString("playerint");
        m_att               = data.GetInt("att");
        m_def               = data.GetInt("def");
        m_hp                = data.GetInt("hp");
        m_critdamage        = data.GetInt("critdamage");
        m_crit              = data.GetInt("crit");
        m_movespeed         = data.GetFloat("movespeed");
        m_specialid         = data.GetInt("specialid");
        m_ModelID           = data.GetString("ModelID");
        m_walkAnimName      = data.GetString("walkAnimName");
        m_BackWalkAnim      = data.GetString("BackWalkAnim");
        m_LeftWalkAnim      = data.GetString("LeftWalkAnim");
        m_RightWalkAnim     = data.GetString("RightWalkAnim");
        m_cloakAnimName     = data.GetString("cloakAnimName");
        m_IdleAnimName      = data.GetString("IdleAnimName");
        m_HurtAnimName      = data.GetString("HurtAnimName");
        m_HurtAnimTime      = data.GetFloat("HurtAnimTime");
        m_DieAnimName       = data.GetString("DieAnimName");
        m_ShowAniName       = data.GetString("ShowAniName");
        m_Radius            = data.GetFloat("Radius");
        m_IsOnlyDamageValue = data.GetBool("IsOnlyDamageValue");
        m_BloodHight        = data.GetFloat("BloodHight");
        m_FootstepSFX       = data.GetString("FootstepSFX");
        m_gold              = data.GetInt("gold");
        m_diamond           = data.GetFloat("diamond");
        m_lv                = data.GetInt("lv");
        m_exp               = data.GetInt("exp");
        m_expneed           = data.GetInt("expneed");
        m_phy               = data.GetInt("phy");
        m_renown            = data.GetInt("renown");
        m_power             = data.GetInt("power");
        m_hprecover         = data.GetInt("hprecover");
        m_ignoredef         = data.GetInt("ignoredef");
        m_hpabsorb          = data.GetInt("hpabsorb");
        m_tough             = data.GetInt("tough");
    }
Exemple #28
0
    public string m_SkillAgency;            //代放技能

    public override void LoadData(string key)
    {
        DataTable table = DataManager.GetData("SkillData");

        if (!table.ContainsKey(key))
        {
            throw new Exception("SkillDataGenerate LoadData Exception Not Fond key ->" + key + "<-");
        }

        SingleData data = table[key];

        m_key              = key;
        m_name             = data.GetString("name");
        m_info             = data.GetString("info");
        m_icon             = data.GetString("icon");
        m_HitFXName        = data.GetString("HitFXName");
        m_EffectArea       = data.GetString("EffectArea");
        m_DamageValue      = data.GetInt("DamageValue");
        m_HurtSFXDelay     = data.GetFloat("HurtSFXDelay");
        m_HurtSFX          = data.GetString("HurtSFX");
        m_CanBreak         = data.GetBool("CanBreak");
        m_BlowFlyID        = data.GetString("BlowFlyID");
        m_HurtBuff         = data.GetStringArray("HurtBuff");
        m_CD               = data.GetInt("CD");
        m_Moment           = data.GetBool("Moment");
        m_TriggerSpaceTime = data.GetInt("TriggerSpaceTime");
        m_allowMove        = data.GetBool("allowMove");
        m_noclip           = data.GetBool("noclip");
        m_FlyObjectArea    = data.GetString("FlyObjectArea");
        m_FlyDamageValue   = data.GetInt("FlyDamageValue");
        m_FlyObjectName    = data.GetStringArray("FlyObjectName");
        m_flydistance      = data.GetInt("flydistance");
        m_uplv             = data.GetInt("uplv");
        m_nextskill        = data.GetString("nextskill");
        m_moneytype        = data.GetInt("moneytype");
        m_moneynum         = data.GetInt("moneynum");
        m_material         = data.GetInt("material");
        m_materialnum      = data.GetInt("materialnum");
        m_BeforeStatus     = data.GetString("BeforeStatus");
        m_CurrentStatus    = data.GetString("CurrentStatus");
        m_LaterStatus      = data.GetString("LaterStatus");
        m_RaiseTime        = data.GetFloat("RaiseTime");
        m_HitTime          = data.GetInt("HitTime");
        m_HitFXCreatPoint  = data.GetEnum <HardPointEnum>("HitFXCreatPoint");
        m_AreaTexture      = data.GetString("AreaTexture");
        m_DamagePer        = data.GetInt("DamagePer");
        m_RecoverValue     = data.GetInt("RecoverValue");
        m_ReValuep         = data.GetInt("ReValuep");
        m_HurtCameraShoke  = data.GetString("HurtCameraShoke");
        m_flydamageper     = data.GetInt("flydamageper");
        m_FlyCreatPoint    = data.GetEnum <HardPointEnum>("FlyCreatPoint");
        m_CanBeBreakInC    = data.GetBool("CanBeBreakInC");
        m_CanBeBreak       = data.GetBool("CanBeBreak");
        m_MoveID           = data.GetString("MoveID");
        m_SelfBuff         = data.GetStringArray("SelfBuff");
        m_RecoverBuff      = data.GetStringArray("RecoverBuff");
        m_SummonMonster    = data.GetStringArray("SummonMonster");
        m_AffectTrap       = data.GetBool("AffectTrap");
        m_IsAreaTip        = data.GetBool("IsAreaTip");
        m_SkillAgency      = data.GetString("SkillAgency");
    }