Daniel O'Brien
3595392937
fixed bug and added SpendExperience()
2013-11-16 21:38:57 +11:00
Daniel O'Brien
04dff4882a
finished #143 I believe
2013-11-16 02:23:50 +11:00
madmaxoft
49d6afd501
Removed cBlockEntity:CreateByBlockType() from the Lua API.
...
Plugins cannot be allowed to create block entities, that would result in memory leaks.
2013-11-15 10:15:27 +01:00
madmaxoft
ebb2ccaa26
Removed BlockEntities' constructors from the API.
...
Plugins shouldn't construct block entities, rather, they will query them either from the cWorld (while playing), or from cChunkDesc (while generating).
2013-11-15 09:49:56 +01:00
madmaxoft
4533fc34ec
Added cNoteEntity to Lua API.
...
Ref. #228 .
2013-11-14 17:14:54 +01:00
madmaxoft
efb6f598bc
Exported cJukeboxEntity to Lua API.
...
Ref. #228
2013-11-14 16:05:55 +01:00
madmaxoft
082573771f
Added cSignEntity into API, added cChunkDesc:GetBlockEntity().
...
This fixes both #228 and #347 .
2013-11-14 15:37:09 +01:00
Daniel O'Brien
21bd1d74a1
luaExport
2013-11-14 16:20:27 +11:00
madmaxoft
fe07012952
Added cItem::GetMaxStackSize()
2013-11-10 18:41:26 +01:00
madmaxoft
b6ca98f380
Removed cStringMap.
...
It wasn't used for anything anymore.
2013-11-09 19:54:52 +01:00
madmaxoft
9bdc94053e
Added cEntity:GetYaw() and cEntity:SetYaw().
...
This is the preferred way to get / set rotation, GetRotation() and SetRotation is obsoleted due to bad name.
2013-11-03 11:59:05 +01:00
madmaxoft
df20c19986
Renamed cWindow constants to include the "wt" prefix.
2013-10-28 13:30:24 +01:00
madmaxoft
323ebf119f
cIniFile: Renamed functions to make meaning more explicit.
...
For example KeyComment() -> GetKeyComment() / AddKeyComment()
2013-10-25 11:38:14 +02:00
madmaxoft
9e9198e090
cIniFile doesn't store filename internally anymore.
2013-10-25 11:15:44 +02:00
madmaxoft
5331555708
Renamed cMonster::GetSpawnRate() to GetSpawnDelay().
2013-10-24 16:45:13 +02:00
madmaxoft
88db43e8d3
Fixed cLuaWindow's binding.
...
No longer exporting multiple inheritance.
2013-10-23 13:31:04 +02:00
madmaxoft
b8a2793228
Fixed bindings for cHopperEntity:GetOutputBlockPos().
2013-10-23 12:09:11 +02:00
madmaxoft
90bea6a914
Fixed cDropSpenserEntity bindings generating an extra var.
...
Caused by inadvertently exporting multiple-inheritance from a class that is not Lua-exported.
2013-10-23 11:17:16 +02:00
madmaxoft
730195c47e
Exported cHopperEntity to API.
...
This allows hoppers to be created by plugins during chunk generation.
2013-10-23 11:12:04 +02:00
madmaxoft
d3db97301b
Removed cRoot:m_PrimaryServerVersion from Lua API.
...
We have the accessor methods for it.
2013-10-23 11:06:39 +02:00
madmaxoft
5174d9cbd6
Fixed GetHTMLEscapedString() binding, removed obsolete memory function from API.
2013-10-21 13:22:47 +02:00
madmaxoft
6075f7cecd
Fixed memory leaks in cMobCensus, moved GetSpawnRate() to cMonster.
2013-10-20 14:00:45 +02:00
madmaxoft
848d061de1
Moved all MobTypesManager functions to cMonster.
...
This removes some of the memory leaks and is more logical in structure. Also the functions are exported to Lua.
2013-10-20 13:25:56 +02:00
madmaxoft
34928378b8
Fixed loading allowed mobs in world.
2013-10-20 10:23:30 +02:00
madmaxoft
e62cac07c0
Merge branch 'metadata' of git://github.com/tigerw/MCServer into tigerw-metadata.
2013-10-13 18:26:45 +02:00
madmaxoft
47b64b63fa
Added GetIniItemSet() function.
...
It reads a block / item description from the specified INI file value and returns as cItem; stores and uses the default if value doesn't exist.
2013-10-11 10:12:36 +02:00
madmaxoft
55999ee118
Moved cMakeDir::MakeDir to cFile::CreateFolder.
...
And exported to Lua.
2013-10-09 09:57:48 +02:00
madmaxoft
2ff882f239
Added static cFile functions to Lua API.
2013-10-09 09:38:47 +02:00
madmaxoft
a120507be0
Implemented the two memory-statistics functions in cRoot.
...
This fixes #185 . cWebAdmin::GetMemoryUsage() is accessible but deprecated (with a warning output to the screen).
2013-10-08 20:12:34 +02:00
madmaxoft
a4cbe9fbb1
Cleaned up cEntity's enums.
...
Several were obsoleted and unused, others weren't supposed to be exported to the Lua API.
2013-10-08 19:49:33 +02:00
madmaxoft
dabbf24f58
Merge branch 'master' into NewWebServer
...
This should simplify merging
2013-10-06 15:44:14 +02:00
madmaxoft
b5c90d7b20
WebAdmin uses the new HTTP functionality.
...
This is a partial implementation of #183 .
2013-10-05 23:08:16 +02:00
madmaxoft
dcea29ec30
Added cWorld::IsWeatherXXX() functions
2013-10-04 08:38:38 +02:00
madmaxoft
0b8f47face
Removed cChunkDesc::SetChunkCoords() from Lua API.
2013-09-25 09:02:49 +02:00
madmaxoft
6b61df3b73
Implemented cWebAdmin:GetMemoryUsage() on Linux proper.
...
Also the function now returns an int, number of KiB used, or -1 on failure.
2013-09-21 19:00:01 +02:00
madmaxoft
66da02519a
Added cPlugin:GetLocalFolder() API function.
...
This supersedes the cPlugin:GetLocalDirectory() function.
2013-09-18 22:15:12 +02:00
madmaxoft
9f7b2e259d
Exported cMonster:GetMobType() to the Lua API.
2013-09-16 11:42:20 +02:00
madmaxoft
79851476d2
Removed cWorld:SaveAllChunks() from the API.
...
Use cWorld:QueueSaveAllChunks() instead, the old function was prone to deadlocks.
2013-09-16 10:15:25 +02:00
madmaxoft
40d295da26
cWorld:QueueTickBlock takes the delay in ticks.
2013-09-16 09:25:23 +02:00
madmaxoft
4aa14c0264
Fixed previous commit
2013-09-15 22:09:45 +02:00
madmaxoft
5514a6169f
Removed obsoleted cWorld functions from the API:
...
GetClassStatic() (is used only internally by ManualBindings)
GetTime() (is replaced with GetWorldAge() and GetTimeOfDay()
2013-09-15 21:53:36 +02:00
madmaxoft
f8947ce18e
Fixed API bindings of cWorld:GetSignLines(), exported cWorld:UseBlockEntity().
2013-09-15 21:47:56 +02:00
madmaxoft
b34e92571a
Updated the bindings again.
2013-09-15 20:52:25 +02:00
madmaxoft
9a35c1c150
Fixed cWorld bindings for GetBlockInfo() and GetBlockTypeMeta().
...
They no longer require the superficial arguments.
2013-09-15 20:29:20 +02:00
madmaxoft
37b3b5defb
Updated the automatic bindings.
2013-09-15 00:14:03 +02:00
madmaxoft
d31142811d
Merged branch 'Projectiles'.
2013-09-07 22:06:30 +02:00
madmaxoft
d6c4447022
Updated the API bindings.
2013-09-07 21:26:50 +02:00
madmaxoft
4c24781a62
Added cEntity's gravity to the Lua API.
2013-09-03 10:20:56 +02:00
madmaxoft
f7d5894427
Added cArrowEntity's criticalness to the API.
2013-09-03 08:39:35 +02:00
madmaxoft
5fccd67bad
Added line collision calculation to cBoundingBox.
2013-09-01 19:08:51 +02:00