Synchronizing the remote repository with the local one.
This commit is contained in:
parent
265b124c84
commit
f9c43d1db1
3
.properties
Normal file
3
.properties
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
#format : #filetree
|
||||||
|
}
|
5
RoloLudo.package/.filetree
Normal file
5
RoloLudo.package/.filetree
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"separateMethodMetaAndSource" : false,
|
||||||
|
"noMethodMetaData" : true,
|
||||||
|
"useCypressPropertiesFile" : true
|
||||||
|
}
|
6
RoloLudo.package/SfAsset.class/README.md
Normal file
6
RoloLudo.package/SfAsset.class/README.md
Normal 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
|
4
RoloLudo.package/SfAsset.class/instance/abilities..st
Normal file
4
RoloLudo.package/SfAsset.class/instance/abilities..st
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
accessing
|
||||||
|
abilities: abilitiesDictionary
|
||||||
|
"Keys are 'enabled' and 'disbled' and both contain arrays of text with abities."
|
||||||
|
abilities := abilitiesDictionary
|
6
RoloLudo.package/SfAsset.class/instance/abilities.st
Normal file
6
RoloLudo.package/SfAsset.class/instance/abilities.st
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
accessing
|
||||||
|
abilities
|
||||||
|
^ abilities ifNil: [ abilities := Dictionary new
|
||||||
|
at: 'enabled' put: OrderedCollection new;
|
||||||
|
at: 'disabled' put: OrderedCollection new;
|
||||||
|
yourself ]
|
3
RoloLudo.package/SfAsset.class/instance/category..st
Normal file
3
RoloLudo.package/SfAsset.class/instance/category..st
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
accessing
|
||||||
|
category: anObject
|
||||||
|
category := anObject
|
3
RoloLudo.package/SfAsset.class/instance/category.st
Normal file
3
RoloLudo.package/SfAsset.class/instance/category.st
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
accessing
|
||||||
|
category
|
||||||
|
^ category
|
@ -0,0 +1,6 @@
|
|||||||
|
accessing
|
||||||
|
fromDictionary: aDictionary
|
||||||
|
name := aDictionary at: #Name.
|
||||||
|
category := aDictionary at: #Category.
|
||||||
|
abilities := self populateAbilities: (aDictionary at: #Abilities)
|
||||||
|
|
3
RoloLudo.package/SfAsset.class/instance/language..st
Normal file
3
RoloLudo.package/SfAsset.class/instance/language..st
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
accessing
|
||||||
|
language: anObject
|
||||||
|
language := anObject
|
3
RoloLudo.package/SfAsset.class/instance/language.st
Normal file
3
RoloLudo.package/SfAsset.class/instance/language.st
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
accessing
|
||||||
|
language
|
||||||
|
^ language
|
3
RoloLudo.package/SfAsset.class/instance/name..st
Normal file
3
RoloLudo.package/SfAsset.class/instance/name..st
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
accessing
|
||||||
|
name: anObject
|
||||||
|
name := anObject
|
3
RoloLudo.package/SfAsset.class/instance/name.st
Normal file
3
RoloLudo.package/SfAsset.class/instance/name.st
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
accessing
|
||||||
|
name
|
||||||
|
^ name
|
@ -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.
|
4
RoloLudo.package/SfAsset.class/instance/translations..st
Normal file
4
RoloLudo.package/SfAsset.class/instance/translations..st
Normal 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
|
3
RoloLudo.package/SfAsset.class/instance/translations.st
Normal file
3
RoloLudo.package/SfAsset.class/instance/translations.st
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
accessing
|
||||||
|
translations
|
||||||
|
^ translations
|
17
RoloLudo.package/SfAsset.class/properties.json
Normal file
17
RoloLudo.package/SfAsset.class/properties.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"commentStamp" : "<historical>",
|
||||||
|
"super" : "Object",
|
||||||
|
"category" : "RoloLudo",
|
||||||
|
"classinstvars" : [ ],
|
||||||
|
"pools" : [ ],
|
||||||
|
"classvars" : [ ],
|
||||||
|
"instvars" : [
|
||||||
|
"name",
|
||||||
|
"category",
|
||||||
|
"abilities",
|
||||||
|
"language",
|
||||||
|
"translations"
|
||||||
|
],
|
||||||
|
"name" : "SfAsset",
|
||||||
|
"type" : "normal"
|
||||||
|
}
|
4
RoloLudo.package/SfAssets.class/README.md
Normal file
4
RoloLudo.package/SfAssets.class/README.md
Normal 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
|
@ -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 ])
|
||||||
|
|
3
RoloLudo.package/SfAssets.class/instance/items..st
Normal file
3
RoloLudo.package/SfAssets.class/instance/items..st
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
accessing
|
||||||
|
items: anObject
|
||||||
|
items := anObject
|
3
RoloLudo.package/SfAssets.class/instance/items.st
Normal file
3
RoloLudo.package/SfAssets.class/instance/items.st
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
accessing
|
||||||
|
items
|
||||||
|
^ items ifNil: [ items := OrderedCollection ]
|
13
RoloLudo.package/SfAssets.class/properties.json
Normal file
13
RoloLudo.package/SfAssets.class/properties.json
Normal 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"
|
||||||
|
}
|
1
RoloLudo.package/monticello.meta/categories.st
Normal file
1
RoloLudo.package/monticello.meta/categories.st
Normal file
@ -0,0 +1 @@
|
|||||||
|
SystemOrganization addCategory: #RoloLudo!
|
0
RoloLudo.package/monticello.meta/initializers.st
Normal file
0
RoloLudo.package/monticello.meta/initializers.st
Normal file
1
RoloLudo.package/monticello.meta/package
Normal file
1
RoloLudo.package/monticello.meta/package
Normal file
@ -0,0 +1 @@
|
|||||||
|
(name 'RoloLudo')
|
1
RoloLudo.package/properties.json
Normal file
1
RoloLudo.package/properties.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{ }
|
Loading…
Reference in New Issue
Block a user