![]() |
DDraceNetwork Documentation
|
#include <race_demo.h>
Public Member Functions | |
| CRaceDemo () | |
| int | Sizeof () const override |
| void | OnReset () override |
| void | OnStateChange (int NewState, int OldState) override |
| void | OnMessage (int MsgType, void *pRawMsg) override |
| void | OnMapLoad () override |
| void | OnShutdown () override |
| void | OnNewSnapshot () override |
Public Member Functions inherited from CComponent | |
| virtual | ~CComponent ()=default |
| virtual void | OnConsoleInit () |
| virtual void | OnInit () |
| virtual void | OnWindowResize () |
| virtual void | OnUpdate () |
| virtual void | OnRender () |
| virtual void | OnRelease () |
| virtual bool | OnCursorMove (float x, float y, IInput::ECursorType CursorType) |
| virtual bool | OnInput (const IInput::CEvent &Event) |
| virtual bool | OnTouchState (const std::vector< IInput::CTouchFingerState > &vTouchFingerStates) |
Public Member Functions inherited from CComponentInterfaces | |
| virtual void | OnInterfacesInit (CGameClient *pClient) |
| virtual | ~CComponentInterfaces ()=default |
Public Attributes | |
| bool | m_AllowRestart |
Private Types | |
| enum | { RACE_NONE = 0 , RACE_IDLE , RACE_PREPARE , RACE_STARTED , RACE_FINISHED } |
Private Member Functions | |
| void | GetPath (char *pBuf, int Size, int Time=-1) const |
| void | StopRecord (int Time=-1) |
| bool | CheckDemo (int Time) |
Static Private Member Functions | |
| static int | RaceDemolistFetchCallback (const CFsFileInfo *pInfo, int IsDir, int StorageType, void *pUser) |
Private Attributes | |
| char | m_aTmpFilename [128] |
| int | m_RaceState |
| int | m_RaceStartTick |
| int | m_RecordStopTick |
| int | m_Time |
| std::chrono::nanoseconds | m_RaceDemosLoadStartTime {0} |
Static Private Attributes | |
| static const char * | ms_pRaceDemoDir = "demos/auto/race" |
Additional Inherited Members | |
Protected Member Functions inherited from CComponentInterfaces | |
| class CGameClient * | GameClient () const |
| class IClient * | Client () const |
| class IKernel * | Kernel () const |
| class IEngine * | Engine () const |
| class IGraphics * | Graphics () const |
| class ITextRender * | TextRender () const |
| class IInput * | Input () const |
| class IStorage * | Storage () const |
| class CUi * | Ui () const |
| class ISound * | Sound () const |
| class CRenderTools * | RenderTools () const |
| class CRenderMap * | RenderMap () const |
| class IConfigManager * | ConfigManager () const |
| class CConfig * | Config () const |
| class IConsole * | Console () const |
| class IDemoPlayer * | DemoPlayer () const |
| class IDemoRecorder * | DemoRecorder (int Recorder) const |
| class IFavorites * | Favorites () const |
| class IServerBrowser * | ServerBrowser () const |
| class CLayers * | Layers () const |
| class CCollision * | Collision () const |
| int64_t | time () const |
| float | LocalTime () const |
| class IHttp * | Http () const |
| CRaceDemo::CRaceDemo | ( | ) |
|
overridevirtual |
Called on map load.
Reimplemented from CComponent.
Called when receiving a network message.
| Msg | The message type. |
| pRawMsg | The message data. |
Reimplemented from CComponent.
|
overridevirtual |
Called when a new snapshot is received.
Reimplemented from CComponent.
|
overridevirtual |
Called to reset the component. This method is usually called on your component constructor to avoid code duplication.
Reimplemented from CComponent.
|
overridevirtual |
Called to cleanup the component. This method is called when the client is closed.
Reimplemented from CComponent.
This method is called when the client changes state, e.g from offline to online.
Reimplemented from CComponent.
|
staticprivate |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
| bool CRaceDemo::m_AllowRestart |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |