Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using Fluctio.FluctioSim.Common.Icons;
using UnityEngine;

namespace Fluctio.FluctioSim.EditorCore.Dependencies
{
	public record DependencyState(DependencyStateType StateType, string Text)
	{
		public List<Action> Actions { get; } = new();

		public Texture2D Icon => StateType switch
		{
			DependencyStateType.Ok => DefinedIcons.DependencyOk,
			DependencyStateType.Loading => DefinedIcons.DependencyLoading,
			DependencyStateType.Problem => DefinedIcons.DependencyProblem,
			_ => throw new InvalidEnumArgumentException(nameof(StateType), (int)StateType, StateType.GetType())
		};
	}

	public enum DependencyStateType
	{
		Ok,
		Loading,
		Problem,
	}
}