sc_vehicles_v1.seat_occupant
out_actor = the actor in seat seat_index of ship, or 0 when the seat is empty. SCO_FAILED when the seat is occupied but the game pack can’t tell by whom (last_error has the raw field); SCO_NOT_FOUND for a ship that isn’t streamed in or an index past the last seat. game.vehicles.seats.
Signature
Section titled “Signature”sco_result (*)(uint64_t, uint32_t, uint64_t *)Service and availability
Section titled “Service and availability”| Property | Value |
|---|---|
| Symbol | sc_vehicles_v1.seat_occupant |
| Record ID | sc-vehicles-v1-seat-occupant |
| Service | game.vehicles |
| Table | sc_vehicles_v1 |
| Version macro | SC_VEHICLES_SERVICE_VERSION |
| Packed table version | 65536 |
| Since / availability | size >= 32; 1.0 |
| Complete member extent (x64 bytes) | 32 |
| Table size (x64 bytes) | 64 |
Parameters and buffers
Section titled “Parameters and buffers”sco_result (*seat_occupant)(uint64_t ship, uint32_t seat_index, uint64_t* out_actor);
out_actor = the actor in seat seat_index of ship, or 0 when the seat is empty. SCO_FAILED when the seat is occupied but the game pack can’t tell by whom (last_error has the raw field); SCO_NOT_FOUND for a ship that isn’t streamed in or an index past the last seat. 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(*seat_occupant) |
| cpp | typed-wrapper | include/scosdk/game/vehicles.hppreturn detail::CanCall(ref_.Get(), &sc_vehicles_v1::seat_occupant) ? ref_->seat_occupant(ship, seatIndex, &actor) : SCO_UNAVAILABLE; |
| csharp | typed-wrapper | sdk/csharp/Sco.Sdk/Game/Vehicles.csScoResult r = _t == null || _t->size < (uint)((byte*)&_t->seat_occupant - (byte*)_t + sizeof(nint)) || _t->seat_occupant == null ? ScoResult.Unavailable : _t->seat_occupant(ship, seatIndex, &id); |
| lua | typed-wrapper | plugins/lua/sco_lua_game.cconst sco_result r = GAME_MEMBER(v, sc_vehicles_v1, seat_occupant) ? v->seat_occupant(ship, (uint32_t)index, &actor) : SCO_UNAVAILABLE; |
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.