mirror of
https://github.com/AssetRipper/AssetRipper.Mining.git
synced 2026-11-15 01:38:07 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ca9112942 |
No files matched your search
@@ -32,6 +32,23 @@ public readonly struct AssetDictionary : IReadOnlyCollection<KeyValuePair<Object
|
||||
return _dictionary.ContainsKey(key);
|
||||
}
|
||||
|
||||
public bool TryAdd(Object key, PPtr value)
|
||||
{
|
||||
#if NETSTANDARD
|
||||
if (_dictionary.ContainsKey(key))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
_dictionary.Add(key, value);
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
return _dictionary.TryAdd(key, value);
|
||||
#endif
|
||||
}
|
||||
|
||||
public bool TryGetValue(Object key, out PPtr value)
|
||||
{
|
||||
return _dictionary.TryGetValue(key, out value);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
<Authors>ds5678</Authors>
|
||||
<Company>AssetRipper</Company>
|
||||
<Version>1.2.0</Version>
|
||||
<Version>1.2.1</Version>
|
||||
<AssemblyVersion>$(Version)</AssemblyVersion>
|
||||
<PackageId>AssetRipper.Mining.PredefinedAssets</PackageId>
|
||||
<PackageTags>C# Unity</PackageTags>
|
||||
|
||||
Reference in new issue
Block a user