public static LevelUpDefinition ReadFromFile(ResourceDataFile reader) { LevelUpDefinition def = new LevelUpDefinition(); def.DefinitionId = reader.ReadInt(); def.HpRange = reader.ReadSpan(); def.MpRange = reader.ReadSpan(); def.ApRange = reader.ReadSpan(); def.DpRange = reader.ReadSpan(); def.DxRange = reader.ReadSpan(); return(def); }
public static TransferDefinition ReadFromFile(ResourceDataFile reader) { TransferDefinition def = new TransferDefinition(); def.DefinitionId = reader.ReadInt(); def.ToDefinitionId = reader.ReadInt(); def.RequireItemId = reader.ReadInt(); def.ApRange = reader.ReadSpan(); def.DpRange = reader.ReadSpan(); def.DxRange = reader.ReadSpan(); def.HpRange = reader.ReadSpan(); def.MpRange = reader.ReadSpan(); def.MvRange = reader.ReadSpan(); return(def); }