2013-12-08 06:17:54 -05:00
|
|
|
|
2015-03-19 07:19:04 -04:00
|
|
|
// AllToLua.pkg
|
|
|
|
|
|
|
|
// Defines the bindings that are exported to Lua by the ToLua processor
|
|
|
|
|
|
|
|
/*
|
|
|
|
Each file referenced in the $cfile is parsed by ToLua, and bindings are generated for classes and functions
|
|
|
|
marked with "// tolua_export", or between the "// tolua_begin" and "// tolua_end" markers.
|
|
|
|
|
|
|
|
Note that if class D inherits from class B, then class B needs to be parsed before class D, otherwise the
|
|
|
|
inheritance doesn't work properly (#1789).
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-08 06:17:54 -05:00
|
|
|
$#include "../Globals.h"
|
|
|
|
|
|
|
|
// Typedefs from Globals.h, so that we don't have to process that file:
|
|
|
|
typedef long long Int64;
|
|
|
|
typedef int Int32;
|
|
|
|
typedef short Int16;
|
|
|
|
|
|
|
|
typedef unsigned long long UInt64;
|
|
|
|
typedef unsigned int UInt32;
|
|
|
|
typedef unsigned short UInt16;
|
|
|
|
|
|
|
|
|
2014-03-11 10:01:17 -04:00
|
|
|
$cfile "../Vector3.h"
|
2013-12-08 06:17:54 -05:00
|
|
|
$cfile "../ChunkDef.h"
|
2014-01-09 16:21:46 -05:00
|
|
|
$cfile "../BiomeDef.h"
|
2013-12-08 06:17:54 -05:00
|
|
|
|
2014-10-23 09:15:10 -04:00
|
|
|
$cfile "../IniFile.h"
|
2013-12-08 06:17:54 -05:00
|
|
|
|
|
|
|
$cfile "../OSSupport/File.h"
|
|
|
|
|
|
|
|
$cfile "LuaFunctions.h"
|
|
|
|
$cfile "PluginManager.h"
|
|
|
|
$cfile "Plugin.h"
|
|
|
|
$cfile "PluginLua.h"
|
|
|
|
$cfile "WebPlugin.h"
|
|
|
|
$cfile "LuaWindow.h"
|
|
|
|
|
|
|
|
$cfile "../BlockID.h"
|
2014-10-05 16:09:19 -04:00
|
|
|
$cfile "../Mobs/MonsterTypes.h"
|
2014-03-02 03:50:24 -05:00
|
|
|
$cfile "../BlockInfo.h"
|
2013-12-08 06:17:54 -05:00
|
|
|
$cfile "../StringUtils.h"
|
|
|
|
$cfile "../Defines.h"
|
|
|
|
$cfile "../ChatColor.h"
|
|
|
|
$cfile "../ClientHandle.h"
|
2015-03-19 07:19:04 -04:00
|
|
|
$cfile "../Server.h"
|
|
|
|
$cfile "../World.h"
|
|
|
|
$cfile "../Inventory.h"
|
|
|
|
$cfile "../Enchantments.h"
|
|
|
|
$cfile "../Item.h"
|
|
|
|
$cfile "../ItemGrid.h"
|
|
|
|
$cfile "../WebAdmin.h"
|
|
|
|
$cfile "../Root.h"
|
|
|
|
$cfile "../Cuboid.h"
|
|
|
|
$cfile "../BoundingBox.h"
|
|
|
|
$cfile "../Tracer.h"
|
|
|
|
$cfile "../BlockArea.h"
|
|
|
|
$cfile "../Generating/ChunkDesc.h"
|
|
|
|
$cfile "../CraftingRecipes.h"
|
|
|
|
$cfile "../UI/Window.h"
|
|
|
|
$cfile "../Mobs/Monster.h"
|
|
|
|
$cfile "../CompositeChat.h"
|
|
|
|
$cfile "../Map.h"
|
|
|
|
$cfile "../MapManager.h"
|
|
|
|
$cfile "../Scoreboard.h"
|
|
|
|
$cfile "../Statistics.h"
|
|
|
|
$cfile "../Protocol/MojangAPI.h"
|
|
|
|
|
|
|
|
// Entities:
|
2013-12-08 06:17:54 -05:00
|
|
|
$cfile "../Entities/Entity.h"
|
2015-03-19 07:19:04 -04:00
|
|
|
$cfile "../Entities/Pawn.h"
|
|
|
|
$cfile "../Entities/ProjectileEntity.h"
|
|
|
|
$cfile "../Entities/ArrowEntity.h"
|
2014-10-21 15:25:52 -04:00
|
|
|
$cfile "../Entities/EntityEffect.h"
|
|
|
|
$cfile "../Entities/ExpBottleEntity.h"
|
|
|
|
$cfile "../Entities/FireChargeEntity.h"
|
|
|
|
$cfile "../Entities/FireworkEntity.h"
|
2014-01-18 18:04:46 -05:00
|
|
|
$cfile "../Entities/Floater.h"
|
2014-10-21 15:25:52 -04:00
|
|
|
$cfile "../Entities/GhastFireballEntity.h"
|
2014-10-21 16:02:30 -04:00
|
|
|
$cfile "../Entities/HangingEntity.h"
|
|
|
|
$cfile "../Entities/ItemFrame.h"
|
2013-12-08 06:17:54 -05:00
|
|
|
$cfile "../Entities/Player.h"
|
2014-02-18 06:37:45 -05:00
|
|
|
$cfile "../Entities/Painting.h"
|
2013-12-08 06:17:54 -05:00
|
|
|
$cfile "../Entities/Pickup.h"
|
2014-10-21 15:25:52 -04:00
|
|
|
$cfile "../Entities/SplashPotionEntity.h"
|
|
|
|
$cfile "../Entities/ThrownEggEntity.h"
|
|
|
|
$cfile "../Entities/ThrownEnderPearlEntity.h"
|
|
|
|
$cfile "../Entities/ThrownSnowballEntity.h"
|
2013-12-14 10:28:17 -05:00
|
|
|
$cfile "../Entities/TNTEntity.h"
|
2014-10-21 15:25:52 -04:00
|
|
|
$cfile "../Entities/WitherSkullEntity.h"
|
2015-03-19 07:19:04 -04:00
|
|
|
|
|
|
|
// Block entities:
|
2013-12-08 06:17:54 -05:00
|
|
|
$cfile "../BlockEntities/BlockEntity.h"
|
2015-03-19 07:19:04 -04:00
|
|
|
$cfile "../BlockEntities/BeaconEntity.h"
|
2013-12-08 06:17:54 -05:00
|
|
|
$cfile "../BlockEntities/BlockEntityWithItems.h"
|
|
|
|
$cfile "../BlockEntities/ChestEntity.h"
|
2014-02-14 09:21:16 -05:00
|
|
|
$cfile "../BlockEntities/CommandBlockEntity.h"
|
2013-12-08 06:17:54 -05:00
|
|
|
$cfile "../BlockEntities/DropSpenserEntity.h"
|
|
|
|
$cfile "../BlockEntities/DispenserEntity.h"
|
|
|
|
$cfile "../BlockEntities/DropperEntity.h"
|
|
|
|
$cfile "../BlockEntities/FurnaceEntity.h"
|
|
|
|
$cfile "../BlockEntities/HopperEntity.h"
|
|
|
|
$cfile "../BlockEntities/JukeboxEntity.h"
|
|
|
|
$cfile "../BlockEntities/NoteEntity.h"
|
|
|
|
$cfile "../BlockEntities/SignEntity.h"
|
2014-03-07 05:44:16 -05:00
|
|
|
$cfile "../BlockEntities/MobHeadEntity.h"
|
2014-11-29 09:20:44 -05:00
|
|
|
$cfile "../BlockEntities/MobSpawnerEntity.h"
|
2014-03-07 05:44:16 -05:00
|
|
|
$cfile "../BlockEntities/FlowerPotEntity.h"
|
2013-12-08 06:17:54 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-02-24 16:52:55 -05:00
|
|
|
// To avoid tolua treating Byte as a class, and avoid the need to $cfile entire Globals.h:
|
|
|
|
typedef unsigned char Byte;
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-03-11 10:01:17 -04:00
|
|
|
// Aliases
|
|
|
|
$renaming Vector3<double> @ Vector3d
|
|
|
|
$renaming Vector3<float> @ Vector3f
|
|
|
|
$renaming Vector3<int> @ Vector3i
|
|
|
|
|
|
|
|
|
2014-02-24 16:52:55 -05:00
|
|
|
|