691 lines
47 KiB
C#
691 lines
47 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.Intrinsics.X86;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Google.Protobuf.WellKnownTypes;
|
|
using Microsoft.IdentityModel.Tokens;
|
|
|
|
|
|
|
|
using ServerCore;
|
|
|
|
|
|
|
|
using SESSION_ID = System.Int32;
|
|
using META_ID = System.UInt32;
|
|
using ENTITY_GUID = System.String;
|
|
using ACCOUNT_ID = System.String;
|
|
using OWNER_GUID = System.String;
|
|
using USER_GUID = System.String;
|
|
using CHARACTER_GUID = System.String;
|
|
using ITEM_GUID = System.String;
|
|
|
|
|
|
namespace ServerCommon
|
|
{
|
|
public static partial class MetaHelper
|
|
{
|
|
//=============================================================================================
|
|
// GameConfigMeta 데이터 정보를 지원 한다.
|
|
//
|
|
// author : kangms
|
|
//
|
|
//=============================================================================================
|
|
|
|
public static class GameConfigMeta
|
|
{
|
|
public static string MetaverseOwnerName => m_metaverse_owner_name.Value;
|
|
private static Lazy<string> m_metaverse_owner_name = new Lazy<string>(() => getValueToString("MetaverseOwnerName", "Caliverse"));
|
|
public static string DefaultTestAccountId => m_default_test_account_id.Value;
|
|
private static Lazy<string> m_default_test_account_id = new Lazy<string>(() => getValueToString("DefaultTestAccountId", "DefaultTestId"));
|
|
|
|
public static Int16 UserNicknameMinLength => m_user_nickname_min_length.Value;
|
|
private static Lazy<Int16> m_user_nickname_min_length = new Lazy<Int16>(() => getValueToInt16("UserNicknameMinLength", 2));
|
|
|
|
public static Int16 UserNicknameMaxLength => m_user_nickname_max_length.Value;
|
|
private static Lazy<Int16> m_user_nickname_max_length = new Lazy<Int16>(() => getValueToInt16("UserNicknameMaxLength", 12));
|
|
|
|
public static Int16 MaxItemCategorySlotNum => m_max_item_category_slot_num.Value;
|
|
private static Lazy<Int16> m_max_item_category_slot_num = new Lazy<Int16>(() => getValueToInt16("MaxItemCategorySlotNum", 80));
|
|
|
|
public static Int16 CharacterCreateMaxCount => m_character_create_max_count.Value;
|
|
private static Lazy<Int16> m_character_create_max_count = new Lazy<Int16>(() => getValueToInt16("CharacterCreateMaxCount", 1));
|
|
|
|
public static Int16 MaxFriendsNum => m_max_friends_num.Value;
|
|
private static Lazy<Int16> m_max_friends_num = new Lazy<Int16>(() => getValueToInt16("MaxFriendsNum", 50));
|
|
|
|
public static Int16 MaxBlockUserNum => m_max_block_user_num.Value;
|
|
private static Lazy<Int16> m_max_block_user_num = new Lazy<Int16>(() => getValueToInt16("MaxBlockUserNum", 50));
|
|
|
|
public static Int32 SentFriendRequestValidTime => m_sent_friend_request_valid_time.Value;
|
|
private static Lazy<Int32> m_sent_friend_request_valid_time = new Lazy<Int32>(() => getValueToInt32("SentFriendRequestValidTime", 2592000)); //초
|
|
|
|
public static Int16 EscapeCoolTime => m_eacape_cool_time.Value;
|
|
private static Lazy<Int16> m_eacape_cool_time = new Lazy<Int16>(() => getValueToInt16("EscapeCoolTime", 60)); //분
|
|
|
|
public static Int16 MaxTutorialQuest => m_max_tutorial_quest.Value;
|
|
private static Lazy<Int16> m_max_tutorial_quest = new Lazy<Int16>(() => getValueToInt16("MaxTutorialQuest", 1));
|
|
|
|
public static Int16 MaxUGQuest => m_max_ugq_quest.Value;
|
|
private static Lazy<Int16> m_max_ugq_quest = new Lazy<Int16>(() => getValueToInt16("MaxUGQuest ", 2));
|
|
|
|
public static Int16 MaxEpicQuest => m_max_epic_quest.Value;
|
|
private static Lazy<Int16> m_max_epic_quest = new Lazy<Int16>(() => getValueToInt16("MaxEpicQuest", 3));
|
|
|
|
public static Int16 MaxNormalQuest => m_max_normal_quest.Value;
|
|
private static Lazy<Int16> m_max_normal_quest = new Lazy<Int16>(() => getValueToInt16("MaxNormalQuest", 5));
|
|
|
|
public static Int16 CooltimeNormalQuestSendMail => m_cooltime_normal_quest_send_mail.Value;
|
|
private static Lazy<Int16> m_cooltime_normal_quest_send_mail = new Lazy<Int16>(() => getValueToInt16("CooltimeNormalQuestSendMail", 180)); //분
|
|
|
|
public static Int16 MaxQuestSendMail => m_max_quest_send_mail.Value;
|
|
private static Lazy<Int16> m_max_quest_send_mail = new Lazy<Int16>(() => getValueToInt16("MaxQuestSendMail", 20));
|
|
|
|
public static Int16 FriendFolderNameMaxLength => m_friend_folder_name_max_length.Value;
|
|
private static Lazy<Int16> m_friend_folder_name_max_length = new Lazy<Int16>(() => getValueToInt16("FriendFolderNameMaxLength", 8));
|
|
|
|
public static Int16 FriendFolderMaxCount => m_friend_folder_max_count.Value;
|
|
private static Lazy<Int16> m_friend_folder_max_count = new Lazy<Int16>(() => getValueToInt16("FriendFolderMaxCount", 10));
|
|
|
|
public static Int16 FriendFolderMaxHoldCount => m_friend_folder_max_hold_count.Value;
|
|
private static Lazy<Int16> m_friend_folder_max_hold_count = new Lazy<Int16>(() => getValueToInt16("FriendFolderMaxHoldCount", 3));
|
|
|
|
public static Int32 FriendIntiveCoolTime => m_friend_intive_cool_time.Value;
|
|
private static Lazy<Int32> m_friend_intive_cool_time = new Lazy<Int32>(() => getValueToInt32("FriendIntiveCoolTime", 600));
|
|
|
|
public static Int32 FriendInviteReplyTime => m_friend_invite_reply_time.Value;
|
|
private static Lazy<Int32> m_friend_invite_reply_time = new Lazy<Int32>(() => getValueToInt32("FriendInviteReplyTime", 60));
|
|
|
|
public static Int32 MaxPartyMembers => m_max_party_members.Value;
|
|
private static Lazy<Int32> m_max_party_members = new Lazy<Int32>(() => getValueToInt32("MaxPartyMembers", 5));
|
|
|
|
public static Int32 MaxPartyNameInput => m_max_party_name_input.Value;
|
|
private static Lazy<Int32> m_max_party_name_input = new Lazy<Int32>(() => getValueToInt32("MaxPartyNameInput", 10));
|
|
|
|
public static Int32 MaxVoteAgendaInput => m_max_vote_agenda_input.Value;
|
|
private static Lazy<Int32> m_max_vote_agenda_input = new Lazy<Int32>(() => getValueToInt32("MaxVoteAgendaInput", 50));
|
|
public static Int32 ItemAmountPartyInstance => m_item_amount_party_instance.Value;
|
|
private static Lazy<Int32> m_item_amount_party_instance = new Lazy<Int32>(() => getValueToInt32("ItemAmountPartyInstance", 1));
|
|
|
|
public static Int32 PartyConcertWaitingTimeSec => m_party_concert_wait_time.Value;
|
|
private static Lazy<Int32> m_party_concert_wait_time = new Lazy<Int32>(() => getValueToInt32("PartyConcertWaitingTime", 180));
|
|
|
|
public static Int32 ItemAmountPartySummon => m_item_amount_party_summon.Value;
|
|
private static Lazy<Int32> m_item_amount_party_summon = new Lazy<Int32>(() => getValueToInt32("ItemAmountPartySummon", 1));
|
|
|
|
public static Int32 SummonStoneItemMetaId => m_summon_stone_item_meta_id.Value;
|
|
private static Lazy<Int32> m_summon_stone_item_meta_id = new Lazy<Int32>(() => getValueToInt32("SummonStone", 12630001));
|
|
|
|
public static Int32 VoteTimeLimitSec => m_vote_time_limit_sec.Value;
|
|
private static Lazy<Int32> m_vote_time_limit_sec = new Lazy<Int32>(() => getValueToInt32("VoteTimeLimit", 60));
|
|
|
|
public static Int32 VoteCoolTimeSec => m_vote_cool_time_sec.Value;
|
|
private static Lazy<Int32> m_vote_cool_time_sec = new(() => getValueToInt32("PartyVoteCoolTime", 60 * 5));
|
|
|
|
public static Int32 CraftingHelpLimitCount => m_crafting_help_limit_count.Value;
|
|
private static Lazy<Int32> m_crafting_help_limit_count = new Lazy<Int32>(() => getValueToInt32("CraftingHelpLimitCountAll", 5));
|
|
|
|
public static Int32 CraftingHelpLimitCountReceive => m_crafting_help_limit_count_receive.Value;
|
|
private static Lazy<Int32> m_crafting_help_limit_count_receive = new Lazy<Int32>(() => getValueToInt32("CraftingHelpLimitCountReceive", 5));
|
|
|
|
public static Int32 CraftingHelpLimitCountSameUser => m_crafting_help_limit_count_sameuser.Value;
|
|
private static Lazy<Int32> m_crafting_help_limit_count_sameuser = new Lazy<Int32>(() => getValueToInt32("CraftingHelpLimitCountSameUser", 1));
|
|
|
|
public static Int32 CraftingHelpReduceTime => m_crafting_help_reduce_time.Value;
|
|
private static Lazy<Int32> m_crafting_help_reduce_time = new Lazy<Int32>(() => getValueToInt32("CraftingHelpReduceTime", 30));
|
|
|
|
public static Int32 CraftingHelpGetItemId => m_crafting_help_get_item_id.Value;
|
|
private static Lazy<Int32> m_crafting_help_get_item_id = new Lazy<Int32>(() => getValueToInt32("CraftingHelpGetItemId", 11851001));
|
|
|
|
public static Int32 CraftingHelpGetItemValue => m_crafting_get_item_value.Value;
|
|
private static Lazy<Int32> m_crafting_get_item_value = new Lazy<Int32>(() => getValueToInt32("CraftingHelpGetItemValue", 30));
|
|
|
|
public static Int32 AutoMoveRate => m_auto_move_rate.Value;
|
|
private static Lazy<Int32> m_auto_move_rate = new Lazy<Int32>(() => getValueToInt32("AutoMoveRate", 80));
|
|
|
|
public static Int32 ReturnKickTimeMinute => m_return_kick_time_minute.Value;
|
|
private static Lazy<Int32> m_return_kick_time_minute = new Lazy<Int32>(() => getValueToInt32("ReturnKickTimeMinute", 60));
|
|
|
|
public static Int32 BeaconCreateMaxCount => m_beacon_create_max_count.Value;
|
|
private static Lazy<Int32> m_beacon_create_max_count = new Lazy<Int32>(() => getValueToInt32("BeaconCreateMaxCount", 5));
|
|
|
|
public static Int32 MaxNpcFrequentSocial => m_max_npc_frequent_social.Value;
|
|
private static Lazy<Int32> m_max_npc_frequent_social = new Lazy<Int32>(() => getValueToInt32("MaxNpcFrequentSocial", 3));
|
|
|
|
public static Int32 MaxNpcDialogueSocial => m_max_npc_dialogue_social.Value;
|
|
private static Lazy<Int32> m_max_npc_dialogue_social = new Lazy<Int32>(() => getValueToInt32("MaxNpcDialogueSocial", 1));
|
|
|
|
public static Int32 NpcDialogueSocial => m_npc_dialogue_social.Value;
|
|
private static Lazy<Int32> m_npc_dialogue_social = new Lazy<Int32>(() => getValueToInt32("NpcDialogueSocial", 110054));
|
|
|
|
public static Int32 NpcCreateDressRequirement => m_npc_create_dress_requirement.Value;
|
|
private static Lazy<Int32> m_npc_create_dress_requirement = new Lazy<Int32>(() => getValueToInt32("NpcCreateDressRequirement", 4));
|
|
|
|
public static Int32 NpcCreateTattooRequirement => m_npc_create_tattoo_requirement.Value;
|
|
private static Lazy<Int32> m_npc_create_tattoo_requirement = new Lazy<Int32>(() => getValueToInt32("NpcCreateTattooRequirement", 3));
|
|
|
|
public static Int32 NpcCreateCurrency => m_npc_create_currency.Value;
|
|
private static Lazy<Int32> m_npc_create_currency = new Lazy<Int32>(() => getValueToInt32("NpcCreateCurrency", 3));
|
|
|
|
public static Int32 NpcCreateCost => m_npc_create_cost.Value;
|
|
private static Lazy<Int32> m_npc_create_cost = new Lazy<Int32>(() => getValueToInt32("NpcCreateCost", 1000));
|
|
|
|
public static Int32 NpcEditCurrency => m_npc_edit_currency.Value;
|
|
private static Lazy<Int32> m_npc_edit_currency = new Lazy<Int32>(() => getValueToInt32("NpcEditCurrency", 3));
|
|
|
|
public static Int32 NpcEditCost => m_npc_edit_cost.Value;
|
|
private static Lazy<Int32> m_npc_edit_cost = new Lazy<Int32>(() => getValueToInt32("NpcEditCost", 1000));
|
|
|
|
public static Int32 MaxNpcIntroductionChar => m_max_npc_introduction_char.Value;
|
|
private static Lazy<Int32> m_max_npc_introduction_char = new Lazy<Int32>(() => getValueToInt32("MaxNpcIntroductionChar", 100));
|
|
|
|
public static Int32 MaxNpcGreetingChar => m_max_npc_greeting_char.Value;
|
|
private static Lazy<Int32> m_max_npc_greeting_char = new Lazy<Int32>(() => getValueToInt32("MaxNpcGreetingChar", 20));
|
|
|
|
public static Int32 MaxNpcTag => m_max_npc_tag.Value;
|
|
private static Lazy<Int32> m_max_npc_tag = new Lazy<Int32>(() => getValueToInt32("MaxNpcTag", 7));
|
|
|
|
public static Int32 MaxNpcBackGroundChar => m_max_npc_background_char.Value;
|
|
private static Lazy<Int32> m_max_npc_background_char = new Lazy<Int32>(() => getValueToInt32("MaxNpcBackGroundChar", 200));
|
|
|
|
public static Int32 MaxNpcDescriptionChar => m_max_npc_description_char.Value;
|
|
private static Lazy<Int32> m_max_npc_description_char = new Lazy<Int32>(() => getValueToInt32("MaxNpcDescriptionChar", 400));
|
|
|
|
public static Int32 ConcertEntranceLimitTime => m_concert_entrance_limit_time.Value;
|
|
private static Lazy<Int32> m_concert_entrance_limit_time = new Lazy<Int32>(() => getValueToInt32("ConcertEntranceLimitTime", 10));
|
|
|
|
public static Int32 ChatStringInputMax => m_chat_string_input_max.Value;
|
|
private static Lazy<Int32> m_chat_string_input_max = new Lazy<Int32>(() => getValueToInt32("ChatStringInputMax", 1200));
|
|
|
|
public static Int32 MaxSocialActionSlot => m_max_social_action_slot.Value;
|
|
private static Lazy<Int32> m_max_social_action_slot = new Lazy<Int32>(() => getValueToInt32("MaxSocialActionSlot", 46));
|
|
|
|
public static Int32 MinReportTitleNum => m_min_report_title_num.Value;
|
|
private static Lazy<Int32> m_min_report_title_num = new Lazy<Int32>(() => getValueToInt32("MinReportTitleNum", 5));
|
|
|
|
public static Int32 MaxReportTitleNum => m_max_report_title_num.Value;
|
|
private static Lazy<Int32> m_max_report_title_num = new Lazy<Int32>(() => getValueToInt32("MaxReportTitleNum", 30));
|
|
|
|
public static Int32 MinReportContentNum => m_min_report_content_num.Value;
|
|
private static Lazy<Int32> m_min_report_content_num = new Lazy<Int32>(() => getValueToInt32("MinReportContentNum", 10));
|
|
|
|
public static Int32 MaxReportContentNum => m_max_report_content_num.Value;
|
|
private static Lazy<Int32> m_max_report_content_num = new Lazy<Int32>(() => getValueToInt32("MaxReportContentNum", 2000));
|
|
|
|
public static Int64 SystemMailStoragePeriod => m_system_mail_storage_period.Value;
|
|
private static Lazy<Int64> m_system_mail_storage_period = new Lazy<Int64>(() => getValueToInt64("SystemMailStoragePeriod", 144000));
|
|
|
|
public static Int64 UserMailStoragePeriod => m_user_mail_storage_period.Value;
|
|
private static Lazy<Int64> m_user_mail_storage_period = new Lazy<Int64>(() => getValueToInt64("UserMailStoragePeriod", 43200));
|
|
|
|
public static Int64 SendMailStoragePeriod => m_send_mail_storage_period.Value;
|
|
private static Lazy<Int64> m_send_mail_storage_period = new Lazy<Int64>(() => getValueToInt64("SendMailStoragePeriod", 43200));
|
|
|
|
public static Int64 QuestMailStoragePeriod => m_quest_mail_storage_period.Value;
|
|
private static Lazy<Int64> m_quest_mail_storage_period = new Lazy<Int64>(() => getValueToInt64("QuestMailStoragePeriod", 0));
|
|
|
|
public static Int32 ChannelChangeCoolTime => m_channel_change_cool_time.Value;
|
|
private static Lazy<Int32> m_channel_change_cool_time = new Lazy<Int32>(() => getValueToInt32("ChannelChangeCoolTime", 180));
|
|
|
|
public static Int32 UgqUsageFeeAmateur => m_ugq_usage_fee_amateur.Value;
|
|
private static Lazy<Int32> m_ugq_usage_fee_amateur = new Lazy<Int32>(() => getValueToInt32("UgqUsageFeeAmateur", 0));
|
|
public static Int32 UgqUsageFeeRisingStar => m_ugq_usage_fee_risingstar.Value;
|
|
private static Lazy<Int32> m_ugq_usage_fee_risingstar = new Lazy<Int32>(() => getValueToInt32("UgqUsageFeeRisingStar", 5));
|
|
public static Int32 UgqUsageFeeMaster1 => m_ugq_usage_fee_master1.Value;
|
|
private static Lazy<Int32> m_ugq_usage_fee_master1 = new Lazy<Int32>(() => getValueToInt32("UgqUsageFeeMaster1", 10));
|
|
public static Int32 UgqUsageFeeMaster2 => m_ugq_usage_fee_master2.Value;
|
|
private static Lazy<Int32> m_ugq_usage_fee_master2 = new Lazy<Int32>(() => getValueToInt32("UgqUsageFeeMaster2", 15));
|
|
public static Int32 UgqUsageFeeMaster3 => m_ugq_usage_fee_master3.Value;
|
|
private static Lazy<Int32> m_ugq_usage_fee_master3 = new Lazy<Int32>(() => getValueToInt32("UgqUsageFeeMaster3", 20));
|
|
|
|
public static string UgqUsageFeeTypeAmateur => m_ugq_usage_fee_type_amateur.Value;
|
|
private static Lazy<string> m_ugq_usage_fee_type_amateur = new Lazy<String>(() => getValueToString("UgqUsageFeeTypeAmateur", "Sapphire"));
|
|
public static string UgqUsageFeeTypeRisingStar => m_ugq_usage_fee_type_rising_star.Value;
|
|
private static Lazy<string> m_ugq_usage_fee_type_rising_star = new Lazy<String>(() => getValueToString("UgqUsageFeeTypeRisingStar", "Ruby"));
|
|
public static string UgqUsageFeeTypeMaster1 => m_ugq_usage_fee_type_master1.Value;
|
|
private static Lazy<string> m_ugq_usage_fee_type_master1 = new Lazy<String>(() => getValueToString("UgqUsageFeeTypeMaster1", "Sapphire"));
|
|
public static string UgqUsageFeeTypeMaster2 => m_ugq_usage_fee_type_master2.Value;
|
|
private static Lazy<string> m_ugq_usage_fee_type_master2 = new Lazy<String>(() => getValueToString("UgqUsageFeeTypeMaster2", "Sapphire"));
|
|
public static string UgqUsageFeeTypeMaster3 => m_ugq_usage_fee_type_master3.Value;
|
|
private static Lazy<string> m_ugq_usage_fee_type_master3 = new Lazy<String>(() => getValueToString("UgqUsageFeeTypeMaster3", "Sapphire"));
|
|
|
|
public static float UgqRevenueDistributionCreator => m_ugq_revenue_distribution_creator.Value;
|
|
private static Lazy<float> m_ugq_revenue_distribution_creator = new Lazy<float>(() => getValueToFloat("UgqRevenueDistributionCreator", 0.5f));
|
|
public static float UgqRevenueDistributionBeaconOwner => m_ugq_revenue_distribution_beacon_owner.Value;
|
|
private static Lazy<float> m_ugq_revenue_distribution_beacon_owner = new Lazy<float>(() => getValueToFloat("UgqRevenueDistributionBeaconOwner", 1));
|
|
|
|
|
|
public static Int32 WorldBeaconAmateurUGQReward => m_world_beacon_amateur_ugq_reward.Value;
|
|
private static Lazy<Int32> m_world_beacon_amateur_ugq_reward = new Lazy<Int32>(() => getValueToInt32("WorldBeaconAmateurUGQReward", 0));
|
|
public static Int32 WorldBeaconRisingstarUGQReward => m_world_beacon_risingstar_ugq_reward.Value;
|
|
private static Lazy<Int32> m_world_beacon_risingstar_ugq_reward = new Lazy<Int32>(() => getValueToInt32("WorldBeaconRisingstarUGQReward", 0));
|
|
public static Int32 WorldBeaconMasterOneUGQReward => m_world_beacon_master_one_ugq_reward.Value;
|
|
private static Lazy<Int32> m_world_beacon_master_one_ugq_reward = new Lazy<Int32>(() => getValueToInt32("WorldBeaconMasterOneUGQReward", 0));
|
|
public static Int32 WorldBeaconMasterTwoUGQReward => m_world_beacon_master_two_ugq_reward.Value;
|
|
private static Lazy<Int32> m_world_beacon_master_two_ugq_reward = new Lazy<Int32>(() => getValueToInt32("WorldBeaconMasterTwoUGQReward", 0));
|
|
public static Int32 WorldBeaconMasterThreeUGQReward => m_world_beacon_master_three_ugq_reward.Value;
|
|
private static Lazy<Int32> m_world_beacon_master_three_ugq_reward = new Lazy<Int32>(() => getValueToInt32("WorldBeaconMasterThreeUGQReward", 0));
|
|
public static Int32 NormalBeaconAmateurUGQReward => m_normal_beacon_amateur_ugq_Reward.Value;
|
|
private static Lazy<Int32> m_normal_beacon_amateur_ugq_Reward = new Lazy<Int32>(() => getValueToInt32("NormalBeaconAmateurUGQReward", 0));
|
|
public static Int32 NormalBeaconRisingstarUGQReward => m_normal_beacon_risingstar_ugq_Reward.Value;
|
|
private static Lazy<Int32> m_normal_beacon_risingstar_ugq_Reward = new Lazy<Int32>(() => getValueToInt32("NormalBeaconRisingstarUGQReward", 0));
|
|
public static Int32 NormalBeaconMasterOneUGQReward => m_normal_beacon_master_one_ugq_reward.Value;
|
|
private static Lazy<Int32> m_normal_beacon_master_one_ugq_reward = new Lazy<Int32>(() => getValueToInt32("NormalBeaconMasterOneUGQReward", 0));
|
|
public static Int32 NormalBeaconMasterTwoUGQReward => m_normal_beacon_master_two_ugq_reward.Value;
|
|
private static Lazy<Int32> m_normal_beacon_master_two_ugq_reward = new Lazy<Int32>(() => getValueToInt32("NormalBeaconMasterTwoUGQReward", 0));
|
|
public static Int32 NormalBeaconMasterThreeUGQReward => m_normal_beacon_master_three_ugq_reward.Value;
|
|
private static Lazy<Int32> m_normal_beacon_master_three_ugq_reward = new Lazy<Int32>(() => getValueToInt32("NormalBeaconMasterThreeUGQReward", 0));
|
|
public static Int32 AiChatInsentiveMax => m_ai_chat_insentive_max.Value;
|
|
private static Lazy<Int32> m_ai_chat_insentive_max = new Lazy<Int32>(() => getValueToInt32("Beacon_Insentive_Max", 1000)); // Beam 재화
|
|
public static Int32 AiChatInsentivePeriod => m_ai_chat_insentive_period.Value;
|
|
private static Lazy<Int32> m_ai_chat_insentive_period = new Lazy<Int32>(() => getValueToInt32("Beacon_Insentive_Period", 10080)); // 분 단위
|
|
|
|
public static Int32 MyHomeMaxSaveSlot => m_myhome_max_save_slot.Value;
|
|
private static Lazy<Int32> m_myhome_max_save_slot = new Lazy<Int32>(() => getValueToInt32("MyHomeMaxSaveSlot", 5));
|
|
|
|
public static Int32 MyHomeDefaultSaveSlot => m_myhome_default_save_slot.Value;
|
|
private static Lazy<Int32> m_myhome_default_save_slot = new Lazy<Int32>(() => getValueToInt32("MyHomeDefaultSaveSlot", 1));
|
|
|
|
public static string MyHomeDefaultSaveFileName => m_myhome_default_save_file_name.Value;
|
|
private static Lazy<string> m_myhome_default_save_file_name = new Lazy<string>(() => getValueToString("MyHomeDefaultSaveFileName", "temp.myhome"));
|
|
|
|
public static Int32 MyHomeSaveSlotExpandCurrency => m_myhome_save_slot_expand_currency.Value;
|
|
private static Lazy<Int32> m_myhome_save_slot_expand_currency = new Lazy<Int32>(() => getValueToInt32("MyHomeSaveSlotExpandCurrency", 2));
|
|
|
|
public static Int32 MyHomeSaveSlotExpandCost => m_myhome_save_slot_expand_cost.Value;
|
|
private static Lazy<Int32> m_myhome_save_slot_expand_cost = new Lazy<Int32>(() => getValueToInt32("MyHomeSaveSlotExpandCost", 100));
|
|
|
|
public static Int32 MyhomenameMinLength => m_myhome_min_length.Value;
|
|
private static Lazy<Int32> m_myhome_min_length = new Lazy<Int32>(() => getValueToInt32("MyhomenameMinLength", 2));
|
|
|
|
public static Int32 MyhomenameMaxLength => m_myhome_max_length.Value;
|
|
private static Lazy<Int32> m_myhome_max_length = new Lazy<Int32>(() => getValueToInt32("MyhomenameMaxLength", 20));
|
|
|
|
public static Int32 MyhomeInterphone => m_myhome_interphone.Value;
|
|
private static Lazy<Int32> m_myhome_interphone = new Lazy<Int32>(() => getValueToInt32("MyHomeInterphone", 1));
|
|
|
|
public static Int32 MyhomeStartPoint => m_myhome_start_point.Value;
|
|
private static Lazy<Int32> m_myhome_start_point = new Lazy<Int32>(() => getValueToInt32("MyHomeStartPoint", 1));
|
|
|
|
public static Int32 SmallTypeMyhome => m_small_type_myhome.Value;
|
|
private static Lazy<Int32> m_small_type_myhome = new Lazy<Int32>(() => getValueToInt32("SmallTypeMyhome", 10001));
|
|
|
|
public static Int32 MediumTypeMyhome => m_medium_type_myhome.Value;
|
|
private static Lazy<Int32> m_medium_type_myhome = new Lazy<Int32>(() => getValueToInt32("MediumTypeMyhome", 10003));
|
|
|
|
public static Int32 LargeTypeMyhome => m_large_type_myhome.Value;
|
|
private static Lazy<Int32> m_large_type_myhome = new Lazy<Int32>(() => getValueToInt32("LargeTypeMyhome", 10004));
|
|
|
|
public static Int32 GiantTypeMyhome => m_giant_type_myhome.Value;
|
|
private static Lazy<Int32> m_giant_type_myhome = new Lazy<Int32>(() => getValueToInt32("GiantTypeMyhome", 10005));
|
|
|
|
public static Int32 MinEnterPlayer => m_min_enter_player.Value;
|
|
private static Lazy<Int32> m_min_enter_player = new Lazy<Int32>(() => getValueToInt32("MinEnterPlayer", 1));
|
|
|
|
public static Int32 MaxEnterPlayer => m_max_enter_player.Value;
|
|
private static Lazy<Int32> m_max_enter_player = new Lazy<Int32>(() => getValueToInt32("MaxEnterPlayer", 1));
|
|
|
|
public static Int32 MinRentalPeriod => m_min_rental_period.Value;
|
|
private static Lazy<Int32> m_min_rental_period = new Lazy<Int32>(() => getValueToInt32("MinRentalPeriod", 1));
|
|
|
|
public static Int32 MaxRentalPeriod => m_max_rental_period.Value;
|
|
private static Lazy<Int32> m_max_rental_period = new Lazy<Int32>(() => getValueToInt32("MaxRentalPeriod", 1));
|
|
|
|
public static bool UseRentalStateSwitch => m_use_rental_state_switch.Value;
|
|
private static Lazy<bool> m_use_rental_state_switch = new Lazy<bool>(() => getValueToBool("UseRentalStateSwitch", true));
|
|
|
|
public static DateTime NpcRankingCalculateTime => m_npc_ranking_calculate_time.Value;
|
|
private static Lazy<DateTime> m_npc_ranking_calculate_time = new Lazy<DateTime>(() =>
|
|
{
|
|
var time_string = getValueToString("NpcRankingCalculateTime", "T03:00:00");
|
|
time_string = time_string.Replace("T", "");
|
|
var datetime = Convert.ToDateTime(time_string);
|
|
return datetime;
|
|
});
|
|
|
|
public static DateTime BusinessLogRefreshTime => m_businesslog_refresh_time.Value;
|
|
private static Lazy<DateTime> m_businesslog_refresh_time = new Lazy<DateTime>(() =>
|
|
{
|
|
var time_string = getValueToString("BusinessLogRefreshTime", "T00:01:00");
|
|
time_string = time_string.Replace("T", "");
|
|
var datetime = Convert.ToDateTime(time_string);
|
|
return datetime;
|
|
});
|
|
|
|
public static int NpcRankingCalculatePeriod => m_npc_ranking_calculate_period.Value;
|
|
private static Lazy<int> m_npc_ranking_calculate_period = new Lazy<int>(() => getValueToInt32("NpcRankingCalculatePeriod", 24));
|
|
|
|
public static int NpcRankingRetentionPeriod => m_npc_ranking_retention_period.Value;
|
|
private static Lazy<int> m_npc_ranking_retention_period = new Lazy<int>(() => getValueToInt32("NpcRankingRetentionPeriod", 2160));
|
|
|
|
|
|
|
|
public static int UGQDefaultSlot => m_ugq_default_slot.Value;
|
|
private static Lazy<int> m_ugq_default_slot = new Lazy<int>(() => getValueToInt32("UGQDefaultSlot", 2));
|
|
|
|
public static int UGQMaximumSlot => m_ugq_maximum_slot.Value;
|
|
private static Lazy<int> m_ugq_maximum_slot = new Lazy<int>(() => getValueToInt32("UGQMaximumSlot", 5));
|
|
|
|
public static string UGQAddSlotType => m_ugq_add_slot_type.Value;
|
|
private static Lazy<string> m_ugq_add_slot_type = new Lazy<string>(() => getValueToString("UGQAddSlotType", "SAPPHIRE"));
|
|
|
|
public static double UGQAddSlotAmount => m_ugq_add_slot_amount.Value;
|
|
private static Lazy<double> m_ugq_add_slot_amount = new Lazy<double>(() => getValueToDouble("UGQAddSlotAmount", 50));
|
|
|
|
public static decimal CaliumConverterInitialValue => m_calium_converter_initial_value.Value;
|
|
private static Lazy<decimal> m_calium_converter_initial_value = new Lazy<decimal>(() => getValueToDecimal("CaliumConverterInitialValue", 875.5));
|
|
|
|
public static decimal CaliumConverterEfficiency => m_calium_converter_efficiency.Value;
|
|
private static Lazy<decimal> m_calium_converter_efficiency = new Lazy<decimal>(() => getValueToDecimal("CaliumConverterEfficiency", 1));
|
|
|
|
public static int CaliumConverterPivotTime => m_calium_converter_pivot_time.Value;
|
|
private static Lazy<int> m_calium_converter_pivot_time = new Lazy<int>(() => getValueToInt32("CaliumConverterPivotTime", 9));
|
|
|
|
public static int CaliumConverterCycleTime => m_calium_converter_cycle_time.Value;
|
|
private static Lazy<int> m_calium_converter_cycle_time = new Lazy<int>(() => getValueToInt32("CaliumConverterCycleTime", 8));
|
|
|
|
public static decimal CaliumConverterDailyLimit => m_calium_converter_daily_limit.Value;
|
|
private static Lazy<decimal> m_calium_converter_daily_limit = new Lazy<decimal>(() => getValueToDecimal("CaliumConverterDailyLimit", 875.05));
|
|
|
|
public static decimal CaliumConverterLimitPerPerson => m_calium_converter_limit_per_person.Value;
|
|
private static Lazy<decimal> m_calium_converter_limit_per_person = new Lazy<decimal>(() => getValueToDecimal("CaliumConverterLimitPerPerson", 1));
|
|
|
|
public static CurrencyType CaliumConverterCommissionType => m_calium_converter_commission_type.Value;
|
|
private static Lazy<CurrencyType> m_calium_converter_commission_type = new Lazy<CurrencyType>(() => getValueToEnum<CurrencyType>("CaliumConverterCommissionType", CurrencyType.Sapphire));
|
|
|
|
public static decimal CaliumConverterCommissionRate => m_calium_converter_commission_rate.Value;
|
|
private static Lazy<decimal> m_calium_converter_commission_rate = new Lazy<decimal>(() => getValueToDecimal("CaliumConverterCommissionRate", 0.1));
|
|
|
|
public static decimal CaliumConverterConversionRate => m_calium_converter_conversion_rate.Value;
|
|
private static Lazy<decimal> m_calium_converter_conversion_rate = new Lazy<decimal>(() => getValueToDecimal("CaliumConverterConversionRate", 0.01));
|
|
|
|
public static int UGQBoardMaxListAmount => m_ugq_board_max_list_amount.Value;
|
|
private static Lazy<int> m_ugq_board_max_list_amount = new Lazy<int>(() => getValueToInt32("UGQBoardMaxListAmount", 10));
|
|
|
|
|
|
public static int UGQPromoteConditionRisingstar => m_ugq_dpromote_condition_rising_star.Value;
|
|
private static Lazy<int> m_ugq_dpromote_condition_rising_star = new Lazy<int>(() => getValueToInt32("UGQPromoteConditionRisingstar", 20));
|
|
|
|
public static Pos UGQNormalBeaconQuestMarkerPos => m_ugq_normal_beacon_quest_marker_pos.Value;
|
|
private static Lazy<Pos> m_ugq_normal_beacon_quest_marker_pos = new Lazy<Pos>(() =>
|
|
{
|
|
var pos = new Pos() { X = -20310, Y = 20760, Z = 20 };
|
|
var pos_string = getValueToString("UGQNormalBeaconQuestMarkerPos", "-20310 20760 20");
|
|
var posList = pos_string.Split(' ');
|
|
if(posList.Length == 3)
|
|
{
|
|
if(posList[0].toInt32(out var x))
|
|
pos.X = x;
|
|
|
|
if (posList[1].toInt32(out var y))
|
|
pos.Y = y;
|
|
|
|
if (posList[2].toInt32(out var z))
|
|
pos.Z = z;
|
|
}
|
|
return pos;
|
|
});
|
|
|
|
public static int SentMailNumsResetTime => m_sent_mail_nums_reset_time.Value;
|
|
private static Lazy<int> m_sent_mail_nums_reset_time = new Lazy<int>(() => getValueToInt32("SentMailNumsResetTime", 15));
|
|
|
|
public static Int32 UgqBonusGoldAmateur => m_ugq_bonus_gold_amateur.Value;
|
|
private static Lazy<Int32> m_ugq_bonus_gold_amateur = new Lazy<Int32>(() => getValueToInt32("UgqBonusGoldAmateur", 500));
|
|
|
|
public static Int32 UgqBonusGoldRisingStar => m_ugq_bonus_gold_rising_star.Value;
|
|
private static Lazy<Int32> m_ugq_bonus_gold_rising_star = new Lazy<Int32>(() => getValueToInt32("UgqBonusGoldRisingStar", 250));
|
|
|
|
public static Int32 UgqBonusGoldMaster1 => m_ugq_bonus_gold_master1.Value;
|
|
private static Lazy<Int32> m_ugq_bonus_gold_master1 = new Lazy<Int32>(() => getValueToInt32("UgqBonusGoldMaster1", 200));
|
|
|
|
public static Int32 UgqBonusGoldMaster2 => m_ugq_bonus_gold_master2.Value;
|
|
private static Lazy<Int32> m_ugq_bonus_gold_master2 = new Lazy<Int32>(() => getValueToInt32("UgqBonusGoldMaster2", 150));
|
|
|
|
public static Int32 UgqBonusGoldMaster3 => m_ugq_bonus_gold_master3.Value;
|
|
private static Lazy<Int32> m_ugq_bonus_gold_master3 = new Lazy<Int32>(() => getValueToInt32("UgqBonusGoldMaster3", 150));
|
|
|
|
public static Int32 UgqAmateurBonusCount => m_ugq_amateur_bonus_count.Value;
|
|
private static Lazy<Int32> m_ugq_amateur_bonus_count = new Lazy<Int32>(() => getValueToInt32("UgqAmateurBonusCount", 10));
|
|
|
|
public static Int32 UgqRisingStarBonusCount => m_ugq_rising_star_bonus_count.Value;
|
|
private static Lazy<Int32> m_ugq_rising_star_bonus_count = new Lazy<Int32>(() => getValueToInt32("UgqRisingStarBonusCount", 5));
|
|
|
|
public static Int32 UgqMaster1BonusCount => m_ugq_master1_bonus_count.Value;
|
|
private static Lazy<Int32> m_ugq_master1_bonus_count = new Lazy<Int32>(() => getValueToInt32("UgqMaster1BonusCount", 3));
|
|
|
|
public static Int32 UgqMaster2BonusCount => m_ugq_master2_bonus_count.Value;
|
|
private static Lazy<Int32> m_ugq_master2_bonus_count = new Lazy<Int32>(() => getValueToInt32("UgqMaster2BonusCount", 2));
|
|
|
|
public static Int32 UgqMaster3BonusCount => m_ugq_master3_bonus_count.Value;
|
|
private static Lazy<Int32> m_ugq_master3_bonus_count = new Lazy<Int32>(() => getValueToInt32("UgqMaster3BonusCount", 1));
|
|
|
|
public static string UgqBonusCountInit => m_ugq_bonus_count_init.Value;
|
|
private static Lazy<string> m_ugq_bonus_count_init = new Lazy<string>(() => getValueToString("UgqBonusCountInit", "T00:00:00"));
|
|
|
|
public static CurrencyType CharacterCustomizeCostType => m_character_customize_cost_type.Value;
|
|
private static Lazy<CurrencyType> m_character_customize_cost_type = new Lazy<CurrencyType>(() => getValueToEnum<CurrencyType>("CharacterCustomizeCostType", CurrencyType.None));
|
|
|
|
public static double CharacterCustomizeCost => m_character_customize_cost.Value;
|
|
private static Lazy<double> m_character_customize_cost = new Lazy<double>(() => getValueToDouble("CharacterCustomizeCostValue", 0));
|
|
|
|
public static CurrencyType NpcCustomizeCostType => m_npc_customize_cost_type.Value;
|
|
private static Lazy<CurrencyType> m_npc_customize_cost_type = new Lazy<CurrencyType>(() => getValueToEnum<CurrencyType>("NpcCustomizeCurrency", CurrencyType.None));
|
|
|
|
public static double NpcCustomizeCost => m_npc_customize_cost.Value;
|
|
private static Lazy<double> m_npc_customize_cost = new Lazy<double>(() => getValueToDouble("NpcCustomizeCost", 0));
|
|
|
|
public static Int32 BeaconAppProfileCooltime => m_beacon_app_profile_cooltime.Value;
|
|
private static Lazy<Int32> m_beacon_app_profile_cooltime = new Lazy<Int32>(() => getValueToInt32("BeaconAppProfileCooltime", 3600));
|
|
|
|
// 인벤토리 슬롯 최대 갯수 관련 임시 추가 메타 정보
|
|
public static Int16 Inventory1Slot => m_inventory_1_slot.Value;
|
|
private static Lazy<Int16> m_inventory_1_slot = new Lazy<Int16>(() => getValueToInt16("Inventory1Slot", 200));
|
|
|
|
public static Int16 Inventory2Slot => m_inventory_2_slot.Value;
|
|
private static Lazy<Int16> m_inventory_2_slot = new Lazy<Int16>(() => getValueToInt16("Inventory2Slot", 180));
|
|
|
|
public static Int16 Inventory3Slot => m_inventory_3_slot.Value;
|
|
private static Lazy<Int16> m_inventory_3_slot = new Lazy<Int16>(() => getValueToInt16("Inventory3Slot", 50));
|
|
|
|
public static Int16 Inventory4Slot => m_inventory_4_slot.Value;
|
|
private static Lazy<Int16> m_inventory_4_slot = new Lazy<Int16>(() => getValueToInt16("Inventory4Slot", 50));
|
|
|
|
public static Int16 Inventory5Slot => m_inventory_5_slot.Value;
|
|
private static Lazy<Int16> m_inventory_5_slot = new Lazy<Int16>(() => getValueToInt16("Inventory5Slot", 180));
|
|
|
|
public static Int16 Inventory6Slot => m_inventory_6_slot.Value;
|
|
private static Lazy<Int16> m_inventory_6_slot = new Lazy<Int16>(() => getValueToInt16("Inventory6Slot", 30));
|
|
|
|
public static Int16 Inventory7Slot => m_inventory_7_slot.Value;
|
|
private static Lazy<Int16> m_inventory_7_slot = new Lazy<Int16>(() => getValueToInt16("Inventory7Slot", 30));
|
|
|
|
public static Int16 Inventory8Slot => m_inventory_8_slot.Value;
|
|
private static Lazy<Int16> m_inventory_8_slot = new Lazy<Int16>(() => getValueToInt16("Inventory8Slot", 10));
|
|
|
|
public static Int16 Inventory9Slot => m_inventory_9_slot.Value;
|
|
private static Lazy<Int16> m_inventory_9_slot = new Lazy<Int16>(() => getValueToInt16("Inventory9Slot", 10));
|
|
|
|
public static Int16 Inventory10Slot => m_inventory_10_slot.Value;
|
|
private static Lazy<Int16> m_inventory_10_slot = new Lazy<Int16>(() => getValueToInt16("Inventory10Slot", 60));
|
|
|
|
|
|
// MyHome 인벤토리 슬롯 최대 갯수 관련 임시 추가 메타 정보EGenderType
|
|
public static Int16 MyHomeInventory1Slot => m_my_home_inventory_1_slot.Value;
|
|
private static Lazy<Int16> m_my_home_inventory_1_slot = new Lazy<Int16>(() => getValueToInt16("MyHomeInventory1Slot", 200));
|
|
|
|
public static Int16 MyHomeInventory2Slot => m_my_home_inventory_2_slot.Value;
|
|
private static Lazy<Int16> m_my_home_inventory_2_slot = new Lazy<Int16>(() => getValueToInt16("MyHomeInventory2Slot", 0));
|
|
|
|
public static Int16 MyHomeInventory3Slot => m_my_home_inventory_3_slot.Value;
|
|
private static Lazy<Int16> m_my_home_inventory_3_slot = new Lazy<Int16>(() => getValueToInt16("MyHomeInventory3Slot", 0));
|
|
|
|
public static Int16 MyHomeInventory4Slot => m_my_home_inventory_4_slot.Value;
|
|
private static Lazy<Int16> m_my_home_inventory_4_slot = new Lazy<Int16>(() => getValueToInt16("MyHomeInventory4Slot", 0));
|
|
|
|
public static Int16 MyHomeInventory5Slot => m_my_home_inventory_5_slot.Value;
|
|
private static Lazy<Int16> m_my_home_inventory_5_slot = new Lazy<Int16>(() => getValueToInt16("MyHomeInventory5Slot", 0));
|
|
|
|
public static Int16 MyHomeInventory6Slot => m_my_home_inventory_6_slot.Value;
|
|
private static Lazy<Int16> m_my_home_inventory_6_slot = new Lazy<Int16>(() => getValueToInt16("MyHomeInventory6Slot", 30));
|
|
|
|
public static Int16 MyHomeInventory7Slot => m_my_home_inventory_7_slot.Value;
|
|
private static Lazy<Int16> m_my_home_inventory_7_slot = new Lazy<Int16>(() => getValueToInt16("MyHomeInventory7Slot", 0));
|
|
|
|
public static Int16 MyHomeInventory8Slot => m_my_home_inventory_8_slot.Value;
|
|
private static Lazy<Int16> m_my_home_inventory_8_slot = new Lazy<Int16>(() => getValueToInt16("MyHomeInventory8Slot", 0));
|
|
|
|
public static Int16 MyHomeInventory9Slot => m_my_home_inventory_9_slot.Value;
|
|
private static Lazy<Int16> m_my_home_inventory_9_slot = new Lazy<Int16>(() => getValueToInt16("MyHomeInventory9Slot", 0));
|
|
|
|
public static Int16 MyHomeInventory10Slot => m_my_home_inventory_10_slot.Value;
|
|
private static Lazy<Int16> m_my_home_inventory_10_slot = new Lazy<Int16>(() => getValueToInt16("MyHomeInventory10Slot", 0));
|
|
|
|
// NFT 관련
|
|
public static Int32 CPNFTHolderKeyItem => m_cp_nft_holder_key_item.Value;
|
|
private static Lazy<Int32> m_cp_nft_holder_key_item = new Lazy<Int32>(() => getValueToInt32("CPNFTHolderKeyItem", 0));
|
|
|
|
public static Int32 ShopRenewalBlockTime => m_shop_renewal_block_time.Value;
|
|
private static Lazy<Int32> m_shop_renewal_block_time = new Lazy<Int32>(() => getValueToInt32("ShopRenewalBlockTime", 5)); //sec
|
|
|
|
// Large Packet 관련
|
|
public static Int32 LargePacketCheckSize => m_large_packet_check_size.Value;
|
|
private static Lazy<Int32> m_large_packet_check_size = new Lazy<Int32>(() => getValueToInt32("LargePacketxCheckSize", 256000));
|
|
public static Int32 PacketChunkSize => m_packet_chunk_size.Value;
|
|
private static Lazy<Int32> m_packet_chunk_size = new Lazy<Int32>(() => getValueToInt32("PacketChunkSize", 60000));
|
|
|
|
public static Int32 LandAuctionReloadIntervalSec => m_land_auction_reload_interval_sec.Value;
|
|
private static Lazy<Int32> m_land_auction_reload_interval_sec = new Lazy<Int32>(() => getValueToInt32("LandAuctionReloadIntervalSec", 5));
|
|
|
|
public static Int32 BlindBidStartBeforeLandAuctionEndMinutes => m_blind_bid_start_before_land_auction_end_minuts.Value;
|
|
private static Lazy<Int32> m_blind_bid_start_before_land_auction_end_minuts = new Lazy<Int32>(() => getValueToInt32("LandAuctionBlindTimeSet", 10));
|
|
|
|
public static Int32 LandAuctionFailedMailPeriodMinutes => m_land_auction_failed_mail_period_minutes.Value;
|
|
private static Lazy<Int32> m_land_auction_failed_mail_period_minutes = new Lazy<Int32>(() => getValueToInt32("AuctionLandMailValidTime", 2592000));
|
|
|
|
public static Int32 LandAuctionSuccessedMailPeriodMinutes => m_land_auction_successed_mail_period_minutes.Value;
|
|
private static Lazy<Int32> m_land_auction_successed_mail_period_minutes = new Lazy<Int32>(() => getValueToInt32("AuctionLandReturnMailValidTime", 2592000));
|
|
|
|
public static double BeaconShopMinCaliumPrice => m_beacon_shop_min_calium_price.Value;
|
|
private static Lazy<double> m_beacon_shop_min_calium_price = new Lazy<double>(() => getValueToDouble("BeaconShopMinCaliumPrice", 0.01));
|
|
|
|
public static double BeaconShopMaxCaliumPrice => m_beacon_shop_max_calium_price.Value;
|
|
private static Lazy<double> m_beacon_shop_max_calium_price = new Lazy<double>(() => getValueToDouble("BeaconShopMaxCaliumPrice", 99999999.00));
|
|
|
|
public static double BeaconShopSellFee => m_beacon_shop_sell_fee.Value;
|
|
private static Lazy<double> m_beacon_shop_sell_fee = new Lazy<double>(() => getValueToDouble("BeaconShopSellFee", 0.3));
|
|
|
|
public static int BeaconShopDailyRegistration => m_beacon_shop_daily_registration.Value;
|
|
private static Lazy<int> m_beacon_shop_daily_registration = new Lazy<int>(() => getValueToInt32("BeaconShopDailyRegistration", 10));
|
|
|
|
public static int BeaconShopSellPeriod => m_beacon_shop_sell_period.Value;
|
|
private static Lazy<int> m_beacon_shop_sell_period = new Lazy<int>(() => getValueToInt32("BeaconShopSellPeriod", 72));
|
|
|
|
public static int BeaconShopMaxSlot => m_beacon_shop_max_slot.Value;
|
|
private static Lazy<int> m_beacon_shop_max_slot = new Lazy<int>(() => getValueToInt32("BeaconShopMaxSlot", 20));
|
|
public static int BeaconShopDailyRegistrationResetTime => m_beacon_shop_daily_registration_reset_time.Value;
|
|
private static Lazy<int> m_beacon_shop_daily_registration_reset_time = new Lazy<int>(() => getValueToInt32("BeaconShopDailyRegistrationResetTime", 0));
|
|
|
|
public static int ItemExpireAlertBeforeHourTime => m_item_expire_alert_before_hour_time.Value;
|
|
private static Lazy<int> m_item_expire_alert_before_hour_time = new Lazy<int>(() => getValueToInt32("ItemExpireAlertBeforeHourTime", ConstValue.default_1_day_to_hour * 7));
|
|
|
|
public static double BeaconShopPaymentListMaxCount => m_beacon_shop_payment_max_count.Value;
|
|
private static Lazy<double> m_beacon_shop_payment_max_count = new Lazy<double>(() => getValueToDouble("BeaconShopPaymentListMaxCount", 50));
|
|
}
|
|
|
|
//=========================================================================================
|
|
// GameConfigMeta 데이터내의 문자열 데이터를 해당하는 타입으로 변환 한다.
|
|
//=========================================================================================
|
|
public static bool getValueToBool(string key, bool defaultValue)
|
|
{
|
|
MetaData.Instance._GameConfigMetaTable.TryGetValue(key, out var found_string);
|
|
if (found_string == null)
|
|
return defaultValue;
|
|
|
|
var is_success = found_string.toBool(out var converted_value);
|
|
return is_success == true ? converted_value : defaultValue;
|
|
}
|
|
|
|
public static Int16 getValueToInt16(string key, Int16 defaultValue)
|
|
{
|
|
MetaData.Instance._GameConfigMetaTable.TryGetValue(key, out var found_string);
|
|
if (found_string == null)
|
|
return defaultValue;
|
|
|
|
var is_success = found_string.toInt16(out var converted_value);
|
|
return is_success == true ? converted_value : defaultValue;
|
|
}
|
|
public static Int32 getValueToInt32(string key, Int32 defaultValue)
|
|
{
|
|
MetaData.Instance._GameConfigMetaTable.TryGetValue(key, out var found_string);
|
|
if (found_string == null)
|
|
return defaultValue;
|
|
|
|
var is_success = found_string.toInt32(out var converted_value);
|
|
return is_success == true ? converted_value : defaultValue;
|
|
}
|
|
|
|
public static Int64 getValueToInt64(string key, Int64 defaultValue)
|
|
{
|
|
MetaData.Instance._GameConfigMetaTable.TryGetValue(key, out var found_string);
|
|
if (found_string == null)
|
|
return defaultValue;
|
|
|
|
var is_success = found_string.toInt64(out var converted_value);
|
|
return is_success == true ? converted_value : defaultValue;
|
|
}
|
|
|
|
public static float getValueToFloat(string key, float defaultValue)
|
|
{
|
|
MetaData.Instance._GameConfigMetaTable.TryGetValue(key, out var found_string);
|
|
if (found_string == null)
|
|
return defaultValue;
|
|
|
|
var is_success = found_string.toFloat(out var converted_value);
|
|
return is_success == true ? converted_value : defaultValue;
|
|
}
|
|
|
|
public static double getValueToDouble(string key, double defaultValue)
|
|
{
|
|
MetaData.Instance._GameConfigMetaTable.TryGetValue(key, out var found_string);
|
|
if (found_string == null)
|
|
return defaultValue;
|
|
|
|
var is_success = found_string.toDouble(out var converted_value);
|
|
return is_success == true ? converted_value : defaultValue;
|
|
}
|
|
|
|
public static decimal getValueToDecimal(string key, double defaultValue)
|
|
{
|
|
MetaData.Instance._GameConfigMetaTable.TryGetValue(key, out var found_string);
|
|
if (found_string == null)
|
|
return (decimal)defaultValue;
|
|
|
|
var is_success = found_string.toDecimal(out var converted_value);
|
|
return is_success == true ? converted_value : (decimal)defaultValue;
|
|
}
|
|
|
|
public static string getValueToString(string key, string defaultValue)
|
|
{
|
|
MetaData.Instance._GameConfigMetaTable.TryGetValue(key, out var found_string);
|
|
return found_string?.isNullOrWhiteSpace() == false ? found_string : defaultValue;
|
|
}
|
|
|
|
public static TEnum getValueToEnum<TEnum>(string key, TEnum defaultValue)
|
|
{
|
|
MetaData.Instance._GameConfigMetaTable.TryGetValue(key, out var found_string);
|
|
if (found_string == null)
|
|
return defaultValue;
|
|
|
|
var is_success = EnumHelper.tryParse<TEnum>(found_string, out var converted_value);
|
|
if (!is_success)
|
|
return defaultValue;
|
|
|
|
return converted_value == null ? defaultValue : converted_value;
|
|
}
|
|
|
|
|
|
}
|
|
}
|