Api session items unitdatas: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 41: | Line 41: | ||
"regions" : [ ], | "regions" : [ ], | ||
"type" : "CAR", | "type" : "CAR", | ||
"version" : | "version" : 2 | ||
}, { | }, { | ||
"active" : true, | "active" : true, | ||
| Line 57: | Line 57: | ||
"regions" : [ ], | "regions" : [ ], | ||
"type" : "SHIP", | "type" : "SHIP", | ||
"version" : | "version" : 5 | ||
} ]</syntaxhighlight> | } ]</syntaxhighlight> | ||
==Limit Queries== | ==Limit Queries== | ||
| Line 231: | Line 231: | ||
[[Category:API]] | [[Category:API]] | ||
[[Category:ItemsI]] | |||
Revision as of 08:50, 24 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" : 2
}, {
"active" : true,
"colors" : [ {
"argb" : -2694430
}, {
"argb" : -5323066
} ],
"fileName" : "plezierboot",
"id" : 1,
"isAlpha" : false,
"name" : "Pleasure Boat",
"particleEmitters" : [ ],
"proximityWarningM" : -1.0,
"regions" : [ ],
"type" : "SHIP",
"version" : 5
} ]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 |