6352e8e319
all at once
22 lines
548 B
C++
22 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;
|
|
}
|
|
|
|
}
|