IDevice

Undocumented in source.

Members

Functions

attachEmulator
void attachEmulator(Emulator!Cpu emulator)

Saves dcpu reference internally for future use.

commitFrame
void commitFrame(ulong frameNumber)
Undocumented in source.
discardFrame
void discardFrame()
Undocumented in source.
discardUndoStack
void discardUndoStack()
Undocumented in source.
handleInterrupt
uint handleInterrupt()

Handles hardware interrupt and returns a number of cycles.

handleUpdateQuery
void handleUpdateQuery(ulong delay)

Must handle previosly posted update query. If next updates is not needed must set delay to zero. If set to non-zero will be called after delay cycles elapsed with provided message.

hardwareId
uint hardwareId()
hardwareVersion
ushort hardwareVersion()
manufacturer
uint manufacturer()
undoFrames
void undoFrames(ulong numFrames)
Undocumented in source.
undoStackSize
size_t undoStackSize()
Undocumented in source.
updateFrame
void updateFrame()

Called every application frame. Can be used to update screens.

Inherited Members

From IUndoable

commitFrame
void commitFrame(ulong frameNumber)
Undocumented in source.
discardFrame
void discardFrame()
Undocumented in source.
undoFrames
void undoFrames(ulong numFrames)
Undocumented in source.
discardUndoStack
void discardUndoStack()
Undocumented in source.
undoStackSize
size_t undoStackSize()
Undocumented in source.

Meta