Skip to content
On this page

GlobalAPI

描述

globalapi


方法列表

方法名简述
init_lua_varLUA层初始化参数
api_clear_tag清空标签
api_clear_kv清空自定义键值
has_tag判断Actor是否有Tag
api_has_kv_any判断Actor是否有kv
set_actor_trigger_enabled使能Actor身上的触发器
trigger_actor_trigger触发Actor身上的触发器
reg_actor_trigger注册Actor上的触发器并生效
unreg_actor_trigger注销Actor上的触发器
create_sector_shape创建一个扇形
create_circular_shape创建一个圆形
create_rectangle_shape创建一个矩形
create_annular_shape创建一个环形
coord_to_point坐标值转化为FVector3
int_iterator整数迭代器,最大迭代次数不超过2^20
int_iterator2整数迭代器
list_index_iterator列表索引迭代器
table_iteratortable迭代器
get_iter_table_key_strget_iter_table_key_str
get_iter_table_key_intget_iter_table_key_int
int32_arithmetic_operationInt32运算
int32_plus_oneInt32自增1
int32_minInt32取较小值
int32_maxInt32取较大值
get_point_offset_vector点向方向偏移
int64_to_strint64转换字符串
to_str_defaultto_str_default
api_remove_kv删除键值对
get_unit_key_pool_num获取单位编号池内单位编号数量
plane_range_between_2_point两点之间距离
int32_to_fixed整数转定点数
fix32_equal_with_precision实数近似比较(4位小数)
fixed_to_int32定点数转整数
ability_index_to_int32技能槽位转整数
fixed_to_str定点数转字符串
fvector3_to_str定点FVector3转字符串
fvector2_to_str定点FVector2转字符串
float_to_str浮点数转字符串
vector3_to_str浮点Vector3转字符串
str_to_vector3字符串转Vector3
vector2_to_str浮点Vector2转字符串
shape_to_strShape转字符串
dynamic_to_str动态类型数转字符串
int32_to_strint32_to_str
bool_to_str布尔型转字符串
i2s整数转字符串
join_s字符串拼接
fixed_arithmetic_operation定点数运算
fixed_plus_one定点数自增1
fixed_min取两个定点数最小值
fixed_max取两个定点数最小大值
angle_arithmetic_operation角度计算
degree_to_radian转换度到弧度
radian_sin正弦
radian_cos余弦
radian_tan正切
radian_asin反正弦
radian_acos反余弦
radian_atan反正切
radian_atan_x_y反正切(Y:X)
sqrt平方根
pow求幂
abs求绝对值
interval区间
nearest_quadratic_number找最近的二次方数
ceil最小整数
floor最大整数
interpolate插值
invert_interpolate反插值
log10对数10
log对数
get_max_in_list返回组内最大值
get_min_in_list返回组内最小值
round四舍五入
sign返回正负符号
round_dec保留X位小数
fixed_trigonometric_operation定点数三角函数运算
get_player_group_num玩家组的玩家数量
get_related_ability获取Actor关联技能
add_actor_timer为Actor添加定时器
stop_actor_timer关闭Actor计时器
get_fixed_coord_index获取FVector3的其中一个值
clear_group清空列表
set_list_with_length将第二个列表的值赋值给第一个列表 不改变第一个列表的长度
judge_role_in_group判断玩家是否在玩家组
is_unit_alive判断单位是否活着
get_empty_unit_key_pool获取空的单位编号池
get_point_in_route获取路径中某点
get_point_rotate_y点绕Y轴旋转(角度制)
str_to_int字符串转整数
str_to_bool字符串转布尔值
str_to_fixed字符串转定点数
delete_sub_str删除子字符串
extract_str截取子字符串
length_of_str获取字符串长度
str_to_upper_lower字符串大小写统一
pos_in_str子字符串位置
api_int_to_key整数转化为特效类型
api_key_to_int将投射物类型转化为整数
unit_command_type_to_str单位命令类型转字符串
str_to_unit_command_type字符串转单位命令类型
ability_cast_type_to_str技能释放类型转字符串
str_to_ability_cast_type字符串转技能释放类型
poly_area_to_str多边形区域转字符串
projectile_group_to_str投射物组转字符串
role_relation_to_str玩家关系转字符串
str_to_role_relation字符串转玩家关系
unit_key_pool_to_str单位编号池转字符串
unit_type_to_str单位分类转字符串
str_to_unit_type字符串转单位分类
timer_to_str计时器转字符串
unit_to_str单位转字符串
unit_group_to_str单位组转字符串
item_to_str物品转字符串
item_group_to_str物品组转字符串
role_to_str玩家转字符串
role_group_to_str玩家组转字符串
role_status_to_str玩家状态转字符串
str_to_role_status字符串转玩家状态
role_type_to_str玩家控制者转字符串
str_to_role_type字符串转玩家控制者
ability_to_str技能转字符串
ability_type_to_str技能槽位类型转字符串
str_to_ability_type字符串转技能槽位类型
rect_area_to_str矩形区域转字符串
circle_area_to_str圆形区域转字符串
road_to_str路径转字符串
dest_to_str可破坏物转字符串
project_to_str投射物转字符串
modifier_entity_to_str魔法效果转字符串
modifier_type_to_str魔法效果类别转字符串
str_to_modifier_type字符串转魔法效果类别
modifier_effect_type_to_str魔法效果影响类型转字符串
str_to_modifier_effect_type字符串转魔法效果影响类型
camp_to_str阵营转字符串
random_pool_to_str随机池转字符串
keyboard_key_to_str键盘按键转字符串
str_to_keyboard_key字符串转键盘按键
mouse_key_to_str鼠标按键转字符串
str_to_mouse_key字符串转鼠标按键
mouse_wheel_to_str鼠标滚轮转字符串
str_to_mouse_wheel字符串转鼠标滚轮
trigger_to_str触发器转字符串
table_to_str表转字符串
damage_type_to_str伤害类型转字符串
str_to_damage_type字符串转伤害类型
unit_attr_type_to_str单位属性类型转字符串
str_to_unit_attr_type字符串转单位属性类型
str_to_ui_event字符串转UI事件
comp_to_str控件转字符串
get_client_language_type获取本地语言环境

