Merge branch 'main' into pgd/20250527merge

This commit is contained in:
geondo55
2025-05-27 15:36:52 +09:00
11 changed files with 5 additions and 1025 deletions

View File

@@ -1,879 +0,0 @@
// <auto-generated>
// THIS (.cs) FILE IS GENERATED BY MPC(MessagePack-CSharp). DO NOT CHANGE IT.
// </auto-generated>
#pragma warning disable 618
#pragma warning disable 612
#pragma warning disable 414
#pragma warning disable 168
#pragma warning disable CS1591 // document public APIs
#pragma warning disable SA1312 // Variable names should begin with lower-case letter
#pragma warning disable SA1649 // File name should match first type name
namespace MessagePack.Resolvers
{
public class GeneratedResolver : global::MessagePack.IFormatterResolver
{
public static readonly global::MessagePack.IFormatterResolver Instance = new GeneratedResolver();
private GeneratedResolver()
{
}
public global::MessagePack.Formatters.IMessagePackFormatter<T> GetFormatter<T>()
{
return FormatterCache<T>.Formatter;
}
private static class FormatterCache<T>
{
internal static readonly global::MessagePack.Formatters.IMessagePackFormatter<T> Formatter;
static FormatterCache()
{
var f = GeneratedResolverGetFormatterHelper.GetFormatter(typeof(T));
if (f != null)
{
Formatter = (global::MessagePack.Formatters.IMessagePackFormatter<T>)f;
}
}
}
}
internal static class GeneratedResolverGetFormatterHelper
{
private static readonly global::System.Collections.Generic.Dictionary<global::System.Type, int> lookup;
static GeneratedResolverGetFormatterHelper()
{
lookup = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(23)
{
{ typeof(global::Studio.AssetTool.MaterialPropertyData[]), 0 },
{ typeof(global::Studio.AssetTool.ModelData[]), 1 },
{ typeof(global::Studio.AssetTool.SavedModelData[]), 2 },
{ typeof(global::Studio.Manage.SerializableVector2[]), 3 },
{ typeof(global::Studio.Manage.SerializableVector3[]), 4 },
{ typeof(global::Studio.Manage.SerializableVector4[]), 5 },
{ typeof(global::Studio.Manage.SubmeshData[]), 6 },
{ typeof(global::Studio.AssetTool.TextureData[]), 7 },
{ typeof(global::Studio.AssetTool.ThumbnailData[]), 8 },
{ typeof(string[][]), 9 },
{ typeof(global::Studio.AssetTool.MaterialPropertyData), 10 },
{ typeof(global::Studio.AssetTool.ModelData), 11 },
{ typeof(global::Studio.AssetTool.SaveData), 12 },
{ typeof(global::Studio.AssetTool.SavedModelData), 13 },
{ typeof(global::Studio.Manage.SerializableMesh), 14 },
{ typeof(global::Studio.Manage.SerializableQuaternion), 15 },
{ typeof(global::Studio.Manage.SerializableVector2), 16 },
{ typeof(global::Studio.Manage.SerializableVector3), 17 },
{ typeof(global::Studio.Manage.SerializableVector4), 18 },
{ typeof(global::Studio.Manage.SubmeshData), 19 },
{ typeof(global::Studio.AssetTool.TextureData), 20 },
{ typeof(global::Studio.AssetTool.ThumbnailData), 21 },
{ typeof(global::Studio.Manage.TransformData), 22 },
};
}
internal static object GetFormatter(global::System.Type t)
{
int key;
if (!lookup.TryGetValue(t, out key))
{
return null;
}
switch (key)
{
case 0: return new global::MessagePack.Formatters.ArrayFormatter<global::Studio.AssetTool.MaterialPropertyData>();
case 1: return new global::MessagePack.Formatters.ArrayFormatter<global::Studio.AssetTool.ModelData>();
case 2: return new global::MessagePack.Formatters.ArrayFormatter<global::Studio.AssetTool.SavedModelData>();
case 3: return new global::MessagePack.Formatters.ArrayFormatter<global::Studio.Manage.SerializableVector2>();
case 4: return new global::MessagePack.Formatters.ArrayFormatter<global::Studio.Manage.SerializableVector3>();
case 5: return new global::MessagePack.Formatters.ArrayFormatter<global::Studio.Manage.SerializableVector4>();
case 6: return new global::MessagePack.Formatters.ArrayFormatter<global::Studio.Manage.SubmeshData>();
case 7: return new global::MessagePack.Formatters.ArrayFormatter<global::Studio.AssetTool.TextureData>();
case 8: return new global::MessagePack.Formatters.ArrayFormatter<global::Studio.AssetTool.ThumbnailData>();
case 9: return new global::MessagePack.Formatters.ArrayFormatter<string[]>();
case 10: return new MessagePack.Formatters.XED.Manage.MaterialPropertyDataFormatter();
case 11: return new MessagePack.Formatters.XED.Manage.ModelDataFormatter();
case 12: return new MessagePack.Formatters.XED.Manage.SaveDataFormatter();
case 13: return new MessagePack.Formatters.XED.Manage.SavedModelDataFormatter();
case 14: return new MessagePack.Formatters.XED.Manage.SerializableMeshFormatter();
case 15: return new MessagePack.Formatters.XED.Manage.SerializableQuaternionFormatter();
case 16: return new MessagePack.Formatters.XED.Manage.SerializableVector2Formatter();
case 17: return new MessagePack.Formatters.XED.Manage.SerializableVector3Formatter();
case 18: return new MessagePack.Formatters.XED.Manage.SerializableVector4Formatter();
case 19: return new MessagePack.Formatters.XED.Manage.SubmeshDataFormatter();
case 20: return new MessagePack.Formatters.XED.Manage.TextureDataFormatter();
case 21: return new MessagePack.Formatters.XED.Manage.ThumbnailDataFormatter();
case 22: return new MessagePack.Formatters.XED.Manage.TransformDataFormatter();
default: return null;
}
}
}
}
#pragma warning restore 168
#pragma warning restore 414
#pragma warning restore 618
#pragma warning restore 612
#pragma warning restore SA1312 // Variable names should begin with lower-case letter
#pragma warning restore SA1649 // File name should match first type name
// <auto-generated>
// THIS (.cs) FILE IS GENERATED BY MPC(MessagePack-CSharp). DO NOT CHANGE IT.
// </auto-generated>
#pragma warning disable 618
#pragma warning disable 612
#pragma warning disable 414
#pragma warning disable 168
#pragma warning disable CS1591 // document public APIs
#pragma warning disable SA1129 // Do not use default value type constructor
#pragma warning disable SA1309 // Field names should not begin with underscore
#pragma warning disable SA1312 // Variable names should begin with lower-case letter
#pragma warning disable SA1403 // File may only contain a single namespace
#pragma warning disable SA1649 // File name should match first type name
namespace MessagePack.Formatters.XED.Manage
{
public sealed class MaterialPropertyDataFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::Studio.AssetTool.MaterialPropertyData>
{
public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::Studio.AssetTool.MaterialPropertyData value, global::MessagePack.MessagePackSerializerOptions options)
{
if (value == null)
{
writer.WriteNil();
return;
}
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
writer.WriteArrayHeader(11);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<float[]>(formatterResolver).Serialize(ref writer, value.baseColor, options);
writer.Write(value.metallic);
writer.Write(value.smoothness);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<float[]>(formatterResolver).Serialize(ref writer, value.emissionColor, options);
writer.Write(value.renderMode);
writer.Write(value.surfaceType);
writer.Write(value.blendMode);
writer.Write(value.occlusionStrength);
writer.Write(value.normalScale);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<string[]>(formatterResolver).Serialize(ref writer, value.texTypes, options);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<string[]>(formatterResolver).Serialize(ref writer, value.texUIDs, options);
}
public global::Studio.AssetTool.MaterialPropertyData Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
{
if (reader.TryReadNil())
{
return null;
}
options.Security.DepthStep(ref reader);
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
var length = reader.ReadArrayHeader();
var ____result = new global::Studio.AssetTool.MaterialPropertyData();
for (int i = 0; i < length; i++)
{
switch (i)
{
case 0:
____result.baseColor = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<float[]>(formatterResolver).Deserialize(ref reader, options);
break;
case 1:
____result.metallic = reader.ReadSingle();
break;
case 2:
____result.smoothness = reader.ReadSingle();
break;
case 3:
____result.emissionColor = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<float[]>(formatterResolver).Deserialize(ref reader, options);
break;
case 4:
____result.renderMode = reader.ReadInt32();
break;
case 5:
____result.surfaceType = reader.ReadInt32();
break;
case 6:
____result.blendMode = reader.ReadInt32();
break;
case 7:
____result.occlusionStrength = reader.ReadSingle();
break;
case 8:
____result.normalScale = reader.ReadSingle();
break;
case 9:
____result.texTypes = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<string[]>(formatterResolver).Deserialize(ref reader, options);
break;
case 10:
____result.texUIDs = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<string[]>(formatterResolver).Deserialize(ref reader, options);
break;
default:
reader.Skip();
break;
}
}
reader.Depth--;
return ____result;
}
}
public sealed class ModelDataFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::Studio.AssetTool.ModelData>
{
public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::Studio.AssetTool.ModelData value, global::MessagePack.MessagePackSerializerOptions options)
{
if (value == null)
{
writer.WriteNil();
return;
}
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
writer.WriteArrayHeader(6);
writer.Write(value.id);
writer.Write(value.parentId);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<string>(formatterResolver).Serialize(ref writer, value.modelComponentName, options);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.TransformData>(formatterResolver).Serialize(ref writer, value.transformData, options);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableMesh>(formatterResolver).Serialize(ref writer, value.mesh, options);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.AssetTool.MaterialPropertyData[]>(formatterResolver).Serialize(ref writer, value.materialProperties, options);
}
public global::Studio.AssetTool.ModelData Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
{
if (reader.TryReadNil())
{
return null;
}
options.Security.DepthStep(ref reader);
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
var length = reader.ReadArrayHeader();
var ____result = new global::Studio.AssetTool.ModelData();
for (int i = 0; i < length; i++)
{
switch (i)
{
case 0:
____result.id = reader.ReadInt32();
break;
case 1:
____result.parentId = reader.ReadInt32();
break;
case 2:
____result.modelComponentName = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<string>(formatterResolver).Deserialize(ref reader, options);
break;
case 3:
____result.transformData = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.TransformData>(formatterResolver).Deserialize(ref reader, options);
break;
case 4:
____result.mesh = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableMesh>(formatterResolver).Deserialize(ref reader, options);
break;
case 5:
____result.materialProperties = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.AssetTool.MaterialPropertyData[]>(formatterResolver).Deserialize(ref reader, options);
break;
default:
reader.Skip();
break;
}
}
reader.Depth--;
return ____result;
}
}
public sealed class SaveDataFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::Studio.AssetTool.SaveData>
{
public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::Studio.AssetTool.SaveData value, global::MessagePack.MessagePackSerializerOptions options)
{
if (value == null)
{
writer.WriteNil();
return;
}
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
writer.WriteArrayHeader(3);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.AssetTool.SavedModelData[]>(formatterResolver).Serialize(ref writer, value.modelDatas, options);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.AssetTool.TextureData[]>(formatterResolver).Serialize(ref writer, value.textureDatas, options);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.AssetTool.ThumbnailData[]>(formatterResolver).Serialize(ref writer, value.thumbnailDatas, options);
}
public global::Studio.AssetTool.SaveData Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
{
if (reader.TryReadNil())
{
return null;
}
options.Security.DepthStep(ref reader);
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
var length = reader.ReadArrayHeader();
var ____result = new global::Studio.AssetTool.SaveData();
for (int i = 0; i < length; i++)
{
switch (i)
{
case 0:
____result.modelDatas = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.AssetTool.SavedModelData[]>(formatterResolver).Deserialize(ref reader, options);
break;
case 1:
____result.textureDatas = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.AssetTool.TextureData[]>(formatterResolver).Deserialize(ref reader, options);
break;
case 2:
____result.thumbnailDatas = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.AssetTool.ThumbnailData[]>(formatterResolver).Deserialize(ref reader, options);
break;
default:
reader.Skip();
break;
}
}
reader.Depth--;
return ____result;
}
}
public sealed class SavedModelDataFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::Studio.AssetTool.SavedModelData>
{
public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::Studio.AssetTool.SavedModelData value, global::MessagePack.MessagePackSerializerOptions options)
{
if (value == null)
{
writer.WriteNil();
return;
}
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
writer.WriteArrayHeader(2);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<string[][]>(formatterResolver).Serialize(ref writer, value.attributes, options);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.AssetTool.ModelData[]>(formatterResolver).Serialize(ref writer, value.models, options);
}
public global::Studio.AssetTool.SavedModelData Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
{
if (reader.TryReadNil())
{
return null;
}
options.Security.DepthStep(ref reader);
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
var length = reader.ReadArrayHeader();
var ____result = new global::Studio.AssetTool.SavedModelData();
for (int i = 0; i < length; i++)
{
switch (i)
{
case 0:
____result.attributes = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<string[][]>(formatterResolver).Deserialize(ref reader, options);
break;
case 1:
____result.models = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.AssetTool.ModelData[]>(formatterResolver).Deserialize(ref reader, options);
break;
default:
reader.Skip();
break;
}
}
reader.Depth--;
return ____result;
}
}
public sealed class SerializableMeshFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::Studio.Manage.SerializableMesh>
{
public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::Studio.Manage.SerializableMesh value, global::MessagePack.MessagePackSerializerOptions options)
{
if (value == null)
{
writer.WriteNil();
return;
}
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
writer.WriteArrayHeader(5);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableVector3[]>(formatterResolver).Serialize(ref writer, value.vertices, options);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableVector3[]>(formatterResolver).Serialize(ref writer, value.normals, options);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableVector4[]>(formatterResolver).Serialize(ref writer, value.tangents, options);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableVector2[]>(formatterResolver).Serialize(ref writer, value.uv, options);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SubmeshData[]>(formatterResolver).Serialize(ref writer, value.submeshes, options);
}
public global::Studio.Manage.SerializableMesh Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
{
if (reader.TryReadNil())
{
return null;
}
options.Security.DepthStep(ref reader);
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
var length = reader.ReadArrayHeader();
var ____result = new global::Studio.Manage.SerializableMesh();
for (int i = 0; i < length; i++)
{
switch (i)
{
case 0:
____result.vertices = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableVector3[]>(formatterResolver).Deserialize(ref reader, options);
break;
case 1:
____result.normals = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableVector3[]>(formatterResolver).Deserialize(ref reader, options);
break;
case 2:
____result.tangents = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableVector4[]>(formatterResolver).Deserialize(ref reader, options);
break;
case 3:
____result.uv = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableVector2[]>(formatterResolver).Deserialize(ref reader, options);
break;
case 4:
____result.submeshes = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SubmeshData[]>(formatterResolver).Deserialize(ref reader, options);
break;
default:
reader.Skip();
break;
}
}
reader.Depth--;
return ____result;
}
}
public sealed class SerializableQuaternionFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::Studio.Manage.SerializableQuaternion>
{
public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::Studio.Manage.SerializableQuaternion value, global::MessagePack.MessagePackSerializerOptions options)
{
writer.WriteArrayHeader(4);
writer.Write(value.x);
writer.Write(value.y);
writer.Write(value.z);
writer.Write(value.w);
}
public global::Studio.Manage.SerializableQuaternion Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
{
if (reader.TryReadNil())
{
throw new global::System.InvalidOperationException("typecode is null, struct not supported");
}
options.Security.DepthStep(ref reader);
var length = reader.ReadArrayHeader();
var ____result = new global::Studio.Manage.SerializableQuaternion();
for (int i = 0; i < length; i++)
{
switch (i)
{
case 0:
____result.x = reader.ReadSingle();
break;
case 1:
____result.y = reader.ReadSingle();
break;
case 2:
____result.z = reader.ReadSingle();
break;
case 3:
____result.w = reader.ReadSingle();
break;
default:
reader.Skip();
break;
}
}
reader.Depth--;
return ____result;
}
}
public sealed class SerializableVector2Formatter : global::MessagePack.Formatters.IMessagePackFormatter<global::Studio.Manage.SerializableVector2>
{
public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::Studio.Manage.SerializableVector2 value, global::MessagePack.MessagePackSerializerOptions options)
{
writer.WriteArrayHeader(2);
writer.Write(value.x);
writer.Write(value.y);
}
public global::Studio.Manage.SerializableVector2 Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
{
if (reader.TryReadNil())
{
throw new global::System.InvalidOperationException("typecode is null, struct not supported");
}
options.Security.DepthStep(ref reader);
var length = reader.ReadArrayHeader();
var __x__ = default(float);
var __y__ = default(float);
for (int i = 0; i < length; i++)
{
switch (i)
{
case 0:
__x__ = reader.ReadSingle();
break;
case 1:
__y__ = reader.ReadSingle();
break;
default:
reader.Skip();
break;
}
}
var ____result = new global::Studio.Manage.SerializableVector2(__x__, __y__);
reader.Depth--;
return ____result;
}
}
public sealed class SerializableVector3Formatter : global::MessagePack.Formatters.IMessagePackFormatter<global::Studio.Manage.SerializableVector3>
{
public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::Studio.Manage.SerializableVector3 value, global::MessagePack.MessagePackSerializerOptions options)
{
writer.WriteArrayHeader(3);
writer.Write(value.x);
writer.Write(value.y);
writer.Write(value.z);
}
public global::Studio.Manage.SerializableVector3 Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
{
if (reader.TryReadNil())
{
throw new global::System.InvalidOperationException("typecode is null, struct not supported");
}
options.Security.DepthStep(ref reader);
var length = reader.ReadArrayHeader();
var __x__ = default(float);
var __y__ = default(float);
var __z__ = default(float);
for (int i = 0; i < length; i++)
{
switch (i)
{
case 0:
__x__ = reader.ReadSingle();
break;
case 1:
__y__ = reader.ReadSingle();
break;
case 2:
__z__ = reader.ReadSingle();
break;
default:
reader.Skip();
break;
}
}
var ____result = new global::Studio.Manage.SerializableVector3(__x__, __y__, __z__);
reader.Depth--;
return ____result;
}
}
public sealed class SerializableVector4Formatter : global::MessagePack.Formatters.IMessagePackFormatter<global::Studio.Manage.SerializableVector4>
{
public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::Studio.Manage.SerializableVector4 value, global::MessagePack.MessagePackSerializerOptions options)
{
writer.WriteArrayHeader(4);
writer.Write(value.x);
writer.Write(value.y);
writer.Write(value.z);
writer.Write(value.w);
}
public global::Studio.Manage.SerializableVector4 Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
{
if (reader.TryReadNil())
{
throw new global::System.InvalidOperationException("typecode is null, struct not supported");
}
options.Security.DepthStep(ref reader);
var length = reader.ReadArrayHeader();
var __x__ = default(float);
var __y__ = default(float);
var __z__ = default(float);
var __w__ = default(float);
for (int i = 0; i < length; i++)
{
switch (i)
{
case 0:
__x__ = reader.ReadSingle();
break;
case 1:
__y__ = reader.ReadSingle();
break;
case 2:
__z__ = reader.ReadSingle();
break;
case 3:
__w__ = reader.ReadSingle();
break;
default:
reader.Skip();
break;
}
}
var ____result = new global::Studio.Manage.SerializableVector4(__x__, __y__, __z__, __w__);
reader.Depth--;
return ____result;
}
}
public sealed class SubmeshDataFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::Studio.Manage.SubmeshData>
{
public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::Studio.Manage.SubmeshData value, global::MessagePack.MessagePackSerializerOptions options)
{
if (value == null)
{
writer.WriteNil();
return;
}
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
writer.WriteArrayHeader(2);
writer.Write(value.materialIndex);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<int[]>(formatterResolver).Serialize(ref writer, value.triangles, options);
}
public global::Studio.Manage.SubmeshData Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
{
if (reader.TryReadNil())
{
return null;
}
options.Security.DepthStep(ref reader);
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
var length = reader.ReadArrayHeader();
var ____result = new global::Studio.Manage.SubmeshData();
for (int i = 0; i < length; i++)
{
switch (i)
{
case 0:
____result.materialIndex = reader.ReadInt32();
break;
case 1:
____result.triangles = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<int[]>(formatterResolver).Deserialize(ref reader, options);
break;
default:
reader.Skip();
break;
}
}
reader.Depth--;
return ____result;
}
}
public sealed class TextureDataFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::Studio.AssetTool.TextureData>
{
public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::Studio.AssetTool.TextureData value, global::MessagePack.MessagePackSerializerOptions options)
{
if (value == null)
{
writer.WriteNil();
return;
}
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
writer.WriteArrayHeader(3);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<string>(formatterResolver).Serialize(ref writer, value.name, options);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<string>(formatterResolver).Serialize(ref writer, value.uid, options);
writer.Write(value.data);
}
public global::Studio.AssetTool.TextureData Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
{
if (reader.TryReadNil())
{
return null;
}
options.Security.DepthStep(ref reader);
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
var length = reader.ReadArrayHeader();
var __name__ = default(string);
var __uid__ = default(string);
var __data__ = default(byte[]);
for (int i = 0; i < length; i++)
{
switch (i)
{
case 0:
__name__ = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<string>(formatterResolver).Deserialize(ref reader, options);
break;
case 1:
__uid__ = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<string>(formatterResolver).Deserialize(ref reader, options);
break;
case 2:
__data__ = global::MessagePack.Internal.CodeGenHelpers.GetArrayFromNullableSequence(reader.ReadBytes());
break;
default:
reader.Skip();
break;
}
}
var ____result = new global::Studio.AssetTool.TextureData(__name__, __uid__, __data__);
reader.Depth--;
return ____result;
}
}
public sealed class ThumbnailDataFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::Studio.AssetTool.ThumbnailData>
{
public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::Studio.AssetTool.ThumbnailData value, global::MessagePack.MessagePackSerializerOptions options)
{
if (value == null)
{
writer.WriteNil();
return;
}
writer.WriteArrayHeader(1);
writer.Write(value.data);
}
public global::Studio.AssetTool.ThumbnailData Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
{
if (reader.TryReadNil())
{
return null;
}
options.Security.DepthStep(ref reader);
var length = reader.ReadArrayHeader();
var __data__ = default(byte[]);
for (int i = 0; i < length; i++)
{
switch (i)
{
case 0:
__data__ = global::MessagePack.Internal.CodeGenHelpers.GetArrayFromNullableSequence(reader.ReadBytes());
break;
default:
reader.Skip();
break;
}
}
var ____result = new global::Studio.AssetTool.ThumbnailData(__data__);
reader.Depth--;
return ____result;
}
}
public sealed class TransformDataFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::Studio.Manage.TransformData>
{
public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::Studio.Manage.TransformData value, global::MessagePack.MessagePackSerializerOptions options)
{
if (value == null)
{
writer.WriteNil();
return;
}
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
writer.WriteArrayHeader(3);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableVector3>(formatterResolver).Serialize(ref writer, value.position, options);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableQuaternion>(formatterResolver).Serialize(ref writer, value.rotation, options);
global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableVector3>(formatterResolver).Serialize(ref writer, value.scale, options);
}
public global::Studio.Manage.TransformData Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
{
if (reader.TryReadNil())
{
return null;
}
options.Security.DepthStep(ref reader);
global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
var length = reader.ReadArrayHeader();
var ____result = new global::Studio.Manage.TransformData();
for (int i = 0; i < length; i++)
{
switch (i)
{
case 0:
____result.position = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableVector3>(formatterResolver).Deserialize(ref reader, options);
break;
case 1:
____result.rotation = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableQuaternion>(formatterResolver).Deserialize(ref reader, options);
break;
case 2:
____result.scale = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify<global::Studio.Manage.SerializableVector3>(formatterResolver).Deserialize(ref reader, options);
break;
default:
reader.Skip();
break;
}
}
reader.Depth--;
return ____result;
}
}
}
#pragma warning restore 168
#pragma warning restore 414
#pragma warning restore 618
#pragma warning restore 612
#pragma warning restore SA1129 // Do not use default value type constructor
#pragma warning restore SA1309 // Field names should not begin with underscore
#pragma warning restore SA1312 // Variable names should begin with lower-case letter
#pragma warning restore SA1403 // File may only contain a single namespace
#pragma warning restore SA1649 // File name should match first type name

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: bab1dbb292003874992b64c18aaea648

