parent
6d7da6b15d
commit
695baed226
@ -699,7 +699,7 @@ end</pre>
|
|||||||
GetLevel = { Params = "EnchantmentNumID", Return = "number", Notes = "Returns the level of the specified enchantment stored in this object; 0 if not stored" },
|
GetLevel = { Params = "EnchantmentNumID", Return = "number", Notes = "Returns the level of the specified enchantment stored in this object; 0 if not stored" },
|
||||||
IsEmpty = { Params = "", Return = "bool", Notes = "Returns true if the object stores no enchantments" },
|
IsEmpty = { Params = "", Return = "bool", Notes = "Returns true if the object stores no enchantments" },
|
||||||
SetLevel = { Params = "EnchantmentNumID, Level", Return = "", Notes = "Sets the level for the specified enchantment, adding it if not stored before or removing it if level < = 0" },
|
SetLevel = { Params = "EnchantmentNumID, Level", Return = "", Notes = "Sets the level for the specified enchantment, adding it if not stored before or removing it if level < = 0" },
|
||||||
StringToEnchantmentID = { Params = "EnchantmentTextID", Return = "number", Notes = "(static) Returns the enchantment numerical ID, -1 if not understood. Case insensitive" },
|
StringToEnchantmentID = { Params = "EnchantmentTextID", Return = "number", Notes = "(static) Returns the enchantment numerical ID, -1 if not understood. Case insensitive. Also understands plain numbers." },
|
||||||
ToString = { Params = "", Return = "string", Notes = "Returns the string description of all the enchantments stored in this object, in numerical-ID form" },
|
ToString = { Params = "", Return = "string", Notes = "Returns the string description of all the enchantments stored in this object, in numerical-ID form" },
|
||||||
},
|
},
|
||||||
Constants =
|
Constants =
|
||||||
|
@ -99,7 +99,7 @@ public:
|
|||||||
/** Returns true if there are no enchantments */
|
/** Returns true if there are no enchantments */
|
||||||
bool IsEmpty(void) const;
|
bool IsEmpty(void) const;
|
||||||
|
|
||||||
/** Converts enchantment name to the numeric representation; returns -1 if enchantment name not found; case insensitive */
|
/** Converts enchantment name or ID (number in string) to the numeric representation; returns -1 if enchantment name not found; case insensitive */
|
||||||
static int StringToEnchantmentID(const AString & a_EnchantmentName);
|
static int StringToEnchantmentID(const AString & a_EnchantmentName);
|
||||||
|
|
||||||
/** Returns true if a_Other contains exactly the same enchantments and levels */
|
/** Returns true if a_Other contains exactly the same enchantments and levels */
|
||||||
|
Loading…
Reference in New Issue
Block a user