summaryrefslogtreecommitdiffstats
path: root/source/Bindings.cpp (unfollow)
Commit message (Expand)AuthorFilesLines
2013-03-25BlockArea: Implemented mirroring without meta manipulationmadmaxoft@gmail.com1-3/+729
2013-03-19Updated bindings for new cChunkDesc functionsmadmaxoft@gmail.com1-3/+6
2013-03-17Rewritten generators so that they use the cChunkDesc class (and thus can use cBlockArea merging)madmaxoft@gmail.com1-3/+138
2013-03-14Added water and lava springs.madmaxoft@gmail.com1-1/+37
2013-03-09Pickups are now being saved into Anvil.madmaxoft@gmail.com1-15/+83
2013-03-05IPv6 support + removed cTCPLink from Lua APImadmaxoft@gmail.com1-364/+7
2013-03-03Player can sit in minecarts (but not move them yet)madmaxoft@gmail.com1-1/+35
2013-03-03Added missing item types, fixed placing stone walls.madmaxoft@gmail.com1-1/+12
2013-03-01Updated cEntity API; removed functions that are unusable from Lua, added a few query functions.madmaxoft@gmail.com1-175/+453
2013-02-21Moved the Speed member into cEntity class instead of its descendants.madmaxoft@gmail.com1-346/+137
2013-02-21Added HOOK_EXECUTE_COMMAND for intercepting executed commands and console commands.madmaxoft@gmail.com1-1/+3
2013-02-16Removed all E_ITEM_ symbols equivalent to E_BLOCK_, and all obsolete item and block symbols.madmaxoft@gmail.com1-139/+15
2013-02-15Plugins can now bind console commandsmadmaxoft@gmail.com1-35/+172
2013-02-13Exported forgotten API functions in cPluginManager: ExecuteCommand(), ForceExecuteCommand()madmaxoft@gmail.com1-1/+77
2013-02-13Added HOOK_WEATHER_CHANGING.madmaxoft@gmail.com1-5/+60
2013-02-11More API functions in cBlockArea: Create(), Fill(), FillRelArea()madmaxoft@gmail.com1-1/+208
2013-02-10Added cBlockArea:Merge() API function to merge two block areas using different strategies.madmaxoft@gmail.com1-3/+48
2013-02-09Added cBlockArea:Expand() API function (untested)madmaxoft@gmail.com1-1/+45
2013-02-08cChunkDesc can now read and write cBlockAreas.madmaxoft@gmail.com1-8/+222
2013-02-08Prepared cChunkDesc for further API extension; used it as the sole container for generated chunk data, including entities / block entities.madmaxoft@gmail.com1-31/+111
2013-02-07Added cBlockArea:CopyTo() and :CopyFrom(), so now block areas can be duplicated easily.madmaxoft@gmail.com1-1/+69
2013-02-07cBlockArea can now be saved as a .schematic file.madmaxoft@gmail.com1-1/+37
2013-02-06cBlockArea can now be loaded from a .schematic file.madmaxoft@gmail.com1-1/+37
2013-02-06Added a new API call to cBlockArea: Crop().madmaxoft@gmail.com1-2/+46
2013-02-05Added new hooks: OnChunkAvailable(), OnChunkUnloaded() and OnChunkUnloading(). Modified OnChunkGenerated() signature.madmaxoft@gmail.com1-1/+62
2013-02-01Moved command API into cPluginManager.madmaxoft@gmail.com1-135/+69
2013-01-28Renamed HOOK_KILLED to HOOK_KILLING to match naming conventions.madmaxoft@gmail.com1-2/+2
2013-01-28Renamed HOOK_COLLECT_PICKUP to HOOK_COLLECTING_PICKUP to match other hooks' naming.madmaxoft@gmail.com1-6/+6
2013-01-27Added cItems to Lua API.madmaxoft@gmail.com1-284/+282
2013-01-27Added the HOOK_BLOCK_TO_PICKUPS hook that fires when a block is dug up and should be converted to pickups.madmaxoft@gmail.com1-1/+2
2013-01-27Removed cMCLogger from Lua APImadmaxoft@gmail.com1-153/+7
2013-01-26Changed HOOK_PLAYER_MOVED to HOOK_PLAYER_MOVING to match the scheme used for names.madmaxoft@gmail.com1-2/+2
2013-01-25Merged the usable portion of the "gens" branch.madmaxoft@gmail.com1-109/+177
2013-01-18Renamed rclk hook to HOOK_PLAYER_RIGHT_CLICK.madmaxoft@gmail.com1-2/+3
2013-01-14Fixed missing bindings in cPluginmadmaxoft@gmail.com1-6/+103
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-3404/+86
2013-01-04cBlockArea now has a GetBlockTypeMeta() and GetRelBlockTypeMeta() methodsmadmaxoft@gmail.com1-1/+89
2012-12-28cPickup now uses full cItem, instead of a pointermadmaxoft@gmail.com1-80/+26
2012-12-22MTRand reference is now passed as a Tick() parameter so that it isn't created and destroyed over and over again. All entities will handle physics (empty callback for now)madmaxoft@gmail.com1-50/+269
2012-12-21Added more constants into eEntityType; made them a compulsory parameter to the constructor, so that all entities have proper type.madmaxoft@gmail.com1-100/+124
2012-12-21Reworked the IsA() / GetClass() framework to actually be useful. Added GetParentClass().madmaxoft@gmail.com1-39/+157
2012-12-21Refactored the TakeDamage API to take equipped weapon and armor into consideration (PvP untested)madmaxoft@gmail.com1-333/+1393
2012-11-20Added primary server version interface to cRoot and "primaryserverversion" console command.madmaxoft@gmail.com1-1/+69
2012-11-11Cleanup: Removed deprecated functions from Lua APImadmaxoft@gmail.com1-103/+1
2012-11-11Hopefully a fix for crash when chunks are added to a client being destroyed.madmaxoft@gmail.com1-4/+4
2012-11-01Refactored the world time.madmaxoft@gmail.com1-17/+183
2012-10-31Added the [Server].PrimaryServerVersion setting to settings.ini; 1.4.2 gets the correct versionmadmaxoft@gmail.com1-1/+32
2012-10-28Added cWorld:SpawnMob(PosX, PosY, PosZ, EntityType) to Lua APImadmaxoft@gmail.com1-9/+146
2012-10-20Double chests are now working, and with sound. (FS #69)madmaxoft@gmail.com1-36/+3
2012-10-20Made cWorld's block query functions more orthogonal, added GetBlockInfo() returning all info on a block.madmaxoft@gmail.com1-124/+213
2012-10-18Converted some const char*s and std::strings to AStringsfaketruth1-29/+202
2012-10-14Completely removed support for old style Lua plugins (can use both Plugin and NewPlugin in settings.ini for now)faketruth1-166/+334
2012-10-13Added delayed ticking to Lua APImadmaxoft@gmail.com1-1/+113
2012-10-06BlockArea writing support (BlockTypes with BlockMeta only)madmaxoft@gmail.com1-1/+300
2012-10-03Moved blockticking into blockhandler classes.madmaxoft@gmail.com1-14/+94
2012-10-03Added BLOCK_FACE_NONE into the plugin APImadmaxoft@gmail.com1-1/+46
2012-09-24Fixed Lua bindings for file renaming in previous commitsmadmaxoft@gmail.com1-1/+1
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-28/+28
2012-09-23Source files cleanup: OSSupport-related files in a separate subfolder, renamed.madmaxoft@gmail.com1-2/+2
2012-09-23Source files cleanup: Removed unused cBlockToPickupmadmaxoft@gmail.com1-5/+35
2012-09-08Added cPlugin_NewLua::GetLocalDirectory() and exported it to Lua so plugins can store their settings in their own folder.faketruth1-1/+34
2012-09-08Added the ItemToString() and ItemTypeToString() functions.madmaxoft@gmail.com1-1/+167
2012-09-02ToLua does not like the override keyword :(faketruth1-44/+12
2012-09-02Exported cWorld::DoWithChestAt to Luafaketruth1-27/+310
2012-09-01Added a Player parameter to OnUpdatedSign and OnUpdatingSign Lua callbacks and to the cWorld:UpdateSign method (http://forum.mc-server.org/showthread.php?tid=464&pid=4393#pid4393)madmaxoft@gmail.com1-31/+45
2012-08-29Gotten completely rid of all cPackets. The cProtocol125 class now does all the parsing and writing by itself.madmaxoft@gmail.com1-60/+4
2012-08-27Cut out all packet handling to a separate cProtocol descendantmadmaxoft@gmail.com1-2/+2
2012-08-25cSocket doesn't use cPackets.madmaxoft@gmail.com1-5/+5
2012-08-24cPickup doesn't use cPackets.madmaxoft@gmail.com1-35/+36
2012-08-24Monster classes don't use cPackets. Chat messages are sent / broadcast without cPackets. BlockEntities don't use cPackets.madmaxoft@gmail.com1-124/+93
2012-08-23Added plugin name to deprecation messagesmadmaxoft@gmail.com1-226/+11
2012-08-22WebAdmin should not cause crashes anymorefaketruth1-67/+131
2012-08-19Almost all packets' handling is now rewritten not to use cPacket descendants elsewhere than in cClientHandle.madmaxoft@gmail.com1-28/+29
2012-08-19Another handful of packets rewritten.madmaxoft@gmail.com1-16/+17
2012-08-18Chat packet handled in the new way; fixed missing packet sending for inventory slot.madmaxoft@gmail.com1-29/+33
2012-08-18Packet refactoring, phase two, partial. Rewritten a few packet handling functions not to use cPacket-descendant objects.madmaxoft@gmail.com1-1649/+1019
2012-08-11Updated Bindings to match the new armor categories and torch metasmadmaxoft@gmail.com1-1/+126
2012-08-10Fixed a crash in creative inventory (FS 235, patch submitted by l0udPL)madmaxoft@gmail.com1-20/+24
2012-08-03Fixed a few gcc pedantic warnings; made BLOCKTYPE an unsigned char type.madmaxoft@gmail.com1-26/+25
2012-07-29Fixed warnings in item handlers - items' damage value is a short, but block meta is only a NIBBLETYPE. Also slight cleanup.madmaxoft@gmail.com1-2/+3
2012-07-15A new Block handling system :olapayo94@gmail.com1-45/+9
2012-07-15Removed the deprecated confusing E_BLOCK_WOODmadmaxoft@gmail.com1-2/+2
2012-07-09Improved Squirrel Bindingslapayo94@gmail.com1-1/+1
2012-07-09BlockArea name change revertedlapayo94@gmail.com1-1/+1
2012-07-08Squirrel Pluginslapayo94@gmail.com1-2/+2
2012-07-02BLOCKTYPE and NIBBLETYPE are finally exported in Lua API as numbers, not usertypesmadmaxoft@gmail.com1-1/+29
2012-07-02cBlockArea object added (with only minimal testing so far)madmaxoft@gmail.com1-36/+1007
2012-07-02Added the cWorld::DoWithPlayer() function and exported it in the Lua API. Removed the obsolete cWorld::GetPlayer() function.madmaxoft@gmail.com1-36/+1
2012-06-19Removed json-related methods from Lua APImadmaxoft@gmail.com1-74/+5
2012-06-17Removed the deprecated GetBlockEntity(), added several enumerators to replace it.madmaxoft@gmail.com1-28/+39
2012-06-16Fixed lighting for cake, fence, fence gates, glass pane, iron bars, iron door and wooden doormadmaxoft@gmail.com1-1/+3
2012-06-16Added new hooks: UPDATING_SIGN and UPDATED_SIGN. The first one is capable of changing the sign text by returning the new four lines along with the bool valuemadmaxoft@gmail.com1-1/+299
2012-06-16Lua binding for cVine fixedcedeel@gmail.com1-16/+52
2012-06-15Rewritten ForEach using #define-s, new ones can be added as a simple one-linermadmaxoft@gmail.com1-1/+1
2012-06-14Renamed HOOK_WEATHER_CHANGE to HOOK_WEATHER_CHANGED, added the glue code for it to actually workmadmaxoft@gmail.com1-2/+100
2012-06-14Added a world parameter to HOOK_CHUNK_GENERATING.madmaxoft@gmail.com1-25/+31
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-21337/+21337
2012-06-14Added HOOK_WEATHER_CHANGE.cedeel@gmail.com1-1/+2
2012-06-13Exported the ItemCategory functions and added a IsTool() function to it, for easy checking whether an item is a toolfaketruth1-1/+184
2012-06-13Added a BlockToPickup hook for modifying pickups when a player breaks a block.madmaxoft@gmail.com1-28/+437
2012-06-13I think the chunk generation hooks for Lua are pretty good now, though it might still need some tweakingfaketruth1-18/+518
2012-06-13Revamped the weather system.cedeel@gmail.com1-3/+35
2012-06-12Added working crafting hooks HOOK_PRE_CRAFTING, HOOK_CRAFTING_NO_RECIPE and HOOK_POST_CRAFTINGmadmaxoft@gmail.com1-10/+359
2012-06-12Updated the crafting recipes architecture to better support crafting hooks. Removed the old recipe file and implementation altogether.madmaxoft@gmail.com1-46/+914
2012-06-11Added implementation of E_PLUGIN_CHUNK_GENERATING lua hookfaketruth1-1/+190
2012-06-09New IniFile functionality: read value and set default if it isn't present (GetValueSet() ); used by cWorldmadmaxoft@gmail.com1-26/+225
2012-06-09Sugarcane and cactus max height can be set in world.ini.madmaxoft@gmail.com1-1/+67
2012-06-09Plants growable by bonemeal are settable in the world.ini. Default matches vanilla MC.madmaxoft@gmail.com1-3/+5
2012-06-09Cacti grow by themselves and by bonemealmadmaxoft@gmail.com1-5/+6
2012-06-08Configurable classic composition generatorcedeel@gmail.com1-3/+3
2012-06-07Bonemeal works on crops, melons, pumpkins, saplings and grass. Plant growing has been refactored into separate functions callable from Lua, too.madmaxoft@gmail.com1-1/+123
2012-06-06Item-dropping code rewritten and centralized - now there's only one place to modify if we want to split or merge same-item drops: cWorld:SpawnItemPickups(). Also, mined blocks can now drop more items, and they recognize if they're being mined by the correct tool.madmaxoft@gmail.com1-5/+131
2012-06-05New hook, E_PLUGIN_CHUNK_GENERATED, called after each chunk is generated (the chunk is already present in cWorld)madmaxoft@gmail.com1-808/+116
2012-06-04Added the new recipe parser, parsing the crafting.txt file. Included are a few recipes. The old parser still works, but will be replaced soon.madmaxoft@gmail.com1-18862/+18980
2012-06-04Updated zlib, added chat formatting, fixed upside down stairs and slabs, fixed makefiles, hopefully updated vc project filescedeel@gmail.com1-18793/+18862
2012-06-02Added Lua function cRoot:ForEachWorld(), removed the obsolete cRoot:GetWorld() method (both C++ and Lua)madmaxoft@gmail.com1-39/+11
2012-05-31cWorld::UnloadUnusedChunks() exported to Luamadmaxoft@gmail.com1-1/+33
2012-05-30Added support for SetNextBlockTick() function callable from Luamadmaxoft@gmail.com1-1/+39
2012-05-30Lua plugins can now query the world for various queue sizes ( http://forum.mc-server.org/showthread.php?tid=432 )madmaxoft@gmail.com1-3/+136
2012-05-27Added wool and netherrack block IDsmadmaxoft@gmail.com1-1/+3
2012-05-25Merged the composable_generator branch into the trunkmadmaxoft@gmail.com1-21/+341
2012-03-25A globally-accessible OS-independent GetDirectoryContents() function for listing all objects in a folder as an AStringListmadmaxoft@gmail.com1-1/+3
2012-03-24Reverted the previous commit - it is useless, since entities still depend heavily on cWorldmadmaxoft@gmail.com1-2/+1
2012-03-23Encapsulated cWorld functions needed in cWorldStorage into an interface, so that cWorldStorage can actually be used outside of MC-Server (such as storage conversion tools and chunk analyzers)madmaxoft@gmail.com1-1/+2
2012-03-16Exposed a function to Lua to get a block's sky light valuefaketruth1-30/+40
2012-03-09cClientHandles have a unique ID now to distinguish themfaketruth1-4/+137
2012-03-07Fixed bug where cPlayer's cClientHandle was used after cPlayer was destroyed http://forum.mc-server.org/showthread.php?tid=380faketruth1-13/+169
2012-03-04Changed signed char to unsigned char in block packets, so we can receive height up to 255faketruth1-8/+8
2012-03-01Started carefully moving to 1.2.2faketruth1-63/+92
2012-02-22Lua seems to have trouble with a combination of overloaded functions and class inheritance, so I renamed TeleportTo( cEntity* ) to TeleportToEntityfaketruth1-29/+50
2012-02-21Removed cChunkPtrs from everywhere but internal cChunkMap usage. Now we should finally be threadsafe :)madmaxoft@gmail.com1-3/+3
2012-02-16Got rid of dangerous GetEntity(), not using DoWithEntity()faketruth1-36/+1
2012-02-15No longer using pointers for Vector3(f/d/i) in cEntity's and cTracerfaketruth1-25/+25
2012-02-13Rewritten most of the code for multithreading; still not 100%, but getting there. If this commit proves to be too problematic, we can always undo it.madmaxoft@gmail.com1-102/+80
2012-02-08MTRand class is not created in each tick, therefore much improving tick-thread time (now uses ~5 % CPU instead of one full core)madmaxoft@gmail.com1-3/+3
2012-02-02tolua: modified the binding generator to accept AString as a std::string synonym, re-generated Bindings with these settings. Lua callbacks can now safely use AString functions in C++.madmaxoft@gmail.com1-27/+28
2012-02-01Rewritten cAuthenticator to make use of the new cIsThread architecture - now authentication runs in a single separate thread for all clients;madmaxoft@gmail.com1-24/+25
2012-02-01Added all current hooks to the new plugin structure.faketruth1-112/+684
2012-02-01Plugins can now be enabled and disabled through WebAdminfaketruth1-1/+38
2012-01-31Changed how Lua handles the (Post)Params in the HTTPRequest of a WebPluginfaketruth1-62/+97
2012-01-31Can now receive POST data in WebPlugins!faketruth1-1/+32
2012-01-30Added a WebAdmin interface to view users their groups, and the permissions of groups.faketruth1-3/+34
2012-01-29VC2008 / VC2010: Enabled precompiled header through Globals.h; the header included in every module in the project. Compilation optimization.madmaxoft@gmail.com1-0/+2
2012-01-28Converted entire Core plugin including WebAdmin interface to new plugin method/system/thingy and sexyfied it.faketruth1-77/+472
2012-01-26Working on a new plugin design with Lua. While retaining backwards compatibility of course...faketruth1-18/+319
2012-01-22Improved Core's WebAmin interface a bit.faketruth1-1/+68
2012-01-01CreativeInventory Updatelapayo94@gmail.com1-50/+49
2012-01-01Fixed the numchunks console command.faketruth1-1/+66
2012-01-01- implemented separated inventory for creative mode (cSurvivalInventory and cCreativeInventory)lapayo94@gmail.com1-17/+51
2011-12-28- Implemented Drops from Burning animalslapayo94@gmail.com1-83/+14
2011-12-26Players can switch worlds on the fly with the command /gotoworld [worldName]. This uses the function cPlayer::MoveToWorld()faketruth1-6/+42
2011-12-21- Crafting fixed in 1.0.0lapayo94@gmail.com1-1/+1
2011-11-10Can now set gamemode via lua.admin@omencraft.com1-1/+1
2011-11-10Made block action sanity checks more robust, water buckets, lava buckets and empty buckets should all now work.admin@omencraft.com1-7/+173
2011-11-10Added random weather that persists per world. Also added SetWeather, GetWeather, and CastThunderbolt to lua bindings.admin@omencraft.com1-1/+106
2011-11-09Added m_IP to player class and binding to get IP for LUA. (Probably should use m_pState)admin@omencraft.com1-1/+67
2011-11-08It's a Squirrel!!faketruth1-15/+266
2011-11-01You can now run multiple worlds by defining them in settings.ini . However there's no way to change worlds on the fly yetfaketruth1-15/+248
2011-10-31Prepared some parts of the code for multi world support, I created lots of TODO'sfaketruth1-26/+202
2011-10-26Added CreateInventoryAction packet for creative mode. Used cPacketEntityEquipment as template. Forced server into Creative Mode. Can't break blocks yet. Player can stil be damaged in creative mode and dying takes you back to survival mode.admin@omencraft.com1-0/+1
2011-10-03MCServer c++ source filesfaketruth1-0/+15468