Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditableSpawnPointComponent.c
Go to the documentation of this file.
1 [ComponentEditorProps(category: "GameScripted/Editor (Editables)", description: "", icon: "WBData/ComponentEditorProps/componentEditor.png")]
3 {
4 }
5 
7 
10 {
11  protected SCR_SpawnPoint m_SpawnPoint;
13 
14  //------------------------------------------------------------------------------------------------
15  protected void UpdateText()
16  {
17  UpdateInfo();
18 
19  m_UIInfoSpawnPoint = SCR_UIInfo.CreateInfo(m_UIInfoDescriptor.GetLocationName()); //--- Simplified UI info containing only location name
21  }
22 
23  //------------------------------------------------------------------------------------------------
24  override protected void GetOnLocationChange(SCR_EditableEntityComponent nearestLocation)
25  {
26  UpdateText();
27  }
28 
29  //------------------------------------------------------------------------------------------------
30  override void SetTransform(vector transform[4], bool changedByUser = false)
31  {
32  super.SetTransform(transform, changedByUser);
34  }
35 
36  //------------------------------------------------------------------------------------------------
37  override ScriptInvoker GetOnUIRefresh()
38  {
39  return Event_OnUIRefresh;
40  }
41 
42  //------------------------------------------------------------------------------------------------
43  // constructor
47  void SCR_EditableSpawnPointComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
48  {
49  m_SpawnPoint = SCR_SpawnPoint.Cast(ent);
50  }
51 }
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
Event_OnUIRefresh
protected ref ScriptInvoker Event_OnUIRefresh
Definition: SCR_EditableGroupComponent.c:38
m_SpawnPoint
SCR_EditableSpawnPointComponentClass m_SpawnPoint
Editable SCR_SpawnPoint.
m_UIInfoDescriptor
protected ref SCR_EditableDescriptorUIInfo m_UIInfoDescriptor
Definition: SCR_EditableDescriptorComponent.c:21
SCR_SpawnPoint
Spawn point entity defines positions on which players can possibly spawn.
Definition: SCR_SpawnPoint.c:27
GetOnUIRefresh
override ScriptInvoker GetOnUIRefresh()
Definition: SCR_EditableSpawnPointComponent.c:37
SCR_EditableSpawnPointComponent
void SCR_EditableSpawnPointComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition: SCR_EditableSpawnPointComponent.c:47
SetTransform
override void SetTransform(vector transform[4], bool changedByUser=false)
Definition: SCR_EditableSpawnPointComponent.c:30
SCR_UIInfo
Definition: SCR_UIInfo.c:7
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
UpdateNearestLocation
bool UpdateNearestLocation(vector pos=vector.Zero)
Definition: SCR_EditableDescriptorComponent.c:38
SCR_EditableDescriptorComponentClass
Definition: SCR_EditableDescriptorComponent.c:6
UpdateInfo
protected void UpdateInfo(SCR_UIDescription from=null)
Definition: SCR_EditableDescriptorComponent.c:87
SCR_EditableSpawnPointComponentClass
Definition: SCR_EditableSpawnPointComponent.c:2
SCR_EditableDescriptorComponent
void SCR_EditableDescriptorComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition: SCR_EditableDescriptorComponent.c:137
m_UIInfoSpawnPoint
protected ref SCR_UIInfo m_UIInfoSpawnPoint
Definition: SCR_EditableSpawnPointComponent.c:12
UpdateText
protected void UpdateText()
Definition: SCR_EditableSpawnPointComponent.c:15
GetOnLocationChange
override protected void GetOnLocationChange(SCR_EditableEntityComponent nearestLocation)
Definition: SCR_EditableSpawnPointComponent.c:24
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180