sc_vehicles_v1.seats
Fills out[0..max) with ship’s seats in the game’s order and sets *out_count to how many were written and *out_more to 1 when the ship has more than that (else 0). out may be NULL when max is 0 (then *out_more says whether the ship has any). SCO_NOT_FOUND: ship isn’t streamed in or isn’t a vehicle. game.vehicles.seats.
Signature
Section titled “Signature”sco_result (*)(uint64_t, sc_vehicle_seat *, uint32_t, uint32_t *, uint32_t *)Service and availability
Section titled “Service and availability”| Property | Value |
|---|---|
| Symbol | sc_vehicles_v1.seats |
| Record ID | sc-vehicles-v1-seats |
| Service | game.vehicles |
| Table | sc_vehicles_v1 |
| Version macro | SC_VEHICLES_SERVICE_VERSION |
| Packed table version | 65536 |
| Since / availability | size >= 24; 1.0 |
| Complete member extent (x64 bytes) | 24 |
| Table size (x64 bytes) | 64 |
Parameters and buffers
Section titled “Parameters and buffers”sco_result (*seats)(uint64_t ship, sc_vehicle_seat* out, uint32_t max, uint32_t* out_count, uint32_t* out_more);
Fills out[0..max) with ship’s seats in the game’s order and sets *out_count to how many were written and *out_more to 1 when the ship has more than that (else 0). out may be NULL when max is 0 (then *out_more says whether the ship has any). SCO_NOT_FOUND: ship isn’t streamed in or isn’t a vehicle. game.vehicles.seats.
Results and failures
Section titled “Results and failures”Absent table: query_service NOT_FOUND; missing operation capability: UNAVAILABLE; self validity as checked by implementation; released-handle refusal unspecified. Additional failures/output state unspecified unless described in the buffer contract.
Absent capability
Section titled “Absent capability”Absent table: query_service NOT_FOUND
Ownership
Section titled “Ownership”Caller outputs; IDs/seat indexes are streaming-session values. No allocation transfer; internal allocation unspecified.
Thread affinity
Section titled “Thread affinity”Game thread only (WRONG_THREAD elsewhere); last_error any thread. Recursive reentrancy unspecified.
Callback context
Section titled “Callback context”unspecified
Reentrancy
Section titled “Reentrancy”unspecified
Cleanup and cancellation
Section titled “Cleanup and cancellation”No in-flight cancellation entrypoint; game acceptance need not mean action completed.
Language mappings
Section titled “Language mappings”Status labels are copied verbatim from the catalogue: direct is native access; typed-wrapper is wrapper-backed; restricted is a subset/adaptation; unsupported means no supported route is established. No status implies universal safety.
| Language | Catalogue status | Source evidence / wrapper tokens |
|---|---|---|
| c | direct | include/sc_vehicles.h(*seats) |
| cpp | typed-wrapper | include/scosdk/game/vehicles.hppconst sco_result r = ref_->seats(ship, out.data(), static_cast<uint32_t>(out.size()), &count, &m); |
| csharp | typed-wrapper | sdk/csharp/Sco.Sdk/Game/Vehicles.csfixed (ScVehicleSeat* p = seats) r = _t->seats(ship, p, (uint)seats.Length, &n, &m); |
| lua | restricted | plugins/lua/sco_lua_game.cconst sco_result r = GAME_MEMBER(v, sc_vehicles_v1, seats) ? v->seats(ship, g_vehSeats, (uint32_t)(sizeof(g_vehSeats) / sizeof(g_vehSeats[0])), &n, &more)plugins/lua/sco_lua_game.c static sc_vehicle_seat g_vehSeats[256]; |
Examples
Section titled “Examples”None identified in the catalogue; this is not proof none can exist.
- tests/abi_game_vehicles.c
- tests/test_app.cpp
- sdk/csharp/Sco.Sdk.Tests/GameFakeHost.cs
- tests/test_lua.cpp
- tools/test.sh
- sdk/csharp/Sco.Sdk.Tests/GameLayout.cs
ABI pins prove layout, not semantic behavior or a live game session.