1234567891011121314151617181920212223242526 |
- using FL.Data.Items;
- using System.Collections.Generic;
- using XGame;
- using XGame.Database;
- using XGame.Framework.Data;
- namespace FL.Data
- {
- public class PlayerService : DataSingleton<PlayerService>
- {
- /// <summary>
- /// 模拟初始化数据
- /// </summary>
- public void Mock()
- {
- var data = PlayerData.Instance;
- data.UID = UIDDefine.New();
- data.Name = "player";
- var attr = PlayerData.Instance.Attr;
- attr.Hp = 10000;
- attr.HpLimit = 10000;
- attr.MoveSpeed = 5;
- attr.Attack = 15;
- }
- }
- }
|