Show / Hide Table of Contents

Class ColorantData

Struct that holds colorant data. Can be replaced with tech tree data storage, but it anyways provides all needed data to operate with colorant and paint mixing in general

Inheritance
System.Object
ColorantData
Namespace: Eco.Shared.Graphics
Assembly: Eco.Shared.dll
Syntax
public class ColorantData : Object

Constructors

ColorantData(LocString, ByteColor, Color)

Declaration
public ColorantData(LocString name, ByteColor mixingColor, Color visualColor)
Parameters
Type Name Description
LocString name
ByteColor mixingColor
Color visualColor

ColorantData(LocString, ByteColor, String)

Declaration
public ColorantData(LocString name, ByteColor mixingColor, string itemLink)
Parameters
Type Name Description
LocString name
ByteColor mixingColor
System.String itemLink

Fields

ItemLink

Declaration
public string ItemLink
Field Value
Type Description
System.String

MixingColor

Declaration
public ByteColor MixingColor
Field Value
Type Description
ByteColor

Name

Declaration
public LocString Name
Field Value
Type Description
LocString

VisualColor

Declaration
public Color VisualColor
Field Value
Type Description
Color

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