gd::InstructionMetadata & BehaviorMetadata::AddAction(const gd::String & name, const gd::String & fullname, const gd::String & description, const gd::String & sentence, const gd::String & group, const gd::String & icon, const gd::String & smallicon) { #if defined(GD_IDE_ONLY) gd::String nameWithNamespace = extensionNamespace.empty() ? name : extensionNamespace+name; actionsInfos[nameWithNamespace] = InstructionMetadata(extensionNamespace, nameWithNamespace, fullname, description, sentence, group, icon, smallicon); return actionsInfos[nameWithNamespace]; #endif }
gd::InstructionMetadata & PlatformExtension::AddAction(const gd::String & name, const gd::String & fullname, const gd::String & description, const gd::String & sentence, const gd::String & group, const gd::String & icon, const gd::String & smallicon) { #if defined(GD_IDE_ONLY) gd::String nameWithNamespace = GetNameSpace().empty() ? name : GetNameSpace()+name; actionsInfos[nameWithNamespace] = InstructionMetadata(GetNameSpace(), nameWithNamespace, fullname, description, sentence, group, icon, smallicon); return actionsInfos[nameWithNamespace]; #endif }
gd::InstructionMetadata & ObjectMetadata::AddCondition(const std::string & name, const std::string & fullname, const std::string & description, const std::string & sentence, const std::string & group, const std::string & icon, const std::string & smallicon) { #if defined(GD_IDE_ONLY) std::string nameWithNamespace = extensionNamespace.empty() ? name : extensionNamespace+name; conditionsInfos[nameWithNamespace] = InstructionMetadata(extensionNamespace, nameWithNamespace, fullname, description, sentence, group, icon, smallicon); return conditionsInfos[nameWithNamespace]; #endif }