PokéRogue
    Preparing search index...

    Class ValueHolder<Value, Base>

    A generic "boxed object" class that can contain any primitive value.
    Used to allow persisting changes to values like numbers and strings between function calls.

    Type Parameters

    • Value

      The value type being held. Must extend from Base for the class to be constructable!

    • Base extends Primitive = Primitive

      The base type to constrain Value's possible values; must be a Primitive

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    Properties

    value: Value & Base

    The stored value.