| 167 | } |
| 168 | |
| 169 | BytesContainer BehaviorTree::LoadSurface() const |
| 170 | { |
| 171 | if (WaitForLoaded()) |
| 172 | return BytesContainer(); |
| 173 | ScopeLock lock(Locker); |
| 174 | if (!LoadChunks(GET_CHUNK_FLAG(0))) |
| 175 | { |
| 176 | const auto data = GetChunk(0); |
| 177 | BytesContainer result; |
| 178 | result.Copy(data->Data); |
| 179 | return result; |
| 180 | } |
| 181 | LOG(Warning, "\'{0}\' surface data is missing.", ToString()); |
| 182 | return BytesContainer(); |
| 183 | } |
| 184 | |
| 185 | #if USE_EDITOR |
| 186 |
no test coverage detected