struct Unit
public static method create takes integer player p, integer id, real x, real y, real f returns thistype
call CreateUnit(p, id, x, y, f)
return 0
endmethod
endstuct
You can call it with
call Unit.Create(Player, UnitId, X, Y, Facing)
or
struct Create
public static method Unit takes integer player p, integer id, real x, real y, real f returns unit
return CreateUnit(p, id, x, y, f)
endmethod
endstuct
You can call it with
call Create.Unit(Player, UnitId, X, Y, Facing)