方法

init_lua_var

描述

LUA层初始化参数

参数
参数名描述类型默认值
namenameStr
valuevalueStr
if_list是否数组Bool
返回值

Actor : 变量

api_clear_tag

描述

清空标签

参数
参数名描述类型默认值
actorActorActor
返回值

api_clear_kv

描述

清空自定义键值

参数
参数名描述类型默认值
actorActorActor
返回值

has_tag

描述

判断Actor是否有Tag

参数
参数名描述类型默认值
actorActorActor
tagTag标签Str
返回值

Bool : 是否有tag

api_has_kv_any

描述

判断Actor是否有kv

参数
参数名描述类型默认值
kvbaseActorActor
keykvStr
返回值

Bool : 是否有tag

set_actor_trigger_enabled

描述

使能Actor身上的触发器

参数
参数名描述类型默认值
actorActorActor
trigger_id触发器idTriggerID
enabled使能Bool
返回值

trigger_actor_trigger

描述

触发Actor身上的触发器

参数
参数名描述类型默认值
actoractorActor
trigger_id触发器idTriggerID
返回值

reg_actor_trigger

描述

注册Actor上的触发器并生效

参数
参数名描述类型默认值
actoractorActor
conf_id触发器配置idTriggerID
context上下文Dict
返回值

DynamicTriggerInstance : 动态触发器实例

unreg_actor_trigger

描述

注销Actor上的触发器

参数
参数名描述类型默认值
actoractorActor
trigger_id动态触发器实例DynamicTriggerInstance
返回值

create_sector_shape

描述

创建一个扇形

参数
参数名描述类型默认值
radius半径Fixed
angle角度Fixed
yaw朝向Float
返回值

Shape : 扇形对象

create_circular_shape

描述

创建一个圆形

参数
参数名描述类型默认值
radius半径Fixed
返回值

Shape : 圆形对象

create_rectangle_shape

描述

创建一个矩形

参数
参数名描述类型默认值
widthFixed
lengthFixed
yaw朝向Float
返回值

Shape : 矩形对象

create_annular_shape

描述

创建一个环形

参数
参数名描述类型默认值
small_r小圆半径Fixed
big_r大圆半径Fixed
返回值

