MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / entity_set

Function entity_set

Source/Wasm/WasmRuntime.cpp:1817–1819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1815/* Entity */
1816
1817DORA_EXPORT void entity_set(int64_t e, int64_t k, int64_t v) {
1818 r_cast<Entity*>(e)->set(*Str_From(k), Value_To(*r_cast<dora_val_t*>(v)));
1819}
1820DORA_EXPORT int64_t entity_get(int64_t e, int64_t k) {
1821 if (auto com = r_cast<Entity*>(e)->getComponent(*Str_From(k))) {
1822 return Value_From(com);

Callers 1

setMethod · 0.85

Calls 3

Str_FromFunction · 0.85
Value_ToFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected