This commit is contained in:
Jason
2026-04-11 00:04:09 -05:00
commit 7a2fffd62e
110 changed files with 51809 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
{
"description": "Bitwise flag system for product classification",
"bit_definitions": {
"base_attributes": {
"bit_0 (1)": "Base Type = Door",
"bit_1 (2)": "Base Type = Window",
"bit_2 (4)": "Is Accessory",
"bit_3 (8)": "Specific Item Link"
},
"materials": {
"bit_4 (16)": "Material = Aluminum",
"bit_5 (32)": "Material = Vinyl"
},
"colors": {
"bit_6 (64)": "Color = Black",
"bit_7 (128)": "Color = White",
"bit_8 (256)": "Color = Bronze",
"bit_9 (512)": "Color = Tan",
"bit_10 (1024)": "Color = Mill",
"bit_11 (2048)": "Color = Sandstone"
},
"subtypes": {
"bit_12 (4096)": "Subtype = Patio Door",
"bit_13 (8192)": "Subtype = Primary Window",
"bit_14 (16384)": "Subtype = Storm Door",
"bit_15 (32768)": "Subtype = Storm Window"
}
},
"usage_examples": {
"check_if_door": "bit_value & 1",
"check_if_window": "bit_value & 2",
"check_if_aluminum": "bit_value & 16",
"check_if_white": "bit_value & 128",
"check_multiple": "(bit_value & 1) and (bit_value & 16) # Door AND Aluminum",
"check_subtype_patio_door": "bit_value & 4096",
"check_subtype_primary_window": "bit_value & 8192",
"check_subtype_storm_door": "bit_value & 16384",
"check_subtype_storm_window": "bit_value & 32768"
}
}