Files
o3de/Gems/LyShineExamples/Code/Include/LyShineExamples/UiDynamicContentDatabaseBus.h
T
2021-06-23 10:55:22 -07:00

36 lines
946 B
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <AzCore/Component/ComponentBus.h>
#include <AzCore/Math/Color.h>
////////////////////////////////////////////////////////////////////////////////////////////////////
class UiDynamicContentDatabaseInterface
: public AZ::EBusTraits
{
public: // types
enum ColorType
{
FreeColors,
PaidColors,
NumColorTypes
};
public:
virtual int GetNumColors(ColorType colorType) = 0;
virtual AZ::Color GetColor(ColorType colorType, int index) = 0;
virtual AZStd::string GetColorName(ColorType colorType, int index) = 0;
virtual AZStd::string GetColorPrice(ColorType colorType, int index) = 0;
virtual void Refresh(ColorType colorType, const AZStd::string& filePath) = 0;
};
typedef AZ::EBus<UiDynamicContentDatabaseInterface> UiDynamicContentDatabaseBus;