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"); }
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"); }
public bool m_UseLoad = true; //是否启用该项加载 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.GetEnum <ReloadResType>("ResType"); m_UseLoad = data.GetBool("UseLoad"); }
protected bool GetConditionToNext(SingleData data) { //对旧项目做兼容 if (!data.ContainsKey(c_ConditionToNextKey) && !data.data.m_defaultValue.ContainsKey(c_ConditionToNextKey)) { return(false); } return(data.GetBool(c_ConditionToNextKey)); }
protected bool GetGuideClosePoint(SingleData data) { //对旧项目做兼容 if (!data.ContainsKey(c_guideClosePoint) && !data.data.m_defaultValue.ContainsKey(c_guideClosePoint)) { return(false); } return(data.GetBool(c_guideClosePoint)); }
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_pic = data.GetString("pic"); 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"); }
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"); }
static int GetBool(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); SingleData obj = (SingleData)ToLua.CheckObject(L, 1, typeof(SingleData)); string arg0 = ToLua.CheckString(L, 2); bool o = obj.GetBool(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
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"); }
bool GetClickToNext(SingleData data) { return(data.GetBool(c_ClickToNextKey)); }
bool GetGuideEndPoint(SingleData data) { return(data.GetBool(c_guideEndPoint)); }
protected bool GetCallToNext(SingleData data) { return(data.GetBool(c_CallToNextKey)); }
protected bool GetGuideStartPoint(SingleData data) { return(data.GetBool(c_guideStartPoint)); }
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"); }