mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
13 lines
385 B
Lua
13 lines
385 B
Lua
-- Parts of EW api that are guaranteed to be stable and can be used only from ew lua context.
|
|
|
|
local ew_api = {}
|
|
|
|
-- Creates an rpc namespace. See ew_api_example for how to use it.
|
|
ew_api.new_rpc_namespace = net.new_rpc_namespace_with_id
|
|
|
|
-- In rpc, returns player_data of a peer who called that rpc.
|
|
function ew_api.rpc_player_data()
|
|
return ctx.rpc_player_data
|
|
end
|
|
|
|
return ew_api
|