对象超类是否已从 LÖVE 中删除?
Was the Object superclass removed from LÖVE?
文档引用了 Object superclass. However, when I run the example on the Object:typeOf page, it outputs false
for print(image:typeOf("Object"))
instead of true
. I also tried it with Canvas,它也返回了 false
。
这是错误还是 class 被删除了?如果是这样,有人知道它是在哪个版本中删除的吗?
我正在使用 0.10.2,Super Toast。
它没有被删除,至少在 C++ 中没有。我将 github 上旧 2010 镜像的代码与 Bitbucket 中的最新源代码进行了比较,Image 仍然继承自 Object:
GitHub: Image : Drawable and Drawable : Object
比特桶:Image : Texture and Texture : Drawable and Drawable : Object
它是如何暴露给 Lua 的,为什么 typeOf()
没有 return 文档所说的 return,我不知道。我会把它作为一个错误归档,因为文档说它应该 return true
for Object (至少,这是一个文档错误)。
文档引用了 Object superclass. However, when I run the example on the Object:typeOf page, it outputs false
for print(image:typeOf("Object"))
instead of true
. I also tried it with Canvas,它也返回了 false
。
这是错误还是 class 被删除了?如果是这样,有人知道它是在哪个版本中删除的吗?
我正在使用 0.10.2,Super Toast。
它没有被删除,至少在 C++ 中没有。我将 github 上旧 2010 镜像的代码与 Bitbucket 中的最新源代码进行了比较,Image 仍然继承自 Object:
GitHub: Image : Drawable and Drawable : Object
比特桶:Image : Texture and Texture : Drawable and Drawable : Object
它是如何暴露给 Lua 的,为什么 typeOf()
没有 return 文档所说的 return,我不知道。我会把它作为一个错误归档,因为文档说它应该 return true
for Object (至少,这是一个文档错误)。