Show / Hide Table of Contents

    Class GachaOddsService

    A basic implementation of a gacha odds generation system. GachaOddsService handles calculating the odds of the rewards from within a GachaReward.

    Inheritance
    Object
    GachaOddsService
    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public class GachaOddsService : ServiceBase

    Methods

    CalculatePayoutsOdds(IGachaReward)

    Calculate a list of GachaOdds for a GachaReward and returned them sorted by chance to earn descending. GachaReward for the supplied data.

    Declaration
    public virtual GachaOdds[] CalculatePayoutsOdds(IGachaReward gachaReward)
    Parameters
    Type Name Description
    IGachaReward gachaReward
    Returns
    Type Description
    GachaOdds[]

    CleanupService()

    Declaration
    protected override void CleanupService()

    InitializeService()

    Declaration
    protected override void InitializeService()

    Inject(IResolver)

    Declaration
    public override void Inject(IResolver resolver)
    Parameters
    Type Name Description
    IResolver resolver
    Back to top Copyright © 2020 East Side Games Inc.