Class Resource#

Inheritance Relationships#

Base Type#

Class Documentation#

class xbe.sdk.Models.Resource : xbe.sdk.EntityBase#

Describes an single resource type of the virtual economy.

Public Functions

Resource ()#
Resource (Object obj)

Properties

string Name { get; set; }#

The unique name of the resource.

ResourceCost Cost { get; set; }#

The costs associated with the resource.

Object Data { get; set; }#

An arbitrary map of additional data about the resource.

ResourceDefaults Defaults { get; set; }#

The defaults to use when creating new instances of the resource.

string Description { get; set; }#

Description of the resource.

Guid ParentUid { get; set; }#

The UUID of the parent resource to inherit stats, description, etc.

bool Stackable { get; set; }#

Indicates if the resource can be copied and stacked or if each instance is considered unique.

Statistic > Stats { get; set; }#

The list of stat definitions for the resource.

string Title { get; set; }#

The name to display to the user.

Public Static Functions

new Resource Parse (string json)#

Parses the given JSON encoded string into a new StorageLocation instance.

Param json:

Return: