Exported GetSeed to lua and added file extension opendb to .gitignore.
This commit is contained in:
parent
a4a17a2953
commit
fe72eaaec2
1
.gitignore
vendored
1
.gitignore
vendored
@ -88,6 +88,7 @@ src/AllFiles.lst
|
|||||||
*.opensdf
|
*.opensdf
|
||||||
*.sdf
|
*.sdf
|
||||||
*.sln
|
*.sln
|
||||||
|
*.opendb
|
||||||
*.idb
|
*.idb
|
||||||
|
|
||||||
# cmake output folders
|
# cmake output folders
|
||||||
|
@ -2507,6 +2507,7 @@ end
|
|||||||
GetName = { Params = "", Return = "string", Notes = "Returns the name of the world, as specified in the settings.ini file." },
|
GetName = { Params = "", Return = "string", Notes = "Returns the name of the world, as specified in the settings.ini file." },
|
||||||
GetNumChunks = { Params = "", Return = "number", Notes = "Returns the number of chunks currently loaded." },
|
GetNumChunks = { Params = "", Return = "number", Notes = "Returns the number of chunks currently loaded." },
|
||||||
GetScoreBoard = { Params = "", Return = "{{cScoreBoard}}", Notes = "Returns the {{cScoreBoard|ScoreBoard}} object used by this world. " },
|
GetScoreBoard = { Params = "", Return = "{{cScoreBoard}}", Notes = "Returns the {{cScoreBoard|ScoreBoard}} object used by this world. " },
|
||||||
|
GetSeed = { Params = "", Return = "number", Notes = "Returns the seed of the world." },
|
||||||
GetSignLines = { Params = "BlockX, BlockY, BlockZ", Return = "IsValid, [Line1, Line2, Line3, Line4]", Notes = "Returns true and the lines of a sign at the specified coords, or false if there is no sign at the coords." },
|
GetSignLines = { Params = "BlockX, BlockY, BlockZ", Return = "IsValid, [Line1, Line2, Line3, Line4]", Notes = "Returns true and the lines of a sign at the specified coords, or false if there is no sign at the coords." },
|
||||||
GetSpawnX = { Params = "", Return = "number", Notes = "Returns the X coord of the default spawn" },
|
GetSpawnX = { Params = "", Return = "number", Notes = "Returns the X coord of the default spawn" },
|
||||||
GetSpawnY = { Params = "", Return = "number", Notes = "Returns the Y coord of the default spawn" },
|
GetSpawnY = { Params = "", Return = "number", Notes = "Returns the Y coord of the default spawn" },
|
||||||
|
@ -757,6 +757,9 @@ public:
|
|||||||
return (IsWeatherWet() && !IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ)));
|
return (IsWeatherWet() && !IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Returns the seed of the world. */
|
||||||
|
int GetSeed(void) { return m_Generator.GetSeed(); }
|
||||||
|
|
||||||
// tolua_end
|
// tolua_end
|
||||||
|
|
||||||
cChunkGenerator & GetGenerator(void) { return m_Generator; }
|
cChunkGenerator & GetGenerator(void) { return m_Generator; }
|
||||||
|
Loading…
Reference in New Issue
Block a user