View File

@@ -1,41 +0,0 @@
using System.Collections.Generic;
using UnityEngine;
namespace Studio
{
public class Pair<T>
{
public T Item1 { get; private set; }
public T Item2 { get; private set; }
public Pair(T item1, T item2)
{
if (item1.GetHashCode() < item2.GetHashCode())
{
Item1 = item1;
Item2 = item2;
}
else
{
Item1 = item2;
Item2 = item1;
}
}
public override bool Equals(object obj)
{
if (obj is Pair<T> other)
{
return EqualityComparer<T>.Default.Equals(Item1, other.Item1) && EqualityComparer<T>.Default.Equals(Item2, other.Item2);
}
return false;
}
public override int GetHashCode()
{
int hashItem1 = Item1 == null ? 0 : Item1.GetHashCode();
int hashItem2 = Item2 == null ? 0 : Item2.GetHashCode();
return hashItem1 ^ hashItem2;
}
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 53a4f7ac838a952408e1d12107a5b12b

View File

@@ -3,6 +3,6 @@ namespace Studio.Manage
public class ResourceURL
{
public readonly static string materialPath = "Materials";
internal static string mqttTestResultItem = "Prefabs/UI/Item_TopicResult";
internal static string mqttTestResultItem = "Prefabs/UI/UI_MQTTTestResultItem";
}
}

View File

@@ -119,17 +119,6 @@ namespace Studio
public List<SaveFilterData> saveFilterData = new List<SaveFilterData>();
}
[Serializable]
public class DynamicObjectDatas
{
public List<Dynamic3DModelUISetting> dynamic3DModelUISetting = new List<Dynamic3DModelUISetting>();
}
[Serializable]
public class ModelList
{
public List<ModelName> modelList = new List<ModelName>();
}
[Serializable]
public class ModelName
{

View File

@@ -1,9 +0,0 @@
using UnityEngine;
namespace Studio
{
public class Tester : MonoBehaviour
{
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 05fa0bd85c6e7a44eae07e30a20a2c1a

View File

@@ -1,63 +0,0 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Studio
{
public class TreeItem
{
public TwinObject ToItem;
//public UI_HierarchyItem View;
public event Action onDestroyTreeItem;
public int depth
{
get
{
TreeItem curr = parent;
int result = 0;
while (curr != null)
{
result++;
curr = curr.parent;
}
return result;
}
}
public List<TreeItem> children = new List<TreeItem>();
public TreeItem parent;
public bool expanded = true;
public event Action<TreeItem> onExpand;
public event Action<TreeItem> onFold;
public TreeItem(TwinObject to)
{
ToItem = to;
}
internal void Add(TreeItem t)
{
children.Add(t);
}
internal void RemoveChild(TreeItem c)
{
children.Remove(c);
}
public void OnExpand(bool value)
{
expanded = value;
if (value)
onExpand?.Invoke(this);
else
onFold?.Invoke(this);
}
public void DestroyTreeItem()
{
onDestroyTreeItem?.Invoke();
}
}
}

View File

@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: b5a2a42949797d448becac0b681c99fd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: