cthulhu
Types
pub type Ammo {
Ammo(
slot_1: option.Option(Item),
slot_2: option.Option(Item),
slot_3: option.Option(Item),
slot_4: option.Option(Item),
)
}
Constructors
-
Ammo( slot_1: option.Option(Item), slot_2: option.Option(Item), slot_3: option.Option(Item), slot_4: option.Option(Item), )
pub type Buff {
Buff(id: buff_id.BuffId, time: duration.Duration)
}
Constructors
-
Buff(id: buff_id.BuffId, time: duration.Duration)
pub type Buffs {
Buffs(
slot_1: option.Option(Buff),
slot_2: option.Option(Buff),
slot_3: option.Option(Buff),
slot_4: option.Option(Buff),
slot_5: option.Option(Buff),
slot_6: option.Option(Buff),
slot_7: option.Option(Buff),
slot_8: option.Option(Buff),
slot_9: option.Option(Buff),
slot_10: option.Option(Buff),
slot_11: option.Option(Buff),
slot_12: option.Option(Buff),
slot_13: option.Option(Buff),
slot_14: option.Option(Buff),
slot_15: option.Option(Buff),
slot_16: option.Option(Buff),
slot_17: option.Option(Buff),
slot_18: option.Option(Buff),
slot_19: option.Option(Buff),
slot_20: option.Option(Buff),
slot_21: option.Option(Buff),
slot_22: option.Option(Buff),
slot_23: option.Option(Buff),
slot_24: option.Option(Buff),
slot_25: option.Option(Buff),
slot_26: option.Option(Buff),
slot_27: option.Option(Buff),
slot_28: option.Option(Buff),
slot_29: option.Option(Buff),
slot_30: option.Option(Buff),
slot_31: option.Option(Buff),
slot_32: option.Option(Buff),
slot_33: option.Option(Buff),
slot_34: option.Option(Buff),
slot_35: option.Option(Buff),
slot_36: option.Option(Buff),
slot_37: option.Option(Buff),
slot_38: option.Option(Buff),
slot_39: option.Option(Buff),
slot_40: option.Option(Buff),
slot_41: option.Option(Buff),
slot_42: option.Option(Buff),
slot_43: option.Option(Buff),
slot_44: option.Option(Buff),
)
}
Constructors
-
Buffs( slot_1: option.Option(Buff), slot_2: option.Option(Buff), slot_3: option.Option(Buff), slot_4: option.Option(Buff), slot_5: option.Option(Buff), slot_6: option.Option(Buff), slot_7: option.Option(Buff), slot_8: option.Option(Buff), slot_9: option.Option(Buff), slot_10: option.Option(Buff), slot_11: option.Option(Buff), slot_12: option.Option(Buff), slot_13: option.Option(Buff), slot_14: option.Option(Buff), slot_15: option.Option(Buff), slot_16: option.Option(Buff), slot_17: option.Option(Buff), slot_18: option.Option(Buff), slot_19: option.Option(Buff), slot_20: option.Option(Buff), slot_21: option.Option(Buff), slot_22: option.Option(Buff), slot_23: option.Option(Buff), slot_24: option.Option(Buff), slot_25: option.Option(Buff), slot_26: option.Option(Buff), slot_27: option.Option(Buff), slot_28: option.Option(Buff), slot_29: option.Option(Buff), slot_30: option.Option(Buff), slot_31: option.Option(Buff), slot_32: option.Option(Buff), slot_33: option.Option(Buff), slot_34: option.Option(Buff), slot_35: option.Option(Buff), slot_36: option.Option(Buff), slot_37: option.Option(Buff), slot_38: option.Option(Buff), slot_39: option.Option(Buff), slot_40: option.Option(Buff), slot_41: option.Option(Buff), slot_42: option.Option(Buff), slot_43: option.Option(Buff), slot_44: option.Option(Buff), )
pub type BuilderAccessoryStatus {
BuilderAccessoryStatus(
a: Bool,
b: Bool,
c: Bool,
d: Bool,
e: Bool,
f: Bool,
g: Bool,
h: Bool,
i: Bool,
j: Bool,
k: Bool,
l: Bool,
)
}
Constructors
-
BuilderAccessoryStatus( a: Bool, b: Bool, c: Bool, d: Bool, e: Bool, f: Bool, g: Bool, h: Bool, i: Bool, j: Bool, k: Bool, l: Bool, )
pub type Coins {
Coins(
slot_1: option.Option(Item),
slot_2: option.Option(Item),
slot_3: option.Option(Item),
slot_4: option.Option(Item),
)
}
Constructors
-
Coins( slot_1: option.Option(Item), slot_2: option.Option(Item), slot_3: option.Option(Item), slot_4: option.Option(Item), )
pub type Colour {
Colour(r: Int, g: Int, b: Int)
}
Constructors
-
Colour(r: Int, g: Int, b: Int)
pub type CreativePower {
FreezeTimePower(enabled: Bool)
StartDayImmediatelyPower
StartNoonImmediatelyPower
StartNightImmediatelyPower
StartMidnightImmediatelyPower
GodmodePower(enabled: Bool)
ModifyWindDirectionAndStrengthPower
ModifyRainPower
ModifyTimeRatePower(value: Float)
FreezeRainPower(enabled: Bool)
FreezeWindDirectionAndStrengthPower(enabled: Bool)
FarPlacementRangePower(enabled: Bool)
DifficultySliderPower(value: Float)
StopBiomeSpreadPower(enabled: Bool)
SpawnRateSliderPerPlayerPower(value: Float)
}
Constructors
-
FreezeTimePower(enabled: Bool) -
StartDayImmediatelyPower -
StartNoonImmediatelyPower -
StartNightImmediatelyPower -
StartMidnightImmediatelyPower -
GodmodePower(enabled: Bool) -
ModifyWindDirectionAndStrengthPower -
ModifyRainPower -
ModifyTimeRatePower(value: Float) -
FreezeRainPower(enabled: Bool) -
FreezeWindDirectionAndStrengthPower(enabled: Bool) -
FarPlacementRangePower(enabled: Bool) -
DifficultySliderPower(value: Float) -
StopBiomeSpreadPower(enabled: Bool) -
SpawnRateSliderPerPlayerPower(value: Float)
pub type DecodeError {
UnexpectedEndOfFile
UnexpectedTrailingData(data: BitArray)
InvalidMagicNumber(magic_number: BitArray)
UnexpectedVersion(version: Int)
UnexpectedFileType(file_type: Int)
InvalidName(name: BitArray)
InvalidSpawnPointName(name: BitArray)
InvalidResearchItemName(name: BitArray)
InvalidDialogue(dialogue: BitArray)
InvalidDifficulty(difficulty: Int)
InvalidTeam(team: Int)
InvalidSkinVariant(skin_variant: Int)
InvalidVoiceVariant(voice_variant: Int)
InvalidItemId(item_id: Int)
InvalidPrefixId(prefix_id: Int)
InvalidBuffId(buff_id: Int)
InvalidDateTimeKind(kind: Int)
}
Constructors
-
UnexpectedEndOfFile -
UnexpectedTrailingData(data: BitArray) -
InvalidMagicNumber(magic_number: BitArray) -
UnexpectedVersion(version: Int) -
UnexpectedFileType(file_type: Int) -
InvalidName(name: BitArray) -
InvalidSpawnPointName(name: BitArray) -
InvalidResearchItemName(name: BitArray) -
InvalidDialogue(dialogue: BitArray) -
InvalidDifficulty(difficulty: Int) -
InvalidTeam(team: Int) -
InvalidSkinVariant(skin_variant: Int) -
InvalidVoiceVariant(voice_variant: Int) -
InvalidItemId(item_id: Int) -
InvalidPrefixId(prefix_id: Int) -
InvalidBuffId(buff_id: Int) -
InvalidDateTimeKind(kind: Int)
pub type Difficulty {
Classic
Mediumcore
Hardcore
Journey
}
Constructors
-
Classic -
Mediumcore -
Hardcore -
Journey
pub type DpadRadialBindings {
DpadRadialBindings(
up_slot: option.Option(Int),
right_slot: option.Option(Int),
down_slot: option.Option(Int),
left_slot: option.Option(Int),
)
}
Constructors
-
DpadRadialBindings( up_slot: option.Option(Int), right_slot: option.Option(Int), down_slot: option.Option(Int), left_slot: option.Option(Int), )
pub type Equipment {
Equipment(
equipment_slot: option.Option(Item),
vanity_slot: option.Option(Item),
dye_slot: option.Option(Item),
hidden: Bool,
)
}
Constructors
-
Equipment( equipment_slot: option.Option(Item), vanity_slot: option.Option(Item), dye_slot: option.Option(Item), hidden: Bool, )
pub type EquipmentLoadouts {
EquipmentLoadouts(
loadout_1: EquipmentLoadout,
loadout_2: EquipmentLoadout,
loadout_3: EquipmentLoadout,
)
}
Constructors
-
EquipmentLoadouts( loadout_1: EquipmentLoadout, loadout_2: EquipmentLoadout, loadout_3: EquipmentLoadout, )
pub type HiddenInfo {
HiddenInfo(
a: Bool,
b: Bool,
c: Bool,
d: Bool,
e: Bool,
f: Bool,
g: Bool,
h: Bool,
i: Bool,
j: Bool,
k: Bool,
l: Bool,
m: Bool,
)
}
Constructors
-
HiddenInfo( a: Bool, b: Bool, c: Bool, d: Bool, e: Bool, f: Bool, g: Bool, h: Bool, i: Bool, j: Bool, k: Bool, l: Bool, m: Bool, )
pub type Inventory {
Inventory(
row_1: InventoryRow,
row_2: InventoryRow,
row_3: InventoryRow,
row_4: InventoryRow,
)
}
Constructors
-
Inventory( row_1: InventoryRow, row_2: InventoryRow, row_3: InventoryRow, row_4: InventoryRow, )
pub type InventoryRow {
InventoryRow(
slot_1: option.Option(Item),
slot_2: option.Option(Item),
slot_3: option.Option(Item),
slot_4: option.Option(Item),
slot_5: option.Option(Item),
slot_6: option.Option(Item),
slot_7: option.Option(Item),
slot_8: option.Option(Item),
slot_9: option.Option(Item),
slot_10: option.Option(Item),
)
}
Constructors
-
InventoryRow( slot_1: option.Option(Item), slot_2: option.Option(Item), slot_3: option.Option(Item), slot_4: option.Option(Item), slot_5: option.Option(Item), slot_6: option.Option(Item), slot_7: option.Option(Item), slot_8: option.Option(Item), slot_9: option.Option(Item), slot_10: option.Option(Item), )
pub type Item {
Item(
id: item_id.ItemId,
stack: Int,
prefix: prefix_id.PrefixId,
favourited: Bool,
)
}
Constructors
-
Item( id: item_id.ItemId, stack: Int, prefix: prefix_id.PrefixId, favourited: Bool, )
pub type MiscEquipment {
MiscEquipment(
equipment_slot: option.Option(Item),
dye_slot: option.Option(Item),
hidden: Bool,
)
}
Constructors
-
MiscEquipment( equipment_slot: option.Option(Item), dye_slot: option.Option(Item), hidden: Bool, )
pub type MiscEquipmentLoadout {
MiscEquipmentLoadout(
pet: MiscEquipment,
light_pet: MiscEquipment,
minecart: MiscEquipment,
mount: MiscEquipment,
hook: MiscEquipment,
)
}
Constructors
-
MiscEquipmentLoadout( pet: MiscEquipment, light_pet: MiscEquipment, minecart: MiscEquipment, mount: MiscEquipment, hook: MiscEquipment, )
pub type Player {
Player(
version: Int,
revision: Int,
favourited: Bool,
name: String,
difficulty: Difficulty,
play_time: duration.Duration,
hair_style: Int,
hair_dye: Int,
team: Team,
skin_variant: SkinVariant,
life: Int,
max_life: Int,
mana: Int,
max_mana: Int,
extra_accessory_slot: Bool,
unlocked_biome_torches: Bool,
using_biome_torches: Bool,
ate_artisan_bread: Bool,
used_aegis_crystal: Bool,
used_aegis_fruit: Bool,
used_arcane_crystal: Bool,
used_galaxy_pearl: Bool,
used_gummy_worm: Bool,
used_ambrosia: Bool,
downed_dd2_event: Bool,
tax_money: Int,
number_of_deaths_pve: Int,
number_of_deaths_pvp: Int,
colours: Colours,
current_loadout: EquipmentLoadout,
misc_loadout: MiscEquipmentLoadout,
hotbar: InventoryRow,
inventory: Inventory,
coins: Coins,
ammo: Ammo,
piggy_bank: Inventory,
safe: Inventory,
defender_forge: Inventory,
void_vault: Inventory,
void_vault_info: Int,
buffs: Buffs,
spawn_points: List(SpawnPoint),
hotbar_locked: Bool,
hidden_info: HiddenInfo,
angler_quests_finished: Int,
dpad_radial_bindings: DpadRadialBindings,
builder_accessory_status: BuilderAccessoryStatus,
bartender_quest_log: Int,
is_dead: Bool,
respawn_timer: option.Option(duration.Duration),
last_time_player_was_saved: timestamp.Timestamp,
golfer_score_accumulated: Int,
research: List(ResearchItem),
temporary_mouse_item: option.Option(Item),
temporary_item: option.Option(Item),
temporary_guide_item: option.Option(Item),
temporary_reforge_item: option.Option(Item),
creative_powers: List(CreativePower),
unlocked_super_cart: Bool,
enabled_super_cart: Bool,
current_loadout_index: Int,
loadouts: EquipmentLoadouts,
voice_variant: VoiceVariant,
voice_pitch_offset: Float,
pending_refunds: List(Item),
one_time_dialogues_seen: List(String),
)
}
Constructors
-
Player( version: Int, revision: Int, favourited: Bool, name: String, difficulty: Difficulty, play_time: duration.Duration, hair_style: Int, hair_dye: Int, team: Team, skin_variant: SkinVariant, life: Int, max_life: Int, mana: Int, max_mana: Int, extra_accessory_slot: Bool, unlocked_biome_torches: Bool, using_biome_torches: Bool, ate_artisan_bread: Bool, used_aegis_crystal: Bool, used_aegis_fruit: Bool, used_arcane_crystal: Bool, used_galaxy_pearl: Bool, used_gummy_worm: Bool, used_ambrosia: Bool, downed_dd2_event: Bool, tax_money: Int, number_of_deaths_pve: Int, number_of_deaths_pvp: Int, colours: Colours, current_loadout: EquipmentLoadout, misc_loadout: MiscEquipmentLoadout, hotbar: InventoryRow, inventory: Inventory, coins: Coins, ammo: Ammo, piggy_bank: Inventory, safe: Inventory, defender_forge: Inventory, void_vault: Inventory, void_vault_info: Int, buffs: Buffs, spawn_points: List(SpawnPoint), hotbar_locked: Bool, hidden_info: HiddenInfo, angler_quests_finished: Int, dpad_radial_bindings: DpadRadialBindings, builder_accessory_status: BuilderAccessoryStatus, bartender_quest_log: Int, is_dead: Bool, respawn_timer: option.Option(duration.Duration), last_time_player_was_saved: timestamp.Timestamp, golfer_score_accumulated: Int, research: List(ResearchItem), temporary_mouse_item: option.Option(Item), temporary_item: option.Option(Item), temporary_guide_item: option.Option(Item), temporary_reforge_item: option.Option(Item), creative_powers: List(CreativePower), unlocked_super_cart: Bool, enabled_super_cart: Bool, current_loadout_index: Int, loadouts: EquipmentLoadouts, voice_variant: VoiceVariant, voice_pitch_offset: Float, pending_refunds: List(Item), one_time_dialogues_seen: List(String), )
pub type ResearchItem {
ResearchItem(name: String, stack: Int)
}
Constructors
-
ResearchItem(name: String, stack: Int)
pub type SkinVariant {
MaleStarterSkin
MaleStickerSkin
MaleGangsterSkin
MaleCoatSkin
FemaleStarterSkin
FemaleStickerSkin
FemaleGangsterSkin
FemaleCoatSkin
MaleDressSkin
FemaleDressSkin
MaleDisplayDollSkin
FemaleDisplayDollSkin
}
Constructors
-
MaleStarterSkin -
MaleStickerSkin -
MaleGangsterSkin -
MaleCoatSkin -
FemaleStarterSkin -
FemaleStickerSkin -
FemaleGangsterSkin -
FemaleCoatSkin -
MaleDressSkin -
FemaleDressSkin -
MaleDisplayDollSkin -
FemaleDisplayDollSkin
pub type SpawnPoint {
SpawnPoint(id: Int, name: String, x: Int, y: Int)
}
Constructors
-
SpawnPoint(id: Int, name: String, x: Int, y: Int)
pub type Team {
NoTeam
RedTeam
GreenTeam
BlueTeam
YellowTeam
PurpleTeam
}
Constructors
-
NoTeam -
RedTeam -
GreenTeam -
BlueTeam -
YellowTeam -
PurpleTeam
pub type VoiceVariant {
MaleVoice
FemaleVoice
OtherVoice
}
Constructors
-
MaleVoice -
FemaleVoice -
OtherVoice
Values
pub fn buffs_to_dict(
buffs: Buffs,
) -> dict.Dict(Int, option.Option(Buff))
pub fn buffs_to_list(buffs: Buffs) -> List(option.Option(Buff))
pub fn decode_player(
data: BitArray,
) -> Result(Player, DecodeError)
pub fn encode_player(player: Player) -> BitArray
pub fn inventory_row_to_dict(
inventory_row: InventoryRow,
) -> dict.Dict(Int, option.Option(Item))
pub fn inventory_row_to_list(
inventory_row: InventoryRow,
) -> List(option.Option(Item))
pub fn inventory_row_to_populated_dict(
inventory_row: InventoryRow,
) -> dict.Dict(Int, Item)
pub fn inventory_row_to_populated_list(
inventory_row: InventoryRow,
) -> List(Item)
pub fn inventory_to_dict(
inventory: Inventory,
) -> dict.Dict(Coord, option.Option(Item))
pub fn inventory_to_list(
inventory: Inventory,
) -> List(option.Option(Item))