Show / Hide Table of Contents

Class ColorantWeight

Container for colorant amount storage. Needed to be able to transfer recipes from client to server.

Inheritance
System.Object
ColorantWeight
Implements
System.IEquatable<ColorantWeight>
Namespace: Eco.Shared.Graphics
Assembly: Eco.Shared.dll
Syntax
public class ColorantWeight : Object, IEquatable<ColorantWeight>

Constructors

ColorantWeight()

Declaration
public ColorantWeight()

ColorantWeight(String, Int32)

Declaration
public ColorantWeight(string colorant, int amount)
Parameters
Type Name Description
System.String colorant
System.Int32 amount

Properties

Amount

Declaration
[Eco(true)]
public int Amount { get; set; }
Property Value
Type Description
System.Int32

Colorant

Declaration
[Eco(true)]
public string Colorant { get; set; }
Property Value
Type Description
System.String

Methods

Equals(ColorantWeight)

Declaration
public bool Equals(ColorantWeight other)
Parameters
Type Name Description
ColorantWeight other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

Implements

System.IEquatable<>

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
☀
☾