int Favourited { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Favourited property of the Package class represents the number of players who have added this package to their list of favourites. This property is useful for determining the popularity of a package among players.

Usage

To access the Favourited property, you need to have an instance of the Package class. You can then read the property to get the number of times the package has been favourited by players.

Example

// Assuming 'package' is an instance of Sandbox.Package
int numberOfFavourites = package.Favourited;

// Output the number of favourites
// Console.WriteLine($"This package has been favourited {numberOfFavourites} times.");