Api session items unitdatas: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Manual revert |
No edit summary |
||
| Line 41: | Line 41: | ||
"regions" : [ ], | "regions" : [ ], | ||
"type" : "CAR", | "type" : "CAR", | ||
"version" : | "version" : 4 | ||
}, { | }, { | ||
"active" : true, | "active" : true, | ||
| Line 57: | Line 57: | ||
"regions" : [ ], | "regions" : [ ], | ||
"type" : "SHIP", | "type" : "SHIP", | ||
"version" : | "version" : 15 | ||
} ]</syntaxhighlight> | } ]</syntaxhighlight> | ||
==Limit Queries== | ==Limit Queries== | ||
| Line 82: | Line 82: | ||
ZIPSMILE: | ZIPSMILE: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/unitdatas/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/unitdatas/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | ||
==Api Model UnitData== | |||
API Model description of UnitData | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
|active | |||
|boolean | |||
| | |||
|- | |||
|colors | |||
|TColor<nowiki>[]</nowiki> | |||
| | |||
|- | |||
|fileName | |||
|String | |||
| | |||
|- | |||
|id | |||
|int | |||
| | |||
|- | |||
|isAlpha | |||
|boolean | |||
| | |||
|- | |||
|name | |||
|String | |||
| | |||
|- | |||
|particleEmitters | |||
|ParticleEmitterCoordinatePair<nowiki>[]</nowiki> | |||
| | |||
|- | |||
|proximityWarningM | |||
|double | |||
| | |||
|- | |||
|regions | |||
|Region<nowiki>[]</nowiki> | |||
| | |||
|- | |||
|type | |||
|TrafficType | |||
| | |||
|- | |||
|version | |||
|int | |||
| | |||
|} | |||
{{article end|seealso=*[[Api Content Items]] | {{article end|seealso=*[[Api Content Items]] | ||
*[[Api session event editor unitdataoverride]] | *[[Api session event editor unitdataoverride]] | ||
Revision as of 11:53, 20 April 2026
Api session items Unit Datas Endpoints.
Edit items with event: editorunitdataoverride.
Default Query:
https://engine.tygron.com/api/session/items/unitdatas/?f=JSON&token=API_TOKENExample Response:
[ {
"active" : false,
"colors" : [ {
"argb" : -2694430
}, {
"argb" : -5323066
}, {
"argb" : -16169168
}, {
"argb" : -14920883
}, {
"argb" : -13550753
}, {
"argb" : -14207929
}, {
"argb" : -11710124
}, {
"argb" : -10262421
}, {
"argb" : -13619665
}, {
"argb" : -14862524
}, {
"argb" : -7529953
}, {
"argb" : -10542299
} ],
"fileName" : "motorcycle",
"id" : 0,
"isAlpha" : false,
"name" : "Scooter",
"particleEmitters" : [ ],
"proximityWarningM" : -1.0,
"regions" : [ ],
"type" : "CAR",
"version" : 4
}, {
"active" : true,
"colors" : [ {
"argb" : -2694430
}, {
"argb" : -5323066
} ],
"fileName" : "plezierboot",
"id" : 1,
"isAlpha" : false,
"name" : "Pleasure Boat",
"particleEmitters" : [ ],
"proximityWarningM" : -1.0,
"regions" : [ ],
"type" : "SHIP",
"version" : 15
} ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/unitdatas/?version=100&token=API_TOKENShow Queries
max version:
https://engine.tygron.com/api/session/items/unitdatas/version/?token=API_TOKENsize:
https://engine.tygron.com/api/session/items/unitdatas/size/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/unitdatas/?f=HTML&token=API_TOKENJSON:
https://engine.tygron.com/api/session/items/unitdatas/?f=JSON&token=API_TOKENCSV:
https://engine.tygron.com/api/session/items/unitdatas/?f=CSV&token=API_TOKENSSV:
https://engine.tygron.com/api/session/items/unitdatas/?f=SSV&token=API_TOKENSMILE:
https://engine.tygron.com/api/session/items/unitdatas/?f=SMILE&token=API_TOKENZIPJSON:
https://engine.tygron.com/api/session/items/unitdatas/?f=ZIPJSON&token=API_TOKENZIPSMILE:
https://engine.tygron.com/api/session/items/unitdatas/?f=ZIPSMILE&token=API_TOKENApi Model UnitData
API Model description of UnitData
| Name | Type | Description |
|---|---|---|
| active | boolean | |
| colors | TColor[] | |
| fileName | String | |
| id | int | |
| isAlpha | boolean | |
| name | String | |
| particleEmitters | ParticleEmitterCoordinatePair[] | |
| proximityWarningM | double | |
| regions | Region[] | |
| type | TrafficType | |
| version | int |