Click or drag to resize
OrganismStateCompareTo Method
Compares two organism state objects together. This method takes into account the Y position for graphical Z-Ordering purposes and can be used to sort creatures for back to front rendering.

Namespace: Terrarium.Sdk.Classes.State
Assembly: Terrarium.Sdk (in Terrarium.Sdk.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public int CompareTo(
	Object other
)

Parameters

other
Type: SystemObject
The object to be compared. Has to be another OrganismState.

Return Value

Type: Int32
Less than 0 if the zOrder is less, 0 for equal, and greater than 0 for more.

Implements

IComparableCompareTo(Object)
See Also