Use List columns for arrays
masterTo represent a simple array in a spreadsheet, use a column type that implements IList<T>.
BakingSheet supports two header styles for lists:
- Flat header:
ColumnName:Index(e.g.,Monsters:1,Monsters:2). - Split header: A parent column name with sub-columns for indices (e.g.,
Monstersas parent,1,2,3as children).
Note: Spreadsheet indices are 1-based.
public class DungeonSheet : Sheet<DungeonSheet.Row>
{
public class Row : SheetRow
{
public string Name { get; private set; }
// Use any supported type as a list
public List<MonsterSheet.Reference> Monsters { get; private set; }
public List<ConsumableSheet.Reference> Loots { get; private set; }
}
}