Hiveworkshop· Drake53·· 3 小时前AI 评分0
Map Adapter
Map Adapter
AI 导读
Map Adapter 提供 JASS 代码,定义 BlzCreateItemWithSkin、BlzCreateUnitWithSkin 等 6 个带 skinId 参数的创建函数,函数体均忽略 skinId 调用旧版 Create 系列。涵盖物品、单位、可破坏物及对应 Z 轴与死亡状态变体。
正文
JASS:
function BlzCreateItemWithSkin takes integer itemid, real x, real y, integer skinId returns item
return CreateItem(itemid, x, y)
endfunction
function BlzCreateUnitWithSkin takes player id, integer unitid, real x, real y, real face, integer skinId returns unit
return CreateUnit(id, unitid, x, y, face)
endfunction
function BlzCreateDestructableWithSkin takes integer objectid, real x, real y, real face, real scale, integer variation, integer skinId returns destructable
return CreateDestructable(objectid, x, y, face, scale, variation)
endfunction
function BlzCreateDestructableZWithSkin takes integer objectid, real x, real y, real z, real face, real scale, integer variation, integer skinId returns destructable
return CreateDestructableZ(objectid, x, y, z, face, scale, variation)
endfunction
function BlzCreateDeadDestructableWithSkin takes integer objectid, real x, real y, real face, real scale, integer variation, integer skinId returns destructable
return CreateDeadDestructable(objectid, x, y, face, scale, variation)
endfunction
function BlzCreateDeadDestructableZWithSkin takes integer objectid, real x, real y, real z, real face, real scale, integer variation, integer skinId returns destructable
return CreateDeadDestructableZ(objectid, x, y, z, face, scale, variation)
endfunction来源:Hiveworkshop · hiveworkshop.com