Skip to content

Commit

Permalink
first
Browse files Browse the repository at this point in the history
Signed-off-by: Water <[email protected]>
  • Loading branch information
WaterKnight committed Apr 26, 2023
0 parents commit 6fd9aca
Show file tree
Hide file tree
Showing 12 changed files with 1,219 additions and 0 deletions.
92 changes: 92 additions & 0 deletions w3-doo.ksy
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
meta:
id: w3_doo
file-extension: doo
endian: le
seq:
- id: file_id
type: u4
- id: version
type: u4
- id: sub_version
type: u4
- id: doodads_amount
type: u4
- id: doodad
type: doodad
repeat: expr
repeat-expr: doodads_amount
- id: special_doodad_version
type: u4
- id: special_doodads_amount
type: u4
- id: special_doodad
type: special_doodad
repeat: expr
repeat-expr: special_doodads_amount
types:
w3id:
seq:
- id: value
encoding: ASCII
size: 4
type: str
doodad:
seq:
- id: id
type: w3id
- id: variation
type: u4
- id: x
type: f4
- id: y
type: f4
- id: z
type: f4
- id: angle
type: f4
- id: scale_x
type: f4
- id: scale_y
type: f4
- id: scale_z
type: f4
- id: skin_id
type: w3id
- id: flags
type: u1
- id: life
type: u1
- id: random_item_set_ptr
type: u4
- id: item_sets_amount
type: u4
- id: item_set
type: item_set
repeat: expr
repeat-expr: item_sets_amount
- id: editor_id
type: u4
item_set:
seq:
- id: items_amount
type: u4
- id: item
type: item
repeat: expr
repeat-expr: items_amount
item:
seq:
- id: id
type: w3id
- id: chance
type: u4
special_doodad:
seq:
- id: id
type: w3id
- id: x
type: f4
- id: y
type: f4
- id: z
type: f4
170 changes: 170 additions & 0 deletions w3-dooUnits.ksy
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
meta:
id: w3_doo_units
file-extension: doo
endian: le
seq:
- id: file_id
type: w3id
- id: version
type: u4
- id: sub_version
type: u4
- id: units_amount
type: u4
- id: unit
type: unit
repeat: expr
repeat-expr: units_amount
types:
w3id:
seq:
- id: value
encoding: UTF-8
size: 4
type: str
unit:
seq:
- id: id
type: w3id
- id: variation
type: u8
- id: x
type: f4
- id: y
type: f4
- id: z
type: f4
- id: angle
type: f4
- id: scale_x
type: f4
- id: scale_y
type: f4
- id: scale_z
type: f4
#- id: skin_id
# type: w3id
- id: flags
type: u1
- id: owner_index
type: u4
- id: unknown_1
type: u1
- id: unknown_2
type: u1
- id: life
type: u4
- id: mana
type: u4
- id: dropped_item_set_ptr
type: u4
- id: dropped_item_sets_amount
type: u4
- id: dropped_item_set
type: item_set
repeat: expr
repeat-expr: dropped_item_sets_amount
- id: resources_amount
type: u4
- id: target_aquisition
type: f4
- id: hero_level
type: u4
- id: hero_strength
type: u4
- id: hero_agility
type: u4
- id: hero_intelligence
type: u4
- id: inventory_items_amount
type: u4
- id: inventory_item
type: inventory_item
repeat: expr
repeat-expr: inventory_items_amount
- id: ability_mods_amount
type: u4
- id: ability_mod
type: ability_mod
repeat: expr
repeat-expr: ability_mods_amount
- id: random
type: random
- id: color
type: u4
- id: waygate
type: u4
- id: unit_id
type: u4
item_set:
seq:
- id: items_amount
type: u4
- id: item
type: item
item:
seq:
- id: id
type: w3id
- id: chance
type: u4
inventory_item:
seq:
- id: slot
type: u4
- id: id
type: w3id
ability_mod:
seq:
- id: id
type: w3id
- id: autocast_active
type: u4
enum: autocast_active
- id: level
type: u4
random:
seq:
- id: random_type
type: u4
- id: value
type:
switch-on: random_type
cases:
0: random_building_item
1: w3i_group
2: custom_group
random_building_item:
seq:
- id: level
type: u1
- id: unknown_1
type: u1
- id: unknown_2
type: u1
- id: item_class
type: u1
w3i_group:
seq:
- id: index
type: u4
- id: column_index
type: u4
custom_group:
seq:
- id: units_amount
type: u4
- id: unit
type: unit
repeat: expr
repeat-expr: units_amount
unit:
seq:
- id: id
type: w3id
- id: chance
type: u4
enums:
autocast_active:
0: inactive
1: active
46 changes: 46 additions & 0 deletions w3-mmp.ksy
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
meta:
id: w3_mmp
file-extension: mmp
endian: le
seq:
- id: version
type: u4
- id: icons_chunk
type: icons_chunk
types:
icons_chunk:
seq:
- id: icons_amount
type: u4
- id: icon
type: icon
repeat: expr
repeat-expr: icons_amount
icon:
seq:
- id: icon_type
type: u4
enum: icon_type
- id: x
type: u4
- id: y
type: u4
- id: color
type: color
color:
seq:
- id: blue
type: u1
- id: green
type: u1
- id: red
type: u1
- id: alpha
type: u1
enums:
icon_type:
0: gold_mine
1: house
2: player_start
3: neutral
4: neutral_small
8 changes: 8 additions & 0 deletions w3-shd.ksy
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
meta:
id: w3_shd
file-extension: shd
endian: le
seq:
- id: shadow_node
type: u1
repeat: eos
Loading

0 comments on commit 6fd9aca

Please sign in to comment.