Delta-Pack - v0.2.9
    Preparing search index...

    Function UIntType

    • Create an unsigned integer type (min=0) with optional max bound.

      Shorthand for IntType({ min: 0, max }). Useful for counts, sizes, and other naturally non-negative values.

      Parameters

      • Optionaloptions: { max?: string | number }

        Optional upper bound

        • Optionalmax?: string | number

          Maximum allowed value (inclusive)

      Returns UnifiedType<IntType>

      const Inventory = ObjectType("Inventory", {
      itemCount: UIntType(), // 0 to infinity
      slotIndex: UIntType({ max: 99 }), // 0 to 99, uses 7 bits
      });