-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gamestate/server): train sync node getters
- Loading branch information
Showing
11 changed files
with
187 additions
and
21 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
ns: CFX | ||
apiset: client | ||
apiset: shared | ||
game: gta5 | ||
--- | ||
## DOES_TRAIN_STOP_AT_STATIONS | ||
|
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,16 @@ | ||
--- | ||
ns: CFX | ||
apiset: shared | ||
game: gta5 | ||
--- | ||
## GET_TRAIN_BACKWARD_CARRIAGE | ||
|
||
```c | ||
int GET_TRAIN_BACKWARD_CARRIAGE(Vehicle train); | ||
``` | ||
## Parameters | ||
* **train**: The train handle | ||
## Return value | ||
The handle of the carriage behind this train in the chain. Otherwise returns 0 if the train is the caboose of the chain. |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
ns: CFX | ||
apiset: client | ||
apiset: shared | ||
game: gta5 | ||
--- | ||
## GET_TRAIN_CRUISE_SPEED | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
ns: CFX | ||
apiset: client | ||
apiset: shared | ||
game: gta5 | ||
--- | ||
## GET_TRAIN_DIRECTION | ||
|
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,16 @@ | ||
--- | ||
ns: CFX | ||
apiset: shared | ||
game: gta5 | ||
--- | ||
## GET_TRAIN_FORWARD_CARRIAGE | ||
|
||
```c | ||
int GET_TRAIN_FORWARD_CARRIAGE(Vehicle train); | ||
``` | ||
## Parameters | ||
* **train**: The train handle | ||
## Return value | ||
The handle of the carriage in front of this train in the chain. Otherwise returns 0 if the train has no carriage in front of it |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
ns: CFX | ||
apiset: client | ||
apiset: shared | ||
game: gta5 | ||
--- | ||
## GET_TRAIN_STATE | ||
|
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,16 @@ | ||
--- | ||
ns: CFX | ||
apiset: server | ||
game: gta5 | ||
--- | ||
## GET_TRAIN_TRACK_INDEX | ||
|
||
```c | ||
int GET_TRAIN_TRACK_INDEX(Vehicle train); | ||
``` | ||
## Parameters | ||
* **train**: The train handle | ||
## Return value | ||
The track index the train is currently on. |
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,16 @@ | ||
--- | ||
ns: CFX | ||
apiset: server | ||
game: gta5 | ||
--- | ||
## IS_TRAIN_CABOOSE | ||
|
||
```c | ||
bool IS_TRAIN_CABOOSE(Vehicle train); | ||
``` | ||
## Parameters | ||
* **train**: The train handle | ||
## Return value | ||
Returns true if the train is the caboose of the chain. |