mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
Dropped the new SD2 Module in
This commit is contained in:
parent
5260602e28
commit
1ed51d35e9
650 changed files with 183227 additions and 0 deletions
31
src/modules/SD2/docs/Script_Layout.md
Normal file
31
src/modules/SD2/docs/Script_Layout.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
Script source code layout
|
||||
=========================
|
||||
In order to make it easier to find scripts, we have agreed on a fixed naming scheme
|
||||
for directories and scripts.
|
||||
|
||||
Directories
|
||||
-----------
|
||||
* **battlegrounds**: contains scripts used in the Alterac Valley, Arathi Basin and
|
||||
Warsong Gulch battlegrounds.
|
||||
* **eastern_kingdoms**: contains scripts for area triggers, creatures, dungeons,
|
||||
instances, etc. related to the Eastern Kingdoms continent. Instances located on
|
||||
Eastern Kingdoms are grouped in sub-directories by instance name.
|
||||
* **kalimdor**: contains scripts for area triggers, creatures, dungeons, instances,
|
||||
etc. related to the Kalimdor continent. Instances located on Kalimdor are grouped
|
||||
in sub-directories by instance name.
|
||||
* **world**: contains scripts which are used on every map, and not limited to one
|
||||
specific zone. This includes scripts for area triggers, game objects, items, and
|
||||
some creatures which can be found over the world. Also, scripts for spells are
|
||||
stored here.
|
||||
Contains scripts for anything that is not related to a specified zone.
|
||||
|
||||
Naming Conventions
|
||||
------------------
|
||||
Source files should be named `type_objectname.cpp` where
|
||||
|
||||
* *type* is replaced by the type of object,
|
||||
* and *objectname* is replaced by the name of the object, creature, item, or area
|
||||
that this script will be used by.
|
||||
|
||||
`AddSC` functions used for registering scripts to the server core should use the
|
||||
form of `void AddSC_filename(void);`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue