You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- namespace TechbloxModdingAPI.Blocks
- {
- using RobocraftX.Common;
- using Svelto.ECS;
-
-
- public class Seat : SignalingBlock
- {
-
- /// <summary>
- /// Constructs a(n) Seat object representing an existing block.
- /// </summary>
- public Seat(EGID egid) :
- base(egid)
- {
- }
-
- /// <summary>
- /// Constructs a(n) Seat object representing an existing block.
- /// </summary>
- public Seat(uint id) :
- base(new EGID(id, RobocraftX.PilotSeat.SeatGroups.PILOTSEAT_BLOCK_BUILD_GROUP))
- {
- }
-
- /// <summary>
- /// Gets or sets the Seat's FollowCam property. Tweakable stat.
- /// </summary>
- public bool FollowCam
- {
- get
- {
- return BlockEngine.GetBlockInfo<RobocraftX.PilotSeat.SeatFollowCamComponent>(this).followCam;
- }
- set
- {
- BlockEngine.GetBlockInfo<RobocraftX.PilotSeat.SeatFollowCamComponent>(this).followCam = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the Seat's CharacterColliderHeight property. May not be saved.
- /// </summary>
- public float CharacterColliderHeight
- {
- get
- {
- return BlockEngine.GetBlockInfo<RobocraftX.PilotSeat.SeatReadOnlySettingsComponent>(this).characterColliderHeight;
- }
- set
- {
- BlockEngine.GetBlockInfo<RobocraftX.PilotSeat.SeatReadOnlySettingsComponent>(this).characterColliderHeight = value;
- }
- }
- }
- }
|