Advertisement
tinyevil

Untitled

Mar 1st, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. struct Reward{
  2. u8 tag;
  3.  
  4. union{
  5. //Nothing
  6.  
  7. //Coins
  8. Positive num;
  9.  
  10. //Str
  11. String id;
  12. } payload;
  13. }
  14.  
  15. struct LootReward{
  16. u8 tag;
  17.  
  18. union{
  19. //Nothing
  20.  
  21. //Coins
  22. Positive num;
  23.  
  24. //Str
  25. String id;
  26.  
  27. //Exp
  28. Positive amount;
  29. } payload;
  30. };
  31.  
  32. struct ExtendPast255Tags{
  33. u8 tag;
  34.  
  35.  
  36. union{
  37. //Nothing
  38.  
  39. //Coins
  40. Positive num;
  41.  
  42. //Str
  43. String id;
  44.  
  45. //Exp
  46. Positive amount;
  47.  
  48. struct {
  49. u16 extra_tag;
  50.  
  51. union{
  52. //constructors past 255th
  53. } payload;
  54. } extra;
  55. } payload;
  56. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement