Lua 不直接支持面向对象编程,但是可以使用Lua中的表实现类似的功能。 Vector = { x = 1, y = 2, z = 3, } function Vector:length() return ...
確定! 回上一頁