Shape : 环形对象

coord_to_point

描述

坐标值转化为FVector3

参数
参数名描述类型默认值
xxFixed
zyFixed
yzFixedFix32(0.0)
返回值

FVector3 : FVector3

int_iterator

描述

整数迭代器,最大迭代次数不超过2^20

参数
参数名描述类型默认值
num迭代次数Int32
返回值

Int32Iterator : Python迭代器

int_iterator2

描述

整数迭代器

参数
参数名描述类型默认值
start计数从start开始Int32
stop计数到stop结束Int32
step步长Int32
返回值

Int32Iterator : Python迭代器

list_index_iterator

描述

列表索引迭代器

参数
参数名描述类型默认值
l列表List
返回值

Iterator : Python迭代器

table_iterator

描述

table迭代器

参数
参数名描述类型默认值
lTABTable
返回值

Iterator : Python迭代器

get_iter_table_key_str

描述

get_iter_table_key_str

参数
参数名描述类型默认值
itemtable iter itemList
返回值

Str : key str

get_iter_table_key_int

描述

get_iter_table_key_int

参数
参数名描述类型默认值
itemtable iter itemList
返回值

Int32 : key int

int32_arithmetic_operation

描述

Int32运算

参数
参数名描述类型默认值
v1xInt32
opoperator(+,-,*,/,%)Str
v2yInt32
返回值

Int32 : 返回值

int32_plus_one

描述

Int32自增1

参数
参数名描述类型默认值
int_valuexInt32
返回值

Int32 : 返回值

int32_min

描述

Int32取较小值

参数
参数名描述类型默认值
int_value1x1Int32
int_value2x2Int32
返回值

Int32 : 返回值

int32_max

描述

Int32取较大值

参数
参数名描述类型默认值
int_value1x1Int32
int_value2x2Int32
返回值

Int32 : 返回值

get_point_offset_vector

描述

点向方向偏移

参数
参数名描述类型默认值
point起始点FVector3
angle方向角度Fixed
dis偏移距离Fixed
返回值

FVector3 : 返回值

int64_to_str

描述

int64转换字符串

参数
参数名描述类型默认值
valInt64
返回值

Str : 字符串

to_str_default

描述

to_str_default

参数
参数名描述类型默认值
valActor
返回值

Str : 字符串

api_remove_kv

描述

删除键值对

参数
参数名描述类型默认值
kvbase键值对容器KVBase
key键名Str
返回值

get_unit_key_pool_num

描述

获取单位编号池内单位编号数量

参数
参数名描述类型默认值
pool单位编号池UnitKeyPool
返回值

Int32 : 单位编号数量

plane_range_between_2_point

描述

两点之间距离

参数
参数名描述类型默认值
p1目标点FPoint
p2起始点FPoint
返回值

Fixed : 距离

int32_to_fixed

描述

整数转定点数

参数
参数名描述类型默认值
i整数Int32
返回值

Fixed : 定点数

fix32_equal_with_precision

描述

实数近似比较(4位小数)

参数
参数名描述类型默认值
a定点数1Fixed
op比较符Str
b定点数2Fixed
返回值

Bool : 结果

fixed_to_int32

描述

定点数转整数

参数
参数名描述类型默认值
f定点数Fixed
返回值

Int32 : 整数

ability_index_to_int32

描述

技能槽位转整数

参数
参数名描述类型默认值
ability_index技能槽位AbilityIndex
返回值

Int32 : 整数

fixed_to_str

描述

定点数转字符串

参数
参数名描述类型默认值
f定点数Fixed
返回值

Str : 字符串

fvector3_to_str

描述

定点FVector3转字符串

参数
参数名描述类型默认值
fFVector3FVector3
返回值

Str : 字符串

fvector2_to_str

描述

定点FVector2转字符串

参数
参数名描述类型默认值
fFVector2FVector2
返回值

Str : 字符串

float_to_str

描述

浮点数转字符串

参数
参数名描述类型默认值
f浮点数Float
返回值

Str : 字符串

vector3_to_str

描述

浮点Vector3转字符串

参数
参数名描述类型默认值
fVector3Vector3
返回值

Str : 字符串

str_to_vector3

描述

