theangryangel/insim.rs

feat: IS_SMALL - strongly typing SubT & UVal

theangryangel opened this issue · 1 comments

I’ve completely ignored IS_SMALL and the uval field. That probably needs rectifying.

Easiest solution: UVAL is moved into the SmallType enum. i.e. (not real code).

enum SmallType {
  None,
  Ssp,
  Ssg,
  Vta(VoteType),
  … LCS(LcsType)
}

struct Small {
  reqi: RequestId,
  subt: SmallType,
}