private bool HasPack(PackAttribute pack) { if (pack == null) { return(true); } if (pack.AdminOnly) { return(this.PlayerObject.IsAdministrator); } if (pack.GoldMembershipItem) { return(this.PlayerObject.ClubMember); } return(this.ShopData.GetCount(pack.Package) > 0); }
public static void SetPackage(Foreground.Id id, PackAttribute package) { SetPackageInternal((int)id, package); }
public static void SetPackage(Smiley id, PackAttribute package) { _smileyPacks [id] = package; }
public static void SetPackage(AuraColor id, PackAttribute package) { _auraColorPacks[id] = package; }
public static void SetPackage(AuraShape id, PackAttribute package) { _auraShapePacks[id] = package; }
internal static void SetPackageInternal(int id, PackAttribute package) { _blockPacks[id] = package; }