Module necro.game.item.Currency

Functions

add (entity, currencyType, amount, item)
collect (entity, currencyType, amount)
create (currencyType, x, y, amount)
get (entity, currencyType)
getItemForAmount (currencyType, amount)
hasComponent (entity, currencyType)
lookUpEntityType (currencyType, amount)
set (entity, currencyType, amount, item)
subtract (entity, currencyType, amount, item)

Tables

Type


Functions

add (entity, currencyType, amount, item)

Parameters:

  • entity
  • currencyType
  • amount
  • item
collect (entity, currencyType, amount)

Parameters:

  • entity
  • currencyType
  • amount
create (currencyType, x, y, amount)

Parameters:

  • currencyType
  • x
  • y
  • amount
get (entity, currencyType)

Parameters:

  • entity
  • currencyType
getItemForAmount (currencyType, amount)

Parameters:

  • currencyType
  • amount
hasComponent (entity, currencyType)

Parameters:

  • entity
  • currencyType
lookUpEntityType (currencyType, amount)

Parameters:

  • currencyType
  • amount
set (entity, currencyType, amount, item)

Parameters:

  • entity
  • currencyType
  • amount
  • item
subtract (entity, currencyType, amount, item)

Parameters:

  • entity
  • currencyType
  • amount
  • item

Tables

Type

Fields:

  • GOLD "gold"
  • DIAMOND "diamond"
generated by LDoc 1.4.6