5 class 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;
98 void SetDelegate(notnull SCR_ServicePointDelegateComponent delegate)
121 baseManager.RegisterLogicComponent(
this);
136 static void SpawnAsOffline(
bool val)
138 s_bSpawnAsOffline = val;
153 super.OnPostInit(owner);
155 SCR_EditorLinkComponent linkComponent = SCR_EditorLinkComponent.Cast(
SCR_EntityHelper.GetMainParent(
GetOwner(),
true).FindComponent(SCR_EditorLinkComponent));
161 if (s_bSpawnAsOffline && linkComponent)
173 super.OnDelete(owner);
176 RplComponent.DeleteRplEntity(
m_Delegate.GetOwner(),
false);
194 enum SCR_EServicePointStatus