Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EditableTaskComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_EditableTaskComponentClass

Functions

void AttachTo (SCR_EditableEntityComponent attachedTo)
void OnAttachedToId ()
 Runs when an ID is attached.
override SCR_EditableEntityComponent GetAttachedTo ()
ETaskTextType GetTextType ()
int GetTextIndex ()
void SetTextIndex (int index)
void SetTextIndexBroadcast (int index)
EEditorTaskCompletionType GetTaskCompletionType ()
void SetTaskCompletionType (EEditorTaskCompletionType completionType)
void SetTaskCompletionTypeBroadcast (EEditorTaskCompletionType completionType)
void UpdateText ()
void GetOnLocationChange (SCR_EditableEntityComponent nearestLocation)
override Faction GetFaction ()
void SetTargetFaction (notnull Faction faction)
override bool SetTransform (vector transform[4], bool changedByUser=false)
override ScriptInvoker GetOnUIRefresh ()
override bool RplSave (ScriptBitWriter writer)
override bool RplLoad (ScriptBitReader reader)
override SCR_EditableEntityComponent EOnEditorPlace (out SCR_EditableEntityComponent parent, SCR_EditableEntityComponent recipient, EEditorPlacingFlags flags, bool isQueue, int playerID=0)
override void OnParentEntityChanged (SCR_EditableEntityComponent parentEntity, SCR_EditableEntityComponent parentEntityPrev, bool changedByUser)
void SCR_EditableTaskComponent (IEntityComponentSource src, IEntity ent, IEntity parent)
override bool Delete (bool changedByUser=false, bool updateNavmesh=true)
override bool IsAttachable ()
override bool IsAttached ()

Variables

SCR_EditableTaskComponentClass m_Task
 Editable SCR_BaseTask.
Faction m_TargetFaction
int m_iTextIndex
SCR_AttachableTask m_AttachableTask
SCR_EditableEntityComponent m_AttachedTo
RplId m_AttachedToId

Function Documentation

◆ AttachTo()

void AttachTo ( SCR_EditableEntityComponent attachedTo)
protected

Attaches a entity to this editable task

Parameters
[in]attachedToto which component attach this task - can be null to detach it

Definition at line 35 of file SCR_EditableTaskComponent.c.

◆ Delete()

override bool Delete ( bool changedByUser = false,
bool updateNavmesh = true )
protected

Definition at line 292 of file SCR_EditableTaskComponent.c.

◆ EOnEditorPlace()

override SCR_EditableEntityComponent EOnEditorPlace ( out SCR_EditableEntityComponent parent,
SCR_EditableEntityComponent recipient,
EEditorPlacingFlags flags,
bool isQueue,
int playerID = 0 )
protected

Definition at line 246 of file SCR_EditableTaskComponent.c.

◆ GetAttachedTo()

override SCR_EditableEntityComponent GetAttachedTo ( )
protected

Definition at line 80 of file SCR_EditableTaskComponent.c.

◆ GetFaction()

override Faction GetFaction ( )
protected

Definition at line 174 of file SCR_EditableTaskComponent.c.

◆ GetOnLocationChange()

void GetOnLocationChange ( SCR_EditableEntityComponent nearestLocation)
protected

Definition at line 168 of file SCR_EditableTaskComponent.c.

◆ GetOnUIRefresh()

override ScriptInvoker GetOnUIRefresh ( )
protected

Definition at line 201 of file SCR_EditableTaskComponent.c.

◆ GetTaskCompletionType()

EEditorTaskCompletionType GetTaskCompletionType ( )
protected

Get the task completion type

Returns
MANUAL and ALWAYS_MENUAL means only the GM can complete the task. AUTOMATIC means that the task can auto complete and/or fail depending on the task

Definition at line 122 of file SCR_EditableTaskComponent.c.

◆ GetTextIndex()

int GetTextIndex ( )
protected

