Api session items unitdatas: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary Tag: Manual revert |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 57: | Line 57: | ||
"regions" : [ ], | "regions" : [ ], | ||
"type" : "SHIP", | "type" : "SHIP", | ||
"version" : | "version" : 2 | ||
} ]</syntaxhighlight> | } ]</syntaxhighlight> | ||
==Limit Queries== | ==Limit Queries== | ||
| Line 90: | Line 90: | ||
!Description | !Description | ||
|- | |- | ||
|id | | id | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|offsetCoordinate | | offsetCoordinate | ||
|double[] | | double[] | ||
| | | | ||
|- | |- | ||
|particleEmitterID | | particleEmitterID | ||
|int | | int | ||
|[[Particle Emitter]] ID | | [[Particle Emitter]] ID | ||
|} | |} | ||
| Line 110: | Line 110: | ||
!Description | !Description | ||
|- | |- | ||
|NORTH_AMERICA | | NORTH_AMERICA | ||
| | | | ||
|- | |- | ||
|NORTHWESTERN_EUROPE | | NORTHWESTERN_EUROPE | ||
| | | | ||
|- | |- | ||
|ASIA | | ASIA | ||
| | | | ||
|- | |- | ||
|AFRICA | | AFRICA | ||
| | | | ||
|- | |- | ||
|OTHER | | OTHER | ||
| | | | ||
|} | |} | ||
| Line 142: | Line 142: | ||
!Description | !Description | ||
|- | |- | ||
|CAR | | CAR | ||
| | | | ||
|- | |- | ||
|VAN | | VAN | ||
| | | | ||
|- | |- | ||
|TRUCK | | TRUCK | ||
| | | | ||
|- | |- | ||
|BUS | | BUS | ||
| | | | ||
|- | |- | ||
|BICYCLE | | BICYCLE | ||
| | | | ||
|- | |- | ||
|PEDESTRIAN | | PEDESTRIAN | ||
| | | | ||
|- | |- | ||
|SHIP | | SHIP | ||
| | | | ||
|- | |- | ||
|TRAM | | TRAM | ||
| | | | ||
|- | |- | ||
|TRAIN | | TRAIN | ||
| | | | ||
|- | |- | ||
|AIR | | AIR | ||
| | | | ||
|} | |} | ||
| Line 181: | Line 181: | ||
!Description | !Description | ||
|- | |- | ||
|active | | active | ||
|boolean | | boolean | ||
| | | | ||
|- | |- | ||
|colors | | colors | ||
|TColor<nowiki>[]</nowiki> | | TColor<nowiki>[]</nowiki> | ||
| | | [[Color]]<nowiki>[]</nowiki> | ||
|- | |- | ||
|fileName | | fileName | ||
|String | | String | ||
| | | | ||
|- | |- | ||
|id | | id | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|isAlpha | | isAlpha | ||
|boolean | | boolean | ||
| | | | ||
|- | |- | ||
|name | | name | ||
|String | | String | ||
| | | | ||
|- | |- | ||
|particleEmitters | | particleEmitters | ||
|ParticleEmitterCoordinatePair<nowiki>[]</nowiki> | | ParticleEmitterCoordinatePair<nowiki>[]</nowiki> | ||
| | | [[Particle Emitter]]CoordinatePair<nowiki>[]</nowiki> | ||
|- | |- | ||
|proximityWarningM | | proximityWarningM | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|regions | | regions | ||
|Region<nowiki>[]</nowiki> | | Region<nowiki>[]</nowiki> | ||
| | | | ||
|- | |- | ||
|type | | type | ||
|TrafficType | | TrafficType | ||
| | | | ||
|- | |- | ||
|version | | version | ||
|int | | int | ||
| | | | ||
|} | |} | ||
Latest revision as of 09:14, 10 June 2026
API 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" : 2
} ]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[] | Color[] |
| fileName | String | |
| id | int | |
| isAlpha | boolean | |
| name | String | |
| particleEmitters | ParticleEmitterCoordinatePair[] | Particle EmitterCoordinatePair[] |
| proximityWarningM | double | |
| regions | Region[] | |
| type | TrafficType | |
| version | int |