11.32.5 • Published 9 months ago

lite-ts-user v11.32.5

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
9 months 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.31.5

10 months ago

11.32.5

9 months ago

11.30.4

1 year ago

11.30.5

1 year ago

11.29.4

1 year ago

11.28.4

1 year ago

11.23.2

1 year ago

11.24.3

1 year ago

11.23.3

1 year ago

11.26.3

1 year ago

11.25.3

1 year ago

11.28.3

1 year ago

11.27.3

1 year ago

11.22.2

1 year ago

11.21.2

1 year ago

11.20.2

1 year ago

11.19.2

1 year ago

11.19.1

1 year ago

11.18.1

1 year ago

11.17.1

1 year ago

11.16.1

1 year ago

11.15.1

1 year ago

11.13.1

1 year ago

11.14.1

1 year ago

11.11.1

2 years ago

11.12.1

2 years ago

3.3.1

2 years ago

3.3.0

2 years ago

3.7.1

2 years ago

3.6.1

2 years ago

3.5.1

2 years ago

3.4.1

2 years ago

4.8.1

2 years ago

4.7.1

2 years ago

4.9.1

2 years ago

4.10.1

2 years ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago