RoloLudo/RoloLudo.package/SfAsset.class/instance/fromDictionary..st

6 lines
234 B
Smalltalk

accessing
fromDictionary: aDictionary
name := aDictionary at: #Name.
category := ((aDictionary at: 'Asset Type') splitOn: '/') last copyReplaceAll: '_' with: ' '.
abilities := self populateAbilities: (aDictionary at: #Abilities)