35 lines
993 B
C#
35 lines
993 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using SGModule.ConfigLoader;
|
|
|
|
namespace BallKingdomCrush
|
|
{
|
|
[ConfigKey("TurnOffRewards")]
|
|
public class TurnOffRewards
|
|
{
|
|
public int Reward_Type;
|
|
public float quantity;
|
|
public int weight;
|
|
}
|
|
|
|
public class LevelAttemptsModel
|
|
{
|
|
private static LevelAttempts _item = ConfigSystem.GetConfig<LevelAttempts>().FirstOrDefault();
|
|
|
|
public static List<string> config_name_list { get; private set; } = !string.IsNullOrEmpty(_item?.user_name)
|
|
? _item.user_name.Split(',').ToList()
|
|
: new List<string>();
|
|
|
|
public static List<string> config_money_list { get; private set; } = !string.IsNullOrEmpty(_item?.amount)
|
|
? _item.amount.Split(',').ToList()
|
|
: new List<string>();
|
|
}
|
|
|
|
[ConfigKey("LevelAttempts")]
|
|
public class LevelAttempts
|
|
{
|
|
public int id;
|
|
public string user_name;
|
|
public string amount;
|
|
}
|
|
} |