Synchronizing the remote repository with the local one.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2021-05-17 17:46:44 -05:00
parent 265b124c84
commit f9c43d1db1
26 changed files with 119 additions and 0 deletions

3
.project Normal file
View File

@ -0,0 +1,3 @@
{
'srcDirectory' : ''
}

3
.properties Normal file
View File

@ -0,0 +1,3 @@
{
#format : #filetree
}

View File

@ -0,0 +1,5 @@
{
"separateMethodMetaAndSource" : false,
"noMethodMetaData" : true,
"useCypressPropertiesFile" : true
}

View File

@ -0,0 +1,6 @@
I model an asset of the Ironsworn Starforged Tabletop Roleplaying Game.
More information at:
[1] https://www.ironswornrpg.com/
[2] https://www.kickstarter.com/projects/shawntomkin/ironsworn-starforged

View File

@ -0,0 +1,4 @@
accessing
abilities: abilitiesDictionary
"Keys are 'enabled' and 'disbled' and both contain arrays of text with abities."
abilities := abilitiesDictionary

View File

@ -0,0 +1,6 @@
accessing
abilities
^ abilities ifNil: [ abilities := Dictionary new
at: 'enabled' put: OrderedCollection new;
at: 'disabled' put: OrderedCollection new;
yourself ]

View File

@ -0,0 +1,3 @@
accessing
category: anObject
category := anObject

View File

@ -0,0 +1,3 @@
accessing
category
^ category

View File

@ -0,0 +1,6 @@
accessing
fromDictionary: aDictionary
name := aDictionary at: #Name.
category := aDictionary at: #Category.
abilities := self populateAbilities: (aDictionary at: #Abilities)

View File

@ -0,0 +1,3 @@
accessing
language: anObject
language := anObject

View File

@ -0,0 +1,3 @@
accessing
language
^ language

View File

@ -0,0 +1,3 @@
accessing
name: anObject
name := anObject

View File

@ -0,0 +1,3 @@
accessing
name
^ name

View File

@ -0,0 +1,10 @@
accessing
populateAbilities: abilitiesDictionary
| enabled disabled |
enabled := abilitiesDictionary select: [ :abi | abi keys includes: 'Enabled' ].
disabled := abilitiesDictionary reject: [ :abi | abi keys includes: 'Enabled' ].
^ self abilities
at: 'enabled' put: (enabled collect: [:abi | (abi at: 'Text') ]);
at: 'disabled' put: (disabled collect: [:abi | (abi at: 'Text') ]);
yourself.

View File

@ -0,0 +1,4 @@
accessing
translations: translationsDictory
"Keys are ISO two letters language codes and values are the names of the asset in such language."
translations := translationsDictory

View File

@ -0,0 +1,3 @@
accessing
translations
^ translations

View File

@ -0,0 +1,17 @@
{
"commentStamp" : "<historical>",
"super" : "Object",
"category" : "RoloLudo",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"name",
"category",
"abilities",
"language",
"translations"
],
"name" : "SfAsset",
"type" : "normal"
}

View File

@ -0,0 +1,4 @@
I model a collection of Starforged assets.
I use as inspiration the data provided by @rsek at this repostory:
https://github.com/rsek/datasworn

View File

@ -0,0 +1,8 @@
accessing
fromUrlString: aString language: isoCode
| rawData |
rawData := STON fromString: aString asUrl retrieveContents.
self items: ((rawData at: 'Assets') collect: [:assetDict |
SfAsset new fromDictionary: assetDict; language: isoCode ])

View File

@ -0,0 +1,3 @@
accessing
items: anObject
items := anObject

View File

@ -0,0 +1,3 @@
accessing
items
^ items ifNil: [ items := OrderedCollection ]

View File

@ -0,0 +1,13 @@
{
"commentStamp" : "GlamorousAuthor 5/17/2021 16:41",
"super" : "Object",
"category" : "RoloLudo",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"items"
],
"name" : "SfAssets",
"type" : "normal"
}

View File

@ -0,0 +1 @@
SystemOrganization addCategory: #RoloLudo!

View File

@ -0,0 +1 @@
(name 'RoloLudo')

View File

@ -0,0 +1 @@
{ }