import gleam/option.{type Option, None, Some} // import gleam/map.{Map} pub type ResourceItemData { ResourceItemData( acquisition_source_cuid_list: List(String), cuid: Int, donation_cuid: Int, is_destroyable: Bool, is_lockable: Bool, is_show_acquisition_source: Bool, is_tradeable: Bool, item_appearance_cuid: Int, item_description_cuid: Int, item_grade: String, item_icon_cuid: Int, item_name_cuid: Int, max_hold_count: Int, resource_kind: String, sell_currency_cuid: Int, sell_price: Int, sort_order: Int, storable_inventory_owner_kind_list: List(String), storable_user_inventory_kind: String, touch_sound_cuid: Int, unique_name: String, use_sound_cuid: Int, weight: Int, ) } pub fn by_cuid(cuid) -> Option(ResourceItemData) { case cuid { 2_606_067_096 -> Some(ResourceItemData( [], 2_606_067_096, 0, True, True, False, True, 0, 3_901_524_997, "Common", 2_025_915_152, 4_226_454_855, 9_999_999_999, "Herb", 0, 0, 3, ["Covenant"], "None", 0, "Resource_Herb", 413_649_757, 0, )) 3_586_547_469 -> Some(ResourceItemData( [], 3_586_547_469, 0, True, True, False, True, 0, 299_464_778, "Common", 1_994_533_893, 4_085_308_844, 9_999_999_999, "Ore", 0, 0, 2, ["Covenant"], "None", 0, "Resource_Ore", 413_649_757, 0, )) 3_828_209_040 -> Some(ResourceItemData( [], 3_828_209_040, 0, True, True, False, True, 0, 1_395_922_477, "Common", 1_339_763_592, 3_720_406_351, 9_999_999_999, "Stone", 0, 0, 1, ["Covenant"], "None", 0, "Resource_Stone", 413_649_757, 0, )) 1_163_884_240 -> Some(ResourceItemData( [], 1_163_884_240, 0, True, True, False, True, 0, 2_459_342_141, "Common", 583_732_296, 2_784_271_999, 9_999_999_999, "Wood", 0, 0, 0, ["Covenant"], "None", 0, "Resource_Wood", 413_649_757, 0, )) _ -> None } }