mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-24 22:43:47 +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 <apps/openmw/mwworld/esmstore.hpp>
|
||||
|
||||
//#include "../mwworld/class.hpp"
|
||||
#include "apps/openmw/mwworld/class.hpp"
|
||||
#include <apps/openmw/mwworld/class.hpp>
|
||||
|
||||
#include "../luabindings.hpp"
|
||||
|
||||
namespace sol
|
||||
{
|
||||
template <>
|
||||
struct is_automagical<ESM::Container> : std::false_type {};
|
||||
}
|
||||
|
||||
namespace MWLua
|
||||
{
|
||||
|
||||
|
@ -869,7 +869,31 @@
|
||||
-- @param openmw.core#GameObject object
|
||||
-- @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
|
||||
-- @field [parent=#types] #Door Door
|
||||
|
Loading…
x
Reference in New Issue
Block a user