35 std::string playerName =
"";
71 if ((*it)->getSourceID() == sourceid)
94 if (c->GetActorCoupling() == actor)
96 c->SetActorCoupling(
false,
nullptr);
110 for (
auto packet : packet_buffer)
128 c->receiveStreamData(packet.header.command, packet.header.source, packet.header.streamid, packet.buffer);
Central state/object manager and communications hub.
void LOG(const char *msg)
Legacy alias - formerly a macro.
void DeleteAllCharacters()
Character * CreateLocalCharacter()
void createRemoteInstance(int sourceid, int streamid)
void handleStreamData(std::vector< RoR::NetRecvPacket > packet)
void UndoRemoteActorCoupling(ActorPtr actor)
void removeStreamSource(int sourceid)
std::unique_ptr< Character > m_local_character
std::vector< std::unique_ptr< Character > > m_remote_characters
GfxCharacter * SetupGfx()
void RegisterGfxCharacter(RoR::GfxCharacter *gfx_character)
RoRnet::UserInfo GetLocalUserData()
bool GetUserInfo(int uid, RoRnet::UserInfo &result)
std::string tryConvertUTF(const char *buffer)
@ MSG2_USER_LEAVE
user leaves
@ MSG2_STREAM_REGISTER
create new stream
< Sent from the client to server and vice versa, to broadcast a new stream
int32_t type
0 = Actor, 1 = Character, 3 = ChatSystem
char username[RORNET_MAX_USERNAME_LEN]
the nickname of the user (UTF-8)
int32_t colournum
colour set by server