2025-05-18 01:04:31 +08:00

326 lines
5.0 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: enemy.xlsx
/// </summary>
public partial class ItemBoss : Item, IItem
{
public const string ASSET_NAME = "enemy";
/// <summary>
///
/// index:1
/// </summary>
public string name
{
get; private set;
}
/// <summary>
/// 资源
/// index:2
/// </summary>
public string assets
{
get; private set;
}
/// <summary>
///
/// index:3
/// </summary>
public int level
{
get; private set;
}
/// <summary>
/// 血量
/// index:4
/// </summary>
public int hp
{
get; private set;
}
/// <summary>
/// 伤害
/// index:5
/// </summary>
public int[] power
{
get; private set;
}
/// <summary>
/// 防御
/// index:6
/// </summary>
public int defence
{
get; private set;
}
/// <summary>
/// 格挡 (命中)
/// index:7
/// </summary>
public int block
{
get; private set;
}
/// <summary>
/// 抵抗 (暴击)
/// index:8
/// </summary>
public int resist
{
get; private set;
}
/// <summary>
///
/// index:9
/// </summary>
public float[] fireRange
{
get; private set;
}
/// <summary>
///
/// index:10
/// </summary>
public int turnSpeed
{
get; private set;
}
/// <summary>
///
/// index:11
/// </summary>
public float runSpeed
{
get; private set;
}
/// <summary>
///
/// index:12
/// </summary>
public int[] dash
{
get; private set;
}
/// <summary>
///
/// index:13
/// </summary>
public float[][] moving_attack
{
get; private set;
}
/// <summary>
///
/// index:14
/// </summary>
public int[] attach_ef
{
get; private set;
}
/// <summary>
///
/// index:15
/// </summary>
public int[] colliderOff
{
get; private set;
}
/// <summary>
///
/// index:16
/// </summary>
public float speed_move
{
get; private set;
}
/// <summary>
///
/// index:17
/// </summary>
public float[] speed_attack
{
get; private set;
}
/// <summary>
///
/// index:18
/// </summary>
public float[] speed_attack_i
{
get; private set;
}
/// <summary>
///
/// index:19
/// </summary>
public float speed_idle
{
get; private set;
}
/// <summary>
///
/// index:20
/// </summary>
public float speed_down
{
get; private set;
}
/// <summary>
///
/// index:21
/// </summary>
public int sizeKind
{
get; private set;
}
/// <summary>
/// 质量
/// index:22
/// </summary>
public float mass
{
get; private set;
}
/// <summary>
/// 半径
/// index:23
/// </summary>
public float radius
{
get; private set;
}
/// <summary>
/// 子弹预制体
/// index:24
/// </summary>
public string bullet
{
get; private set;
}
/// <summary>
/// 攻击预警
/// index:25
/// </summary>
public string preview
{
get; private set;
}
/// <summary>
///
/// index:26
/// </summary>
public float attackCd
{
get; private set;
}
/// <summary>
/// 掉落类型
/// index:27
/// </summary>
public int boxDrop
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
name = list.GetString(1);
assets = list.GetString(2);
level = list.GetInt(3);
hp = list.GetInt(4);
power = list.GetIntArray(5);
defence = list.GetInt(6);
block = list.GetInt(7);
resist = list.GetInt(8);
fireRange = list.GetFloatArray(9);
turnSpeed = list.GetInt(10);
runSpeed = list.GetFloat(11);
dash = list.GetIntArray(12);
moving_attack = list.GetFloatArray2(13);
attach_ef = list.GetIntArray(14);
colliderOff = list.GetIntArray(15);
speed_move = list.GetFloat(16);
speed_attack = list.GetFloatArray(17);
speed_attack_i = list.GetFloatArray(18);
speed_idle = list.GetFloat(19);
speed_down = list.GetFloat(20);
sizeKind = list.GetInt(21);
mass = list.GetFloat(22);
radius = list.GetFloat(23);
bullet = list.GetString(24);
preview = list.GetString(25);
attackCd = list.GetFloat(26);
boxDrop = list.GetInt(27);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemBoss> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("Boss");
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 ItemBoss CreateThis()
{
return new ItemBoss();
}
}
}