mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-17 10:11:28 +00:00
Remove character
This commit is contained in:
parent
10030a55e0
commit
16f178b80e
2 changed files with 3 additions and 8 deletions
|
@ -82,9 +82,8 @@ namespace MWLua
|
||||||
record["baseGold"] = sol::readonly_property([](const ESM::NPC& rec) -> int { return rec.mNpdt.mGold; });
|
record["baseGold"] = sol::readonly_property([](const ESM::NPC& rec) -> int { return rec.mNpdt.mGold; });
|
||||||
addActorServicesBindings<ESM::NPC>(record, context);
|
addActorServicesBindings<ESM::NPC>(record, context);
|
||||||
|
|
||||||
sol::table character(lua, sol::create);
|
npc["classes"] = initCoreClassBindings(context);
|
||||||
character["classes"] = initCoreClassBindings(context);
|
|
||||||
npc["character"] = LuaUtil::makeReadOnly(character);
|
|
||||||
// This function is game-specific, in future we should replace it with something more universal.
|
// This function is game-specific, in future we should replace it with something more universal.
|
||||||
npc["isWerewolf"] = [](const Object& o) {
|
npc["isWerewolf"] = [](const Object& o) {
|
||||||
const MWWorld::Class& cls = o.ptr().getClass();
|
const MWWorld::Class& cls = o.ptr().getClass();
|
||||||
|
|
|
@ -878,12 +878,8 @@
|
||||||
-- @param openmw.core#GameObject actor
|
-- @param openmw.core#GameObject actor
|
||||||
-- @return #number
|
-- @return #number
|
||||||
|
|
||||||
--- @{#Character}: Class and Character Data
|
|
||||||
-- @field [parent=#NPC] #Character character
|
|
||||||
|
|
||||||
|
|
||||||
--- @{#Classes}: Class Data
|
--- @{#Classes}: Class Data
|
||||||
-- @field [parent=#Character] #Classes classes
|
-- @field [parent=#NPC] #Classes classes
|
||||||
|
|
||||||
---
|
---
|
||||||
-- A read-only list of all @{#ClassRecord}s in the world database.
|
-- A read-only list of all @{#ClassRecord}s in the world database.
|
||||||
|
|
Loading…
Reference in a new issue