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

ProductOption class

From Catglobe Wiki
Revision as of 07:13, 3 December 2018 by Administrator (talk | contribs) (Created page with "{{CGscriptClass_Template |Name=<nowiki>ProductOption</nowiki> |Description=<nowiki>Represents a Product.</nowiki> |Methods= {{CGscriptMethods_Template|ReturnType=bool|Name=<no...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ProductOption



Represents a Product.


Methods

  • bool Buy(Order order "Order to add the purchase to", int amount "Number of items to add to order") - Purchase items
  • string ToString() - The string representation of the object.

Properties

  • bool CanSell { get; } - Is there enough products available to buy 1. Return false if unable to add to order
  • int Id { get; } - Id of the ProductOption
  • string LocalizedName { get; } - Localized Name of the ProductOption
  • Dictionary LocalizedNames { get; } - Localized Names of the ProductOption
  • string ObjectTypeName { get; } - The name of the type of object.
  • TypeInformation TypeInformation { get; } - Get information about this class.