Changeset 44 for trunk/src/bindings/interface
- Timestamp:
- 11/19/08 13:27:40 (17 years ago)
- Location:
- trunk/src/bindings/interface
- Files:
-
- 8 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bindings/interface/Makefile.am
r23 r44 5 5 # This program is free software; you can redistribute it and/or modify 6 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation; either version 3of the License, or7 # the Free Software Foundation; either version 2 of the License, or 8 8 # (at your option) any later version. 9 9 # … … 53 53 Readme.txt 54 54 55 -
trunk/src/bindings/interface/ScriptMgr.cpp
r2 r44 1 1 /* 2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 3 * 4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify … … 9 11 * This program is distributed in the hope that it will be useful, 10 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 14 * GNU General Public License for more details. 13 15 * 14 16 * You should have received a copy of the GNU General Public License 15 17 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 19 */ 18 20 … … 35 37 // ------------------- 36 38 37 MANGOS_DLL_EXPORT39 TRINITY_DLL_EXPORT 38 40 void ScriptsFree() 39 41 { // Free resources before library unload … … 48 50 } 49 51 50 MANGOS_DLL_EXPORT52 TRINITY_DLL_EXPORT 51 53 void ScriptsInit() 52 54 { … … 77 79 } 78 80 79 MANGOS_DLL_EXPORT81 TRINITY_DLL_EXPORT 80 82 bool GossipHello ( Player * player, Creature *_Creature ) 81 83 { … … 87 89 } 88 90 89 MANGOS_DLL_EXPORT91 TRINITY_DLL_EXPORT 90 92 bool GossipSelect( Player *player, Creature *_Creature,uint32 sender, uint32 action ) 91 93 { … … 99 101 } 100 102 101 MANGOS_DLL_EXPORT103 TRINITY_DLL_EXPORT 102 104 bool GossipSelectWithCode( Player *player, Creature *_Creature, uint32 sender, uint32 action, const char* sCode ) 103 105 { … … 111 113 } 112 114 113 MANGOS_DLL_EXPORT115 TRINITY_DLL_EXPORT 114 116 bool QuestAccept( Player *player, Creature *_Creature, Quest *_Quest ) 115 117 { … … 121 123 } 122 124 123 MANGOS_DLL_EXPORT125 TRINITY_DLL_EXPORT 124 126 bool QuestSelect( Player *player, Creature *_Creature, Quest *_Quest ) 125 127 { … … 131 133 } 132 134 133 MANGOS_DLL_EXPORT135 TRINITY_DLL_EXPORT 134 136 bool QuestComplete( Player *player, Creature *_Creature, Quest *_Quest ) 135 137 { … … 141 143 } 142 144 143 MANGOS_DLL_EXPORT145 TRINITY_DLL_EXPORT 144 146 bool ChooseReward( Player *player, Creature *_Creature, Quest *_Quest, uint32 opt ) 145 147 { … … 151 153 } 152 154 153 MANGOS_DLL_EXPORT155 TRINITY_DLL_EXPORT 154 156 uint32 NPCDialogStatus( Player *player, Creature *_Creature ) 155 157 { … … 161 163 } 162 164 163 MANGOS_DLL_EXPORT165 TRINITY_DLL_EXPORT 164 166 uint32 GODialogStatus( Player *player, GameObject *_GO ) 165 167 { … … 173 175 } 174 176 175 MANGOS_DLL_EXPORT177 TRINITY_DLL_EXPORT 176 178 bool ItemHello( Player *player, Item *_Item, Quest *_Quest ) 177 179 { … … 185 187 } 186 188 187 MANGOS_DLL_EXPORT189 TRINITY_DLL_EXPORT 188 190 bool ItemQuestAccept( Player *player, Item *_Item, Quest *_Quest ) 189 191 { … … 197 199 } 198 200 199 MANGOS_DLL_EXPORT201 TRINITY_DLL_EXPORT 200 202 bool GOHello( Player *player, GameObject *_GO ) 201 203 { … … 209 211 } 210 212 211 MANGOS_DLL_EXPORT213 TRINITY_DLL_EXPORT 212 214 bool GOQuestAccept( Player *player, GameObject *_GO, Quest *_Quest ) 213 215 { … … 221 223 } 222 224 223 MANGOS_DLL_EXPORT225 TRINITY_DLL_EXPORT 224 226 bool GOChooseReward( Player *player, GameObject *_GO, Quest *_Quest, uint32 opt ) 225 227 { … … 233 235 } 234 236 235 MANGOS_DLL_EXPORT237 TRINITY_DLL_EXPORT 236 238 bool AreaTrigger ( Player *player, AreaTriggerEntry* atEntry ) 237 239 { … … 244 246 } 245 247 246 MANGOS_DLL_EXPORT248 TRINITY_DLL_EXPORT 247 249 bool ReceiveEmote ( Player *player, Creature *_Creature, uint32 emote ) 248 250 { … … 253 255 } 254 256 255 MANGOS_DLL_EXPORT257 TRINITY_DLL_EXPORT 256 258 bool ItemUse( Player *player, Item* _Item, SpellCastTargets const& targets) 257 259 { … … 264 266 } 265 267 266 MANGOS_DLL_EXPORT268 TRINITY_DLL_EXPORT 267 269 CreatureAI* GetAI(Creature *_Creature ) 268 270 { … … 273 275 } 274 276 275 MANGOS_DLL_EXPORT277 TRINITY_DLL_EXPORT 276 278 InstanceData* CreateInstanceData(Map *map) 277 279 { -
trunk/src/bindings/interface/ScriptMgr.h
r2 r44 1 1 /* 2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 3 * 4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify … … 9 11 * This program is distributed in the hope that it will be useful, 10 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 14 * GNU General Public License for more details. 13 15 * 14 16 * You should have received a copy of the GNU General Public License 15 17 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 19 */ 18 20 … … 87 89 #define VISIBLE_RANGE (50.0f) 88 90 89 struct MANGOS_DLL_DECL ScriptedAI : public CreatureAI91 struct TRINITY_DLL_DECL ScriptedAI : public CreatureAI 90 92 { 91 93 ScriptedAI(Creature* creature) : m_creature(creature) {} -
trunk/src/bindings/interface/Scripts/sc_default.cpp
r2 r44 1 1 /* 2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 3 * 4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify … … 9 11 * This program is distributed in the hope that it will be useful, 10 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 14 * GNU General Public License for more details. 13 15 * 14 16 * You should have received a copy of the GNU General Public License 15 17 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 19 */ 18 20 -
trunk/src/bindings/interface/Scripts/sc_defines.cpp
r2 r44 1 1 /* 2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 3 * 4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify … … 9 11 * This program is distributed in the hope that it will be useful, 10 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 14 * GNU General Public License for more details. 13 15 * 14 16 * You should have received a copy of the GNU General Public License 15 17 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 19 */ 18 20 -
trunk/src/bindings/interface/Scripts/sc_defines.h
r2 r44 1 1 /* 2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 3 * 4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify … … 9 11 * This program is distributed in the hope that it will be useful, 10 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 14 * GNU General Public License for more details. 13 15 * 14 16 * You should have received a copy of the GNU General Public License 15 17 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 19 */ 18 20 -
trunk/src/bindings/interface/config.h
r2 r44 1 1 /* 2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 3 * 4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify … … 9 11 * This program is distributed in the hope that it will be useful, 10 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 14 * GNU General Public License for more details. 13 15 * 14 16 * You should have received a copy of the GNU General Public License 15 17 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 19 */ 18 20 … … 24 26 #ifdef WIN32 25 27 //#include <windows.h> 26 #define MANGOS_DLL_EXPORT extern "C" __declspec(dllexport)28 #define TRINITY_DLL_EXPORT extern "C" __declspec(dllexport) 27 29 #elif defined( __GNUC__ ) 28 #define MANGOS_DLL_EXPORT extern "C"30 #define TRINITY_DLL_EXPORT extern "C" 29 31 #else 30 #define MANGOS_DLL_EXPORT extern "C" export32 #define TRINITY_DLL_EXPORT extern "C" export 31 33 #endif -
trunk/src/bindings/interface/system.cpp
r2 r44 1 1 /* 2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 3 * 4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify … … 9 11 * This program is distributed in the hope that it will be useful, 10 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 14 * GNU General Public License for more details. 13 15 * 14 16 * You should have received a copy of the GNU General Public License 15 17 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 19 */ 18 20