Api session items unitdatas: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (19 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Api session items [[Unit Data]]s Endpoint: /api/session/items/unitdatas/ | |||
Edit items with events described at [[Api session event editor unitdataoverride]]. | |||
Default Query: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/unitdatas/?f=JSON&token=API_TOKEN</syntaxhighlight> | |||
Example Response: | |||
<syntaxhighlight lang="text" copy>[ { | |||
"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" : 1 | |||
}, { | |||
"active" : true, | |||
"colors" : [ { | |||
"argb" : -2694430 | |||
}, { | |||
"argb" : -5323066 | |||
} ], | |||
"fileName" : "plezierboot", | |||
"id" : 1, | |||
"isAlpha" : false, | |||
"name" : "Pleasure Boat", | |||
"particleEmitters" : [ ], | |||
"proximityWarningM" : -1.0, | |||
"regions" : [ ], | |||
"type" : "SHIP", | |||
"version" : 7 | |||
} ]</syntaxhighlight> | |||
==Limit Queries== | ==Limit Queries== | ||
version=100: | version=100: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/unitdatas/?version=100&token=API_TOKEN</syntaxhighlight> | ||
==Show Queries== | ==Show Queries== | ||
max version: | max version: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/unitdatas/version/?token=API_TOKEN</syntaxhighlight> | ||
size: | size: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/unitdatas/size/?token=API_TOKEN</syntaxhighlight> | ||
==Formats== | ==Formats== | ||
HTML: | HTML: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/unitdatas/?f=HTML&token=API_TOKEN</syntaxhighlight> | ||
JSON: | JSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/unitdatas/?f=JSON&token=API_TOKEN</syntaxhighlight> | ||
CSV: | CSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/unitdatas/?f=CSV&token=API_TOKEN</syntaxhighlight> | ||
SSV: | SSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/unitdatas/?f=SSV&token=API_TOKEN</syntaxhighlight> | ||
SMILE: | SMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/unitdatas/?f=SMILE&token=API_TOKEN</syntaxhighlight> | ||
ZIPJSON: | ZIPJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/unitdatas/?f=ZIPJSON&token=API_TOKEN</syntaxhighlight> | ||
ZIPSMILE: | ZIPSMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/unitdatas/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | ||
{{article end|seealso=*[[Api Content Items]]}} | ==Api Model ParticleEmitterCoordinatePair== | ||
API Model description of ParticleEmitterCoordinatePair | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
|id | |||
|int | |||
| | |||
|- | |||
|offsetCoordinate | |||
|double[] | |||
| | |||
|- | |||
|particleEmitterID | |||
|int | |||
|[[Particle Emitter]] ID | |||
|} | |||
==Api Model Region== | |||
API Enumeration description of Region | |||
{|class=wikitable | |||
!Name | |||
!Description | |||
|- | |||
|NORTH_AMERICA | |||
| | |||
|- | |||
|NORTHWESTERN_EUROPE | |||
| | |||
|- | |||
|ASIA | |||
| | |||
|- | |||
|AFRICA | |||
| | |||
|- | |||
|OTHER | |||
| | |||
|} | |||
==Api Model TColor== | |||
API Model description of TColor | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|} | |||
==Api Model TrafficType== | |||
API Enumeration description of TrafficType | |||
{|class=wikitable | |||
!Name | |||
!Description | |||
|- | |||
|CAR | |||
| | |||
|- | |||
|VAN | |||
| | |||
|- | |||
|TRUCK | |||
| | |||
|- | |||
|BUS | |||
| | |||
|- | |||
|BICYCLE | |||
| | |||
|- | |||
|PEDESTRIAN | |||
| | |||
|- | |||
|SHIP | |||
| | |||
|- | |||
|TRAM | |||
| | |||
|- | |||
|TRAIN | |||
| | |||
|- | |||
|AIR | |||
| | |||
|} | |||
==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]] | |||
*[[Api session event editor unitdataoverride]] | |||
}} | |||
[[Category:API]] | [[Category:API]] | ||
[[Category:Items]] | |||
Latest revision as of 12:14, 29 May 2026
Api session items Unit Datas Endpoint: /api/session/items/unitdatas/
Edit items with events described at Api session event editor unitdataoverride.
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" : 1
}, {
"active" : true,
"colors" : [ {
"argb" : -2694430
}, {
"argb" : -5323066
} ],
"fileName" : "plezierboot",
"id" : 1,
"isAlpha" : false,
"name" : "Pleasure Boat",
"particleEmitters" : [ ],
"proximityWarningM" : -1.0,
"regions" : [ ],
"type" : "SHIP",
"version" : 7
} ]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 ParticleEmitterCoordinatePair
API Model description of ParticleEmitterCoordinatePair
| Name | Type | Description |
|---|---|---|
| id | int | |
| offsetCoordinate | double[] | |
| particleEmitterID | int | Particle Emitter ID |
Api Model Region
API Enumeration description of Region
| Name | Description |
|---|---|
| NORTH_AMERICA | |
| NORTHWESTERN_EUROPE | |
| ASIA | |
| AFRICA | |
| OTHER |
Api Model TColor
API Model description of TColor
| Name | Type | Description |
|---|
Api Model TrafficType
API Enumeration description of TrafficType
| Name | Description |
|---|---|
| CAR | |
| VAN | |
| TRUCK | |
| BUS | |
| BICYCLE | |
| PEDESTRIAN | |
| SHIP | |
| TRAM | |
| TRAIN | |
| AIR |
Api 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 |