-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chen Asraf
committed
Jun 16, 2020
1 parent
d6f9692
commit 43f6184
Showing
13 changed files
with
89 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import 'package:dungeon_world_data/dw_data.dart'; | ||
|
||
void main() { | ||
// Get bard class | ||
var bard = dungeonWorld.classes.firstWhere((k) => k.key == 'bard'); | ||
// Get all bard advanced moves | ||
|
||
var moves = bard.advancedMoves1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import 'package:dungeon_world_data/dw_data.dart'; | ||
|
||
void main() { | ||
// Get inventory items | ||
var equipment1 = dungeonWorld.equipment.first; | ||
|
||
// Get gear choices for class | ||
|
||
var bard = dungeonWorld.classes.firstWhere((k) => k.key == 'bard'); | ||
var gearChoices1 = bard.gearChoices.map((i) => i.toJSON()).toList(); | ||
; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import 'package:dungeon_world_data/dw_data.dart'; | ||
|
||
void main() { | ||
// Get all monsters | ||
var monsters = dungeonWorld.monsters.map((monster) => monster.name); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import 'package:dungeon_world_data/dw_data.dart'; | ||
|
||
void main() { | ||
var bard = dungeonWorld.classes.firstWhere((k) => k.key == 'bard'); | ||
var thief = dungeonWorld.classes.firstWhere((k) => k.key == 'thief'); | ||
|
||
// Flattened move lists | ||
var moves1 = bard.advancedMoves1; | ||
var moves2 = dungeonWorld.basicMoves.first; | ||
var moves3 = thief.startingMoves; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import 'package:dungeon_world_data/dw_data.dart'; | ||
|
||
void main() { | ||
// Get all spells | ||
var spell1 = dungeonWorld.spells.first; | ||
|
||
// Get spells for class | ||
var wizard = dungeonWorld.classes.firstWhere((k) => k.key == 'wizard'); | ||
var spells1 = wizard.spells; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import 'package:dungeon_world_data/dw_data.dart'; | ||
|
||
void main() { | ||
// Parse tags from objects or strings | ||
var tag1 = Tag.fromJSON({'weight': 1}); | ||
var tag2 = Tag.fromJSON('{coins: 3}'); | ||
var tag3 = Tag.fromJSON('close'); | ||
|
||
// All info tags | ||
var tagInfos = dungeonWorld.tags; | ||
|
||
// Get tags from spells, equipment | ||
var tags1 = dungeonWorld.spells.first.tags; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters