mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-22 10:05:37 -04:00
1c45dfc95d
Adapted to changes made to MainEditorCommand in GDL. Using InfoBar to display some messages in SceneCanvas. git-svn-id: svn://localhost@620 8062f311-0dae-4547-b526-b8ab9ac864a5
42 lines
753 B
C++
42 lines
753 B
C++
/** \file
|
|
* Game Develop
|
|
* 2008-2012 Florian Rival (Florian.Rival@gmail.com)
|
|
*/
|
|
|
|
#include "TemplateEvents.h"
|
|
|
|
/**
|
|
* Initialize from another TemplateEvents.
|
|
* Used by copy ctor and assignement operator
|
|
*/
|
|
void TemplateEvents::Init(const TemplateEvents & other)
|
|
{
|
|
events = CloneVectorOfEvents(other.events);
|
|
|
|
name = other.name;
|
|
desc = other.desc;
|
|
|
|
parameters = other.parameters;
|
|
}
|
|
|
|
/**
|
|
* Custom copy operator
|
|
*/
|
|
TemplateEvents::TemplateEvents(const TemplateEvents & other)
|
|
{
|
|
Init(other);
|
|
}
|
|
|
|
/**
|
|
* Custom assignement operator
|
|
*/
|
|
TemplateEvents& TemplateEvents::operator=(const TemplateEvents & other)
|
|
{
|
|
if ( this != &other )
|
|
{
|
|
Init(other);
|
|
}
|
|
|
|
return *this;
|
|
}
|