초기커밋
This commit is contained in:
55
ServerCommon/MetaAssets/MetaTable/BanWordData.cs
Normal file
55
ServerCommon/MetaAssets/MetaTable/BanWordData.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
// <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 BanWordMetaDataMutable
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public int Id { get; set; }
|
||||
[JsonProperty("Ban_Word")]
|
||||
public string BanWord { get; set; }
|
||||
}
|
||||
|
||||
public partial class BanWordMetaTableMutable
|
||||
{
|
||||
[JsonProperty("BanWordMetaDataList")]
|
||||
public IList<BanWordMetaDataMutable> BanWordMetaDataList { get; set; }
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
// readonly class
|
||||
//////////////////////////////
|
||||
public partial class BanWordMetaData
|
||||
{
|
||||
public readonly int Id;
|
||||
public readonly string BanWord;
|
||||
public BanWordMetaData(BanWordMetaDataMutable data)
|
||||
{
|
||||
Id = data.Id;
|
||||
BanWord = data.BanWord;
|
||||
}
|
||||
}
|
||||
|
||||
public partial class BanWordMetaTable
|
||||
{
|
||||
public readonly IReadOnlyList<BanWordMetaData> BanWordMetaDataList;
|
||||
public BanWordMetaTable(BanWordMetaTableMutable data)
|
||||
{
|
||||
if(data.BanWordMetaDataList != null)
|
||||
BanWordMetaDataList = data.BanWordMetaDataList.Select(x => new BanWordMetaData(x)).ToList().AsReadOnly();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user