会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
ElementCraft
我伸长了双臂,虽然够到了星星和月亮,却依然触不到真相。
|
首页
|
新随笔
|
新文章
|
联系
| |
管理
2015年6月22日
[Lua学习]简单的类定义(OO概念)
摘要: 1 -- 二维向量类 2 3 local P = { 4 x = 0, 5 y = 0 6 } 7 8 Vec2 = P 9 10 --setfenv(1, P)11 12 local function optAdd(a, b)13 local o = P:new()1...
阅读全文
posted @ 2015-06-22 18:34 ElementCraft
阅读(223)
评论(0)
推荐(0)
编辑
公告