2015-02-15 18:53:04 +03:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) 2005-2009 Anchorite (TeamX), <anchorite2001@yandex.ru>
|
2015-02-15 21:33:27 +03:00
|
|
|
* Copyright (c) 2014-2015 Nirran, phobos2077
|
|
|
|
|
* Copyright (c) 2015 alexeevdv <mail@alexeevdv.ru>
|
2015-02-15 18:53:04 +03:00
|
|
|
* Distributed under the GNU GPL v3. For full terms see the file license.txt
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// C++ standard includes
|
|
|
|
|
|
|
|
|
|
// int2ssl includes
|
2015-02-13 16:59:11 +03:00
|
|
|
#include "FalloutScript.h"
|
|
|
|
|
|
2015-02-15 18:53:04 +03:00
|
|
|
// Third party includes
|
|
|
|
|
|
2015-02-15 18:28:27 +03:00
|
|
|
CFalloutScript::CDefObject::CDefObject(ObjectType type, uint32_t ulAttributes, uint32_t ulObjectData)
|
2015-02-13 16:59:11 +03:00
|
|
|
{
|
2015-02-14 13:39:47 +03:00
|
|
|
m_ulAttributes = ulAttributes;
|
2015-02-13 16:59:11 +03:00
|
|
|
|
2015-02-14 14:38:14 +03:00
|
|
|
switch(m_ObjectType = type)
|
|
|
|
|
{
|
2015-02-14 13:39:47 +03:00
|
|
|
case OBJECT_VARIABLE:
|
|
|
|
|
m_ulVarValue = ulObjectData;
|
|
|
|
|
break;
|
2015-02-13 16:59:11 +03:00
|
|
|
|
2015-02-14 13:39:47 +03:00
|
|
|
case OBJECT_PROCEDURE:
|
|
|
|
|
m_ulProcIndex = ulObjectData;
|
|
|
|
|
}
|
2015-02-13 16:59:11 +03:00
|
|
|
}
|