Module necro.client.ClientActionBuffer

Functions

addAction (playerID, turnID, actionID, time, args)
checkRollback ()
checkSequenceSync (sequenceSync) Enforces a sequence sync with a remote ID list, handles the appropriate rollbacks and checks if the sync is complete
clear ()
deserializeReplay (serializedReplay)
findAvailableTurnID (playerID, firstTurnID, limit)
getAction (playerID, turnID)
getCurrentBufferID ()
getLatestTurnID (playerID)
getNextBufferID ()
getParticipantPlayerIDs ()
getTargetTurnID ()
getTimeDifference (playerID, turnID) Returns the difference from the given turn’s timestamp to the time of the given player’s action for that turn, or 0 if no such action exists.
getTurnsInRange (firstTurnID, lastTurnID, limit)
hasAction (playerID, turnID)
initiateSequenceSync () Initiates a sequence sync for the current action buffer state and sends it over the network
isRollbackPending ()
isSequenceSyncActive ()
isSequenceSyncComplete ()
loadReplay (replayData)
requestRollback (turnID, delay)
reset ()
saveReplay ()
serializeReplay (replayData)
undelayRollback ()


Functions

addAction (playerID, turnID, actionID, time, args)

Parameters:

  • playerID
  • turnID
  • actionID
  • time
  • args
checkRollback ()
checkSequenceSync (sequenceSync)
Enforces a sequence sync with a remote ID list, handles the appropriate rollbacks and checks if the sync is complete

Parameters:

  • sequenceSync
clear ()
deserializeReplay (serializedReplay)

Parameters:

  • serializedReplay
findAvailableTurnID (playerID, firstTurnID, limit)

Parameters:

  • playerID
  • firstTurnID
  • limit
getAction (playerID, turnID)

Parameters:

  • playerID
  • turnID
getCurrentBufferID ()
getLatestTurnID (playerID)

Parameters:

  • playerID
getNextBufferID ()
getParticipantPlayerIDs ()
getTargetTurnID ()
getTimeDifference (playerID, turnID)
Returns the difference from the given turn’s timestamp to the time of the given player’s action for that turn, or 0 if no such action exists.

Parameters:

  • playerID
  • turnID
getTurnsInRange (firstTurnID, lastTurnID, limit)

Parameters:

  • firstTurnID
  • lastTurnID
  • limit
hasAction (playerID, turnID)

Parameters:

  • playerID
  • turnID
initiateSequenceSync ()
Initiates a sequence sync for the current action buffer state and sends it over the network
isRollbackPending ()
isSequenceSyncActive ()
isSequenceSyncComplete ()
loadReplay (replayData)

Parameters:

  • replayData
requestRollback (turnID, delay)

Parameters:

  • turnID
  • delay
reset ()
saveReplay ()
serializeReplay (replayData)

Parameters:

  • replayData
undelayRollback ()
generated by LDoc 1.4.6