-
-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created constant for lower bound of chunk #5488
base: master
Are you sure you want to change the base?
Changes from all commits
8b63ebf
2f3b04c
5ce8166
f91cc0f
e117aa9
0d8a207
11a5d45
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -535,6 +535,36 @@ return | |||||
}, | ||||||
}, | ||||||
}, | ||||||
cChunkDef = | ||||||
{ | ||||||
Desc = [[ | ||||||
This class contains constants and functions that are useful for dealing with chunks. The constants | ||||||
are mostly used for specifying chunk coordinate ranges. | ||||||
]], | ||||||
Constants = | ||||||
{ | ||||||
Width = | ||||||
{ | ||||||
Notes = "The width of a chunk, in number of blocks.", | ||||||
}, | ||||||
LowerLimit = | ||||||
{ | ||||||
Notes = "The lower limit of the chunk coordinate vertical range.", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
}, | ||||||
UpperLimit = | ||||||
{ | ||||||
Notes = "The upper limit of the chunk coordinate vertical range.", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
}, | ||||||
VerticalBlockCount = | ||||||
{ | ||||||
Notes = "The number of blocks in the vertical direction in a chunk.", | ||||||
}, | ||||||
NumBlocks = | ||||||
{ | ||||||
Notes = "The total number of blocks in a chunk.", | ||||||
}, | ||||||
}, | ||||||
}, | ||||||
cChunkDesc = | ||||||
{ | ||||||
Desc = [[ | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4516,6 +4516,7 @@ void cManualBindings::Bind(lua_State * tolua_S) | |
tolua_beginmodule(tolua_S, nullptr); | ||
|
||
// Create the new classes: | ||
tolua_usertype(tolua_S, "cChunkDef"); | ||
tolua_usertype(tolua_S, "cCryptoHash"); | ||
tolua_usertype(tolua_S, "cLineBlockTracer"); | ||
tolua_usertype(tolua_S, "cStringCompression"); | ||
|
@@ -4546,6 +4547,14 @@ void cManualBindings::Bind(lua_State * tolua_S) | |
tolua_function(tolua_S, "Intersect", tolua_cBoundingBox_Intersect); | ||
tolua_endmodule(tolua_S); | ||
|
||
tolua_beginmodule(tolua_S, "cChunkDef"); | ||
tolua_constant(tolua_S, "Width", cChunkDef::Width); | ||
tolua_constant(tolua_S, "LowerLimit", cChunkDef::LowerLimit); | ||
tolua_constant(tolua_S, "UpperLimit", cChunkDef::UpperLimit); | ||
tolua_constant(tolua_S, "VerticalBlockCount", cChunkDef::VerticalBlockCount); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this should be exported as |
||
tolua_constant(tolua_S, "NumBlocks", cChunkDef::NumBlocks); | ||
tolua_endmodule(tolua_S); | ||
|
||
tolua_beginmodule(tolua_S, "cChunkDesc"); | ||
tolua_function(tolua_S, "GetBlockTypeMeta", tolua_cChunkDesc_GetBlockTypeMeta); | ||
tolua_endmodule(tolua_S); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.