| 265 | } |
| 266 | |
| 267 | bool AFCEntity::SetPosition(const AFVector3D& position, const float orient) |
| 268 | { |
| 269 | ARK_ASSERT_RET_VAL(m_pCallBackManager != nullptr && opt_charactor_ != nullptr, false); |
| 270 | |
| 271 | if (opt_charactor_->pos_ == position && opt_charactor_->orient_ == orient) |
| 272 | { |
| 273 | return false; |
| 274 | } |
| 275 | |
| 276 | AFVector3D old_pos = opt_charactor_->pos_; |
| 277 | |
| 278 | opt_charactor_->pos_ = position; |
| 279 | opt_charactor_->orient_ = orient; |
| 280 | |
| 281 | m_pCallBackManager->OnMoveEvent(guid_, old_pos, opt_charactor_->pos_); |
| 282 | |
| 283 | return true; |
| 284 | } |
| 285 | |
| 286 | bool AFCEntity::SetPosition(const float x, const float y, const float z, const float orient) |
| 287 | { |
nothing calls this directly
no test coverage detected