Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LoggedInLevel

Details about a level, including its full representation and created by a logged in user

Hierarchy

Index

Properties

award

award: Award

The award the level has recieved

coins

coins: Coins

The level's coins

creator

creator: LoggedInUser

description

description: string

The level's description

diamonds

diamonds: number

The number of diamonds the level gives

difficulty

difficulty: { level: DifficultyLevel; requestedStars: number; stars: number }

The level's difficulty rating

Type declaration

  • level: DifficultyLevel

    The difficulty level

  • requestedStars: number

    The number of stars the creator requested

  • stars: number

    The number of stars the level received. Will be 0 if it has no rating

gameVersion

gameVersion: number

The game version in which the level was built

id

id: number

The level's ID. If you are creating a new level, this is 0

name

name: string

The name of the level

orbs

orbs: number

The number of orbs the level gives

Optional original

original: number

The ID of the original level the level was copied from. Only exists if the level was copied

song

song: Song

The song the level uses

stats

stats: { downloads: number; length: LevelLength; likes: number; objects: number }

The level's statistics

Type declaration

  • downloads: number

    The number of downloads the level has received

  • length: LevelLength

    The length of the level

  • likes: number

    The number of likes the level has received

  • objects: number

    The number of objects in the level

version

version: number

The level's version

Methods

getComments

getCreator

resolve

updateDescription

  • updateDescription(desc: string): Promise<boolean>
  • Updates the description of the level

    Parameters

    • desc: string

      The new description of the level

    Returns Promise<boolean>

    Whether setting the new description succeeded

Generated using TypeDoc