• ZILtoid1991@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      12 hours ago

      Gender is a struct

      struct Gender {
        byte binaryBias;    ///Determines male (+) or female (-) bias if present
        ubyte binaryAm;    ///Determines the amount of binary gender(s) present
        bool isTrans;    ///True if assigned at birth gender does not equal with current one
        ubyte xenoAm;    ///Determines the amount of xenogender
        uint xenoGen;    ///Xenogender selection, 0 if not applicable
        Sex* sex;    ///Pointer to the person's current sex
      }
      
      • alex@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        59 minutes ago

        That’s a lot of implementation detail. Is there just a service interface I can inject to know what bathroom a person’s RFID fob should open?

      • activ8r
        link
        fedilink
        English
        arrow-up
        2
        ·
        9 hours ago

        Now this is a gender definition I can get behind. None of that string/enum crap, just raw data.