2014-03-13 06:25:09 +08:00
|
|
|
// Aseprite Document Library
|
2014-10-21 09:21:31 +08:00
|
|
|
// Copyright (c) 2001-2014 David Capello
|
2014-03-13 06:25:09 +08:00
|
|
|
//
|
2014-03-30 07:08:05 +08:00
|
|
|
// This file is released under the terms of the MIT license.
|
|
|
|
// Read LICENSE.txt for more information.
|
2014-03-13 06:25:09 +08:00
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "doc/object.h"
|
|
|
|
|
|
|
|
namespace doc {
|
|
|
|
|
2014-07-29 11:53:24 +08:00
|
|
|
static ObjectId newId = 0;
|
|
|
|
|
2014-10-21 09:21:31 +08:00
|
|
|
Object::Object(ObjectType type)
|
|
|
|
: m_type(type)
|
|
|
|
, m_id(++newId)
|
2014-07-29 11:53:24 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Object::~Object()
|
2014-03-13 06:25:09 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-10-21 09:21:31 +08:00
|
|
|
int Object::getMemSize() const
|
|
|
|
{
|
|
|
|
return sizeof(Object);
|
|
|
|
}
|
|
|
|
|
2014-03-13 06:25:09 +08:00
|
|
|
} // namespace doc
|