Position
public class PositionInherits from System.Object
#Constructors
#Position()
public Position()#Position(int, int)
public Position(int line, int character)Parameters
lineintThe zero-indexed line number.characterintThe zero-index character number.
#Fields
#InvalidPosition
public static readonly Position InvalidPosition = new(-1, -1);Type Position
#Properties
#Character
public int Character { get; private set; }Type Int32
#IsValid
public bool IsValid { get }Type Boolean
#Line
public int Line { get; private set; }Type Int32
#Methods
#Equals(object)
public override bool Equals(object obj)Parameters
objobject
Returns Boolean
#GetHashCode()
public override int GetHashCode()Returns Int32
#ToString()
public override string ToString()Returns String
#Operators
#op_Addition(Position, Position)
(no declaration available)Parameters
a(unknown)The first position.b(unknown)The second position.
Returns Position: The resulting combined position.
#op_Equality(Position, Position)
(no declaration available)Parameters
a(unknown)The first position.b(unknown)The second position.
Returns Boolean: true if the positions are
identical.
#op_GreaterThanOrEqual(Position, Position)
a is
equal to or after b.(no declaration available)Parameters
a(unknown)The first position.b(unknown)The second position.
Returns Boolean: true if a is after or equal to b; false
otherwise.
#op_Inequality(Position, Position)
(no declaration available)Parameters
a(unknown)The first position.b(unknown)The second position.
Returns Boolean: true if the positions are not
identical.
#op_LessThanOrEqual(Position, Position)
a is
equal to or before b.(no declaration available)Parameters
a(unknown)The first position.b(unknown)The second position.
Returns Boolean: true if a is before or equal to b; false
otherwise.
Generated from Yarn Spinner for Unity 3.3.