forked from pioneerspacesim/pioneer
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
LuaCargoBody.cpp
38 lines (32 loc) · 851 Bytes
/
LuaCargoBody.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright © 2008-2015 Pioneer Developers. See AUTHORS.txt for details
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
#include "LuaObject.h"
#include "LuaUtils.h"
#include "CargoBody.h"
/*
* Class: CargoBody
*
* Class representing an item of cargo floating in space. Inherits from
* <ModelBody>.
*/
/*
* Attribute: type
*
* The type of cargo contained within this cargo body, as a
* <Constants.CommodityType> constant.
*
* Availability:
*
* alpha 10
*
* Status:
*
* experimental
*/
template <> const char *LuaObject<CargoBody>::s_type = "CargoBody";
template <> void LuaObject<CargoBody>::RegisterClass()
{
const char *l_parent = "ModelBody";
LuaObjectBase::CreateClass(s_type, l_parent, 0, 0, 0);
LuaObjectBase::RegisterPromotion(l_parent, s_type, LuaObject<CargoBody>::DynamicCastPromotionTest);
}