- Source:
Methods
(static) getBinaryFlags(flagsInt, len)
turn encoded status integer into a 32 length series of binary flags
Parameters:
Name | Type | Description |
---|---|---|
flagsInt |
encodedInteger | encoded base10 integer from Flags/Flags2 |
len |
int | length of the expected binary number |
- Source:
(static) getPluginConfigBySlug(slug)
check for frameShifterState every 200ms until found, useful for standalone plugins on first load
Parameters:
Name | Type | Description |
---|---|---|
slug |
string | plugin slug in config.json |
- Source:
(static) hasData(obj)
test whether an object is empty or not
Parameters:
Name | Type | Description |
---|---|---|
obj |
object | object to test |
- Source:
(static) pipsToNumber(pip)
converts status pip values into normal numbers because im dumb atm
Parameters:
Name | Type | Description |
---|---|---|
pip |
number | some type of number |
- Source:
(static) playerInfo(infoType)
grab any data that FrameShifter knows about.
Parameters:
Name | Type | Description |
---|---|---|
infoType |
string | data to request from various sources in FrameShifter |
- Source:
(static) sendRelay(eventName, data)
send data to all connected clients
Parameters:
Name | Type | Description |
---|---|---|
eventName |
string | event name to relay, will be recieved at RELAY_EVENTNAME |
data |
object | data to send along with the relay event |
- Source:
(static) testPlayerData(value, obj)
check that a value is present and of expected type
Parameters:
Name | Type | Description |
---|---|---|
value |
string | value on window to test if present and correct type |
obj |
string | data type to check |
- Source:
(static) waitForData(callback)
check for frameShifterState every 200ms until found, useful for standalone plugins on first load
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | function to call when found |
- Source: