5 [
Attribute(
"#AR-UserAction_LightFire", UIWidgets.EditBox,
"Description for action menu (light up)",
"")]
7 [
Attribute(
"#AR-UserAction_PutOutFire", UIWidgets.EditBox,
"Description for action menu (extinguish)",
"")]
10 protected SCR_FireplaceComponent m_FireplaceComponent;
13 override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
15 m_FireplaceComponent = SCR_FireplaceComponent.Cast(pOwnerEntity.FindComponent(SCR_FireplaceComponent));
19 override bool CanBeShownScript(IEntity user)
21 if (!m_FireplaceComponent)
28 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
30 m_FireplaceComponent.ToggleLight(!m_FireplaceComponent.IsOn())
34 override bool GetActionNameScript(out
string outName)
36 if (!m_FireplaceComponent)
39 if (!m_FireplaceComponent.IsOn())
40 outName = m_sLightDescription;
42 outName = m_sExtinguishDescription;