• 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 Unit

Inheritance
Object
Unit
Implements
IEquatable<Unit>
Inherited Members
Object.Equals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Rebus
Assembly: Rebus.dll
Syntax
[Index(new string[]{"Commodity"})]
[Index(new string[]{"Name"}, IsUnique = true)]
[MessagePackObject(false)]
[Table("Unit")]
public class Unit : IEquatable<Unit>

Properties

Commodity

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

Id

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

Name

Declaration
[Key(1)]
public string Name { get; set; }
Property Value
Type Description
String

Sanctuary

Declaration
[IgnoreMember]
public Zone Sanctuary { get; set; }
Property Value
Type Description
Zone

SanctuaryLocation

Declaration
[Key(2)]
public HexPoint? SanctuaryLocation { get; }
Property Value
Type Description
Nullable<HexPoint>

Zone

Declaration
[IgnoreMember]
[Required]
public Zone Zone { get; set; }
Property Value
Type Description
Zone

Methods

Equals(Unit)

Declaration
public bool Equals(Unit other)
Parameters
Type Name Description
Unit other
Returns
Type Description
Boolean

Equals(Object)

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

GetHashCode()

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

Implements

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