Files
caliverse_server/ServerCommon/MetaAssets/MetaTable/InstanceData.cs
2025-05-01 07:20:41 +09:00

116 lines
3.9 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 InstanceMetaDataMutable
{
[JsonProperty("Id")]
public int Id { get; set; }
[JsonProperty("Owner")]
public string Owner { get; set; }
[JsonProperty("Building_Id")]
public int Building_Id_ { get; set; }
[JsonProperty("Building_Socket")]
public int Building_Socket_ { get; set; }
[JsonProperty("Name")]
public string Name { get; set; }
[JsonProperty("Description")]
public string Description { get; set; }
[JsonProperty("ListThumbnail")]
public string ListThumbnail_ { get; set; }
[JsonProperty("DetailThumbnail")]
public string DetailThumbnail_ { get; set; }
[JsonProperty("ContentsType")]
public ContentsType ContentsType { get; set; }
[JsonProperty("Map_Id")]
public int MapId { get; set; }
[JsonProperty("LimitCount")]
public int LimitCount { get; set; }
[JsonProperty("OverLimit")]
public int OverLimit { get; set; }
[JsonProperty("AccessType")]
public AccessType AccessType { get; set; }
[JsonProperty("Access_Id")]
public int AccessId { get; set; }
[JsonProperty("VoiceChat")]
public VoiceChatType VoiceChat { get; set; }
[JsonProperty("ViewType")]
public ViewType ViewType { get; set; }
[JsonProperty("RoomFile")]
public string RoomFile { get; set; }
}
public partial class InstanceMetaTableMutable
{
[JsonProperty("InstanceMetaDataList")]
public IList<InstanceMetaDataMutable> InstanceMetaDataList { get; set; }
}
//////////////////////////////
// readonly class
//////////////////////////////
public partial class InstanceMetaData
{
public readonly int Id;
public readonly string Owner;
public readonly int Building_Id_;
public readonly int Building_Socket_;
public readonly string Name;
public readonly string Description;
public readonly string ListThumbnail_;
public readonly string DetailThumbnail_;
public readonly ContentsType ContentsType;
public readonly int MapId;
public readonly int LimitCount;
public readonly int OverLimit;
public readonly AccessType AccessType;
public readonly int AccessId;
public readonly VoiceChatType VoiceChat;
public readonly ViewType ViewType;
public readonly string RoomFile;
public InstanceMetaData(InstanceMetaDataMutable data)
{
Id = data.Id;
Owner = data.Owner;
Building_Id_ = data.Building_Id_;
Building_Socket_ = data.Building_Socket_;
Name = data.Name;
Description = data.Description;
ListThumbnail_ = data.ListThumbnail_;
DetailThumbnail_ = data.DetailThumbnail_;
ContentsType = data.ContentsType;
MapId = data.MapId;
LimitCount = data.LimitCount;
OverLimit = data.OverLimit;
AccessType = data.AccessType;
AccessId = data.AccessId;
VoiceChat = data.VoiceChat;
ViewType = data.ViewType;
RoomFile = data.RoomFile;
}
}
public partial class InstanceMetaTable
{
public readonly IReadOnlyList<InstanceMetaData> InstanceMetaDataList;
public InstanceMetaTable(InstanceMetaTableMutable data)
{
if(data.InstanceMetaDataList != null)
InstanceMetaDataList = data.InstanceMetaDataList.Select(x => new InstanceMetaData(x)).ToList().AsReadOnly();
}
}
}