v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
21
source/game/interfaces/StarAnchorableEntity.cpp
Normal file
21
source/game/interfaces/StarAnchorableEntity.cpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
#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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue