11.29.4 • Published 7 days ago

lite-ts-user v11.29.4

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
7 days ago

Version

代码

IUserService - 用户服务

const userService: IUserService;

// 会话
const res = userService.sessionData;

// 数值服务
const res = userService.valueService;

// 获取用户模块 例如: 活动服务/养成服务等
const module = userService.getModule<T>('模块名或模块构造函数');
  • UserService\ - 用户服务
const sessionData: RpcSession;
const allUserModuleDelegate: AllUserModuleDelegate<UserModuleDelegateOption>;
const moduleDelegateOption: Partial<UserModuleDelegateOption>;
const userService = new UserService(sessionData, allUserModuleDelegate, moduleDelegateOption);

UserFactoryBase\ - 玩家工厂

const userFactory: UserFactoryBase<IUserService>;

// 创建用户服务
const sessionData: RpcSession;
const res = userFactory.build(sessionData);

DbValueService - 数值服务

  • UserValueService - 玩家数值服务
const userService: IUserService;
const nowTime: NowTimeBase;
const buildGetCountHandlerFunc: () => ValueHandlerBase;
const buildUpdateHandlerFunc: () => ValueHandlerBase;
const valueService: UserValueService = new UserValueService(
    userService,
    nowTime,
    buildGetCountHandlerFunc,
    buildUpdateHandlerFunc,
);

// 玩家服务
const res = valueService.userService;
11.29.4

7 days ago

11.28.4

14 days ago

11.23.2

16 days ago

11.24.3

16 days ago

11.23.3

16 days ago

11.26.3

15 days ago

11.25.3

15 days ago

11.28.3

15 days ago

11.27.3

15 days ago

11.22.2

27 days ago

11.21.2

1 month ago

11.20.2

1 month ago

11.19.2

1 month ago

11.19.1

2 months ago

11.18.1

2 months ago

11.17.1

2 months ago

11.16.1

2 months ago

11.15.1

2 months ago

11.13.1

2 months ago

11.14.1

2 months ago

11.11.1

5 months ago

11.12.1

5 months ago

3.3.1

12 months ago

3.3.0

12 months ago

3.7.1

11 months ago

3.6.1

12 months ago

3.5.1

12 months ago

3.4.1

12 months ago

4.8.1

11 months ago

4.7.1

11 months ago

4.9.1

10 months ago

4.10.1

10 months ago

3.2.0

1 year ago

3.1.0

1 year ago

3.0.0

1 year ago