GlobalAPI
描述
globalapi
方法列表
方法
init_lua_var
描述
LUA层初始化参数
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
name | name | Str | |
value | value | Str | |
if_list | 是否数组 | Bool |
返回值
Actor
: 变量
api_clear_tag
描述
清空标签
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
actor | Actor | Actor |
返回值
无
api_clear_kv
描述
清空自定义键值
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
actor | Actor | Actor |
返回值
无
has_tag
描述
判断Actor是否有Tag
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
actor | Actor | Actor | |
tag | Tag标签 | Str |
返回值
Bool
: 是否有tag
api_has_kv_any
描述
判断Actor是否有kv
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
kvbase | Actor | Actor | |
key | kv | Str |
返回值
Bool
: 是否有tag
set_actor_trigger_enabled
描述
使能Actor身上的触发器
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
actor | Actor | Actor | |
trigger_id | 触发器id | TriggerID | |
enabled | 使能 | Bool |
返回值
无
trigger_actor_trigger
描述
触发Actor身上的触发器
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
actor | actor | Actor | |
trigger_id | 触发器id | TriggerID |
返回值
无
reg_actor_trigger
描述
注册Actor上的触发器并生效
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
actor | actor | Actor | |
conf_id | 触发器配置id | TriggerID | |
context | 上下文 | Dict |
返回值
DynamicTriggerInstance
: 动态触发器实例
unreg_actor_trigger
描述
注销Actor上的触发器
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
actor | actor | Actor | |
trigger_id | 动态触发器实例 | DynamicTriggerInstance |
返回值
无
create_sector_shape
描述
创建一个扇形
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
radius | 半径 | Fixed | |
angle | 角度 | Fixed | |
yaw | 朝向 | Float |
返回值
Shape
: 扇形对象
create_circular_shape
描述
创建一个圆形
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
radius | 半径 | Fixed |
返回值
Shape
: 圆形对象
create_rectangle_shape
描述
创建一个矩形
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
width | 长 | Fixed | |
length | 宽 | Fixed | |
yaw | 朝向 | Float |
返回值
Shape
: 矩形对象
create_annular_shape
描述
创建一个环形
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
small_r | 小圆半径 | Fixed | |
big_r | 大圆半径 | Fixed |
返回值
Shape
: 环形对象
coord_to_point
描述
坐标值转化为FVector3
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
x | x | Fixed | |
z | y | Fixed | |
y | z | Fixed | Fix32(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迭代器
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
l | TAB | Table |
返回值
Iterator
: Python迭代器
get_iter_table_key_str
描述
get_iter_table_key_str
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
item | table iter item | List |
返回值
Str
: key str
get_iter_table_key_int
描述
get_iter_table_key_int
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
item | table iter item | List |
返回值
Int32
: key int
int32_arithmetic_operation
描述
Int32运算
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
v1 | x | Int32 | |
op | operator(+,-,*,/,%) | Str | |
v2 | y | Int32 |
返回值
Int32
: 返回值
int32_plus_one
描述
Int32自增1
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
int_value | x | Int32 |
返回值
Int32
: 返回值
int32_min
描述
Int32取较小值
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
int_value1 | x1 | Int32 | |
int_value2 | x2 | Int32 |
返回值
Int32
: 返回值
int32_max
描述
Int32取较大值
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
int_value1 | x1 | Int32 | |
int_value2 | x2 | Int32 |
返回值
Int32
: 返回值
get_point_offset_vector
描述
点向方向偏移
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
point | 起始点 | FVector3 | |
angle | 方向角度 | Fixed | |
dis | 偏移距离 | Fixed |
返回值
FVector3
: 返回值
int64_to_str
描述
int64转换字符串
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
val | 值 | Int64 |
返回值
Str
: 字符串
to_str_default
描述
to_str_default
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
val | 值 | Actor |
返回值
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 | 定点数1 | Fixed | |
op | 比较符 | Str | |
b | 定点数2 | Fixed |
返回值
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转字符串
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
f | FVector3 | FVector3 |
返回值
Str
: 字符串
fvector2_to_str
描述
定点FVector2转字符串
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
f | FVector2 | FVector2 |
返回值
Str
: 字符串
float_to_str
描述
浮点数转字符串
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
f | 浮点数 | Float |
返回值
Str
: 字符串
vector3_to_str
描述
浮点Vector3转字符串
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
f | Vector3 | Vector3 |
返回值
Str
: 字符串
str_to_vector3
描述
字符串转Vector3
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
f | 字符串 | Str |
返回值
Vector3
: Vector3
vector2_to_str
描述
浮点Vector2转字符串
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
f | Vector2 | Vector2 |
返回值
Str
: 字符串
shape_to_str
描述
Shape转字符串
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
f | Shape | Shape |
返回值
Str
: 字符串
dynamic_to_str
描述
动态类型数转字符串
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
f | 动态类型 | DynamicTypeMeta |
返回值
Str
: 字符串
int32_to_str
描述
int32_to_str
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
f | int32 | Int32 |
返回值
Str
: 字符串
bool_to_str
描述
布尔型转字符串
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
f | 布尔值 | Bool |
返回值
Str
: 字符串
i2s
描述
整数转字符串
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
i | 整数值 | Int32 |
返回值
Str
: 字符串
join_s
描述
字符串拼接
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
s1 | 字符串 | Str | |
s2 | 字符串 | Str |
返回值
Str
: 字符串
fixed_arithmetic_operation
描述
定点数运算
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
a | x | Fixed | |
o | operator(+,-*,/) | Str | |
b | y | Fixed |
返回值
Fixed
: 定点数
fixed_plus_one
描述
定点数自增1
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
fix_value | x | Fixed |
返回值
Fixed
: 定点数
fixed_min
描述
取两个定点数最小值
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
fix_value1 | x1 | Fixed | |
fix_value2 | x2 | Fixed |
返回值
Fixed
: 定点数
fixed_max
描述
取两个定点数最小大值
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
fix_value1 | x1 | Fixed | |
fix_value2 | x2 | Fixed |
返回值
Fixed
: 定点数
angle_arithmetic_operation
描述
角度计算
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
a | x | Fixed | |
o | operator(+,-*,/) | Str | |
b | y | Fixed |
返回值
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 | |
num | X位小数 | Int32 | |
b | 是否四舍五入 | Bool | False |
返回值
Fixed
: 定点数
fixed_trigonometric_operation
描述
定点数三角函数运算
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
o | method(sin,cos,tan) | Str | |
a | 定点数 | Fixed |
返回值
Fixed
: 定点数
get_player_group_num
描述
玩家组的玩家数量
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
player_group | 玩家组 | RoleGroup |
返回值
Int32
: 玩家数量
get_related_ability
描述
获取Actor关联技能
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
actor | Actor | Actor |
返回值
Ability
: 技能
add_actor_timer
描述
为Actor添加定时器
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
actor | actor | Actor | |
name | 定时器名称 | Str | |
once | 字符串 | Str | |
interval | 定点数 | Fixed | |
context | 字典 | Dict |
返回值
无
stop_actor_timer
描述
关闭Actor计时器
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
actor | actor | Actor | |
name | 字符串 | Str |
返回值
无
get_fixed_coord_index
描述
获取FVector3的其中一个值
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
point | FVector3 | FVector3 | |
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 | 单位 | Unit | None |
返回值
Bool
: 布尔值
get_empty_unit_key_pool
描述
获取空的单位编号池
参数
无
返回值
UnitKeyPool
: 单位编号池
get_point_in_route
描述
获取路径中某点
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
road_point_list | 路径 | Road | |
index | 下标 | UInt32 |
返回值
FPoint
: 点
get_point_rotate_y
描述
点绕Y轴旋转(角度制)
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
point | 点 | FPoint | |
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
描述
表转字符串
参数
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
obj | 表 | Table |
返回值
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
: 语言环境