Api

MethodParsegamevarplaceholderdata

OpenAPI > Method > parseGameVarPlaceholderData

OpenAPI.Method.parseGameVarPlaceholderData() method

解析文本内游戏变量占位符

Signature:

static parseGameVarPlaceholderData(text: string, gameData: any[], regex?: RegExp[] | null): string;

Parameters

Parameter

Type

Description

text

string

文本

gameData

any[]

游戏变量数据

regex

RegExp[] | null

(Optional) 正则表达式

string


Copyright © 2021 - 2025