public static RawRewardThreshold Read(Stream input, Endian endian) { var instance = new RawRewardThreshold(); instance.Threshold = input.ReadValueS64(endian); instance.Reward = RawReward.Read(input, endian); return(instance); }
public static RawTask Read(Stream input, Endian endian) { var instance = new RawTask(); instance.Name = input.ReadValueU32(endian); instance.TaskGroup = input.ReadValueU32(endian); instance.Type = input.ReadValueS32(endian); instance.ProvinceWeight = input.ReadValueS32(endian); instance.LiberationPercent = input.ReadValueS32(endian); instance.RepeatableRewardSemantics = input.ReadValueS32(endian); instance.RepeatableReward = RawReward.Read(input, endian); instance.RewardThresholdOffset = input.ReadValueS64(endian); instance.RewardThresholdCount = input.ReadValueS64(endian); instance.PrerequisiteOffset = input.ReadValueS64(endian); instance.PrerequisiteCount = input.ReadValueS64(endian); instance.HasChurch = input.ReadValueS32(endian); instance.ShownOnMap = input.ReadValueS32(endian); instance.UIName = input.ReadValueU32(endian); instance.UIDescription = input.ReadValueU32(endian); instance.UITip = input.ReadValueU32(endian); instance.UIOrderHint = input.ReadValueS32(endian); return(instance); }