Example #1
0
 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);
 }
Example #2
0
 public static void SetPackage(Foreground.Id id, PackAttribute package)
 {
     SetPackageInternal((int)id, package);
 }
Example #3
0
 public static void SetPackage(Smiley id, PackAttribute package)
 {
     _smileyPacks [id] = package;
 }
Example #4
0
 public static void SetPackage(AuraColor id, PackAttribute package)
 {
     _auraColorPacks[id] = package;
 }
Example #5
0
 public static void SetPackage(AuraShape id, PackAttribute package)
 {
     _auraShapePacks[id] = package;
 }
Example #6
0
 internal static void SetPackageInternal(int id, PackAttribute package)
 {
     _blockPacks[id] = package;
 }