Show / Hide Table of Contents

Class PlayerPlacedPieceEventArgs

Event args for when a player attempts to place a piece.

Inheritance
System.Object
System.EventArgs
PlayerEventArgs
PlayerPlacedPieceEventArgs
Inherited Members
PlayerEventArgs.Player
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: JotunnLib.Events
Assembly: JotunnLib.dll
Syntax
public class PlayerPlacedPieceEventArgs : PlayerEventArgs

Properties

| Improve this Doc View Source

Piece

The piece the player tried to place

Declaration
public Piece Piece { get; set; }
Property Value
Type Description
Piece
| Improve this Doc View Source

Position

The position the piece was placed in

Declaration
public Vector3 Position { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

Rotation

The rotation the piece was placed woth

Declaration
public Quaternion Rotation { get; set; }
Property Value
Type Description
Quaternion
| Improve this Doc View Source

Success

Whether the piece was sucessfully placed or not. This may be unsuccessful due to player placing the piece in invalid locations, or not having enough resources to build it.

Declaration
public bool Success { get; set; }
Property Value
Type Description
System.Boolean
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX