From dc6e74c60a7406fd387d29f3554e5d606852c8ff Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 27 Dec 2019 16:04:57 +0100 Subject: [PATCH] Docs for Item Enums. Also started work on Spell Enums, and added a little explanation, on why these classes exist. --- docs/general/enums/index.rst | 7 ++++ docs/general/enums/item_enums.rst | 65 +++++++++++++++++++++--------- docs/general/enums/spell_enums.rst | 38 ++++++++--------- 3 files changed, 73 insertions(+), 37 deletions(-) diff --git a/docs/general/enums/index.rst b/docs/general/enums/index.rst index 0c8d501..075fbb4 100644 --- a/docs/general/enums/index.rst +++ b/docs/general/enums/index.rst @@ -3,6 +3,13 @@ Enums ===== +These are helper classes containing huge amounts of enums. + +They exists, because if these were in their own respective classes, for example +Entity for EntityEnums, then Entity would need to be included by pretty much almost every class, +but Entity also includes a lot of things, which means a lot of boilerplate forward declarations, and also +this would slow down incremental compile times considerably. So for convenience, these classes were born. + .. toctree:: :maxdepth: 1 :caption: Enums diff --git a/docs/general/enums/item_enums.rst b/docs/general/enums/item_enums.rst index 63ee465..254157e 100644 --- a/docs/general/enums/item_enums.rst +++ b/docs/general/enums/item_enums.rst @@ -1,32 +1,59 @@ .. _doc_general_item_enums: -Item Enums -========== +:ref:`Item Enums ` +=================================== -Contains Entity-related enums. +Contains item-related enums. -ItemRarity ----------- +:ref:`ItemRarity ` +--------------------------------------------- -ItemRarityFlag --------------- +Yout can set the visual rarity representation with this. -ItemType --------- +:ref:`ItemRarityFlag ` +----------------------------------------------------- -ItemSubtype ------------ +For generated items. You can set with it which rarities can happen. -ItemSubSubtype --------------- +:ref:`ItemType ` +----------------------------------------- -EquipSlots ----------- +Main item type / category. -ArmorType ---------- +Contains things like equipment, weapont, potion, herb, etc. -EntityTextureLayers -------------------- +:ref:`ItemSubtype ` +----------------------------------------------- +Subtype. Like axe, mace, quest item etc. +:ref:`ItemSubSubtype ` +----------------------------------------------------- + +SubSubtype. Like One hand, Two Hand etc. + +.. note:: I don't like this setup, I'll try to make this better. + +:ref:`EquipSlots ` +--------------------------------------------- + +The equipslots you want for your character. + +Head, Neck, Shoulders etc. + +.. note:: I don't like this setup, I'll try to make this better (Somehow make it easily changeable). + Maybe make it customiyable with a macro from a central file somehow. TODO (Same will be + applied, to any enum which should be customizable) + +:ref:`ArmorType ` +------------------------------------------- + +Armor types. Cloth, Leather, etc. + +:ref:`EntityTextureLayers ` +--------------------------------------------------------------- + +Texture Layers for merging equipment textures, so you can color skins, eyes etc, and then merge +(and also possibly color) equipment textures. + +Think of equipment coloring in Diablo 3. diff --git a/docs/general/enums/spell_enums.rst b/docs/general/enums/spell_enums.rst index 02f1028..087b084 100644 --- a/docs/general/enums/spell_enums.rst +++ b/docs/general/enums/spell_enums.rst @@ -1,28 +1,30 @@ .. _doc_general_spell_enums: -Spell Enums -=========== +:ref:`Spell Enums ` +===================================== -DamageType ----------- +Contains Spell-related enums. -SpellCategory -------------- +:ref:`DamageType ` +---------------------------------------------- -SpellType ---------- +:ref:`SpellCategory ` +---------------------------------------------------- -DiminishingReturnCategory -------------------------- +:ref:`SpellType ` +-------------------------------------------- -TriggerEvents -------------- +:ref:`DiminishingReturnCategory ` +---------------------------------------------------------------------------- -AuraType --------- +:ref:`TriggerEvents ` +---------------------------------------------------- -ColliderType ------------- +:ref:`AuraType ` +------------------------------------------ -TargetType ----------- +:ref:`ColliderType ` +-------------------------------------------------- + +:ref:`TargetType ` +----------------------------------------------