mirror of
https://github.com/AssetRipper/AssetRipper.Mining.git
synced 2026-11-15 01:38:07 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c34f7447b8 |
No files matched your search
@@ -9,7 +9,7 @@
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
<Authors>ds5678</Authors>
|
||||
<Company>AssetRipper</Company>
|
||||
<Version>1.0.2</Version>
|
||||
<Version>1.0.3</Version>
|
||||
<AssemblyVersion>$(Version)</AssemblyVersion>
|
||||
<PackageId>AssetRipper.Mining.PredefinedAssets</PackageId>
|
||||
<PackageTags>C# Unity</PackageTags>
|
||||
|
||||
@@ -4,6 +4,10 @@ namespace AssetRipper.Mining.PredefinedAssets;
|
||||
|
||||
public readonly record struct EngineResourceData(Dictionary<long, Object> DefaultResources, Dictionary<long, Object> ExtraResources)
|
||||
{
|
||||
public EngineResourceData() : this(new(), new())
|
||||
{
|
||||
}
|
||||
|
||||
public readonly string ToJson()
|
||||
{
|
||||
return JsonSerializer.Serialize(this, InternalSerializerContext.Default.EngineResourceData);
|
||||
|
||||
@@ -21,8 +21,16 @@ public readonly record struct UnityPackageData(
|
||||
bool UsedInPackageJson,
|
||||
Dictionary<string, UnityGuid> Assemblies,
|
||||
Dictionary<string, Dictionary<string, UnityGuid>> Scripts,
|
||||
KeyValuePair<Object, UnityGuid>[] Assets)
|
||||
Dictionary<Object, UnityGuid> Assets)
|
||||
{
|
||||
public UnityPackageData(string name, string version, bool usedInPackageJson) : this(name, version, usedInPackageJson, new(), new(), new())
|
||||
{
|
||||
}
|
||||
|
||||
public UnityPackageData(string name, string version = "") : this(name, version, string.IsNullOrEmpty(version))
|
||||
{
|
||||
}
|
||||
|
||||
public readonly string ToJson()
|
||||
{
|
||||
return JsonSerializer.Serialize(this, InternalSerializerContext.Default.UnityPackageData);
|
||||
|
||||
Reference in new issue
Block a user