초기커밋
This commit is contained in:
83
ServerCommon/MetaAssets/MetaTable/EditableFramework.cs
Normal file
83
ServerCommon/MetaAssets/MetaTable/EditableFramework.cs
Normal file
@@ -0,0 +1,83 @@
|
||||
// <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 EditableFrameworkMetaDataMutable
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public int id { get; set; }
|
||||
[JsonProperty("name")]
|
||||
public string name { get; set; }
|
||||
[JsonProperty("desc")]
|
||||
public string desc { get; set; }
|
||||
[JsonProperty("image_2D")]
|
||||
public string image_2D { get; set; }
|
||||
[JsonProperty("image_3DBP")]
|
||||
public string image_3DBP { get; set; }
|
||||
[JsonProperty("TileType")]
|
||||
public ETileType TileType { get; set; }
|
||||
[JsonProperty("SnapType")]
|
||||
public ESnapType SnapType { get; set; }
|
||||
[JsonProperty("SubCategory_Id")]
|
||||
public string SubCategory_Id { get; set; }
|
||||
[JsonProperty("InteriorPoint")]
|
||||
public int InteriorPoint { get; set; }
|
||||
}
|
||||
|
||||
public partial class EditableFrameworkMetaTableMutable
|
||||
{
|
||||
[JsonProperty("EditableFrameworkMetaDataList")]
|
||||
public IList<EditableFrameworkMetaDataMutable> EditableFrameworkMetaDataList { get; set; }
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
// readonly class
|
||||
//////////////////////////////
|
||||
public partial class EditableFrameworkMetaData
|
||||
{
|
||||
public readonly int id;
|
||||
public readonly string name;
|
||||
public readonly string desc;
|
||||
public readonly string image_2D;
|
||||
public readonly string image_3DBP;
|
||||
public readonly ETileType TileType;
|
||||
public readonly ESnapType SnapType;
|
||||
public readonly string SubCategory_Id;
|
||||
public readonly int InteriorPoint;
|
||||
public EditableFrameworkMetaData(EditableFrameworkMetaDataMutable data)
|
||||
{
|
||||
id = data.id;
|
||||
name = data.name;
|
||||
desc = data.desc;
|
||||
image_2D = data.image_2D;
|
||||
image_3DBP = data.image_3DBP;
|
||||
TileType = data.TileType;
|
||||
SnapType = data.SnapType;
|
||||
SubCategory_Id = data.SubCategory_Id;
|
||||
InteriorPoint = data.InteriorPoint;
|
||||
}
|
||||
}
|
||||
|
||||
public partial class EditableFrameworkMetaTable
|
||||
{
|
||||
public readonly IReadOnlyList<EditableFrameworkMetaData> EditableFrameworkMetaDataList;
|
||||
public EditableFrameworkMetaTable(EditableFrameworkMetaTableMutable data)
|
||||
{
|
||||
if(data.EditableFrameworkMetaDataList != null)
|
||||
EditableFrameworkMetaDataList = data.EditableFrameworkMetaDataList.Select(x => new EditableFrameworkMetaData(x)).ToList().AsReadOnly();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user