MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / toJson

Method toJson

source/frontend/StarVoice.cpp:112–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112Json Voice::Speaker::toJson() const {
113 return JsonObject{
114 {"speakerId", speakerId},
115 {"entityId", entityId },
116 {"name", name },
117 {"playing", (bool)playing},
118 {"muted", (bool)muted },
119 {"decibels", (float)decibelLevel},
120 {"smoothDecibels", (float)smoothDb },
121 {"position", jsonFromVec2F(position)}
122 };
123}
124
125Voice* Voice::s_singleton;
126

Callers 5

makeVoiceCallbacksMethod · 0.45
buyMethod · 0.45
sellMethod · 0.45
addMessagesMethod · 0.45

Calls 1

jsonFromVec2FFunction · 0.85

Tested by

no test coverage detected