字符串转Vector3

参数
参数名描述类型默认值
f字符串Str
返回值

Vector3 : Vector3

vector2_to_str

描述

浮点Vector2转字符串

参数
参数名描述类型默认值
fVector2Vector2
返回值

Str : 字符串

shape_to_str

描述

Shape转字符串

参数
参数名描述类型默认值
fShapeShape
返回值

Str : 字符串

dynamic_to_str

描述

动态类型数转字符串

参数
参数名描述类型默认值
f动态类型DynamicTypeMeta
返回值

Str : 字符串

int32_to_str

描述

int32_to_str

参数
参数名描述类型默认值
fint32Int32
返回值

Str : 字符串

bool_to_str

描述

布尔型转字符串

参数
参数名描述类型默认值
f布尔值Bool
返回值

Str : 字符串

i2s

描述

整数转字符串

参数
参数名描述类型默认值
i整数值Int32
返回值

Str : 字符串

join_s

描述

字符串拼接

参数
参数名描述类型默认值
s1字符串Str
s2字符串Str
返回值

Str : 字符串

fixed_arithmetic_operation

描述

定点数运算

参数
参数名描述类型默认值
axFixed
ooperator(+,-*,/)Str
byFixed
返回值

Fixed : 定点数

fixed_plus_one

描述

定点数自增1

参数
参数名描述类型默认值
fix_valuexFixed
返回值

Fixed : 定点数

fixed_min

描述

取两个定点数最小值

参数
参数名描述类型默认值
fix_value1x1Fixed
fix_value2x2Fixed
返回值

Fixed : 定点数

fixed_max

描述

取两个定点数最小大值

参数
参数名描述类型默认值
fix_value1x1Fixed
fix_value2x2Fixed
返回值

Fixed : 定点数

angle_arithmetic_operation

描述

角度计算

参数
参数名描述类型默认值
axFixed
ooperator(+,-*,/)Str
byFixed
返回值

Fixed : 定点数

degree_to_radian

描述

转换度到弧度

参数
参数名描述类型默认值
d角度Fixed
返回值

Fixed : 弧度

radian_sin

描述

正弦

参数
参数名描述类型默认值
r弧度Fixed
返回值

Fixed : 定点数

radian_cos

描述

余弦

参数
参数名描述类型默认值
r弧度Fixed
返回值

Fixed : 定点数

radian_tan

描述

正切

参数
参数名描述类型默认值
r弧度Fixed
返回值

Fixed : 定点数

radian_asin

描述

反正弦

参数
参数名描述类型默认值
r定点数Fixed
返回值

Fixed : 弧度

radian_acos

描述

反余弦

参数
参数名描述类型默认值
r定点数Fixed
返回值

Fixed : 弧度

radian_atan

描述

反正切

参数
参数名描述类型默认值
r定点数Fixed
返回值

Fixed : 弧度

radian_atan_x_y

描述

反正切(Y:X)

参数
参数名描述类型默认值
y定点数Fixed
x定点数Fixed
返回值

Fixed : 弧度

sqrt

描述

平方根

参数
参数名描述类型默认值
x定点数Fixed
返回值

Fixed : 定点数

pow

描述

求幂

参数
参数名描述类型默认值
f定点数Fixed
n整数Int32
返回值

Fixed : 定点数

abs

描述

求绝对值

参数
参数名描述类型默认值
f定点数Fixed
返回值

Fixed : 定点数

interval

描述

区间

参数
参数名描述类型默认值
x0定点数Fixed
x1定点数Fixed
x2定点数Fixed
返回值

Fixed : 定点数

nearest_quadratic_number

描述

找最近的二次方数

参数
参数名描述类型默认值
x定点数Fixed
返回值

Int32 : 二次方数

ceil

描述

最小整数

参数
参数名描述类型默认值
f定点数Fixed
返回值

Int32 : 整数

floor

描述

最大整数

参数
参数名描述类型默认值
f定点数Fixed
返回值

Int32 : 整数

interpolate

描述

插值

参数
参数名描述类型默认值
x_from定点数Fixed
x_to定点数Fixed
t定点数Fixed
返回值

Fixed : 定点数

invert_interpolate

描述

反插值

