Skip to content
On this page

RpgResource


  • Property: spritesheets
  • Type: Map< string, string >
  • Optional: false
  • Usage:

Get/Set images in resources

ts
import { RpgResource } from '@rpg/client'
   const fileLink = RpgResource.spritesheets.get('resource_id')

  • Property: sounds
  • Type: Map< string, string >
  • Optional: false
  • Usage:

Get/Set sounds in resources

ts
import { RpgResource } from '@rpg/client'
   const fileLink = RpgResource.sounds.get('resource_id')