Show / Hide Table of Contents

    Class EventLeaderboardsService

    Inheritance
    Object
    LeaderboardsService
    EventLeaderboardsService
    Implements
    ILeaderboardsService
    ITimerListener
    IEventLeaderboardsService
    IService
    Inherited Members
    LeaderboardsService.LeaderboardUpdateInterval
    LeaderboardsService.USERNAME_KEY
    LeaderboardsService._currencyDifferenceSinceLastChange
    LeaderboardsService.CurrencyDifferenceSinceLastChange
    LeaderboardsService._beamableLeaderboards
    LeaderboardsService._eventService
    LeaderboardsService._entityResolver
    LeaderboardsService._beamable
    LeaderboardsService._actionService
    LeaderboardsService._userSavedData
    LeaderboardsService._userStatsService
    LeaderboardsService._leaderboardTools
    LeaderboardsService._timerService
    LeaderboardsService._progress
    LeaderboardsService.Progress
    LeaderboardsService._timerSubscription
    LeaderboardsService.TimerSubscription
    LeaderboardsService.SubscribeTimerListener()
    LeaderboardsService.UnsubscribeTimerListener()
    LeaderboardsService.UpdateProgression(Single)
    LeaderboardsService.GetLeaderboard(String, Int32, Action<List<LeaderboardEntry>>, Int32, Nullable<Int64>, Nullable<Int64>)
    LeaderboardsService.GetLeaderboardAsync(String, Int32, Action<List<LeaderboardEntry>>, Int32, Nullable<Int64>, Nullable<Int64>)
    LeaderboardsService.GetUsernameKey(String)
    LeaderboardsService.SetLeaderboardUsername(String, String, Action<String>)
    LeaderboardsService.SetLeaderboardUsernameAsync(String, String, Action<String>)
    LeaderboardsService.AssertProfanity(String)
    LeaderboardsService.SetLeaderboardScore(String, Double, Dictionary<String, Object>)
    LeaderboardsService.SetLeaderboardScoreAsync(String, Double, IDictionary<String, Object>)
    LeaderboardsService.IncrementLeaderboardScore(String, Double, Dictionary<String, Object>)
    LeaderboardsService.IncrementLeaderboardScoreAsync(String, Double, Dictionary<String, Object>)
    LeaderboardsService.GetLeaderboardUsername(String, Action<String>)
    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public class EventLeaderboardsService : LeaderboardsService, ILeaderboardsService, ITimerListener, IEventLeaderboardsService, IService

    Fields

    _doneEvents

    Declaration
    protected Dictionary<string, EventView> _doneEvents
    Field Value
    Type Description
    Dictionary<String, EventView>

    _projectionService

    Declaration
    protected IProjectionService _projectionService
    Field Value
    Type Description
    IProjectionService

    _runningEventViews

    Declaration
    protected Dictionary<string, EventView> _runningEventViews
    Field Value
    Type Description
    Dictionary<String, EventView>

    Methods

    ClaimRankRewards(String)

    Declaration
    public virtual void ClaimRankRewards(string eventSettingsId)
    Parameters
    Type Name Description
    String eventSettingsId

    CleanupService()

    Declaration
    protected override void CleanupService()
    Overrides
    LeaderboardsService.CleanupService()

    GenerateProjectedFinalScore(ICurrency, IEventSettings)

    Declaration
    protected virtual double GenerateProjectedFinalScore(ICurrency scoreCurrency, IEventSettings eventSettings)
    Parameters
    Type Name Description
    ICurrency scoreCurrency
    IEventSettings eventSettings
    Returns
    Type Description
    Double

    GetCurrentEventLeaderboardScore(Int32, Action<List<LeaderboardEntry>>, Int32, Nullable<Int64>, Nullable<Int64>)

    Declaration
    public virtual void GetCurrentEventLeaderboardScore(int maxLeaderboardEntries, Action<List<LeaderboardEntry>> onLeaderboardRetrieved, int startEntryNumber = 0, long? focusUid = default(long? ), long? appendUid = default(long? ))
    Parameters
    Type Name Description
    Int32 maxLeaderboardEntries
    Action<List<LeaderboardEntry>> onLeaderboardRetrieved
    Int32 startEntryNumber
    Nullable<Int64> focusUid
    Nullable<Int64> appendUid

    GetEventLeaderboardId(String, Action<String>)

    Declaration
    public virtual void GetEventLeaderboardId(string eventSettingsId, Action<string> onLeaderboardIdRetrieved)
    Parameters
    Type Name Description
    String eventSettingsId
    Action<String> onLeaderboardIdRetrieved

    GetEventLeaderboardIdAsync(String, Action<String>)

    Declaration
    protected virtual Task GetEventLeaderboardIdAsync(string eventSettingsId, Action<string> onLeaderboardIdRetrieved)
    Parameters
    Type Name Description
    String eventSettingsId
    Action<String> onLeaderboardIdRetrieved
    Returns
    Type Description
    Task

    GetEventLeaderboardRankRewardIds(String, Action<String[]>)

    Declaration
    public virtual void GetEventLeaderboardRankRewardIds(string eventSettingsId, Action<string[]> onRewardIdsRetrieved)
    Parameters
    Type Name Description
    String eventSettingsId
    Action<String[]> onRewardIdsRetrieved

    GetEventLeaderboardScore(String, Int32, Action<List<LeaderboardEntry>>, Int32, Nullable<Int64>, Nullable<Int64>)

    Declaration
    public virtual void GetEventLeaderboardScore(string eventSettingsId, int maxLeaderboardEntries, Action<List<LeaderboardEntry>> onLeaderboardRetrieved, int startEntryNumber = 0, long? focusUid = default(long? ), long? appendUid = default(long? ))
    Parameters
    Type Name Description
    String eventSettingsId
    Int32 maxLeaderboardEntries
    Action<List<LeaderboardEntry>> onLeaderboardRetrieved
    Int32 startEntryNumber
    Nullable<Int64> focusUid
    Nullable<Int64> appendUid

    GetEventLeaderboardScoreAsync(String, Int32, Action<List<LeaderboardEntry>>, Int32, Nullable<Int64>, Nullable<Int64>)

    Declaration
    protected virtual Task GetEventLeaderboardScoreAsync(string eventSettingsId, int maxLeaderboardEntries, Action<List<LeaderboardEntry>> onLeaderboardRetrieved, int startEntryNumber = 0, long? focusUid = default(long? ), long? appendUid = default(long? ))
    Parameters
    Type Name Description
    String eventSettingsId
    Int32 maxLeaderboardEntries
    Action<List<LeaderboardEntry>> onLeaderboardRetrieved
    Int32 startEntryNumber
    Nullable<Int64> focusUid
    Nullable<Int64> appendUid
    Returns
    Type Description
    Task

    GetRank(String, Action<Int64>)

    Declaration
    public virtual void GetRank(string eventSettingsId, Action<long> onRankRetrieved)
    Parameters
    Type Name Description
    String eventSettingsId
    Action<Int64> onRankRetrieved

    InitializeService()

    Declaration
    protected override void InitializeService()
    Overrides
    LeaderboardsService.InitializeService()

    Inject(IResolver)

    Declaration
    public override void Inject(IResolver resolver)
    Parameters
    Type Name Description
    IResolver resolver
    Overrides
    LeaderboardsService.Inject(IResolver)

    OnBeamableEventDataUpdated(BeamableEventsUpdatedAction)

    Declaration
    protected virtual void OnBeamableEventDataUpdated(BeamableEventsUpdatedAction eventsUpdatedAction)
    Parameters
    Type Name Description
    BeamableEventsUpdatedAction eventsUpdatedAction

    OnContentSetStateAction(SetContentStateAction)

    Declaration
    protected override void OnContentSetStateAction(SetContentStateAction setContentStateAction)
    Parameters
    Type Name Description
    SetContentStateAction setContentStateAction
    Overrides
    LeaderboardsService.OnContentSetStateAction(SetContentStateAction)

    OnCurrencyChangedAction(CurrencyChangedAction)

    Declaration
    protected override void OnCurrencyChangedAction(CurrencyChangedAction action)
    Parameters
    Type Name Description
    CurrencyChangedAction action
    Overrides
    LeaderboardsService.OnCurrencyChangedAction(CurrencyChangedAction)

    OnTimerEnded(Int64)

    Declaration
    public override void OnTimerEnded(long count)
    Parameters
    Type Name Description
    Int64 count
    Overrides
    LeaderboardsService.OnTimerEnded(Int64)

    ProcessEventData(List<EventView>, List<EventView>)

    Declaration
    protected virtual void ProcessEventData(List<EventView> runningEvents, List<EventView> finishedEvents)
    Parameters
    Type Name Description
    List<EventView> runningEvents
    List<EventView> finishedEvents

    RefreshEventViews()

    Declaration
    protected virtual Task RefreshEventViews()
    Returns
    Type Description
    Task

    SetCurrentEventLeaderboardScore(Double, Boolean, Dictionary<String, Object>)

    Declaration
    public virtual void SetCurrentEventLeaderboardScore(double score, bool increment, Dictionary<string, object> stats = null)
    Parameters
    Type Name Description
    Double score
    Boolean increment
    Dictionary<String, Object> stats

    SetEventLeaderboardScore(String, Double, Boolean, Dictionary<String, Object>)

    Declaration
    public virtual void SetEventLeaderboardScore(string eventSettingsId, double score, bool increment, Dictionary<string, object> stats = null)
    Parameters
    Type Name Description
    String eventSettingsId
    Double score
    Boolean increment
    Dictionary<String, Object> stats

    SetEventLeaderboardScoreAsync(String, Double, Boolean, Dictionary<String, Object>)

    Declaration
    protected virtual Task SetEventLeaderboardScoreAsync(string eventSettingsId, double score, bool increment, Dictionary<string, object> stats = null)
    Parameters
    Type Name Description
    String eventSettingsId
    Double score
    Boolean increment
    Dictionary<String, Object> stats
    Returns
    Type Description
    Task

    TryGetExistingEventView(String, out EventView)

    Declaration
    public virtual bool TryGetExistingEventView(string eventSettingsId, out EventView eventView)
    Parameters
    Type Name Description
    String eventSettingsId
    EventView eventView
    Returns
    Type Description
    Boolean

    UpdateCurrentLeaderboardWithDifference()

    Declaration
    protected override void UpdateCurrentLeaderboardWithDifference()
    Overrides
    LeaderboardsService.UpdateCurrentLeaderboardWithDifference()

    Implements

    ILeaderboardsService
    ITimerListener
    IEventLeaderboardsService
    IService
    Back to top Copyright © 2020 East Side Games Inc.