SkillVfxsTable.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. // Generate By EToy
  2. // Don't Edit It!!
  3. using XGame.Framework.Database;
  4. using XGame.Framework.Serialization;
  5. namespace XGame.Database
  6. {
  7. /// <summary> SkillVfxs </summary>
  8. public sealed class SkillVfxsTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> id职业技能:职业ID*10+序号飞剑技能:飞剑ID*10+序号怪物技能:怪物ID*10+序号通用技能:200000+技能品质*100+序号家族技能:300000+技能品质*100+序号车位技能:400000+技能品质*100+序号 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 施法特效和施法动作配套 </summary>
  14. public string CastVfx { get; private set; }
  15. /// <summary> 施法特效跟随类型控制施法特效父节点0:角色中心(跟随玩家移动)1:角色始发点(跟随玩家移动)2:世界坐标 </summary>
  16. public int VfxFollowType { get; private set; }
  17. /// <summary> 施法特效时长单位:毫秒不能超过技能持续时长 </summary>
  18. public int CastVfxTime { get; private set; }
  19. /// <summary> 动作名字 </summary>
  20. public EAnimationName AniName { get; private set; }
  21. /// <summary> 技能特效 </summary>
  22. public string SkillVfx { get; private set; }
  23. /// <summary> 技能特效出现的时间单位:毫秒 </summary>
  24. public int SkillVfxDelay { get; private set; }
  25. /// <summary> 技能特效数量 </summary>
  26. public int SkillVfxCount { get; private set; }
  27. /// <summary> 技能特效间隔单位:毫秒 </summary>
  28. public int SkillVfxInterval { get; private set; }
  29. /// <summary> 技能特效持续时长单位:毫秒-1表示不限时间 </summary>
  30. public int SkillVfxTime { get; private set; }
  31. /// <summary> 0:不移动1:线性2:随机贝塞尔3:抛物线 </summary>
  32. public int SkillVfxMoveType { get; private set; }
  33. /// <summary> 移动速度曲线,默认线性,名字参考:https://blog.csdn.net/qq_44119541/article/details/107397494 </summary>
  34. public string SkillVfxMoveEase { get; private set; }
  35. /// <summary> 移动速度 </summary>
  36. public float SkillVfxSpeed { get; private set; }
  37. /// <summary> 技能特效坐标参数Y坐标根据施法者为玩家/怪物动态加/减0:特效出生点相对施法点偏移坐标1:特效结束点相对施法点偏移坐标 </summary>
  38. public Vec3[] SkillVfxPositions { get; private set; }
  39. /// <summary> 受击特效 </summary>
  40. public string HitVfx { get; private set; }
  41. /// <summary> 受击特效时长单位:毫秒 </summary>
  42. public int HitVfxTime { get; private set; }
  43. /// <summary> 201:["陷阱展开特效","陷阱爆炸特效"] </summary>
  44. public string[] CustomArgs { get; private set; }
  45. void ISerializable.Deserialize(IReader reader)
  46. {
  47. Id = reader.ReadInt();
  48. CastVfx = reader.ReadString();
  49. VfxFollowType = reader.ReadInt();
  50. CastVfxTime = reader.ReadInt();
  51. AniName = (EAnimationName)reader.ReadInt();
  52. SkillVfx = reader.ReadString();
  53. SkillVfxDelay = reader.ReadInt();
  54. SkillVfxCount = reader.ReadInt();
  55. SkillVfxInterval = reader.ReadInt();
  56. SkillVfxTime = reader.ReadInt();
  57. SkillVfxMoveType = reader.ReadInt();
  58. SkillVfxMoveEase = reader.ReadString();
  59. SkillVfxSpeed = reader.ReadFloat();
  60. SkillVfxPositions = reader.ReadEnumerable<Vec3[]>();
  61. HitVfx = reader.ReadString();
  62. HitVfxTime = reader.ReadInt();
  63. CustomArgs = reader.ReadEnumerable<string[]>();
  64. }
  65. void ISerializable.Serialize(IWriter writer)
  66. {
  67. writer.Write(Id);
  68. writer.Write(CastVfx);
  69. writer.Write(VfxFollowType);
  70. writer.Write(CastVfxTime);
  71. writer.Write((int)AniName);
  72. writer.Write(SkillVfx);
  73. writer.Write(SkillVfxDelay);
  74. writer.Write(SkillVfxCount);
  75. writer.Write(SkillVfxInterval);
  76. writer.Write(SkillVfxTime);
  77. writer.Write(SkillVfxMoveType);
  78. writer.Write(SkillVfxMoveEase);
  79. writer.Write(SkillVfxSpeed);
  80. writer.Write(SkillVfxPositions);
  81. writer.Write(HitVfx);
  82. writer.Write(HitVfxTime);
  83. writer.Write(CustomArgs);
  84. }
  85. }
  86. }