Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // TODO: some commment
- def main:
- "testing"
- dup match_unit_kind = # {unit case_void case_item case_goal case_hero}
- cpy unit = unit
- let kind = (get_unit_kind unit)
- if |kind == VOID| then:
- case_void
- else: if |kind == ITEM| then:
- case_item
- else: if |kind == GOAL| then:
- case_goal
- else: if |kind == HERO| then:
- case_hero
- else:
- 0
- let half00 = [[[hero00,hero01],[hero02,hero03]],[[hero04,hero05],[hero06,hero07]]]
- dup get_unit_kind = # {unit} ||unit >> 30| & 0b00000011|
- dup get_unit_side = # {unit} ||unit >> 28| & 0b00000011|
- dup get_unit_type = # {unit} ||unit >> 26| & 0b00000011|
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement