Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_SetTaskCompletionAutomaticEditorAttribute.c
Go to the documentation of this file.
1
//
2
[
BaseContainerProps
(),
SCR_BaseEditorAttributeCustomTitle
()]
3
class
SCR_SetTaskCompletionAutomaticEditorAttribute
:
SCR_BaseEditorAttribute
4
{
5
override
SCR_BaseEditorAttributeVar
ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
6
{
7
SCR_EditableTaskComponent
task
=
SCR_EditableTaskComponent
.Cast(item);
8
if
(
task
&&
task
.GetTaskCompletionType() !=
EEditorTaskCompletionType
.ALWAYS_MANUAL)
9
return
SCR_BaseEditorAttributeVar
.
CreateBool
(
task
.GetTaskCompletionType() ==
EEditorTaskCompletionType
.AUTOMATIC);
10
else
11
return
null;
12
}
13
14
override
void
WriteVariable(Managed item,
SCR_BaseEditorAttributeVar
var, SCR_AttributesManagerEditorComponent manager,
int
playerID)
15
{
16
if
(!var)
17
return
;
18
19
SCR_EditableTaskComponent
task
=
SCR_EditableTaskComponent
.Cast(item);
20
21
if
(var.
GetBool
())
22
task
.SetTaskCompletionType(
EEditorTaskCompletionType
.AUTOMATIC);
23
else
24
task
.SetTaskCompletionType(
EEditorTaskCompletionType
.MANUAL);
25
}
26
};
EEditorTaskCompletionType
EEditorTaskCompletionType
Way of determening if a task is completed automaticly, manually or always manually (In the latter cas...
Definition
EEditorTaskCompletionType.c:3
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_EditableTaskComponent
void SCR_EditableTaskComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_EditableTaskComponent.c:285
task
from task
Definition
SCR_TaskNotificationConfigs.c:12
SCR_BaseEditorAttributeCustomTitle
Definition
SCR_BaseEditorAttribute.c:876
SCR_BaseEditorAttribute
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
Definition
SCR_BaseEditorAttribute.c:4
SCR_BaseEditorAttributeVar
Definition
SCR_BaseEditorAttributeVar.c:2
SCR_BaseEditorAttributeVar::CreateBool
static SCR_BaseEditorAttributeVar CreateBool(bool value)
Definition
SCR_BaseEditorAttributeVar.c:119
SCR_BaseEditorAttributeVar::GetBool
bool GetBool()
Definition
SCR_BaseEditorAttributeVar.c:56
SCR_SetTaskCompletionAutomaticEditorAttribute
Definition
SCR_SetTaskCompletionAutomaticEditorAttribute.c:4
scripts
Game
Editor
Containers
Attributes
SCR_SetTaskCompletionAutomaticEditorAttribute.c
Generated by
1.17.0