gd::ExpressionMetadata & BehaviorMetadata::AddExpression(const gd::String & name, const gd::String & fullname, const gd::String & description, const gd::String & group, const gd::String & smallicon) { #if defined(GD_IDE_ONLY) //Be careful, behaviors expression do not have namespace ( not necessary as we refer to the auomatism name in the expression ) expressionsInfos[name] = ExpressionMetadata(extensionNamespace, name, fullname, description, group, smallicon); return expressionsInfos[name]; #endif }
gd::ExpressionMetadata & PlatformExtension::AddStrExpression(const gd::String & name, const gd::String & fullname, const gd::String & description, const gd::String & group, const gd::String & smallicon) { #if defined(GD_IDE_ONLY) gd::String nameWithNamespace = GetNameSpace().empty() ? name : GetNameSpace()+name; strExpressionsInfos[nameWithNamespace] = ExpressionMetadata(GetNameSpace(), nameWithNamespace, fullname, description, group, smallicon); return strExpressionsInfos[nameWithNamespace]; #endif }
gd::ExpressionMetadata & ObjectMetadata::AddExpression(const std::string & name, const std::string & fullname, const std::string & description, const std::string & group, const std::string & smallicon) { #if defined(GD_IDE_ONLY) //Be careful, objects expression do not have namespace ( not necessary as objects inherits from only one derived object ) expressionsInfos[name] = ExpressionMetadata(extensionNamespace, name, fullname, description, group, smallicon); return expressionsInfos[name]; #endif }