OpenTTD Source  20240919-master-gdf0233f4c2
ConsoleContentCallback Struct Reference

Asynchronous callback. More...

Inheritance diagram for ConsoleContentCallback:
ContentCallback

Public Member Functions

void OnConnect (bool success) override
 
void OnDisconnect () override
 Callback for when the connection got disconnected.
 
void OnDownloadComplete (ContentID cid) override
 
- Public Member Functions inherited from ContentCallback
virtual void OnConnect ([[maybe_unused]] bool success)
 Callback for when the connection has finished. More...
 
virtual void OnReceiveContentInfo ([[maybe_unused]] const ContentInfo *ci)
 We received a content info. More...
 
virtual void OnDownloadProgress ([[maybe_unused]] const ContentInfo *ci, [[maybe_unused]] int bytes)
 We have progress in the download of a file. More...
 
virtual void OnDownloadComplete ([[maybe_unused]] ContentID cid)
 We have finished downloading a file. More...
 
virtual ~ContentCallback ()=default
 Silentium.
 

Detailed Description

Asynchronous callback.

Definition at line 2112 of file console_cmds.cpp.


The documentation for this struct was generated from the following file: