Skip to content

Commit dc7a2c5

Browse files
committed
perf: use GetItemX/Y instead of GetWidgetX/Y
1 parent 078b83b commit dc7a2c5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

WCSharp.Api/item.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ internal item()
2929
/// @CSharpLua.Get = "GetItemType({this})"
3030
public extern itemtype Type { get; }
3131

32-
/// @CSharpLua.Get = "GetWidgetX({this})"
33-
/// @CSharpLua.Set = "SetItemPosition({this}, {0}, GetWidgetY({this}))"
32+
/// @CSharpLua.Get = "GetItemX({this})"
33+
/// @CSharpLua.Set = "SetItemPosition({this}, {0}, GetItemY({this}))"
3434
public extern new float X { get; set; }
3535

36-
/// @CSharpLua.Get = "GetWidgetY({this})"
37-
/// @CSharpLua.Set = "SetItemPosition({this}, GetWidgetX({this}), {0})"
36+
/// @CSharpLua.Get = "GetItemY({this})"
37+
/// @CSharpLua.Set = "SetItemPosition({this}, GetItemX({this}), {0})"
3838
public extern new float Y { get; set; }
3939

4040
/// @CSharpLua.Get = "GetItemPlayer({this})"

0 commit comments

Comments
 (0)