• API Documentation
Show / Hide Table of Contents
  • Rebus
    • Arguments
    • Biome
    • CantorPairing
    • CommandRequest
    • CommandResponse
    • CommandType
    • Commodity
    • Configuration
    • ConflictEventArgs
    • Depths
    • Economy
    • Fleet
    • HexPoint
    • IGameService
    • ILoginService
    • Player
    • Unit
    • User
    • Zone
    • ZoneInfo
  • Rebus.Client
    • GraphicsEngine
    • Layout
    • RpcClient
    • ZoneVisualizer
  • Rebus.Client.Lenses
    • BiomeLens
    • ConstellationLens
    • Lens
    • PopulationLens
    • StarLens
  • Rebus.Server
    • AStarSearch
    • EvaluationContext
    • FisherYatesShuffle
    • JuliaSet
    • PowerSet
  • Rebus.Server.Considerations
    • Agent
    • Behavior
    • BehaviorCollection
    • Consideration
    • ConsiderationCollection
    • FunctionConsideration
    • LinearConsideration
    • QuadraticConsideration
  • Rebus.Server.Functions
    • IFunctions<T>
  • System
    • NegativeExponentialRandom
  • System.Text.Json.Serialization.Converters
    • ComplexConverter
    • CultureInfoConverter
    • IPAddressConverter

Class Commodity

Inheritance
Object
Commodity
Implements
IComparable
IComparable<Commodity>
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Rebus
Assembly: Rebus.dll
Syntax
[MessagePackObject(false)]
[Table("Commodity")]
public class Commodity : IComparable, IComparable<Commodity>

Properties

Location

Declaration
[IgnoreMember]
[NotMapped]
public HexPoint Location { get; set; }
Property Value
Type Description
HexPoint

Mass

Declaration
[Key(0)]
public int Mass { get; set; }
Property Value
Type Description
Int32

Price

Declaration
[Key(1)]
public int Price { get; set; }
Property Value
Type Description
Int32

Q

Declaration
[IgnoreMember]
public int Q { get; set; }
Property Value
Type Description
Int32

Quantity

Declaration
[Key(2)]
public int Quantity { get; set; }
Property Value
Type Description
Int32

R

Declaration
[IgnoreMember]
public int R { get; set; }
Property Value
Type Description
Int32

Methods

CompareTo(Commodity)

Declaration
public int CompareTo(Commodity other)
Parameters
Type Name Description
Commodity other
Returns
Type Description
Int32

CompareTo(Object)

Declaration
public int CompareTo(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Int32

Implements

System.IComparable
System.IComparable<T>
In This Article
Back to top © 2021-2022 Ishan Pranav. All rights reserved. Licensed under the MIT License.