276 lines
4.4 KiB
C#
276 lines
4.4 KiB
C#
![]() |
//------------------------------------------------------------------------------
|
||
|
// <auto-generated>
|
||
|
// This code was generated by a tool.
|
||
|
//
|
||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||
|
// the code is regenerated.
|
||
|
// </auto-generated>
|
||
|
//------------------------------------------------------------------------------
|
||
|
|
||
|
namespace G
|
||
|
{
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using F;
|
||
|
using F.Item;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Generated from: pet.xlsx
|
||
|
/// </summary>
|
||
|
public partial class ItemPet : Item, IItem
|
||
|
{
|
||
|
public const string ASSET_NAME = "pet";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 资源名
|
||
|
/// index:1
|
||
|
/// </summary>
|
||
|
public string assets
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 角色名
|
||
|
/// index:2
|
||
|
/// </summary>
|
||
|
public string name
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 头像名
|
||
|
/// index:3
|
||
|
/// </summary>
|
||
|
public string[] icon
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 伤害(%)
|
||
|
/// index:4
|
||
|
/// </summary>
|
||
|
public int damage
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 移动(ms)
|
||
|
/// index:5
|
||
|
/// </summary>
|
||
|
public int speed
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 子弹
|
||
|
/// index:6
|
||
|
/// </summary>
|
||
|
public int bullet
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 子弹数量
|
||
|
/// index:7
|
||
|
/// </summary>
|
||
|
public int bulletNumber
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 攻击间隔(ms)
|
||
|
/// index:8
|
||
|
/// </summary>
|
||
|
public int bulletSpeed
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 子弹类型
|
||
|
/// index:9
|
||
|
/// </summary>
|
||
|
public int bulletLayer
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 特殊buff
|
||
|
/// index:10
|
||
|
/// </summary>
|
||
|
public int splash
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:11
|
||
|
/// </summary>
|
||
|
public int combatValue
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 主动技能
|
||
|
/// index:12
|
||
|
/// </summary>
|
||
|
public int[] mainSkills
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 被动技能
|
||
|
/// index:13
|
||
|
/// </summary>
|
||
|
public int[] skills
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 获得途径
|
||
|
/// index:14
|
||
|
/// </summary>
|
||
|
public int access
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 解锁任务
|
||
|
/// index:15
|
||
|
/// </summary>
|
||
|
public int unlock
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 激活货币
|
||
|
/// index:16
|
||
|
/// </summary>
|
||
|
public int[] active
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 标签
|
||
|
/// index:17
|
||
|
/// </summary>
|
||
|
public int label
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 属性
|
||
|
/// index:18
|
||
|
/// </summary>
|
||
|
public int[][] attributes
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 地点
|
||
|
/// index:19
|
||
|
/// </summary>
|
||
|
public string location
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 静态皮肤
|
||
|
/// index:20
|
||
|
/// </summary>
|
||
|
public string[] skins
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:21
|
||
|
/// </summary>
|
||
|
public int quality
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:22
|
||
|
/// </summary>
|
||
|
public string description
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
public void Load(IList<object> list)
|
||
|
{
|
||
|
id = list.GetInt(0);
|
||
|
assets = list.GetString(1);
|
||
|
name = list.GetString(2);
|
||
|
icon = list.GetStringArray(3);
|
||
|
damage = list.GetInt(4);
|
||
|
speed = list.GetInt(5);
|
||
|
bullet = list.GetInt(6);
|
||
|
bulletNumber = list.GetInt(7);
|
||
|
bulletSpeed = list.GetInt(8);
|
||
|
bulletLayer = list.GetInt(9);
|
||
|
splash = list.GetInt(10);
|
||
|
combatValue = list.GetInt(11);
|
||
|
mainSkills = list.GetIntArray(12);
|
||
|
skills = list.GetIntArray(13);
|
||
|
access = list.GetInt(14);
|
||
|
unlock = list.GetInt(15);
|
||
|
active = list.GetIntArray(16);
|
||
|
label = list.GetInt(17);
|
||
|
attributes = list.GetIntArray2(18);
|
||
|
location = list.GetString(19);
|
||
|
skins = list.GetStringArray(20);
|
||
|
quality = list.GetInt(21);
|
||
|
description = list.GetString(22);
|
||
|
}
|
||
|
|
||
|
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemPet> result)
|
||
|
{
|
||
|
if (result == null)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
var list = dictionary.GetList("Pet");
|
||
|
if (list == null || list.Count == 0)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
int i = 0;
|
||
|
for (int c = list.Count; i < c; i++)
|
||
|
{
|
||
|
var item = CreateThis();
|
||
|
item.Load((IList<object>)list[i]);
|
||
|
result.Add(item);
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
private static ItemPet CreateThis()
|
||
|
{
|
||
|
return new ItemPet();
|
||
|
}
|
||
|
}
|
||
|
}
|