参数
参数名描述类型默认值
x_from定点数Fixed
x_to定点数Fixed
res_val定点数Fixed
返回值

Fixed : 定点数

log10

描述

对数10

参数
参数名描述类型默认值
x定点数Fixed
返回值

Fixed : 定点数

log

描述

对数

参数
参数名描述类型默认值
x1定点数Fixed
x2定点数Fixed
返回值

Fixed : 定点数

get_max_in_list

描述

返回组内最大值

参数
参数名描述类型默认值
l列表List
返回值

Fixed : 定点数

get_min_in_list

描述

返回组内最小值

参数
参数名描述类型默认值
l列表List
返回值

Fixed : 定点数

round

描述

四舍五入

参数
参数名描述类型默认值
x定点数Fixed
返回值

Fixed : 定点数

sign

描述

返回正负符号

参数
参数名描述类型默认值
f定点数Fixed
返回值

Fixed : 定点数

round_dec

描述

保留X位小数

参数
参数名描述类型默认值
x定点数Fixed
numX位小数Int32
b是否四舍五入BoolFalse
返回值

Fixed : 定点数

fixed_trigonometric_operation

描述

定点数三角函数运算

参数
参数名描述类型默认值
omethod(sin,cos,tan)Str
a定点数Fixed
返回值

Fixed : 定点数

get_player_group_num

描述

玩家组的玩家数量

参数
参数名描述类型默认值
player_group玩家组RoleGroup
返回值

Int32 : 玩家数量

描述

获取Actor关联技能

参数
参数名描述类型默认值
actorActorActor
返回值

Ability : 技能

add_actor_timer

描述

为Actor添加定时器

参数
参数名描述类型默认值
actoractorActor
name定时器名称Str
once字符串Str
interval定点数Fixed
context字典Dict
返回值

stop_actor_timer

描述

关闭Actor计时器

参数
参数名描述类型默认值
actoractorActor
name字符串Str
返回值

get_fixed_coord_index

描述

获取FVector3的其中一个值

参数
参数名描述类型默认值
pointFVector3FVector3
index序号(0-2)Int32
返回值

Fixed : 定点数

clear_group

描述

清空列表

参数
参数名描述类型默认值
list1列表List
返回值

set_list_with_length

描述

将第二个列表的值赋值给第一个列表 不改变第一个列表的长度

参数
参数名描述类型默认值
list1列表List
list2列表List
返回值

judge_role_in_group

描述

判断玩家是否在玩家组

参数
参数名描述类型默认值
role玩家Role
group玩家组RoleGroup
返回值

Bool : 布尔值

is_unit_alive

描述

判断单位是否活着

参数
参数名描述类型默认值
unit单位UnitNone
返回值

Bool : 布尔值

get_empty_unit_key_pool

描述

获取空的单位编号池

参数

返回值

UnitKeyPool : 单位编号池

get_point_in_route

描述

获取路径中某点

参数
参数名描述类型默认值
road_point_list路径Road
index下标UInt32
返回值

FPoint : 点

get_point_rotate_y

描述

点绕Y轴旋转(角度制)

参数
参数名描述类型默认值
pointFPoint
angle旋转Fixed
返回值

FPoint : 点

str_to_int

描述

字符串转整数

参数
参数名描述类型默认值
s字符串Str
返回值

Int32 : 返回值

str_to_bool

描述

字符串转布尔值

参数
参数名描述类型默认值
s字符串Str
返回值

Bool : 布尔值

str_to_fixed

描述

字符串转定点数

参数
参数名描述类型默认值
s字符串Str
返回值

Fixed : 返回值

delete_sub_str

描述

删除子字符串

参数
参数名描述类型默认值
str1原字符串Str
sub_str子字符串Str
only_one仅一次Bool
返回值

Str : 原字符串

extract_str

描述

截取子字符串

参数
参数名描述类型默认值
str1原字符串Str
index1左下标Int32
index2右下标Int32
返回值

Str : 截取后字符串

length_of_str

描述

获取字符串长度

参数
参数名描述类型默认值
str1字符串Str
返回值

Int32 : 字符串长度

str_to_upper_lower

描述

字符串大小写统一

参数
参数名描述类型默认值
str1原字符串Str
is_upper是否大写Bool
返回值

