mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
Refactoring and flexibility changes
* Split game module into game and game_interface * Move core_lib to corelib * Move miniwindow to corelib * Introduce init.lua script for initializing the client, giving much more flexibility * OTClient is no longer Application derived and is much simpler
This commit is contained in:
1
modules/corelib/math/color.lua
Normal file
1
modules/corelib/math/color.lua
Normal file
@@ -0,0 +1 @@
|
||||
Color = {}
|
8
modules/corelib/math/math.lua
Normal file
8
modules/corelib/math/math.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
function math.round(num, idp)
|
||||
local mult = 10^(idp or 0)
|
||||
if num >= 0 then
|
||||
return math.floor(num * mult + 0.5) / mult
|
||||
else
|
||||
return math.ceil(num * mult - 0.5) / mult
|
||||
end
|
||||
end
|
1
modules/corelib/math/point.lua
Normal file
1
modules/corelib/math/point.lua
Normal file
@@ -0,0 +1 @@
|
||||
Point = {}
|
1
modules/corelib/math/rect.lua
Normal file
1
modules/corelib/math/rect.lua
Normal file
@@ -0,0 +1 @@
|
||||
Rect = {}
|
1
modules/corelib/math/size.lua
Normal file
1
modules/corelib/math/size.lua
Normal file
@@ -0,0 +1 @@
|
||||
Size = {}
|
Reference in New Issue
Block a user