osb/source/game/interfaces/StarAnchorableEntity.cpp

22 lines
548 B
C++
Raw Normal View History

2023-06-20 04:33:09 +00:00
#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;
}
}