Class PlayerPlacedPieceEventArgs
Event args for when a player attempts to place a piece.
Inherited Members
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 SourcePiece
The piece the player tried to place
Declaration
public Piece Piece { get; set; }
Property Value
Type | Description |
---|---|
Piece |
Position
The position the piece was placed in
Declaration
public Vector3 Position { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Rotation
The rotation the piece was placed woth
Declaration
public Quaternion Rotation { get; set; }
Property Value
Type | Description |
---|---|
Quaternion |
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 |