Starbound/source/game/interfaces/StarAnchorableEntity.cpp
2025-03-21 22:23:30 +11:00

21 lines
548 B
C++

#include "StarAnchorableEntity.hpp"
namespace Star {
bool EntityAnchorState::operator==(EntityAnchorState const& eas) const {
return tie(entityId, positionIndex) == tie(eas.entityId, eas.positionIndex);
}
DataStream& operator>>(DataStream& ds, EntityAnchorState& anchorState) {
ds.read(anchorState.entityId);
ds.readVlqS(anchorState.positionIndex);
return ds;
}
DataStream& operator<<(DataStream& ds, EntityAnchorState const& anchorState) {
ds.write(anchorState.entityId);
ds.writeVlqS(anchorState.positionIndex);
return ds;
}
}