초기커밋
This commit is contained in:
99
ServerCommon/MetaAssets/MetaTable/ItemLevelEnchantData.cs
Normal file
99
ServerCommon/MetaAssets/MetaTable/ItemLevelEnchantData.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
// <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 ConsumeItemMutable
|
||||
{
|
||||
[JsonProperty("ConsumeItemID")]
|
||||
public int ConsumeItemID { get; set; }
|
||||
[JsonProperty("ConsumeItemCount")]
|
||||
public int ConsumeItemCount { get; set; }
|
||||
[JsonProperty("Probability")]
|
||||
public int Probability { get; set; }
|
||||
[JsonProperty("AttributeValues")]
|
||||
public IList<int> AttributeValues { get; set; }
|
||||
}
|
||||
|
||||
public partial class ItemLevelEnchantMetaDataMutable
|
||||
{
|
||||
[JsonProperty("Level")]
|
||||
public int Level { get; set; }
|
||||
[JsonProperty("Common")]
|
||||
public ConsumeItemMutable Common { get; set; }
|
||||
[JsonProperty("Rare")]
|
||||
public ConsumeItemMutable Rare { get; set; }
|
||||
[JsonProperty("Epic")]
|
||||
public ConsumeItemMutable Epic { get; set; }
|
||||
[JsonProperty("Legend")]
|
||||
public ConsumeItemMutable Legend { get; set; }
|
||||
}
|
||||
|
||||
public partial class ItemLevelEnchantMetaTableMutable
|
||||
{
|
||||
[JsonProperty("ItemLevelEnchantMetaDataList")]
|
||||
public IList<ItemLevelEnchantMetaDataMutable> ItemLevelEnchantMetaDataList { get; set; }
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
// readonly class
|
||||
//////////////////////////////
|
||||
public partial class ConsumeItem
|
||||
{
|
||||
public readonly int ConsumeItemID;
|
||||
public readonly int ConsumeItemCount;
|
||||
public readonly int Probability;
|
||||
public readonly IReadOnlyList<int> AttributeValues;
|
||||
public ConsumeItem(ConsumeItemMutable data)
|
||||
{
|
||||
ConsumeItemID = data.ConsumeItemID;
|
||||
ConsumeItemCount = data.ConsumeItemCount;
|
||||
Probability = data.Probability;
|
||||
if(data.AttributeValues != null)
|
||||
AttributeValues = data.AttributeValues.ToList().AsReadOnly();
|
||||
}
|
||||
}
|
||||
|
||||
public partial class ItemLevelEnchantMetaData
|
||||
{
|
||||
public readonly int Level;
|
||||
public readonly ConsumeItem Common;
|
||||
public readonly ConsumeItem Rare;
|
||||
public readonly ConsumeItem Epic;
|
||||
public readonly ConsumeItem Legend;
|
||||
public ItemLevelEnchantMetaData(ItemLevelEnchantMetaDataMutable data)
|
||||
{
|
||||
Level = data.Level;
|
||||
if(data.Common != null)
|
||||
Common = new ConsumeItem(data.Common);
|
||||
if(data.Rare != null)
|
||||
Rare = new ConsumeItem(data.Rare);
|
||||
if(data.Epic != null)
|
||||
Epic = new ConsumeItem(data.Epic);
|
||||
if(data.Legend != null)
|
||||
Legend = new ConsumeItem(data.Legend);
|
||||
}
|
||||
}
|
||||
|
||||
public partial class ItemLevelEnchantMetaTable
|
||||
{
|
||||
public readonly IReadOnlyList<ItemLevelEnchantMetaData> ItemLevelEnchantMetaDataList;
|
||||
public ItemLevelEnchantMetaTable(ItemLevelEnchantMetaTableMutable data)
|
||||
{
|
||||
if(data.ItemLevelEnchantMetaDataList != null)
|
||||
ItemLevelEnchantMetaDataList = data.ItemLevelEnchantMetaDataList.Select(x => new ItemLevelEnchantMetaData(x)).ToList().AsReadOnly();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user