| 2042 | } |
| 2043 | |
| 2044 | Array<Guid> Actor::TryGetSerializedObjectsIds(const Span<byte>& data) |
| 2045 | { |
| 2046 | PROFILE_CPU(); |
| 2047 | Array<Guid> result; |
| 2048 | if (data.Length() > 0) |
| 2049 | { |
| 2050 | MemoryReadStream stream(data.Get(), data.Length()); |
| 2051 | |
| 2052 | // Header |
| 2053 | int32 engineBuild; |
| 2054 | stream.ReadInt32(&engineBuild); |
| 2055 | if (engineBuild <= FLAXENGINE_VERSION_BUILD && engineBuild >= 6165) |
| 2056 | { |
| 2057 | // Serialized objects ids (for references mapping) |
| 2058 | stream.Read(result); |
| 2059 | } |
| 2060 | } |
| 2061 | |
| 2062 | return result; |
| 2063 | } |
| 2064 | |
| 2065 | String Actor::ToJson() |
| 2066 | { |
no test coverage detected