seiyria / deck.zone

A board game creation tool.
https://deck.zone
22 stars 8 forks source link

support spreadsheet parsing #48

Closed seiyria closed 8 years ago

seiyria commented 8 years ago

this will first require #26 to be done. afterwards, a syntax for iterating over the rows in a google spreadsheet will need to be thought of. that depends entirely on the format of the data.

possibly:

or:

Also, add a loading indicator for loading resources.

possibly require a for-in loop with the sheet names to parse?

loop =  <sheet> in { "Mage", "Cleric", "Warrior", "Thief" }
  loop = <row> in <<resourceId>>:<sheet>
    loop = <card> to <row_Quantity>
      text = <card_index>, "<row_Name>", 0, 0, 0, 0
    endloop
  endloop
endloop

add a new directive that lets you set a new card index and use it by binding a variable to the scope because math is hard and dumb