mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-16 14:16:33 +00:00
Remove unrelated change, doc
This commit is contained in:
parent
5209685783
commit
1fbbaefb47
2 changed files with 7 additions and 5 deletions
|
@ -156,11 +156,6 @@ namespace MWLua
|
||||||
MWWorld::Ptr newPtr = ptr.getClass().copyToCell(ptr, cell, count.value_or(1));
|
MWWorld::Ptr newPtr = ptr.getClass().copyToCell(ptr, cell, count.value_or(1));
|
||||||
return GObject(newPtr);
|
return GObject(newPtr);
|
||||||
};
|
};
|
||||||
api["advanceTime"] = [context](double hours, bool incremental) {
|
|
||||||
context.mLuaManager->addAction([ hours, incremental] {
|
|
||||||
MWBase::Environment::get().getWorld()->advanceTime(hours, incremental);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
api["getObjectByFormId"] = [](std::string_view formIdStr) -> GObject {
|
api["getObjectByFormId"] = [](std::string_view formIdStr) -> GObject {
|
||||||
ESM::RefId refId = ESM::RefId::deserializeText(formIdStr);
|
ESM::RefId refId = ESM::RefId::deserializeText(formIdStr);
|
||||||
if (!refId.is<ESM::FormId>())
|
if (!refId.is<ESM::FormId>())
|
||||||
|
|
|
@ -875,6 +875,13 @@
|
||||||
-- @field #Actor baseType @{#Actor}
|
-- @field #Actor baseType @{#Actor}
|
||||||
-- @field [parent=#NPC] #NpcStats stats
|
-- @field [parent=#NPC] #NpcStats stats
|
||||||
|
|
||||||
|
---
|
||||||
|
-- Creates a @{#NpcRecord} without adding it to the world database.
|
||||||
|
-- Use @{openmw_world#(world).createRecord} to add the record to the world.
|
||||||
|
-- @function [parent=#NPC] createRecordDraft
|
||||||
|
-- @param #NpcRecord book A Lua table with the fields of a NpcRecord, with an optional field `template` that accepts a @{#NpcRecord} as a base.
|
||||||
|
-- @return #NpcRecord A strongly typed NPC record.
|
||||||
|
|
||||||
---
|
---
|
||||||
-- A read-only list of all @{#NpcRecord}s in the world database, may be indexed by recordId.
|
-- A read-only list of all @{#NpcRecord}s in the world database, may be indexed by recordId.
|
||||||
-- Implements [iterables#List](iterables.html#List) of #NpcRecord.
|
-- Implements [iterables#List](iterables.html#List) of #NpcRecord.
|
||||||
|
|
Loading…
Reference in a new issue