generated from GroupMountain/GMLIB-Mod-Template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from zimuya4153/main
添加注释和导出接口跟事件
- Loading branch information
Showing
15 changed files
with
4,134 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
declare class PAPI { | ||
/** 注册一个玩家PAPI变量 */ | ||
static registerPlayerPlaceholder( | ||
/** PAPI调用函数 */ | ||
func: ( | ||
/** 玩家对象 */ | ||
player: Player, | ||
/** 变量参数 */ | ||
param: null | object.<string, string> | ||
) => string, | ||
/** 插件名字 */ | ||
pluginsName: string, | ||
/** PAPI变量 */ | ||
PAPIName: string | ||
): boolean; | ||
|
||
/** 注册一个服务器PAPI变量 */ | ||
static registerServerPlaceholder( | ||
/** PAPI调用函数 */ | ||
func: ( | ||
/** 变量参数 */ | ||
param: null | object.<string, string> | ||
) => string, | ||
/** 插件名字 */ | ||
pluginsName: string, | ||
/** PAPI变量 */ | ||
PAPIName: string | ||
): boolean; | ||
|
||
/** 注册一个静态PAPI变量 */ | ||
static registerStaticPlaceholder( | ||
/** PAPI调用函数 */ | ||
func: () => string, | ||
/** 插件名字 */ | ||
pluginsName: string, | ||
/** PAPI变量 */ | ||
PAPIName: string, | ||
/** 更新时间 */ | ||
UpdateInterval: number | ||
): boolean; | ||
|
||
/** 获取一个服务器变量的值 */ | ||
static getValue( | ||
/** PAPI名 */ | ||
key: string | ||
): string; | ||
|
||
/** 获取一个玩家变量的值 */ | ||
static getValueByPlayer( | ||
/** PAPI名 */ | ||
key: string, | ||
/** 玩家对象 */ | ||
pl: Player | ||
): string; | ||
|
||
/** 翻译带PAPI变量的字符串 */ | ||
static translateString( | ||
/** 要翻译的字符串 */ | ||
str: string, | ||
/** 玩家对象 */ | ||
pl: Player | undefined | ||
): string; | ||
|
||
/** 注销一个PAPI变量 */ | ||
static unRegisterPlaceholder( | ||
/** PAPI名 */ | ||
str: string | ||
): boolean; | ||
|
||
/** 获取所有已注册的PAPI变量 */ | ||
static getAllPAPI(): string[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.