MCPcopy
hub / github.com/SylarLong/iztro / IFunctionalStar

Interface IFunctionalStar

src/star/FunctionalStar.ts:12–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 * 文档地址:https://docs.iztro.com/posts/star.html#functionalstar
11 */
12export interface IFunctionalStar extends Star {
13 /**
14 * 获取星耀所在宫位
15 *
16 * @version v1.2.0
17 *
18 * @returns 星耀所在宫位
19 */
20 palace: () => IFunctionalPalace | undefined;
21 /**
22 * 设置当前星耀所在宫位
23 *
24 * @param p 宫位的实例
25 */
26 setPalace: (p: IFunctionalPalace) => void;
27 /**
28 * 设置当前星耀所在星盘
29 *
30 * @version v1.2.0
31 *
32 * @param a 星盘实例
33 */
34 setAstrolabe: (a: IFunctionalAstrolabe) => void;
35 /**
36 * 获取当前星耀的三方四正宫位
37 *
38 * @version v1.2.0
39 *
40 * @returns 三方四正宫位 | undefined
41 */
42 surroundedPalaces: () => IFunctionalSurpalaces | undefined;
43 /**
44 * 获取当前星耀的对宫
45 *
46 * @version v1.2.0
47 *
48 * @returns 对宫 | undefined
49 */
50 oppositePalace: () => IFunctionalPalace | undefined;
51 /**
52 * 判断星耀是否是传入的亮度,也可以传入多个亮度,只要匹配到一个亮度就会返回 `true`
53 *
54 * @version v1.2.0
55 *
56 * @param brightness 星耀亮度
57 * @returns true | false
58 */
59 withBrightness: (brightness: Brightness | Brightness[]) => boolean;
60 /**
61 * 判断星耀是否产生了四化
62 *
63 * @version v1.2.0
64 *
65 * @param mutagen 四化【禄|权|科|忌】
66 * @returns true | false
67 */
68 withMutagen: (mutagen: Mutagen | Mutagen[]) => boolean;
69}

Callers

nothing calls this directly

Implementers 1

FunctionalStarsrc/star/FunctionalStar.ts

Calls

no outgoing calls

Tested by

no test coverage detected