IMurderTransformComponent

Namespace: Murder.Components
Assembly: Murder.dll

public abstract IMurderTransformComponent : ITransformComponent, IParentRelativeComponent, IComponent

This is an interface for transform components within the game.

Implements: ITransformComponent, IParentRelativeComponent, IComponent

⭐ Properties

Angle

public abstract virtual float Angle { get; }

Returns
float

Cx

public virtual int Cx { get; }

This is the X grid coordinate. See GridConfiguration for more details on our grid specs.

Returns
int

Cy

public virtual int Cy { get; }

This is the Y grid coordinate. See GridConfiguration for more details on our grid specs.

Returns
int

Point

public virtual Point Point { get; }

Returns
Point

Scale

public abstract virtual Vector2 Scale { get; }

Returns
Vector2

Vector2

public virtual Vector2 Vector2 { get; }

Returns
Vector2

X

public abstract virtual float X { get; }

Relative X position of the component.

Returns
float

Y

public abstract virtual float Y { get; }

Relative Y position of the component.

Returns
float

⭐ Methods

Add(IMurderTransformComponent)

public abstract IMurderTransformComponent Add(IMurderTransformComponent r)

Parameters
r IMurderTransformComponent

Returns
IMurderTransformComponent

Add(Vector2)

public abstract IMurderTransformComponent Add(Vector2 r)

Parameters
r Vector2

Returns
IMurderTransformComponent

GetGlobal()

public abstract IMurderTransformComponent GetGlobal()

Returns
IMurderTransformComponent

Subtract(IMurderTransformComponent)

public abstract IMurderTransformComponent Subtract(IMurderTransformComponent r)

Parameters
r IMurderTransformComponent

Returns
IMurderTransformComponent

Subtract(Vector2)

public abstract IMurderTransformComponent Subtract(Vector2 r)

Parameters
r Vector2

Returns
IMurderTransformComponent

With(float, float)

public abstract IMurderTransformComponent With(float x, float y)

Parameters
x float
y float

Returns
IMurderTransformComponent

Add(Point)

public virtual IMurderTransformComponent Add(Point r)

Parameters
r Point

Returns
IMurderTransformComponent

Subtract(Point)

public virtual IMurderTransformComponent Subtract(Point r)

Parameters
r Point

Returns
IMurderTransformComponent

With(Point)

public virtual IMurderTransformComponent With(Point p)

Parameters
p Point

Returns
IMurderTransformComponent

With(Vector2)

public virtual IMurderTransformComponent With(Vector2 p)

Parameters
p Vector2

Returns
IMurderTransformComponent