Show / Hide Table of Contents

    Class Avatar

    Each avatar is represented withing IdleKit with an instance of this class.

    Inheritance
    Object
    Avatar
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public class Avatar

    Constructors

    Avatar()

    Declaration
    public Avatar()

    Avatar(String, String, Boolean, String)

    Declaration
    public Avatar(string id, string source, bool unlockedByDefault, string title)
    Parameters
    Type Name Description
    String id
    String source
    Boolean unlockedByDefault
    String title

    Fields

    _id

    A unique identifier for this avatar.

    Declaration
    protected string _id
    Field Value
    Type Description
    String

    _source

    The source location for this avatar. Could be used to store a URL for an image or an asset name. Should be used for loading this avatar to display it in UI.

    Declaration
    protected string _source
    Field Value
    Type Description
    String

    _title

    A player title that comes as an unlock with this Avatar.

    Declaration
    protected string _title
    Field Value
    Type Description
    String

    _unlockedByDefault

    Determines whether everyone receives this avatar by default when first loading into the game.

    Declaration
    protected bool _unlockedByDefault
    Field Value
    Type Description
    Boolean

    Properties

    ID

    Declaration
    public virtual string ID { get; }
    Property Value
    Type Description
    String

    Source

    Declaration
    public virtual string Source { get; }
    Property Value
    Type Description
    String

    Title

    Declaration
    public virtual string Title { get; }
    Property Value
    Type Description
    String

    UnlockedByDefault

    Declaration
    public virtual bool UnlockedByDefault { get; }
    Property Value
    Type Description
    Boolean
    Back to top Copyright © 2020 East Side Games Inc.