123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- //------------------------------------------------------------
- // Game Framework
- // Copyright © 2013-2021 Jiang Yin. All rights reserved.
- // Homepage: https://gameframework.cn/
- // Feedback: mailto:ellan@gameframework.cn
- //------------------------------------------------------------
- // 此文件由工具自动生成,请勿直接修改。
- // 生成时间:2022-02-09 20:32:45.917
- //------------------------------------------------------------
- using GameFramework;
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Text;
- using UnityEngine;
- using UnityGameFramework.Runtime;
- namespace MetaClient
- {
- /// <summary>
- /// 服装。
- /// </summary>
- public class DRClothing : DataRowBase
- {
- private int m_Id = 0;
- /// <summary>
- /// 获取id编号。
- /// </summary>
- public override int Id
- {
- get
- {
- return m_Id;
- }
- }
- /// <summary>
- /// 获取名称。
- /// </summary>
- public string Name
- {
- get;
- private set;
- }
- /// <summary>
- /// 获取对应图片类型。
- /// </summary>
- public int ParentStyple
- {
- get;
- private set;
- }
- /// <summary>
- /// 获取层级。
- /// </summary>
- public int Cengji
- {
- get;
- private set;
- }
- /// <summary>
- /// 获取是否显示。
- /// </summary>
- public int IsActive
- {
- get;
- private set;
- }
- /// <summary>
- /// 获取对应icon。
- /// </summary>
- public string Icon
- {
- get;
- private set;
- }
- /// <summary>
- /// 获取按钮类型。
- /// </summary>
- public int ButtonStyple
- {
- get;
- private set;
- }
- /// <summary>
- /// 获取对应模型。
- /// </summary>
- public string Prefab
- {
- get;
- private set;
- }
- /// <summary>
- /// 获取对应材质贴图。
- /// </summary>
- public string Texture
- {
- get;
- private set;
- }
- /// <summary>
- /// 获取对应颜色。
- /// </summary>
- public string Color
- {
- get;
- private set;
- }
- public override bool ParseDataRow(string dataRowString, object userData)
- {
- string[] columnStrings = dataRowString.Split(DataTableExtension.DataSplitSeparators);
- for (int i = 0; i < columnStrings.Length; i++)
- {
- columnStrings[i] = columnStrings[i].Trim(DataTableExtension.DataTrimSeparators);
- }
- int index = 0;
- index++;
- m_Id = int.Parse(columnStrings[index++]);
- Name = columnStrings[index++];
- ParentStyple = int.Parse(columnStrings[index++]);
- Cengji = int.Parse(columnStrings[index++]);
- IsActive = int.Parse(columnStrings[index++]);
- Icon = columnStrings[index++];
- ButtonStyple = int.Parse(columnStrings[index++]);
- Prefab = columnStrings[index++];
- Texture = columnStrings[index++];
- Color = columnStrings[index++];
- GeneratePropertyArray();
- return true;
- }
- public override bool ParseDataRow(byte[] dataRowBytes, int startIndex, int length, object userData)
- {
- using (MemoryStream memoryStream = new MemoryStream(dataRowBytes, startIndex, length, false))
- {
- using (BinaryReader binaryReader = new BinaryReader(memoryStream, Encoding.UTF8))
- {
- m_Id = binaryReader.Read7BitEncodedInt32();
- Name = binaryReader.ReadString();
- ParentStyple = binaryReader.Read7BitEncodedInt32();
- Cengji = binaryReader.Read7BitEncodedInt32();
- IsActive = binaryReader.Read7BitEncodedInt32();
- Icon = binaryReader.ReadString();
- ButtonStyple = binaryReader.Read7BitEncodedInt32();
- Prefab = binaryReader.ReadString();
- Texture = binaryReader.ReadString();
- Color = binaryReader.ReadString();
- }
- }
- GeneratePropertyArray();
- return true;
- }
- private void GeneratePropertyArray()
- {
- }
- }
- }
|