polserver/pol-core/pol/multi/boatcomp.cpp
turleypol 21577d8e5b
Clang Tidy concat namespaces (#855)
* tidy

* Automated clang-tidy change: modernize-concat-nested-namespaces

* compile test

* fix namespace

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
2026-01-17 10:30:21 +01:00

37 lines
667 B
C++

/** @file
*
* @par History
* - 2009/09/03 MuadDib: Changes for account related source file relocation
* Changes for multi related source file relocation
*/
#include "boatcomp.h"
#include "../baseobject.h"
#include "../lockable.h"
namespace Pol::Multi
{
UPlank::UPlank( const Items::ItemDesc& descriptor )
: Core::ULockable( descriptor, Core::UOBJ_CLASS::CLASS_ITEM )
{
}
void UPlank::setboat( UBoat* boat )
{
boat_.set( boat );
}
void UPlank::destroy()
{
boat_.clear();
base::destroy();
}
size_t UPlank::estimatedSize() const
{
return base::estimatedSize() + sizeof( ref_ptr<UBoat> );
}
} // namespace Pol::Multi