| 899 | #include "Engine/Scripting/ManagedCLR/MUtils.h" |
| 900 | |
| 901 | void* Content::GetAssetsInternal() |
| 902 | { |
| 903 | AssetsLocker.Lock(); |
| 904 | MArray* result = MCore::Array::New(Asset::TypeInitializer.GetClass(), Assets.Count()); |
| 905 | int32 i = 0; |
| 906 | for (const auto& e : Assets) |
| 907 | MCore::GC::WriteArrayRef(result, e.Value->GetOrCreateManagedInstance(), i++); |
| 908 | AssetsLocker.Unlock(); |
| 909 | return result; |
| 910 | } |
| 911 | |
| 912 | #endif |
| 913 |