2024-06-02 15:38:08 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using SCHALE.Common.FlatData;
|
|
|
|
|
|
2024-06-03 12:31:34 +00:00
|
|
|
|
namespace SCHALE.Common.Utils
|
2024-06-02 15:38:08 +00:00
|
|
|
|
{
|
|
|
|
|
public enum StudentType
|
|
|
|
|
{
|
|
|
|
|
Normal,
|
|
|
|
|
Unique,
|
|
|
|
|
Event,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class CharacterExcelTExt
|
|
|
|
|
{
|
|
|
|
|
public static StudentType GetStudentType(this CharacterExcelT ch)
|
|
|
|
|
{
|
|
|
|
|
if (!ch.CollectionVisibleEndDate.StartsWith("2099"))
|
|
|
|
|
{
|
|
|
|
|
return StudentType.Unique;
|
2024-06-03 12:31:34 +00:00
|
|
|
|
}
|
|
|
|
|
else if (ch.CombineRecipeId == 0)
|
2024-06-02 15:38:08 +00:00
|
|
|
|
{
|
|
|
|
|
return StudentType.Event;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return StudentType.Normal;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|