초기커밋
This commit is contained in:
75
ServerCommon/MetaAssets/MetaTable/CurrencyData.cs
Normal file
75
ServerCommon/MetaAssets/MetaTable/CurrencyData.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
// <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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user