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
Samuel Barney
e37531fe01
Moved cTracer::SetValues to be an internal function because it is only ever used in cTracer::Trace.
...
Removed SetValues from Bindings.cpp.
Added some commenting to explain what each function does in cTracer.
2013-11-05 09:22:28 -07: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
Tiger Wang
d8d2f35e9d
Eight round of fixes
...
* Changed IsA() to *long if statement*
- Removed deprecated values in Entity.h - to blazes with the plugins!
* Renamed villager type enumerations to be LESS SHOUTY and more vt-y
+ Use vtMax for World.cpp testificate spawning
2013-10-13 12:47:55 +01: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
3b1c83acf8
Renamed cWorld::DoExplosiontAt() to cWorld::DoExplosionAt()
2013-09-07 18:12:22 +02:00
Tiger Wang
9c22cf1520
Fixed inconsistent meta naming
2013-09-03 12:33:54 +01: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
Tiger Wang
20b64e18e4
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
source/Bindings.cpp
source/Entities/Entity.cpp
Updated from upsteam
2013-09-02 14:15:28 +01:00
madmaxoft
5fccd67bad
Added line collision calculation to cBoundingBox.
2013-09-01 19:08:51 +02:00
STRWarrior
2765fce522
Exported BroadcastSoundEffect and BroadcastSoundParticleEffect to the Lua API
2013-09-01 05:53:11 -07:00
madmaxoft
f91ff9e68b
Added the cBoundingBox class.
2013-09-01 12:25:53 +02:00
madmaxoft
d7a5287000
Basic support for thrown items - eggs, snowballs and ender pearls.
...
They can be thrown, but they don't do anything on impact. Also they don't save to nor load from MCA.
2013-08-30 18:10:58 +02:00