浏览代码

removed serialization elements from the public api

/main
Steven Leal 4 年前
当前提交
6bb3dff1
共有 2 个文件被更改,包括 20 次插入20 次删除
  1. 8
      com.unity.perception/Runtime/Randomization/Scenarios/Serialization/JsonConverters.cs
  2. 32
      com.unity.perception/Runtime/Randomization/Scenarios/Serialization/SerializationStructures.cs

8
com.unity.perception/Runtime/Randomization/Scenarios/Serialization/JsonConverters.cs


namespace UnityEngine.Perception.Randomization.Scenarios.Serialization
{
public class GroupItemsConverter : JsonConverter
class GroupItemsConverter : JsonConverter
{
public override bool CanWrite => true;

}
}
public class ParameterItemsConverter : JsonConverter
class ParameterItemsConverter : JsonConverter
{
public override bool CanRead => true;

}
}
public class SamplerOptionsConverter : JsonConverter
class SamplerOptionsConverter : JsonConverter
{
public override bool CanRead => true;

}
}
public class ScalarConverter : JsonConverter
class ScalarConverter : JsonConverter
{
public override bool CanRead => true;

32
com.unity.perception/Runtime/Randomization/Scenarios/Serialization/SerializationStructures.cs


namespace UnityEngine.Perception.Randomization.Scenarios.Serialization
{
#region Interfaces
public interface IGroupItem { }
interface IGroupItem { }
public interface IParameterItem { }
interface IParameterItem { }
public interface ISamplerOption { }
interface ISamplerOption { }
public interface IScalarValue { }
interface IScalarValue { }
public class TemplateConfigurationOptions
class TemplateConfigurationOptions
public class StandardMetadata
class StandardMetadata
public class Group
class Group
{
public StandardMetadata metadata = new StandardMetadata();
[JsonConverter(typeof(GroupItemsConverter))]

public class Parameter : IGroupItem
class Parameter : IGroupItem
{
public StandardMetadata metadata = new StandardMetadata();
[JsonConverter(typeof(ParameterItemsConverter))]

#region SamplerOptions
[JsonConverter(typeof(SamplerOptionsConverter))]
public class SamplerOptions : IParameterItem
class SamplerOptions : IParameterItem
public class UniformSampler : ISamplerOption
class UniformSampler : ISamplerOption
public class NormalSampler : ISamplerOption
class NormalSampler : ISamplerOption
{
public double min;
public double max;

public class ConstantSampler : ISamplerOption
class ConstantSampler : ISamplerOption
{
public double value;
}

[JsonConverter(typeof(ScalarConverter))]
public class Scalar : IGroupItem, IParameterItem
class Scalar : IGroupItem, IParameterItem
public class StringScalarValue : IScalarValue
class StringScalarValue : IScalarValue
public class DoubleScalarValue : IScalarValue
class DoubleScalarValue : IScalarValue
public class BooleanScalarValue : IScalarValue
class BooleanScalarValue : IScalarValue
{
public bool boolean;
}
正在加载...
取消
保存