public AbnormalTypeDivine(string[] data) { Debug.Assert(data.Length == 4); maxStack = int.Parse(data[1]); duration = int.Parse(data[2]); stackDecreseType = (StackDecreaseTypeEnum)Enum.Parse(typeof(StackDecreaseTypeEnum), data[4]); }
public AbnormalTypeHaste(string[] data) { Debug.Assert(data.Length == 5); percentValue = int.Parse(data[1]); maxStack = int.Parse(data[2]); duration = int.Parse(data[3]); stackDecreseType = (StackDecreaseTypeEnum)Enum.Parse(typeof(StackDecreaseTypeEnum), data[4]); }