76 lines
2.2 KiB
C#
76 lines
2.2 KiB
C#
// <auto-generated>
|
|
// generated using ContentTool. DO NOT EDIT!
|
|
// </auto-generated>
|
|
|
|
using System;
|
|
using System.IO;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Collections.ObjectModel;
|
|
using Newtonsoft.Json.Converters;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace MetaAssets
|
|
{
|
|
#pragma warning disable
|
|
|
|
public partial class CurrencyMetaDataMutable
|
|
{
|
|
[JsonProperty("Id")]
|
|
public int Id { get; set; }
|
|
[JsonProperty("CurrencyType")]
|
|
public CurrencyType CurrencyType { get; set; }
|
|
[JsonProperty("Name")]
|
|
public string Name { get; set; }
|
|
[JsonProperty("Description")]
|
|
public string Description { get; set; }
|
|
[JsonProperty("MaxCount")]
|
|
public double MaxCount { get; set; }
|
|
[JsonProperty("IconPath")]
|
|
public string IconPath { get; set; }
|
|
[JsonProperty("ItemID")]
|
|
public int ItemId { get; set; }
|
|
}
|
|
|
|
public partial class CurrencyMetaTableMutable
|
|
{
|
|
[JsonProperty("CurrencyMetaDataList")]
|
|
public IList<CurrencyMetaDataMutable> CurrencyMetaDataList { get; set; }
|
|
}
|
|
|
|
//////////////////////////////
|
|
// readonly class
|
|
//////////////////////////////
|
|
public partial class CurrencyMetaData
|
|
{
|
|
public readonly int Id;
|
|
public readonly CurrencyType CurrencyType;
|
|
public readonly string Name;
|
|
public readonly string Description;
|
|
public readonly double MaxCount;
|
|
public readonly string IconPath;
|
|
public readonly int ItemId;
|
|
public CurrencyMetaData(CurrencyMetaDataMutable data)
|
|
{
|
|
Id = data.Id;
|
|
CurrencyType = data.CurrencyType;
|
|
Name = data.Name;
|
|
Description = data.Description;
|
|
MaxCount = data.MaxCount;
|
|
IconPath = data.IconPath;
|
|
ItemId = data.ItemId;
|
|
}
|
|
}
|
|
|
|
public partial class CurrencyMetaTable
|
|
{
|
|
public readonly IReadOnlyList<CurrencyMetaData> CurrencyMetaDataList;
|
|
public CurrencyMetaTable(CurrencyMetaTableMutable data)
|
|
{
|
|
if(data.CurrencyMetaDataList != null)
|
|
CurrencyMetaDataList = data.CurrencyMetaDataList.Select(x => new CurrencyMetaData(x)).ToList().AsReadOnly();
|
|
}
|
|
}
|
|
|
|
}
|