UserServiceItemBank

@objc public class UserServiceItemBank: NSObject, IUserServiceItem, Gloss.Decodable

A Bank item type.

  • Declaration

    Swift

    public private(set) var title: String = ""
  • Declaration

    Swift

    public private(set) var initValue: Int64 = 0
  • Declaration

    Swift

    public private(set) var gameConfig: [String: Any] = [:]
  • The current value of the item.

    Declaration

    Swift

    public var value: Int64 = 0
  • Constructor with an init value.

    Declaration

    Swift

    public init(value: Int64)

    Parameters

    value

    The value to set the item to.

  • Constructor, copy properties from the provided bank item.

    Declaration

    Swift

    public init(data: UserServiceItemBank, initialize: Bool = false)

    Parameters

    data

    The UserServiceItemBank to copy from.

    initialize

    If true will initialize to the init value.

  • Constructor, copy from JSON formated data. Does not initialize the value.

    Declaration

    Swift

    required public init(json: JSON)

    Parameters

    json

    JSON data to copy from.

  • Declaration

    Swift

    public func setToInitValue() -> Void
  • Declaration

    Swift

    public func valueToString() -> String
  • A textual description of the Item.

    Declaration

    Swift

    public override var description: String