namespace ODMO.Commons.Models.Character
{
public sealed partial class CharacterEncyclopediaModel
{
public DateTime TempUpdating { get; set; } = DateTime.Now;
///
/// Creates a new seal.
///
/// Character id.
/// Digimon evolution id.
/// Digimon evolution id.
/// Digimon evolution id.
/// Digimon evolution id.
/// Digimon evolution id.
/// Digimon evolution id.
/// Digimon evolution id.
/// Digimon evolution id.
/// Is reward allowed.
/// Is reward received.
public static CharacterEncyclopediaModel Create(
long characterId,
long digimonEvolutionId,
short level,
short size,
short enchantAT = 0,
short enchantBL = 0,
short enchantCT = 0,
short enchantEV = 0,
short enchantHP = 0,
bool isRewardAllowed = false,
bool isRewardReceived = false
)
{
return new CharacterEncyclopediaModel()
{
CharacterId = characterId,
DigimonEvolutionId = digimonEvolutionId,
Level = level,
Size = size,
EnchantAT = enchantAT,
EnchantBL = enchantBL,
EnchantCT = enchantCT,
EnchantEV = enchantEV,
EnchantHP = enchantHP,
IsRewardAllowed = isRewardAllowed,
IsRewardReceived = isRewardReceived
};
}
///
/// Set Encyclopedia reward as true.
///
public void SetRewardAllowed(bool value = true) => IsRewardAllowed = value;
///
/// Unlocks the target evolution.
///
public void SetRewardReceived(bool value = true) => IsRewardReceived = value;
}
}