|
|
|
@ -22,6 +22,9 @@ namespace DetourNavigator
|
|
|
|
|
replaced = removed | added,
|
|
|
|
|
failed = 1 << 2,
|
|
|
|
|
lost = removed | failed,
|
|
|
|
|
cached = 1 << 3,
|
|
|
|
|
unchanged = replaced | cached,
|
|
|
|
|
restored = added | cached,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
inline bool isSuccess(UpdateNavMeshStatus value)
|
|
|
|
@ -34,6 +37,9 @@ namespace DetourNavigator
|
|
|
|
|
public:
|
|
|
|
|
UpdateNavMeshStatusBuilder() = default;
|
|
|
|
|
|
|
|
|
|
explicit UpdateNavMeshStatusBuilder(UpdateNavMeshStatus value)
|
|
|
|
|
: mResult(value) {}
|
|
|
|
|
|
|
|
|
|
UpdateNavMeshStatusBuilder removed(bool value)
|
|
|
|
|
{
|
|
|
|
|
if (value)
|
|
|
|
@ -61,6 +67,15 @@ namespace DetourNavigator
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UpdateNavMeshStatusBuilder cached(bool value)
|
|
|
|
|
{
|
|
|
|
|
if (value)
|
|
|
|
|
set(UpdateNavMeshStatus::cached);
|
|
|
|
|
else
|
|
|
|
|
unset(UpdateNavMeshStatus::cached);
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UpdateNavMeshStatus getResult() const
|
|
|
|
|
{
|
|
|
|
|
return mResult;
|
|
|
|
|