NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/Debug/SROptions.CharacterAttri.cs

102 lines
1.9 KiB
C#
Raw Normal View History

2023-10-19 15:00:19 +08:00

2023-08-22 19:08:45 +08:00
using System.ComponentModel;
using Gameplay;
using Gameplay.SubSystems;
using Framework;
using System;
using cfg.CharacterCfg;
using UnityEngine;
public partial class SROptions
{
2023-10-19 15:00:19 +08:00
2023-08-22 19:08:45 +08:00
[Category("增加指定角色")]
public int CfgId
{
get { return _cfgId; }
set { _cfgId = value; }
}
private int _cfgId= 100001;
[Category("增加指定角色")]
public int Clevel
{
get { return _cLevel; }
set { _cLevel = value; }
}
private int _cLevel=1;
[Category("增加指定角色")]
2023-10-19 15:00:19 +08:00
public int BreakLv
2023-08-22 19:08:45 +08:00
{
get { return _toPoLv; }
set { _toPoLv = value; }
}
private int _toPoLv = 1;
[Category("增加指定角色")]
2023-10-19 15:00:19 +08:00
public int AwakeLv
2023-08-22 19:08:45 +08:00
{
get { return _jueXingLv; }
set { _jueXingLv = value; }
}
private int _jueXingLv=1;
2023-10-19 15:00:19 +08:00
2023-08-22 19:08:45 +08:00
2023-10-19 15:00:19 +08:00
2023-08-22 19:08:45 +08:00
[Category("增加指定角色")]
2023-10-19 15:00:19 +08:00
public void AddCharacter()
2023-08-22 19:08:45 +08:00
{
2023-10-19 15:00:19 +08:00
CharacterDataInfo info=new CharacterDataInfo((uint)CfgId, (uint)Clevel, (uint)BreakLv,(uint)AwakeLv);
CharacterDataInfoManager.Instance.Add(info);
2023-08-22 19:08:45 +08:00
}
2023-10-19 15:00:19 +08:00
2024-01-12 19:27:56 +08:00
[Category("增加指定角色")]
public void AddAllCharacter()
{
foreach (var characterAttri in TableManager.Instance.Tables.CharacterAttri.DataList)
{
CharacterDataInfo info=new CharacterDataInfo((uint)characterAttri.RoleID, (uint)Clevel, (uint)BreakLv,(uint)AwakeLv);
CharacterDataInfoManager.Instance.Add(info);
}
}
2023-08-22 19:08:45 +08:00
[Category("查看当前选中的Team内部的ID")]
public void PrintCurTeamSelectID()
{
uint selectID = TeamManager.Instance.SelectID;
2023-10-19 15:00:19 +08:00
DebugUtil.LogError("当前选中的TeamManagerID: {0}", selectID);
}
[Category("快速创建默认队列")]
public void CreateDefaultTeam()
{
2024-10-15 16:30:20 +08:00
Team team = TeamEditManager.Instance.GetTestTeam();
TeamEditManager.Instance.SaveTeam(team);
2023-08-22 19:08:45 +08:00
}
}