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
madmaxoft
88f3fe7f00
Moved throw pos and speed calculation from cProjectileEntity into cPlayer.
2013-08-30 17:29:46 +02:00
madmaxoft
c28ccdc9d5
Merged in the Projectiles branch.
...
Although the projectiles are not yet finished, the branch has several bugfixes that are needed in master as well.
2013-08-30 14:32:07 +02:00
Tiger Wang
7056992d0d
Implemented xoft's suggestions [SEE DESC]
...
Rail metas are now in BlockID and exported to LUA
Minecart now does a SetMass, instead of m_Mass
Minecarts use SubType instead of TypeType
2013-08-29 13:47:22 +01:00
madmaxoft
cdd0eba1b5
Added g_BlockIsXXX[] arrays to the API.
2013-08-27 08:57:35 +02:00
madmaxoft
da3e248632
Added a few API accessors to cArrowEntity.
2013-08-25 21:31:35 +02:00
madmaxoft
83811b6929
Merged branch 'master' into Projectiles.
2013-08-25 17:06:51 +02:00
madmaxoft
104a31e23d
Merging in tigerw's changes from PR #118
2013-08-25 16:11:19 +02:00
Tiger Wang
2081b6dfde
Fixed inconsistent metas and added snow metas
2013-08-24 18:54:03 +01:00
madmaxoft
73afb1507d
Added skeleton code for projectile spawning.
2013-08-22 08:55:58 +02:00
madmaxoft
f3a0fed724
Hook adding uses the new API.
...
Multiple hooks per plugin can be added. The cPluginManager.AddHook() has four available signatures, the recommended one is cPluginManager.AddHook(HOOK_TYPE, CallbackFunction)
2013-08-21 21:29:30 +02:00
madmaxoft
af071fd5ab
Added cWorld:GetIniFileName() to the Lua API.
2013-08-21 14:23:47 +02:00
madmaxoft
25e2f721ad
Added cPickup:IsCollected() to the Lua API.
2013-08-19 11:58:20 +02:00
madmaxoft
e80c5eac40
Added cPickup:GetAge() the the Lua API.
2013-08-19 11:44:11 +02:00