Str : 处理后字符串

pos_in_str

描述

子字符串位置

参数
参数名描述类型默认值
str1原字符串Str
sub_str子字符串Str
返回值

Int32 : 子字符串位置

api_int_to_key

描述

整数转化为特效类型

参数
参数名描述类型默认值
integer整数Int32
返回值

ProjectileKey : 投射物类型

api_key_to_int

描述

将投射物类型转化为整数

参数
参数名描述类型默认值
key投射物类型ProjectileKey
返回值

Int32 : 整数

unit_command_type_to_str

描述

单位命令类型转字符串

参数
参数名描述类型默认值
val单位命令类型UnitCommandType
返回值

Str : 字符串

str_to_unit_command_type

描述

字符串转单位命令类型

参数
参数名描述类型默认值
val字符串Str
返回值

UnitCommandType : 单位命令类型

ability_cast_type_to_str

描述

技能释放类型转字符串

参数
参数名描述类型默认值
val技能释放类型AbilityCastType
返回值

Str : 字符串

str_to_ability_cast_type

描述

字符串转技能释放类型

参数
参数名描述类型默认值
val技能释放类型AbilityCastType
返回值

Str : 字符串

poly_area_to_str

描述

多边形区域转字符串

参数
参数名描述类型默认值
obj多边形区域PolyArea
返回值

Str : 字符串

projectile_group_to_str

描述

投射物组转字符串

参数
参数名描述类型默认值
obj投射物组ProjectileGroup
返回值

Str : 字符串

role_relation_to_str

描述

玩家关系转字符串

参数
参数名描述类型默认值
val玩家关系RoleRelation
返回值

Str : 字符串

str_to_role_relation

描述

字符串转玩家关系

参数
参数名描述类型默认值
val字符串Str
返回值

RoleRelation : 玩家关系

unit_key_pool_to_str

描述

单位编号池转字符串

参数
参数名描述类型默认值
obj单位编号池UnitKeyPool
返回值

Str : 字符串

unit_type_to_str

描述

单位分类转字符串

参数
参数名描述类型默认值
val单位类型UnitType
返回值

Str : 字符串

str_to_unit_type

描述

字符串转单位分类

参数
参数名描述类型默认值
val字符串Str
返回值

UnitType : 单位类型

timer_to_str

描述

计时器转字符串

参数
参数名描述类型默认值
val计时器Timer
返回值

Str : 字符串

unit_to_str

描述

单位转字符串

参数
参数名描述类型默认值
obj单位Unit
返回值

Str : 字符串

unit_group_to_str

描述

单位组转字符串

参数
参数名描述类型默认值
obj单位组UnitGroup
返回值

Str : 字符串

item_to_str

描述

物品转字符串

参数
参数名描述类型默认值
obj物品对象Item
返回值

Str : 字符串

item_group_to_str

描述

物品组转字符串

参数
参数名描述类型默认值
obj物品组ItemGroup
返回值

Str : 字符串

role_to_str

描述

玩家转字符串

参数
参数名描述类型默认值
obj玩家Role
返回值

Str : 字符串

role_group_to_str

描述

玩家组转字符串

参数
参数名描述类型默认值
obj玩家组RoleGroup
返回值

Str : 字符串

role_status_to_str

描述

玩家状态转字符串

参数
参数名描述类型默认值
val玩家状态RoleStatus
返回值

Str : 字符串

str_to_role_status

描述

字符串转玩家状态

参数
参数名描述类型默认值
val字符串Str
返回值

RoleStatus : 玩家状态

role_type_to_str

描述

玩家控制者转字符串

参数
参数名描述类型默认值
val玩家控制者类型RoleType
返回值

Str : 字符串

str_to_role_type

描述

字符串转玩家控制者

参数
参数名描述类型默认值
val字符串Str
返回值

RoleType : 玩家控制者类型

ability_to_str

描述

技能转字符串

参数
参数名描述类型默认值
obj技能对象Ability
返回值

Str : 字符串

ability_type_to_str

描述

技能槽位类型转字符串

参数
参数名描述类型默认值
val技能类型AbilityType
返回值

Str : 字符串

str_to_ability_type

描述

字符串转技能槽位类型

