1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Net;
- using ET.Server;
- namespace ET
- {
- public partial class Character
- {
-
- public List<Struct.IntIntData> InitSkillList = new List<Struct.IntIntData>();
- public override void AfterEndInit()
- {
- if (string.IsNullOrEmpty(this.initSkill))
- {
- Log.Warning($"配置表 Character 字段 initSkill 为空...Id={this.Id}, initSkill={this.initSkill}");
- return;
- }
- string[] strings = this.initSkill.Split("|");
- if (strings.Length <= 0)
- {
- Log.Error($"配置表 Character 字段 initSkill 格式错误...Id={this.Id}, initSkill={this.initSkill}");
- return;
- }
- foreach (string sss in strings)
- {
- if (string.IsNullOrEmpty(sss))
- {
- Log.Error($"配置表 Character 字段 initSkill 格式错误...Id={this.Id}, initSkill={this.initSkill}");
- continue;
- }
- string[] strs = sss.Split(":");
- if (strs.Length == 2)
- {
- this.InitSkillList.Add(new Struct.IntIntData(int.Parse(strs[0]), int.Parse(strs[1])));
- }
- }
- }
- }
- }
|