sc_spatial_v1.zone_of_entity
The id of the zone an entity is in (your ship’s, a spawned entity’s).
Signature
Section titled “Signature”int (*)(uint64_t, uint64_t *)Service and availability
Section titled “Service and availability”| Property | Value |
|---|---|
| Symbol | sc_spatial_v1.zone_of_entity |
| Record ID | sc-spatial-v1-zone-of-entity |
| Service | teleport.spatial |
| Table | sc_spatial_v1 |
| Version macro | SC_SPATIAL_SERVICE_VERSION |
| Packed table version | 65536 |
| Since / availability | size >= 24; 1.0 |
| Complete member extent (x64 bytes) | 24 |
| Table size (x64 bytes) | 56 |
Parameters and buffers
Section titled “Parameters and buffers”int (*zone_of_entity)(uint64_t entity_id, uint64_t* zone_id);
The id of the zone an entity is in (your ship’s, a spawned entity’s).
Results and failures
Section titled “Results and failures”Absent table: query_service NOT_FOUND; wrong thread/missing teleport or unreadable game state: 0. Outputs only written on 1. 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 buffers; IDs are borrowed session values, not pointers. No allocation transfer; internal allocation unspecified.
Thread affinity
Section titled “Thread affinity”Game thread only; recursive reentrancy unspecified.
Callback context
Section titled “Callback context”unspecified
Reentrancy
Section titled “Reentrancy”unspecified
Cleanup and cancellation
Section titled “Cleanup and cancellation”No cancellation entrypoint; synchronous query.
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_spatial.h(*zone_of_entity) |
| cpp | direct | include/sc_spatial.h(*zone_of_entity) |
| csharp | unsupported | docs/sdk-csharp.mdThe host-owned services each have a class.docs/sdk-csharp.md | Class | Service | Does | |
| lua | unsupported | sdk/docs/lua.mdThe script sees only:sdk/docs/lua.md There is no plugins/lua/sco_lua_game.c if (!(actors || vehicles || world || entities || creative)) return; |
Examples
Section titled “Examples”None identified in the catalogue; this is not proof none can exist.
ABI pins prove layout, not semantic behavior or a live game session.