mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-05 06:00:29 -04:00
Lot format 3.0
This JSON conversation is lot more readable, to say the least. xD
This commit is contained in:
parent
ac29443425
commit
445d8a6a08
4 changed files with 7770 additions and 12 deletions
13
src/lot.zig
13
src/lot.zig
|
@ -5,12 +5,8 @@ pub const Floor = struct {
|
|||
value: u8,
|
||||
};
|
||||
|
||||
pub const Floors = struct {
|
||||
floor: []Floor,
|
||||
};
|
||||
|
||||
pub const World = struct {
|
||||
floors: Floors,
|
||||
floors: []Floor,
|
||||
walls: u8,
|
||||
};
|
||||
|
||||
|
@ -23,13 +19,10 @@ pub const Item = struct {
|
|||
group: u8,
|
||||
};
|
||||
|
||||
pub const Items = struct {
|
||||
Item: []Item,
|
||||
};
|
||||
|
||||
pub const House = struct {
|
||||
version: f32,
|
||||
size: u8,
|
||||
category: u8,
|
||||
world: World,
|
||||
items: Item,
|
||||
items: []Item,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue