Skip to content

Class: MockCSightParams

Mock of the X-Ray engine CSightParams sight-type enumeration class.

Implements

  • CSightParams

Constructors

Constructor

ts
new MockCSightParams(): MockCSightParams;

Returns

MockCSightParams

Methods

create()

ts
static create(): MockCSightParams;

Returns

MockCSightParams


mock()

ts
static mock(): CSightParams;

Returns

CSightParams

Properties

m_object

ts
m_object: game_object;

Object target for object-based sight modes.

Implementation of

ts
CSightParams.m_object

m_sight_type

ts
m_sight_type: TXR_SightType = MockCSightParams.eSightTypeDummy;

Active sight mode.

Implementation of

ts
CSightParams.m_sight_type

m_vector

ts
m_vector: vector;

Position or direction target for vector-based sight modes.

Implementation of

ts
CSightParams.m_vector

eSightTypeAnimationDirection

ts
readonly static eSightTypeAnimationDirection: 11;

Engine enum value for CSightParams.eSightTypeAnimationDirection.


eSightTypeCover

ts
readonly static eSightTypeCover: 5;

Engine enum value for CSightParams.eSightTypeCover.


eSightTypeCoverLookOver

ts
readonly static eSightTypeCoverLookOver: 8;

Engine enum value for CSightParams.eSightTypeCoverLookOver.


eSightTypeCurrentDirection

ts
readonly static eSightTypeCurrentDirection: 0;

Engine enum value for CSightParams.eSightTypeCurrentDirection.


eSightTypeDirection

ts
readonly static eSightTypeDirection: 2;

Engine enum value for CSightParams.eSightTypeDirection.


eSightTypeDummy

ts
readonly static eSightTypeDummy: -1;

Engine enum value for CSightParams.eSightTypeDummy.


eSightTypeFireObject

ts
readonly static eSightTypeFireObject: 9;

Engine enum value for CSightParams.eSightTypeFireObject.


eSightTypeFirePosition

ts
readonly static eSightTypeFirePosition: 10;

Engine enum value for CSightParams.eSightTypeFirePosition.


eSightTypeLookOver

ts
readonly static eSightTypeLookOver: 7;

Engine enum value for CSightParams.eSightTypeLookOver.


eSightTypeObject

ts
readonly static eSightTypeObject: 4;

Engine enum value for CSightParams.eSightTypeObject.


eSightTypePathDirection

ts
readonly static eSightTypePathDirection: 1;

Engine enum value for CSightParams.eSightTypePathDirection.


eSightTypePosition

ts
readonly static eSightTypePosition: 3;

Engine enum value for CSightParams.eSightTypePosition.


eSightTypeSearch

ts
readonly static eSightTypeSearch: 6;

Engine enum value for CSightParams.eSightTypeSearch.