Show / Hide Table of Contents

Class Component

Represents a component of a vehicle

Inheritance
Object
Component
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Client.Vehicles
Assembly: SlipeClient.dll
Syntax
public class Component

Constructors

| Improve this Doc View Source

Component(BaseVehicle, ComponentType, ComponentBase)

Create a component instance from a vehicle

Declaration
public Component(BaseVehicle vehicle, ComponentType type, ComponentBase relativeBase = ComponentBase.root)
Parameters
Type Name Description
BaseVehicle vehicle
ComponentType type
ComponentBase relativeBase
| Improve this Doc View Source

Component(BaseVehicle, String, ComponentBase)

Create a component instance from a vehicle using a string as type

Declaration
public Component(BaseVehicle vehicle, string type, ComponentBase relativeBase = ComponentBase.root)
Parameters
Type Name Description
BaseVehicle vehicle
String type
ComponentBase relativeBase

Properties

| Improve this Doc View Source

Base

Set the base to which the position and rotation are relative

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

Position

Get and set the position relative to the specified component base

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

Rotation

Get and set the rotation relative to the specified component base

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

Scale

Get and set the scale of this component

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

Visible

Get and set if this component is visible

Declaration
public bool Visible { get; set; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

ResetPosition()

This function reset to default component position for vehicle.

Declaration
public bool ResetPosition()
Returns
Type Description
Boolean
| Improve this Doc View Source

ResetRotation()

This function reset to default component rotation for vehicle.

Declaration
public bool ResetRotation()
Returns
Type Description
Boolean
| Improve this Doc View Source

ResetScale()

Declaration
public bool ResetScale()
Returns
Type Description
Boolean
  • Improve this Doc
  • View Source
Back to top Generated by DocFX