mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 08:37:12 +00:00
Add docs and automagical declaration
This commit is contained in:
parent
dddc1dc2bb
commit
e2528a1562
@ -3,12 +3,16 @@
|
|||||||
#include <components/esm3/loadcont.hpp>
|
#include <components/esm3/loadcont.hpp>
|
||||||
|
|
||||||
#include <apps/openmw/mwworld/esmstore.hpp>
|
#include <apps/openmw/mwworld/esmstore.hpp>
|
||||||
|
#include <apps/openmw/mwworld/class.hpp>
|
||||||
//#include "../mwworld/class.hpp"
|
|
||||||
#include "apps/openmw/mwworld/class.hpp"
|
|
||||||
|
|
||||||
#include "../luabindings.hpp"
|
#include "../luabindings.hpp"
|
||||||
|
|
||||||
|
namespace sol
|
||||||
|
{
|
||||||
|
template <>
|
||||||
|
struct is_automagical<ESM::Container> : std::false_type {};
|
||||||
|
}
|
||||||
|
|
||||||
namespace MWLua
|
namespace MWLua
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -869,7 +869,31 @@
|
|||||||
-- @param openmw.core#GameObject object
|
-- @param openmw.core#GameObject object
|
||||||
-- @return #boolean
|
-- @return #boolean
|
||||||
|
|
||||||
|
---
|
||||||
|
-- Returns the total weight of everything in a container
|
||||||
|
-- @function [parent=#Container] encumbrance
|
||||||
|
-- @param openmw.core#GameObject object
|
||||||
|
-- @return #number
|
||||||
|
|
||||||
|
---
|
||||||
|
-- Returns the capacity of a container
|
||||||
|
-- @function [parent=#Container] capacity
|
||||||
|
-- @param openmw.core#GameObject object
|
||||||
|
-- @return #number
|
||||||
|
|
||||||
|
---
|
||||||
|
-- Returns the read-only @{#ContainerRecord} of a container
|
||||||
|
-- @function [parent=#Container] record
|
||||||
|
-- @param #any objectOrRecordId
|
||||||
|
-- @return #ContainerRecord
|
||||||
|
|
||||||
|
---
|
||||||
|
-- @type ContainerRecord
|
||||||
|
-- @field #string id Record id
|
||||||
|
-- @field #string name Human-readable name
|
||||||
|
-- @field #string model VFS path to the model
|
||||||
|
-- @field #string mwscript MWScript on this container (can be empty)
|
||||||
|
-- @field #number weight capacity of this container (can be empty)
|
||||||
|
|
||||||
--- @{#Door} functions
|
--- @{#Door} functions
|
||||||
-- @field [parent=#types] #Door Door
|
-- @field [parent=#types] #Door Door
|
||||||
|
Loading…
x
Reference in New Issue
Block a user