public KillScreenOptionModule(KillScreenOptionTypeModule param1 = null, PriceModule param2 = null, bool param3 = false, int param4 = 0, MessageLocalizedWildcardCommand param5 = null, MessageLocalizedWildcardCommand param6 = null, MessageLocalizedWildcardCommand param7 = null, MessageLocalizedWildcardCommand param8 = null) { if (param1 == null) { this.repairType = new KillScreenOptionTypeModule(); } else { this.repairType = param1; } if (param2 == null) { this.price = new PriceModule(); } else { this.price = param2; } this.affordableForPlayer = param3; this.cooldownTime = param4; if (param5 == null) { this.descriptionKey = new MessageLocalizedWildcardCommand(); } else { this.descriptionKey = param5; } if (param6 == null) { this.descriptionKeyAddon = new MessageLocalizedWildcardCommand(); } else { this.descriptionKeyAddon = param6; } if (param7 == null) { this.toolTipKey = new MessageLocalizedWildcardCommand(); } else { this.toolTipKey = param7; } if (param8 == null) { this.buttonKey = new MessageLocalizedWildcardCommand(); } else { this.buttonKey = param8; } }
public void Read(IDataInput param1, ICommandLookup lookup) { this.descriptionKey = lookup.Lookup(param1) as MessageLocalizedWildcardCommand; this.descriptionKey.Read(param1, lookup); this.cooldownTime = param1.ReadInt(); this.cooldownTime = param1.Shift(this.cooldownTime, 25); this.descriptionKeyAddon = lookup.Lookup(param1) as MessageLocalizedWildcardCommand; this.descriptionKeyAddon.Read(param1, lookup); this.buttonKey = lookup.Lookup(param1) as MessageLocalizedWildcardCommand; this.buttonKey.Read(param1, lookup); this.repairType = lookup.Lookup(param1) as KillScreenOptionTypeModule; this.repairType.Read(param1, lookup); param1.ReadShort(); this.toolTipKey = lookup.Lookup(param1) as MessageLocalizedWildcardCommand; this.toolTipKey.Read(param1, lookup); this.price = lookup.Lookup(param1) as PriceModule; this.price.Read(param1, lookup); this.affordableForPlayer = param1.ReadBoolean(); }