mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
* [LUA] Add Zone and Language Constants
This will add Zone:
```lua
if eq.get_zone_id() == Zone.Qeynos then
foo()
end
```
It will also add Language:
```lua
if e.language == Language.ElderElvish and e.other:GetLanguageSkill(Language.ElderElvish) >= 100 then
e.self:Say("You know my language!", Language.ElderElvish);
end
```
These changes should help avoid magic numbers in quests and aide in readability without the need for -- comments to clarify.
* Adjust to lower case
29 lines
939 B
C
29 lines
939 B
C
#ifndef EQEMU_LUA_GENERAL_H
|
|
#define EQEMU_LUA_GENERAL_H
|
|
#ifdef LUA_EQEMU
|
|
|
|
luabind::scope lua_register_general();
|
|
luabind::scope lua_register_random();
|
|
luabind::scope lua_register_events();
|
|
luabind::scope lua_register_faction();
|
|
luabind::scope lua_register_slot();
|
|
luabind::scope lua_register_material();
|
|
luabind::scope lua_register_client_version();
|
|
luabind::scope lua_register_appearance();
|
|
luabind::scope lua_register_classes();
|
|
luabind::scope lua_register_skills();
|
|
luabind::scope lua_register_bodytypes();
|
|
luabind::scope lua_register_filters();
|
|
luabind::scope lua_register_message_types();
|
|
luabind::scope lua_register_zone_types();
|
|
luabind::scope lua_register_languages();
|
|
luabind::scope lua_register_rules_const();
|
|
luabind::scope lua_register_rulei();
|
|
luabind::scope lua_register_ruler();
|
|
luabind::scope lua_register_ruleb();
|
|
luabind::scope lua_register_journal_speakmode();
|
|
luabind::scope lua_register_journal_mode();
|
|
|
|
#endif
|
|
#endif
|