mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
86 lines
1.6 KiB
Markdown
86 lines
1.6 KiB
Markdown
## [:rewind: Lua Functions](functions.md)
|
|
|
|
---
|
|
|
|
[< prev](functions-6.md) | [1](functions.md) | [2](functions-2.md) | [3](functions-3.md) | [4](functions-4.md) | [5](functions-5.md) | [6](functions-6.md) | 7]
|
|
|
|
|
|
---
|
|
# functions from sync_object.h
|
|
|
|
<br />
|
|
|
|
|
|
## [sync_object_get_object](#sync_object_get_object)
|
|
|
|
### Description
|
|
Retrieves an object from a sync ID
|
|
|
|
### Lua Example
|
|
`local ObjectValue = sync_object_get_object(syncId)`
|
|
|
|
### Parameters
|
|
| Field | Type |
|
|
| ----- | ---- |
|
|
| syncId | `integer` |
|
|
|
|
### Returns
|
|
[Object](structs.md#Object)
|
|
|
|
### C Prototype
|
|
`struct Object* sync_object_get_object(u32 syncId);`
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
<br />
|
|
|
|
## [sync_object_is_initialized](#sync_object_is_initialized)
|
|
|
|
### Description
|
|
Checks if a sync object is initialized using a `syncId`
|
|
|
|
### Lua Example
|
|
`local booleanValue = sync_object_is_initialized(syncId)`
|
|
|
|
### Parameters
|
|
| Field | Type |
|
|
| ----- | ---- |
|
|
| syncId | `integer` |
|
|
|
|
### Returns
|
|
- `boolean`
|
|
|
|
### C Prototype
|
|
`bool sync_object_is_initialized(u32 syncId);`
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
<br />
|
|
|
|
## [sync_object_is_owned_locally](#sync_object_is_owned_locally)
|
|
|
|
### Description
|
|
Checks if a sync object is owned locally using a `syncId`
|
|
|
|
### Lua Example
|
|
`local booleanValue = sync_object_is_owned_locally(syncId)`
|
|
|
|
### Parameters
|
|
| Field | Type |
|
|
| ----- | ---- |
|
|
| syncId | `integer` |
|
|
|
|
### Returns
|
|
- `boolean`
|
|
|
|
### C Prototype
|
|
`bool sync_object_is_owned_locally(u32 syncId);`
|
|
|
|
[:arrow_up_small:](#)
|
|
|
|
<br />
|
|
|
|
---
|
|
|
|
[< prev](functions-6.md) | [1](functions.md) | [2](functions-2.md) | [3](functions-3.md) | [4](functions-4.md) | [5](functions-5.md) | [6](functions-6.md) | 7]
|
|
|