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

8 lines
334 B
Smalltalk

accessing
fromDictionary: aDictionary
| tempText |
tempText := (WikiText new content: (aDictionary at: 'Text')) convertMarkdownBold; convertMarkdownLinks.
category := aDictionary at: 'Category'.
name := aDictionary at: 'Name'.
text := tempText content.
(aDictionary includesKey: 'Progress Move') ifTrue: [ self progress: true ]