-
-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Custom Train Tracks] Added missing files and fixed compile errors
- Loading branch information
1 parent
45d1a26
commit e2c5fcb
Showing
3 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/***************************************************************************** | ||
* | ||
* PROJECT: Multi Theft Auto v1.0 | ||
* LICENSE: See LICENSE in the top level directory | ||
* FILE: sdk/game/CTrackTrackManager.h | ||
* PURPOSE: Train Track Interface | ||
* DEVELOPERS: Cazomino05 < Cazomino05@gmail.com > | ||
* | ||
* Multi Theft Auto is available from http://www.multitheftauto.com/ | ||
* | ||
*****************************************************************************/ | ||
|
||
#ifndef __CTRAINTRACK_H | ||
#define __CTRAINTRACK_H | ||
|
||
class CTrainTrack | ||
{ | ||
public: | ||
virtual bool SetRailNodePosition ( unsigned int uiNode, CVector vecPosition ) = 0; | ||
virtual bool GetRailNodePosition ( unsigned int uiNode, CVector& vecPosition ) = 0; | ||
|
||
virtual bool SetTrackLength ( float fLength ) = 0; | ||
virtual float GetTrackLength ( void ) = 0; | ||
|
||
virtual bool SetNumberOfNodes ( unsigned int uiNumberOfNodes ) = 0; | ||
virtual unsigned int GetNumberOfNodes ( void ) = 0; | ||
|
||
virtual unsigned char GetTrackID ( void ) = 0; | ||
|
||
virtual void SetLastNodesLinked ( bool bLinked ) = 0; | ||
|
||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/***************************************************************************** | ||
* | ||
* PROJECT: Multi Theft Auto v1.0 | ||
* LICENSE: See LICENSE in the top level directory | ||
* FILE: sdk/game/CTrackTrackManager.h | ||
* PURPOSE: Train Track Manager Interface | ||
* DEVELOPERS: Cazomino05 < Cazomino05@gmail.com > | ||
* | ||
* Multi Theft Auto is available from http://www.multitheftauto.com/ | ||
* | ||
*****************************************************************************/ | ||
|
||
#ifndef __CTRAINTRACKMANAGER_H | ||
#define __CTRAINTRACKMANAGER_H | ||
|
||
class CTrainTrackManager | ||
{ | ||
public: | ||
virtual CTrainTrack * GetTrainTrack ( unsigned char ucTrack ) = 0; | ||
virtual void Initialise ( void ) = 0; | ||
virtual void ResetTracks ( void ) = 0; | ||
|
||
virtual CTrainTrack * CreateTrainTrack ( unsigned int uiNodes, unsigned char ucTrackID, bool bLinkedLastNodes ) = 0; | ||
virtual bool DestroyTrainTrack ( DWORD dwTrackID ) = 0; | ||
|
||
virtual float GetRailLength ( unsigned char ucTrack ) = 0; | ||
virtual DWORD GetNumberOfRailNodes ( unsigned char ucTrack ) = 0; | ||
|
||
virtual bool SetRailLength ( unsigned char ucTrack, float fLength ) = 0; | ||
virtual DWORD SetNumberOfRailNodes ( unsigned char ucTrack, DWORD dwTrackNodes ) = 0; | ||
|
||
virtual bool IsValid ( unsigned char ucTrack ) = 0; | ||
}; | ||
|
||
#endif |