You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

342 lines
19 KiB

//============================================
//--4>:
// Exported by ExcelConfigExport
//
// 此代码为工具根据配置自动生成, 请不要修改
//
//============================================
using System;
using Sog;
using System.Collections.Generic;
#if UNITY_2019_1_OR_NEWER
using GameLogic;
#endif
public partial class UnionConfigDefDescMgr : IConfigManager
{
//Singleton
private static UnionConfigDefDescMgr _instance;
private static readonly object syslock = new object();
public static UnionConfigDefDescMgr Instance { get { if (_instance == null) { lock (syslock) { if (_instance == null) { _instance = new UnionConfigDefDescMgr(); }}} return _instance; }}
protected List<UnionConfigDefDesc> m_ItemTable = new List<UnionConfigDefDesc>();
public List<UnionConfigDefDesc> ItemTable { get { return m_ItemTable; } }
public override bool Init(string fileName, string fileContent)
{
m_ErrorCount = 0;
m_ItemTable.Clear();
TabTextFile tf = new TabTextFile(fileName, fileContent);
while (tf.Next())
{
var item = new UnionConfigDefDesc();
if (item.ReadItem(tf, false) == false)
{
TraceLog.Error("Failed to init TabManager:{0}, read line error, line: {1}", this.ToString(), tf.CurrentLine);
m_ErrorCount++;
continue;
}
m_ItemTable.Add(item);
}
return true;
}
public override bool InitBin(string fileName, byte[] fileContent)
{
m_ErrorCount = 0;
m_ItemTable.Clear();
TabBinFile tbf = new TabBinFile(fileName, fileContent);
while (tbf.Next())
{
var item = new UnionConfigDefDesc();
if (item.ReadItemBin(tbf, false) == false)
{
TraceLog.Error("Failed to init TabManager:{0}, read line error, line: {1}", this.ToString(), tbf.CurrentLine);
m_ErrorCount++;
continue;
}
m_ItemTable.Add(item);
}
return true;
}
#if UNITY_2019_1_OR_NEWER
public override bool InitBinByIL(string fileName, byte[] fileContent)
{
m_ErrorCount = 0;
m_ItemTable.Clear();
TabBinFile tbf = new TabBinFile(fileName, fileContent);
while (tbf.Next())
{
var item = new UnionConfigDefDesc();
item = item.ReadItemInIL(tbf);
if (item == null)
{
TraceLog.Error("Failed to init TabManager:{0}, read line error, line: {1}", this.ToString(), tbf.CurrentLine);
m_ErrorCount++;
continue;
}
m_ItemTable.Add(item);
}
return true;
}
#endif
}
public partial class UnionConfigDefDesc
{
public static readonly string _KEY_nameMinLenth = "nameMinLenth";
public static readonly string _KEY_nameMaxLenth = "nameMaxLenth";
public static readonly string _KEY_noticesMinLenth = "noticesMinLenth";
public static readonly string _KEY_noticesMaxLenth = "noticesMaxLenth";
public static readonly string _KEY_maxLevel = "maxLevel";
public static readonly string _KEY_createUnionCost = "createUnionCost";
public static readonly string _KEY_unionApplyCount = "unionApplyCount";
public static readonly string _KEY_roleApplyCount = "roleApplyCount";
public static readonly string _KEY_autoRemoveApplyDays = "autoRemoveApplyDays";
public static readonly string _KEY_joinUnionSecCd = "joinUnionSecCd";
public static readonly string _KEY_recommendCount = "recommendCount";
public static readonly string _KEY_openAdvancedShopLevel = "openAdvancedShopLevel";
public static readonly string _KEY_applyEffectiveDays = "applyEffectiveDays";
public static readonly string _KEY_autoChangeLeaderDays = "autoChangeLeaderDays";
public static readonly string _KEY_dailyActive = "dailyActive";
public static readonly string _KEY_reUnionNameCost = "reUnionNameCost";
public static readonly string _KEY_resetProfessionTreeCostItem = "resetProfessionTreeCostItem";
public static readonly string _KEY_memberMailCount = "memberMailCount";
public static readonly string _KEY_memberMailContentLenth = "memberMailContentLenth";
public static readonly string _KEY_huntFightCd = "huntFightCd";
public static readonly string _KEY_openHuntCountLimit = "openHuntCountLimit";
public static readonly string _KEY_openHuntUnionLevel = "openHuntUnionLevel";
public static readonly string _KEY_openHuntCost = "openHuntCost";
public static readonly string _KEY_twiceOpenHuntCost = "twiceOpenHuntCost";
public static readonly string _KEY_huntActivityTime = "huntActivityTime";
public static readonly string _KEY_huntContinueTime = "huntContinueTime";
public static readonly string _KEY_addHuntFightTimes = "addHuntFightTimes";
public static readonly string _KEY_addHuntFightNeedTime = "addHuntFightNeedTime";
public static readonly string _KEY_openHuntAddFightCount = "openHuntAddFightCount";
public static readonly string _KEY_huntFightTimes = "huntFightTimes";
public static readonly string _KEY_memberMailTitle = "memberMailTitle";
public static readonly string _KEY_upgradeTitle = "upgradeTitle";
public static readonly string _KEY_upgradeContent = "upgradeContent";
public static readonly string _KEY_notifyTitle = "notifyTitle";
public static readonly string _KEY_joinContent = "joinContent";
public static readonly string _KEY_exitContent = "exitContent";
public static readonly string _KEY_kickOutContent = "kickOutContent";
public static readonly string _KEY_dissolveContent = "dissolveContent";
public static readonly string _KEY_rightChangeTitle = "rightChangeTitle";
public static readonly string _KEY_activeResignLeaderContent = "activeResignLeaderContent";
public static readonly string _KEY_appointLeaderContent = "appointLeaderContent";
public static readonly string _KEY_autoResignLeaderContent = "autoResignLeaderContent";
public static readonly string _KEY_autoAppointLeaderContent = "autoAppointLeaderContent";
public static readonly string _KEY_appointElderContent = "appointElderContent";
public static readonly string _KEY_removeElderContent = "removeElderContent";
public static readonly string _KEY_versionUpgradeTitle = "versionUpgradeTitle";
public static readonly string _KEY_versionUpgradeContent = "versionUpgradeContent";
public static readonly string _KEY_openHuntChatContent = "openHuntChatContent";
public static readonly string _KEY_openHuntTitle = "openHuntTitle";
public static readonly string _KEY_openHuntContent = "openHuntContent";
public static readonly string _KEY_commonBossFinalMailTitle = "commonBossFinalMailTitle";
public static readonly string _KEY_commonBossFinalMailContent = "commonBossFinalMailContent";
public static readonly string _KEY_huntFinalAwardTitle = "huntFinalAwardTitle";
public static readonly string _KEY_huntFinalAwardContent = "huntFinalAwardContent";
public static readonly string _KEY_MaxGuildUpgradeExp = "MaxGuildUpgradeExp";
public static readonly string _KEY_openScienceUnionLevel = "openScienceUnionLevel";
public int nameMinLenth { get; set; } // //公会名最小长度
public int nameMaxLenth { get; set; } // //公会名最大长度
public int noticesMinLenth { get; set; } // //公告最小长度
public int noticesMaxLenth { get; set; } // //公告最大长度
public int maxLevel { get; set; } // //最大公会等级
public int createUnionCost { get; set; } // //创建公会钻石消耗
public int unionApplyCount { get; set; } // //公会 入会申请 人数限制
public int roleApplyCount { get; set; } // //玩家 同时申请 公会数量限制
public int autoRemoveApplyDays { get; set; } // //自动移除申请天数
public int joinUnionSecCd { get; set; } // 加入公会cd(秒)
public int recommendCount { get; set; } // //推荐公会数量
public int openAdvancedShopLevel { get; set; } // //开启高级公会商店等级
public int applyEffectiveDays { get; set; } // //入会申请有效天数
public int autoChangeLeaderDays { get; set; } // //自动转让会长天数
public int dailyActive { get; set; } // //日活跃上限
public int reUnionNameCost { get; set; } // //改公会名钻石消耗
public int resetProfessionTreeCostItem { get; set; } // //重置职业树 消耗物品id
public int memberMailCount { get; set; } // //每日全员邮件次数
public int memberMailContentLenth { get; set; } // //全员邮件长度
public int huntFightCd { get; set; } // //狩猎挑战cd(秒) 离开公会时间
public int openHuntCountLimit { get; set; } // //开启狩猎次数限制
public int openHuntUnionLevel { get; set; } // //开启狩猎公会等级
public int openHuntCost { get; set; } // //本周首次 开启狩猎消耗
public int twiceOpenHuntCost { get; set; } // //本周非首次 开启狩猎消耗
public int huntActivityTime { get; set; } // //狩猎活动时间(秒)
public int huntContinueTime { get; set; } // //狩猎持续时间(秒)
public int addHuntFightTimes { get; set; } // //每隔XX 添加狩猎次数
public int addHuntFightNeedTime { get; set; } // //添加狩猎次数 所需时间(秒)
public int openHuntAddFightCount { get; set; } // //开启狩猎时 每人添加的挑战次数 如果是公会首次开启 会把每个人的次数加到上限
public int huntFightTimes { get; set; } // //狩猎挑战 次数上限
public string memberMailTitle { get; set; } // //全员邮件 标题
public string upgradeTitle { get; set; } // //公会升级 邮件标题
public string upgradeContent { get; set; } // //公会升级 邮件内容
public string notifyTitle { get; set; } // //通用通知 邮件标题
public string joinContent { get; set; } // //加入公会 邮件内容
public string exitContent { get; set; } // //退出公会 邮件内容
public string kickOutContent { get; set; } // //被踢出公会 邮件内容
public string dissolveContent { get; set; } // //公会解散 邮件内容
public string rightChangeTitle { get; set; } // //职位变动 邮件标题
public string activeResignLeaderContent { get; set; } // //主动移交会长 邮件内容
public string appointLeaderContent { get; set; } // //被任命会长 邮件内容
public string autoResignLeaderContent { get; set; } // //自动移交出会长 邮件内容
public string autoAppointLeaderContent { get; set; } // //被自动任命会长 邮件内容
public string appointElderContent { get; set; } // //被任命官员 邮件内容
public string removeElderContent { get; set; } // //被取消官员 邮件内容
public string versionUpgradeTitle { get; set; } // //版本升级 邮件标题
public string versionUpgradeContent { get; set; } // //版本升级 邮件内容
public string openHuntChatContent { get; set; } // //开启狩猎 聊天内容
public string openHuntTitle { get; set; } // //开启狩猎 邮件标题
public string openHuntContent { get; set; } // //开启狩猎 邮件内容
public string commonBossFinalMailTitle { get; set; } // //日常boss结算 邮件标题
public string commonBossFinalMailContent { get; set; } // //日常boss结算 邮件内容
public string huntFinalAwardTitle { get; set; } // //狩猎结算奖励 邮件标题
public string huntFinalAwardContent { get; set; } // //狩猎结算奖励 邮件内容
public int MaxGuildUpgradeExp { get; set; } // //公会累积经验值上限
public int openScienceUnionLevel { get; set; } // //开启公会科技等级
public Dictionary<string, Type> listDic = new Dictionary<string, Type>();
public UnionConfigDefDesc()
{
}
public bool ReadItem(TabTextFile txf, bool readKeyOnly)
{
nameMinLenth = txf.Get<int>(_KEY_nameMinLenth);
nameMaxLenth = txf.Get<int>(_KEY_nameMaxLenth);
noticesMinLenth = txf.Get<int>(_KEY_noticesMinLenth);
noticesMaxLenth = txf.Get<int>(_KEY_noticesMaxLenth);
maxLevel = txf.Get<int>(_KEY_maxLevel);
createUnionCost = txf.Get<int>(_KEY_createUnionCost);
unionApplyCount = txf.Get<int>(_KEY_unionApplyCount);
roleApplyCount = txf.Get<int>(_KEY_roleApplyCount);
autoRemoveApplyDays = txf.Get<int>(_KEY_autoRemoveApplyDays);
joinUnionSecCd = txf.Get<int>(_KEY_joinUnionSecCd);
recommendCount = txf.Get<int>(_KEY_recommendCount);
openAdvancedShopLevel = txf.Get<int>(_KEY_openAdvancedShopLevel);
applyEffectiveDays = txf.Get<int>(_KEY_applyEffectiveDays);
autoChangeLeaderDays = txf.Get<int>(_KEY_autoChangeLeaderDays);
dailyActive = txf.Get<int>(_KEY_dailyActive);
reUnionNameCost = txf.Get<int>(_KEY_reUnionNameCost);
resetProfessionTreeCostItem = txf.Get<int>(_KEY_resetProfessionTreeCostItem);
memberMailCount = txf.Get<int>(_KEY_memberMailCount);
memberMailContentLenth = txf.Get<int>(_KEY_memberMailContentLenth);
huntFightCd = txf.Get<int>(_KEY_huntFightCd);
openHuntCountLimit = txf.Get<int>(_KEY_openHuntCountLimit);
openHuntUnionLevel = txf.Get<int>(_KEY_openHuntUnionLevel);
openHuntCost = txf.Get<int>(_KEY_openHuntCost);
twiceOpenHuntCost = txf.Get<int>(_KEY_twiceOpenHuntCost);
huntActivityTime = txf.Get<int>(_KEY_huntActivityTime);
huntContinueTime = txf.Get<int>(_KEY_huntContinueTime);
addHuntFightTimes = txf.Get<int>(_KEY_addHuntFightTimes);
addHuntFightNeedTime = txf.Get<int>(_KEY_addHuntFightNeedTime);
openHuntAddFightCount = txf.Get<int>(_KEY_openHuntAddFightCount);
huntFightTimes = txf.Get<int>(_KEY_huntFightTimes);
memberMailTitle = txf.Get<string>(_KEY_memberMailTitle);
upgradeTitle = txf.Get<string>(_KEY_upgradeTitle);
upgradeContent = txf.Get<string>(_KEY_upgradeContent);
notifyTitle = txf.Get<string>(_KEY_notifyTitle);
joinContent = txf.Get<string>(_KEY_joinContent);
exitContent = txf.Get<string>(_KEY_exitContent);
kickOutContent = txf.Get<string>(_KEY_kickOutContent);
dissolveContent = txf.Get<string>(_KEY_dissolveContent);
rightChangeTitle = txf.Get<string>(_KEY_rightChangeTitle);
activeResignLeaderContent = txf.Get<string>(_KEY_activeResignLeaderContent);
appointLeaderContent = txf.Get<string>(_KEY_appointLeaderContent);
autoResignLeaderContent = txf.Get<string>(_KEY_autoResignLeaderContent);
autoAppointLeaderContent = txf.Get<string>(_KEY_autoAppointLeaderContent);
appointElderContent = txf.Get<string>(_KEY_appointElderContent);
removeElderContent = txf.Get<string>(_KEY_removeElderContent);
versionUpgradeTitle = txf.Get<string>(_KEY_versionUpgradeTitle);
versionUpgradeContent = txf.Get<string>(_KEY_versionUpgradeContent);
openHuntChatContent = txf.Get<string>(_KEY_openHuntChatContent);
openHuntTitle = txf.Get<string>(_KEY_openHuntTitle);
openHuntContent = txf.Get<string>(_KEY_openHuntContent);
commonBossFinalMailTitle = txf.Get<string>(_KEY_commonBossFinalMailTitle);
commonBossFinalMailContent = txf.Get<string>(_KEY_commonBossFinalMailContent);
huntFinalAwardTitle = txf.Get<string>(_KEY_huntFinalAwardTitle);
huntFinalAwardContent = txf.Get<string>(_KEY_huntFinalAwardContent);
MaxGuildUpgradeExp = txf.Get<int>(_KEY_MaxGuildUpgradeExp);
openScienceUnionLevel = txf.Get<int>(_KEY_openScienceUnionLevel);
return true;
}
public bool ReadItemBin(TabBinFile txf, bool readKeyOnly)
{
nameMinLenth = txf.GetintByIndex(_KEY_nameMinLenth);
nameMaxLenth = txf.GetintByIndex(_KEY_nameMaxLenth);
noticesMinLenth = txf.GetintByIndex(_KEY_noticesMinLenth);
noticesMaxLenth = txf.GetintByIndex(_KEY_noticesMaxLenth);
maxLevel = txf.GetintByIndex(_KEY_maxLevel);
createUnionCost = txf.GetintByIndex(_KEY_createUnionCost);
unionApplyCount = txf.GetintByIndex(_KEY_unionApplyCount);
roleApplyCount = txf.GetintByIndex(_KEY_roleApplyCount);
autoRemoveApplyDays = txf.GetintByIndex(_KEY_autoRemoveApplyDays);
joinUnionSecCd = txf.GetintByIndex(_KEY_joinUnionSecCd);
recommendCount = txf.GetintByIndex(_KEY_recommendCount);
openAdvancedShopLevel = txf.GetintByIndex(_KEY_openAdvancedShopLevel);
applyEffectiveDays = txf.GetintByIndex(_KEY_applyEffectiveDays);
autoChangeLeaderDays = txf.GetintByIndex(_KEY_autoChangeLeaderDays);
dailyActive = txf.GetintByIndex(_KEY_dailyActive);
reUnionNameCost = txf.GetintByIndex(_KEY_reUnionNameCost);
resetProfessionTreeCostItem = txf.GetintByIndex(_KEY_resetProfessionTreeCostItem);
memberMailCount = txf.GetintByIndex(_KEY_memberMailCount);
memberMailContentLenth = txf.GetintByIndex(_KEY_memberMailContentLenth);
huntFightCd = txf.GetintByIndex(_KEY_huntFightCd);
openHuntCountLimit = txf.GetintByIndex(_KEY_openHuntCountLimit);
openHuntUnionLevel = txf.GetintByIndex(_KEY_openHuntUnionLevel);
openHuntCost = txf.GetintByIndex(_KEY_openHuntCost);
twiceOpenHuntCost = txf.GetintByIndex(_KEY_twiceOpenHuntCost);
huntActivityTime = txf.GetintByIndex(_KEY_huntActivityTime);
huntContinueTime = txf.GetintByIndex(_KEY_huntContinueTime);
addHuntFightTimes = txf.GetintByIndex(_KEY_addHuntFightTimes);
addHuntFightNeedTime = txf.GetintByIndex(_KEY_addHuntFightNeedTime);
openHuntAddFightCount = txf.GetintByIndex(_KEY_openHuntAddFightCount);
huntFightTimes = txf.GetintByIndex(_KEY_huntFightTimes);
memberMailTitle = txf.GetstringByIndex(_KEY_memberMailTitle);
upgradeTitle = txf.GetstringByIndex(_KEY_upgradeTitle);
upgradeContent = txf.GetstringByIndex(_KEY_upgradeContent);
notifyTitle = txf.GetstringByIndex(_KEY_notifyTitle);
joinContent = txf.GetstringByIndex(_KEY_joinContent);
exitContent = txf.GetstringByIndex(_KEY_exitContent);
kickOutContent = txf.GetstringByIndex(_KEY_kickOutContent);
dissolveContent = txf.GetstringByIndex(_KEY_dissolveContent);
rightChangeTitle = txf.GetstringByIndex(_KEY_rightChangeTitle);
activeResignLeaderContent = txf.GetstringByIndex(_KEY_activeResignLeaderContent);
appointLeaderContent = txf.GetstringByIndex(_KEY_appointLeaderContent);
autoResignLeaderContent = txf.GetstringByIndex(_KEY_autoResignLeaderContent);
autoAppointLeaderContent = txf.GetstringByIndex(_KEY_autoAppointLeaderContent);
appointElderContent = txf.GetstringByIndex(_KEY_appointElderContent);
removeElderContent = txf.GetstringByIndex(_KEY_removeElderContent);
versionUpgradeTitle = txf.GetstringByIndex(_KEY_versionUpgradeTitle);
versionUpgradeContent = txf.GetstringByIndex(_KEY_versionUpgradeContent);
openHuntChatContent = txf.GetstringByIndex(_KEY_openHuntChatContent);
openHuntTitle = txf.GetstringByIndex(_KEY_openHuntTitle);
openHuntContent = txf.GetstringByIndex(_KEY_openHuntContent);
commonBossFinalMailTitle = txf.GetstringByIndex(_KEY_commonBossFinalMailTitle);
commonBossFinalMailContent = txf.GetstringByIndex(_KEY_commonBossFinalMailContent);
huntFinalAwardTitle = txf.GetstringByIndex(_KEY_huntFinalAwardTitle);
huntFinalAwardContent = txf.GetstringByIndex(_KEY_huntFinalAwardContent);
MaxGuildUpgradeExp = txf.GetintByIndex(_KEY_MaxGuildUpgradeExp);
openScienceUnionLevel = txf.GetintByIndex(_KEY_openScienceUnionLevel);
return true;
}
#if UNITY_2019_1_OR_NEWER
public UnionConfigDefDesc ReadItemInIL(TabBinFile txf ,int keyCount = 0)
{
byte[] ret = txf.GetLength();
if (ret.Length == 0)
{
return null;
}
return SerializeObj.ConfigDeSerialize<UnionConfigDefDesc>(this, ret, txf.ColPosList, txf.listPosList, this.listDic, txf.m_stringBlock, keyCount);
}
#endif
}