/// <summary>Builds this Item</summary> protected override void Build() { ShopEntry = new LandPlotUpgradeRegistry.UpgradeShopEntry() { upgrade = Upgrade, icon = Icon ?? SRObjects.MissingIcon, mainImg = Image ?? Icon ?? SRObjects.MissingImg, cost = Cost, landplotPediaId = PlotPediaID, isUnlocked = IsUnlocked, LandPlotName = PlotID.ToString().ToLower() }; }
public int CompareTo(UserPlotInfo other) { if (this == null && other == null) { return(0); } if (this != null && other == null) { return(1); } if (this == null && other != null) { return(-1); } return(PlotID.CompareTo(other.PlotID)); }