Beamable SDK
Public Member Functions | Public Attributes | List of all members
DisruptorBeam.Content.TournamentContent Class Reference
Inheritance diagram for DisruptorBeam.Content.TournamentContent:
Inheritance graph
[legend]
Collaboration diagram for DisruptorBeam.Content.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 DisruptorBeam.Content.ContentObject
void SetIdAndVersion (string id, string version)
 
ContentObject SetContentName (string name)
 
ContentObject SetContentMetadata (string name, string version)
 
void BroadcastUpdate ()
 
virtual void Validate ()
 Validate this ContentObject. More...
 
bool HasValidationErrors (out List< string > errors)
 
List< ContentValidationExceptionGetMemberValidationErrors ()
 
string ToJson ()
 
void SetIdAndVersion (string id, string version)
 

Public Attributes

new string name = "sample"
 
string anchorTimeUTC = "2020-01-01T12:00:00Z"
 
readonly string cycleDuration = "P1D"
 
int playerLimit
 
List< TournamentTiertiers
 
int stagesPerTier
 
Color DefaultEntryColor = TournamentColorConstants.RED
 
Color ChampionColor = TournamentColorConstants.GOLD
 
List< TournamentStageChangestageChanges
 
List< TournamentRankRewardrankRewards
 
- Public Attributes inherited from DisruptorBeam.Content.ContentObject
string ContentVersion => Version
 
string ContentType => GetContentTypeName(GetType())
 
string Id => $"{ContentType}.{ContentName}"
 
- Public Attributes inherited from UnityEngine.ScriptableObject
string name
 

Additional Inherited Members

- Static Public Member Functions inherited from DisruptorBeam.Content.ContentObject
static string GetContentTypeName (Type contentType)
 Serialize this content into a json block, containing ONLY the properties object. Ex: { "sample": { "data": 4 }, "sample2": { "data": { "nested": 5 } } } More...
 
static string GetContentType< TContent > ()
 
static TContent Make< TContent > (string name)
 
static string GetContentType (Type contentType)
 
static string GetContentType< TContent > ()
 
- Properties inherited from DisruptorBeam.Content.ContentObject
string ContentName [get]
 
string Version [get, set]
 
string[]?? Tags [get, set]
 
- Properties inherited from Beamable.Common.Content.IContentObject
string Id [get]
 
string Version [get]
 
string[] Tags [get]
 
- Events inherited from DisruptorBeam.Content.ContentObject
ContentDelegate OnChanged
 

Member Data Documentation

◆ rankRewards

List<TournamentRankReward> DisruptorBeam.Content.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>()
}
}

◆ stageChanges

List<TournamentStageChange> DisruptorBeam.Content.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> DisruptorBeam.Content.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: