aboutsummaryrefslogtreecommitdiff
path: root/assets/interlocking.html.LyXconv/interlocking.log
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2020-10-07 17:20:47 +0200
committerorwell96 <orwell@bleipb.de>2020-10-07 17:20:47 +0200
commit3256c2778d626548541bcdfabf3026f781a2287c (patch)
tree8fac88986a2cd4f00ed6b1855dd1dafa08c09662 /assets/interlocking.html.LyXconv/interlocking.log
parenta73236d7eb6ff79476d0187ff46e83872fc798be (diff)
Forbid track modification when train, IP or TCB is on it, better handle removing of TCBs (H#149)
Diffstat (limited to 'assets/interlocking.html.LyXconv/interlocking.log')
0 files changed, 0 insertions, 0 deletions
"> #include "constants.h" // BS #include "log.h" ServerActiveObject::ServerActiveObject(ServerEnvironment *env, v3f pos): ActiveObject(0), m_env(env), m_base_position(pos) { } float ServerActiveObject::getMinimumSavedMovement() { return 2.0*BS; } ItemStack ServerActiveObject::getWieldedItem(ItemStack *selected, ItemStack *hand) const { *selected = ItemStack(); if (hand) *hand = ItemStack(); return ItemStack(); } bool ServerActiveObject::setWieldedItem(const ItemStack &item) { return false; } std::string ServerActiveObject::generateUpdateInfantCommand(u16 infant_id, u16 protocol_version) { std::ostringstream os(std::ios::binary); // command writeU8(os, AO_CMD_SPAWN_INFANT); // parameters writeU16(os, infant_id); writeU8(os, getSendType()); os << serializeLongString(getClientInitializationData(protocol_version)); return os.str(); } std::string ServerActiveObject::generateUpdateNametagAttributesCommand(const video::SColor &color) const { std::ostringstream os(std::ios::binary); // command writeU8(os, AO_CMD_UPDATE_NAMETAG_ATTRIBUTES); // parameters writeU8(os, 1); // version for forward compatibility writeARGB8(os, color); return os.str(); } void ServerActiveObject::dumpAOMessagesToQueue(std::queue<ActiveObjectMessage> &queue) { while (!m_messages_out.empty()) { queue.push(m_messages_out.front()); m_messages_out.pop(); } }