|
SFS2X Objective-C API
1.7.13
iOS / macOS / tvOS
|
Inherits NSObject, and <Variable>.
Inherited by MMOItemVariable, SFSBuddyVariable, SFSRoomVariable, and SFSUserVariable.
Instance Methods | |
| (id) | - initWithName:value:type: |
| (id) | - getValue |
| (BOOL) | - getBoolValue |
| (NSInteger) | - getIntValue |
| (NSNumber *) | - getDoubleValue |
| (NSString *) | - getStringValue |
| (id< ISFSObject >) | - getSFSObjectValue |
| (id< ISFSArray >) | - getSFSArrayValue |
| (BOOL) | - isNull |
| (id< ISFSArray >) | - toSFSArray |
Class Methods | |
| (id) | + variableWithName:value:type: |
| (id) | + variableWithName:value: |
Protected Attributes | |
| NSString * | _name |
| NSString * | _type |
| id | _value |
Properties | |
| NSString * | name |
| NSString * | type |
| - (BOOL) getBoolValue |
The Variable value as BOOL
| - (NSNumber *) getDoubleValue |
The Variable value as Number
| - (NSInteger) getIntValue |
The Variable value as NSInteger
| - (NSString *) getStringValue |
The Variable value as NSString
| - (id) getValue |
The Variable value
| - (BOOL) isNull |
Checks if the variable value is null
| + (id) variableWithName: | (NSString *) | name | |
| value: | (id) | value | |
| type: | (NSInteger) | type | |
| name | the name of the variable |
| value | the variable value ( can be BOOL, Integer, Double, String, SFSObject, SFSArray ) |
| type | (optional -1) it's usually not necessary to pass this parameter as the variable value is auto-detected |
Reimplemented in SFSBuddyVariable, SFSRoomVariable, MMOItemVariable, and SFSUserVariable.
|
readnonatomicassign |
The Variable name
|
readnonatomicassign |
The Variable Type