Beamable SDK
Public Member Functions | Public Attributes | List of all members
Beamable.Common.Tournaments.TournamentContent Class Reference

This type defines a Beamable ContentObject subclass for an TournamentService. More...

Inheritance diagram for Beamable.Common.Tournaments.TournamentContent:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Common.Tournaments.TournamentContent:
Collaboration graph
[legend]

Public Member Functions

TournamentTier GetTier (int tierIndex)
 
DateTime GetUTCOfCycle (int cycle)
 
int GetCurrentCycleNumber ()
 
DateTime GetUTCOfCyclesPrior (int cyclesPrior)
 
- Public Member Functions inherited from Beamable.Common.Content.ContentObject
void SetIdAndVersion (string id, string version)
 Set the &id and &version More...
 
void SetManifestID (string manifestID)
 Set the Manifest Id More...
 
ContentObject SetContentName (string newContentName)
 Set the name of the ContentObject More...
 
void BroadcastUpdate ()
 Broadcast an updated changed of the ContentObject field values
 
virtual void Validate (IValidationContext ctx)
 Validate this ContentObject. More...
 
bool HasValidationErrors (IValidationContext ctx, out List< string > errors)
 Determines if the ContentObject has Validation Errors More...
 
bool HasValidationExceptions (IValidationContext ctx, out List< ContentException > exceptions)
 Determines if the ContentObject has Validation Exceptions More...
 
List< ContentValidationExceptionGetMemberValidationErrors (IValidationContext ctx)
 Gets list of the ContentObject has Member Validation Errors
 
string ToJson ()
 Converts the ContentObject to Json More...
 

Public Attributes

new string name = "sample"
 
string anchorTimeUTC = "2020-01-01T12:00:00Z"
 
string cycleDuration = "P1D"
 
int playerLimit
 
List< TournamentTiertiers
 
int stagesPerTier
 
OptionalInt passiveDecayStages
 
Color DefaultEntryColor = TournamentColorConstants.RED
 
Color ChampionColor = TournamentColorConstants.GOLD
 
List< TournamentStageChangestageChanges
 
List< TournamentRankRewardrankRewards
 
List< TournamentScoreRewardscoreRewards
 
TournamentGroupRewards groupRewards
 

Additional Inherited Members

- Static Public Member Functions inherited from Beamable.Common.Content.ContentObject
static string GetContentTypeName (Type contentType)
 Get the TypeName of the ContentObject More...
 
static string GetContentType< TContent > ()
 Get the type of the ContentObject More...
 
static TContent Make< TContent > (string name)
 Make an instance of the ContentObject More...
 
- Static Public Attributes inherited from Beamable.Common.Content.ContentObject
const string TooltipNotFoundDebugFallback1a = "(No Tooltip)"
 
- Properties inherited from Beamable.Common.Content.ContentObject
string ContentVersion [get]
 
string ContentName [get]
 The name of the ContentObject
 
string ContentType [get]
 The type of the ContentObject
 
string Id [get]
 The id of the ContentObject
 
string ManifestID [get]
 The Manifest Id
 
string Version [get]
 The version of the ContentObject
 
string[]?? Tags [getset]
 The tags of the ContentObject
 
- Properties inherited from Beamable.Common.Content.IContentObject
string Id [get]
 The id. A content id is a dot separated string. The right most part is the name of the content. Every part to the left of the name denotes the type of the content.
 
string Version [get]
 The version
 
string[] Tags [get]
 The tags
 
string ManifestID [get]
 
- Events inherited from Beamable.Common.Content.ContentObject
ContentDelegate OnChanged
 Invoked after ContentObject field values change
 

Detailed Description

This type defines a Beamable ContentObject subclass for an TournamentService.

Related Links

img beamable-logo

Member Data Documentation

◆ rankRewards

List<TournamentRankReward> Beamable.Common.Tournaments.TournamentContent.rankRewards
Initial value:
= new List<TournamentRankReward>
{
new TournamentRankReward
{
name = "Winner",
tier = 0,
minRank = new OptionalInt { HasValue = true, Value = 1},
maxRank = new OptionalInt { HasValue = true, Value = 1},
stageMin = new OptionalInt { HasValue = true, Value = 1},
stageMax = new OptionalInt { HasValue = true, Value = 1},
currencyRewards = new List<CurrencyAmount>()
}
}

◆ scoreRewards

List<TournamentScoreReward> Beamable.Common.Tournaments.TournamentContent.scoreRewards
Initial value:
= new List<TournamentScoreReward>
{
new TournamentScoreReward
{
name = "Winner Score",
tier = 0,
minScore = 1.0,
maxScore = new OptionalDouble { HasValue = true, Value = 1.0},
stageMin = new OptionalInt { HasValue = true, Value = 1},
stageMax = new OptionalInt { HasValue = true, Value = 1},
currencyRewards = new List<CurrencyAmount>()
}
}

◆ stageChanges

List<TournamentStageChange> Beamable.Common.Tournaments.TournamentContent.stageChanges
Initial value:
= new List<TournamentStageChange>
{
new TournamentStageChange {minRank = 1, maxRank = 1, delta = 2, color = TournamentColorConstants.GOLD},
new TournamentStageChange {minRank = 2, maxRank = 2, delta = 2, color = TournamentColorConstants.SILVER},
new TournamentStageChange {minRank = 3, maxRank = 3, delta = 2, color = TournamentColorConstants.BRONZE},
new TournamentStageChange {minRank = 4, maxRank = 10, delta = 1},
new TournamentStageChange {minRank = 11, maxRank = 20, delta = 0, color = TournamentColorConstants.GREY},
new TournamentStageChange {minRank = 41, maxRank = 50, delta = -1, color = TournamentColorConstants.RED}
}

◆ tiers

List<TournamentTier> Beamable.Common.Tournaments.TournamentContent.tiers
Initial value:
= new List<TournamentTier>
{
new TournamentTier {color = TournamentColorConstants.BRONZE, name = "Bronze"},
new TournamentTier {color = TournamentColorConstants.SILVER, name = "Silver"},
new TournamentTier {color = TournamentColorConstants.GOLD, name = "Gold"}
}

The documentation for this class was generated from the following file: