5class SCR_ServicePointComponent : SCR_MilitaryBaseLogicComponent
13 [
Attribute(
"",
UIWidgets.ResourceNamePicker,
"Prefab of entity which will hold the UI data in case this entity gets streamed out.",
"et")]
17 [
RplProp(onRplName:
"ServiceStateChanged")]
18 protected SCR_EServicePointStatus
m_eServiceState = SCR_EServicePointStatus.OFFLINE;
21 protected static bool s_bSpawnAsOffline;
120 void SetDelegate(notnull SCR_ServicePointDelegateComponent delegate)
128 super.OnBaseRegistered(
base);
170 static void SpawnAsOffline(
bool val)
172 s_bSpawnAsOffline = val;
187 super.OnPostInit(owner);
195 if (s_bSpawnAsOffline && linkComponent)
207 super.OnDelete(owner);
210 RplComponent.DeleteRplEntity(
m_Delegate.GetOwner(),
false);
228enum SCR_EServicePointStatus
SCR_CacheNoteComponentClass ScriptComponentClass RplProp()] protected ref array< string > m_aLines
void OnFactionChanged(Faction faction)
SCR_ECampaignBaseType m_eType
SCR_CampaignFaction GetFaction()
override void OnBaseRegistered(notnull SCR_MilitaryBaseComponent base)
@ DELETED
Character was deleted.
Get all prefabs that have the spawner the given labels and are valid in the editor mode param catalogType Type to catalog to get prefabs from param editorMode Editor mode to get valid entries from param faction Faction(Optional)
void OnBaseUnregistered(notnull SCR_MilitaryBaseComponent base)
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
enum SCR_EServicePointType OFFLINE
SCR_EServicePointStatus m_eServiceState
enum SCR_EServicePointType BROKEN
SCR_ServicePointDelegateComponent m_Delegate
ref ScriptInvoker m_OnServiceStateChanged
enum SCR_EServicePointType UNDER_CONSTRUCTION
ScriptInvoker GetOnServiceStateChanged()
void SetDelegate(notnull SCR_ServicePointDelegateComponent delegate)
EEditableEntityLabel m_eBuildingLabel
ScriptInvoker< SCR_ServicePointComponent, SCR_MilitaryBaseComponent > GetOnBaseRegistered()
ref ScriptInvoker< SCR_ServicePointComponent, SCR_MilitaryBaseComponent > m_OnBaseUnregistered
ScriptInvoker< SCR_ServicePointComponent, SCR_MilitaryBaseComponent > GetOnBaseUnregistered()
SCR_FactionAffiliationComponent m_FactionControl
EEditableEntityLabel GetLabel()
enum SCR_EServicePointType ONLINE
void SetServiceOnline()
Switch service to online status.
ref ScriptInvoker< SCR_ServicePointComponent, SCR_MilitaryBaseComponent > m_OnBaseRegistered
void ServiceStateChanged()
Called from RplProp event.
ResourceName GetDelegatePrefab()
SCR_EServicePointStatus GetServiceState()
ResourceName m_sDelegatePrefab
void SetServiceState(string serviceId, EServiceStatus status)
proto external Managed FindComponent(typename typeName)
static IEntity GetMainParent(IEntity entity, bool self=false)
static SCR_MilitaryBaseSystem GetInstance()
void RegisterLogicComponent(notnull SCR_MilitaryBaseLogicComponent component)
IEntity GetOwner()
Owner entity of the fuel tank.
SCR_FieldOfViewSettings Attribute