Toggle menu
913
3.8K
30.2K
279.2K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ResourceProperty class

From Catglobe Wiki
Revision as of 10:36, 20 April 2026 by [email protected] (talk | contribs) (Created page with "{{CGscriptClass_Template|Name=<nowiki>ResourceProperty</nowiki>|Description=<nowiki>Represents a resource property constant with its current value.</nowiki>|InheritsFrom=Array|Methods={{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}} {{CGscriptMethods_Template|ReturnType=object|Name=<nowiki>this[] { get; }</nowiki>|Parameters= {{CGscriptParameters_Template|Type=int|Name=<now...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ResourceProperty


Represents a resource property constant with its current value.

Parent class

Inherits from Array

Methods

  • string ToString() - The string representation of the object.
  • object this[] { get; }(int index "Index") - Backward-compatible indexer
  • Empty this[] { get; }(int index "Index", object value "Value to set") - Backward-compatible indexer

Properties

  • number Average { get; } - Average of the objects in the Array object. Can only use if all the elements are of type Number
  • number Max { get; } - Largest of all the objects in the Array object. Can only use if all the elements are of type Number
  • number Min { get; } - Smallest of all the objects in the Array object. Can only use if all the elements are of type Number
  • string Name { get; } - Display label of the constant option
  • string ObjectTypeName { get; } - The name of the type of object.
  • int OptionId { get; } - Primary key of the constant option
  • number Sum { get; } - Sum of all the objects in the Array object. Can only use if all the elements are of type Number
  • int Type { get; } - Constant-option type (see RESOURCE_PROPERTY_TYPE constants)
  • TypeInformation TypeInformation { get; } - Get information about this class.
  • object Value { get; set; } - Current value of the constant

Static Methods

  • array ResourceProperty_getResourceProperties(int resource unique id "Resource unique id") - Returns the property constants of a resource as an array
  • Dictionary ResourceProperty_getResourcesProperties(array resourceIds "Array of resource unique ids") - Returns property constants for multiple resources as a dictionary keyed by resource unique id
  • Empty ResourceProperty_saveResourceProperties(int resource unique id "Resource unique id", array propertyArray "Array of resource property objects") - Saves resource properties from an array of property objects