06-08-2012, 05:04 AM
A bit more information would be useful:
OnChat is called AFTER checking message to be a binded command, am I right?
If chat message IS a binded command (for example, "/help 1") - will OnChat be called or not?
As for passing values...
BlockToDrops: I have no idea... Probably a custom structure with an array inside will work, but that's not really "elegant"
as for ChunkGenerating - could we have a cChunk structure in Lua? That would be nice...
And one more thing: when it will be called? What it would contain and what it won't? I know that original Minecraft splits chunk generation into "generating" and "block populating", and the last one places ores in generated chunk...
If MCS does the same, probably it's a good idea to have:
OnChunkGenerating
OnChunkGenerated
OnChunkPopulating
OnChunkPopulated
(executed in that order)
Let's wait fome Truth
OnChat is called AFTER checking message to be a binded command, am I right?
If chat message IS a binded command (for example, "/help 1") - will OnChat be called or not?
As for passing values...
BlockToDrops: I have no idea... Probably a custom structure with an array inside will work, but that's not really "elegant"
as for ChunkGenerating - could we have a cChunk structure in Lua? That would be nice...
And one more thing: when it will be called? What it would contain and what it won't? I know that original Minecraft splits chunk generation into "generating" and "block populating", and the last one places ores in generated chunk...
If MCS does the same, probably it's a good idea to have:
OnChunkGenerating
OnChunkGenerated
OnChunkPopulating
OnChunkPopulated
(executed in that order)
Let's wait fome Truth