In C++, a struct is a custom data type that groups different variables under one name, allowing for mixed types. It helps organize related data into a single unit. Structs are important for modding KeeperRL because they are often filled with data from our mod files. This webpage connects to GitHub to analyze how the structs in Michal's KeeperRL source code could be populated when writing mod files.
For example, in the modded attributes.txt, we populate AttrInfo with the following fields: {bodyPartInjury}, name, {viewId}, adjective, absorptionCap, modifierVariation, wishedItemIncrease, isAttackAttr, {meleeFX}, {help}, and {onAttackedEffect}.
From the Vanilla attributes.txt:
"DAMAGE" { name = "damage" viewId = { "damage_icon" } adjective = "dangerous" absorptionCap = 25 isAttackAttr = true help = "Base damage value of melee attacks." }
Current Process:
Waiting for input...
File Iteration Progress:
Extracted Structs:
Text-Only Structs View
Enter a GitHub repository URL (e.g., https://github.com/username/repo):