参数
参数名描述类型默认值
val技能类型Str
返回值

AbilityType : 技能类型

rect_area_to_str

描述

矩形区域转字符串

参数
参数名描述类型默认值
obj矩形区域RecArea
返回值

Str : 字符串

circle_area_to_str

描述

圆形区域转字符串

参数
参数名描述类型默认值
obj圆形区域CirArea
返回值

Str : 字符串

road_to_str

描述

路径转字符串

参数
参数名描述类型默认值
obj路径Road
返回值

Str : 字符串

dest_to_str

描述

可破坏物转字符串

参数
参数名描述类型默认值
obj可破坏物对象Destructible
返回值

Str : 字符串

project_to_str

描述

投射物转字符串

参数
参数名描述类型默认值
obj投掷物对象ProjectileEntity
返回值

Str : 字符串

modifier_entity_to_str

描述

魔法效果转字符串

参数
参数名描述类型默认值
obj魔法效果对象ModifierEntity
返回值

Str : 字符串

modifier_type_to_str

描述

魔法效果类别转字符串

参数
参数名描述类型默认值
val魔法效果类别ModifierType
返回值

Str : 字符串

str_to_modifier_type

描述

字符串转魔法效果类别

参数
参数名描述类型默认值
val字符串Str
返回值

ModifierType : 魔法效果类别

modifier_effect_type_to_str

描述

魔法效果影响类型转字符串

参数
参数名描述类型默认值
val魔法效果影响类别ModifierEffectType
返回值

Str : 字符串

str_to_modifier_effect_type

描述

字符串转魔法效果影响类型

参数
参数名描述类型默认值
val字符串Str
返回值

ModifierEffectType : 魔法效果影响类别

camp_to_str

描述

阵营转字符串

参数
参数名描述类型默认值
obj阵营对象Camp
返回值

Str : 字符串

random_pool_to_str

描述

随机池转字符串

参数
参数名描述类型默认值
obj随机池RandomPool
返回值

Str : 字符串

keyboard_key_to_str

描述

键盘按键转字符串

参数
参数名描述类型默认值
obj键盘按键KeyboardKey
返回值

Str : 字符串

str_to_keyboard_key

描述

字符串转键盘按键

参数
参数名描述类型默认值
obj字符串Str
返回值

KeyboardKey : 键盘按键

mouse_key_to_str

描述

鼠标按键转字符串

参数
参数名描述类型默认值
obj鼠标按键MouseKey
返回值

Str : 字符串

str_to_mouse_key

描述

字符串转鼠标按键

参数
参数名描述类型默认值
obj字符串Str
返回值

MouseKey : 鼠标按键

mouse_wheel_to_str

描述

鼠标滚轮转字符串

参数
参数名描述类型默认值
obj鼠标滚轮MouseWheel
返回值

Str : 字符串

str_to_mouse_wheel

描述

字符串转鼠标滚轮

参数
参数名描述类型默认值
obj字符串Str
返回值

MouseWheel : 鼠标滚轮

trigger_to_str

描述

触发器转字符串

参数
参数名描述类型默认值
obj触发器DynamicTypeMeta
返回值

Str : 字符串

table_to_str

描述

表转字符串

参数
参数名描述类型默认值
objTable
返回值

Str : 字符串

damage_type_to_str

描述

伤害类型转字符串

参数
参数名描述类型默认值
obj伤害类型Int32
返回值

Str : 字符串

str_to_damage_type

描述

字符串转伤害类型

参数
参数名描述类型默认值
obj字符串Str
返回值

Int32 : 伤害类型

unit_attr_type_to_str

描述

单位属性类型转字符串

参数
参数名描述类型默认值
obj属性类型Str
返回值

Str : 字符串

str_to_unit_attr_type

描述

字符串转单位属性类型

参数
参数名描述类型默认值
obj字符串Str
返回值

Str : 属性类型

str_to_ui_event

描述

字符串转UI事件

参数
参数名描述类型默认值
obj字符串Str
返回值

Str : UI事件

comp_to_str

描述

控件转字符串

参数
参数名描述类型默认值
obj控件Str
返回值

Str : 字符串

get_client_language_type

描述

获取本地语言环境

参数

返回值

LanguageType : 语言环境