Get index of custom text from SCR_TextsTaskManagerComponent.

Returns
Index from the array of texts

Definition at line 96 of file SCR_EditableTaskComponent.c.

◆ GetTextType()

ETaskTextType GetTextType ( )
protected

Get type of custom texts this task should use.

Returns
Type of texts

Definition at line 88 of file SCR_EditableTaskComponent.c.

◆ IsAttachable()

override bool IsAttachable ( )
protected

Definition at line 301 of file SCR_EditableTaskComponent.c.

◆ IsAttached()

override bool IsAttached ( )
protected

Definition at line 307 of file SCR_EditableTaskComponent.c.

◆ OnAttachedToId()

void OnAttachedToId ( )
protected

Runs when an ID is attached.

Definition at line 73 of file SCR_EditableTaskComponent.c.

◆ OnParentEntityChanged()

override void OnParentEntityChanged ( SCR_EditableEntityComponent parentEntity,
SCR_EditableEntityComponent parentEntityPrev,
bool changedByUser )
protected

Definition at line 263 of file SCR_EditableTaskComponent.c.

◆ RplLoad()

override bool RplLoad ( ScriptBitReader reader)
protected

Definition at line 224 of file SCR_EditableTaskComponent.c.

◆ RplSave()

override bool RplSave ( ScriptBitWriter writer)
protected

Definition at line 207 of file SCR_EditableTaskComponent.c.

◆ SCR_EditableTaskComponent()

void SCR_EditableTaskComponent ( IEntityComponentSource src,
IEntity ent,
IEntity parent )
protected
Parameters
[in]src
[in]ent
[in]parent

Definition at line 285 of file SCR_EditableTaskComponent.c.

◆ SetTargetFaction()

void SetTargetFaction ( notnull Faction faction)
protected

Definition at line 180 of file SCR_EditableTaskComponent.c.

◆ SetTaskCompletionType()

void SetTaskCompletionType ( EEditorTaskCompletionType completionType)
protected

Set the task completion type

Parameters
[in]completionTypeMANUAL and ALWAYS_MENUAL means only the GM can complete the task. AUTOMATIC means that the task can auto complete and/or fail depending on the task

Definition at line 130 of file SCR_EditableTaskComponent.c.

◆ SetTaskCompletionTypeBroadcast()

void SetTaskCompletionTypeBroadcast ( EEditorTaskCompletionType completionType)
protected

Definition at line 141 of file SCR_EditableTaskComponent.c.

◆ SetTextIndex()

void SetTextIndex ( int index)
protected

Set index of custom text from SCR_TextsTaskManagerComponent.

Parameters
[in]indexIndex from the array of texts

Definition at line 104 of file SCR_EditableTaskComponent.c.

◆ SetTextIndexBroadcast()

void SetTextIndexBroadcast ( int index)
protected

Definition at line 112 of file SCR_EditableTaskComponent.c.

◆ SetTransform()

override bool SetTransform ( vector transform[4],
bool changedByUser = false )
protected

Definition at line 186 of file SCR_EditableTaskComponent.c.

◆ UpdateText()

void UpdateText ( )
protected

Definition at line 147 of file SCR_EditableTaskComponent.c.

Variable Documentation

◆ m_AttachableTask

SCR_AttachableTask m_AttachableTask
protected

Definition at line 25 of file SCR_EditableTaskComponent.c.

◆ m_AttachedTo

SCR_EditableEntityComponent m_AttachedTo
protected

Definition at line 26 of file SCR_EditableTaskComponent.c.

◆ m_AttachedToId

RplId m_AttachedToId
protected

Definition at line 29 of file SCR_EditableTaskComponent.c.

◆ m_iTextIndex

int m_iTextIndex
protected

Definition at line 23 of file SCR_EditableTaskComponent.c.

◆ m_TargetFaction

Faction m_TargetFaction
protected

Definition at line 22 of file SCR_EditableTaskComponent.c.