fireplace.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773
  1. class Fireplace extends FireplaceBase
  2. {
  3. bool m_ContactEventProcessing;
  4. void Fireplace()
  5. {
  6. //Particles - default for FireplaceBase
  7. PARTICLE_FIRE_START = ParticleList.CAMP_FIRE_START;
  8. PARTICLE_SMALL_FIRE = ParticleList.CAMP_SMALL_FIRE;
  9. PARTICLE_NORMAL_FIRE = ParticleList.CAMP_NORMAL_FIRE;
  10. PARTICLE_SMALL_SMOKE = ParticleList.CAMP_SMALL_SMOKE;
  11. PARTICLE_NORMAL_SMOKE = ParticleList.CAMP_NORMAL_SMOKE;
  12. PARTICLE_FIRE_END = ParticleList.CAMP_FIRE_END;
  13. PARTICLE_STEAM_END = ParticleList.CAMP_STEAM_2END;
  14. SetEventMask( EntityEvent.CONTACT | EntityEvent.TOUCH );
  15. //! universal temperature sources overrides
  16. m_UTSSettings.m_TemperatureItemCap = GameConstants.ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE;
  17. m_UTSSettings.m_TemperatureCap = 20;
  18. m_ThawnSurfaceUnderSupport = true;
  19. }
  20. override protected void InitializeTemperatureSources()
  21. {
  22. m_UTSLFireplace = new UniversalTemperatureSourceLambdaFireplace();
  23. m_UTSLFireplace.SetSmallFireplaceTemperatureMax(PARAM_SMALL_FIRE_TEMPERATURE);
  24. m_UTSLFireplace.SetNormalFireplaceTemperatureMax(PARAM_OUTDOOR_FIRE_TEMPERATURE);
  25. m_UTSource = new UniversalTemperatureSource(this, m_UTSSettings, m_UTSLFireplace);
  26. }
  27. override bool IsBaseFireplace()
  28. {
  29. return true;
  30. }
  31. override void EOnTouch( IEntity other, int extra )
  32. {
  33. ContactEvent( other, GetPosition() );
  34. }
  35. override void EOnContact( IEntity other, Contact extra )
  36. {
  37. ContactEvent( other, extra.Position );
  38. }
  39. void ContactEvent( IEntity other, vector position )
  40. {
  41. if ( GetGame().IsServer() && !m_ContactEventProcessing && dBodyIsActive(this) && !IsSetForDeletion() )
  42. {
  43. m_ContactEventProcessing = true;
  44. MiscGameplayFunctions.ThrowAllItemsInInventory(this, 0);
  45. CheckForDestroy();
  46. m_ContactEventProcessing = false;
  47. }
  48. }
  49. //attachments
  50. override bool CanReceiveAttachment( EntityAI attachment, int slotId )
  51. {
  52. if ( !super.CanReceiveAttachment(attachment, slotId) )
  53. return false;
  54. ItemBase item = ItemBase.Cast( attachment );
  55. //cookware
  56. if ( ( item.Type() == ATTACHMENT_CAULDRON ) || ( item.Type() == ATTACHMENT_COOKING_POT ) )
  57. {
  58. if ( FindAttachmentBySlotName( "CookingTripod" ) || IsOven() )
  59. return true;
  60. return false;
  61. }
  62. if ( item.Type() == ATTACHMENT_FRYING_PAN )
  63. {
  64. if ( IsOven() )
  65. return true;
  66. return false;
  67. }
  68. // food on direct cooking slots
  69. if ( item.IsKindOf( "Edible_Base" ) )
  70. {
  71. if ( IsOven() )
  72. return true;
  73. return false;
  74. }
  75. //tripod
  76. if ( item.IsInherited(TripodBase) )
  77. {
  78. if (!IsOven() && !GetHierarchyParent())
  79. return true;
  80. return false;
  81. }
  82. //stones
  83. if ( item.Type() == ATTACHMENT_STONES )
  84. {
  85. if ( !GetHierarchyParent() && !IsBurning() )
  86. return true;
  87. return false;
  88. }
  89. return true;
  90. }
  91. override bool CanDisplayAttachmentSlot( int slot_id )
  92. {
  93. string slot_name = InventorySlots.GetSlotName(slot_id);
  94. if ( super.CanDisplayAttachmentSlot(slot_id) )
  95. {
  96. if ( slot_name != "CookingEquipment" || FindAttachmentBySlotName( "CookingTripod" ) )
  97. return true;
  98. }
  99. return false;
  100. }
  101. override bool CanLoadAttachment( EntityAI attachment )
  102. {
  103. if ( !super.CanLoadAttachment(attachment) )
  104. return false;
  105. ItemBase item = ItemBase.Cast( attachment );
  106. //cookware
  107. if ( ( item.Type() == ATTACHMENT_CAULDRON ) || ( item.Type() == ATTACHMENT_COOKING_POT ) )
  108. {
  109. //if ( IsItemTypeAttached( ATTACHMENT_TRIPOD ) /*|| IsOven()*/ )
  110. return true;
  111. }
  112. if ( item.Type() == ATTACHMENT_FRYING_PAN )
  113. {
  114. //if ( IsOven() )
  115. return true;
  116. }
  117. // food on direct cooking slots
  118. //if ( IsOven() )
  119. //{
  120. if ( item.IsKindOf( "Edible_Base" ) )
  121. return true;
  122. //}
  123. //tripod
  124. if ( item.Type() == ATTACHMENT_TRIPOD )
  125. {
  126. if ( /*!IsOven() &&*/ GetHierarchyParent() == NULL )
  127. return true;
  128. }
  129. //stones
  130. if ( item.Type() == ATTACHMENT_STONES )
  131. {
  132. if ( GetHierarchyParent() /*|| IsBurning()*/ )
  133. return false;
  134. return true;
  135. }
  136. return true;
  137. }
  138. override bool CanReleaseAttachment( EntityAI attachment )
  139. {
  140. if (!super.CanReleaseAttachment(attachment))
  141. {
  142. return false;
  143. }
  144. ItemBase item = ItemBase.Cast(attachment);
  145. //stones
  146. if (item.Type() == ATTACHMENT_STONES)
  147. {
  148. if (IsBurning())
  149. {
  150. return false;
  151. }
  152. int stone_quantity = item.GetQuantity();
  153. if (HasStoneCircle() && stone_quantity <= 8)
  154. {
  155. return false;
  156. }
  157. if (IsOven())
  158. {
  159. return false;
  160. }
  161. }
  162. return true;
  163. }
  164. override void EEItemAttached(EntityAI item, string slot_name)
  165. {
  166. super.EEItemAttached(item, slot_name);
  167. ItemBase item_base = ItemBase.Cast(item);
  168. if (IsKindling(item_base) || IsFuel(item_base))
  169. {
  170. AddToFireConsumables(item_base);
  171. }
  172. //cookware
  173. if (item_base.Type() == ATTACHMENT_COOKING_POT)
  174. {
  175. SetCookingEquipment(item_base);
  176. //rotate handle (if not in 'Oven' stage)
  177. if (GetGame().IsServer() && !IsOven())
  178. {
  179. item_base.SetAnimationPhase(ANIMATION_COOKWARE_HANDLE, 0);
  180. }
  181. }
  182. if (item.Type() == ATTACHMENT_CAULDRON)
  183. {
  184. SetCookingEquipment(item_base);
  185. //rotate handle (if not in 'Oven' stage)
  186. if (GetGame().IsServer() && !IsOven())
  187. {
  188. item_base.SetAnimationPhase(ANIMATION_CAULDRON_HANDLE, 0);
  189. }
  190. }
  191. // direct cooking/smoking slots
  192. bool edible_base_attached = false;
  193. switch (slot_name)
  194. {
  195. case "DirectCookingA":
  196. m_DirectCookingSlots[0] = item_base;
  197. edible_base_attached = true;
  198. break;
  199. case "DirectCookingB":
  200. m_DirectCookingSlots[1] = item_base;
  201. edible_base_attached = true;
  202. break;
  203. case "DirectCookingC":
  204. m_DirectCookingSlots[2] = item_base;
  205. edible_base_attached = true;
  206. break;
  207. case "SmokingA":
  208. m_SmokingSlots[0] = item_base;
  209. edible_base_attached = true;
  210. break;
  211. case "SmokingB":
  212. m_SmokingSlots[1] = item_base;
  213. edible_base_attached = true;
  214. break;
  215. case "SmokingC":
  216. m_SmokingSlots[2] = item_base;
  217. edible_base_attached = true;
  218. break;
  219. case "SmokingD":
  220. m_SmokingSlots[3] = item_base;
  221. edible_base_attached = true;
  222. break;
  223. }
  224. //TODO
  225. //add SetViewIndex when attaching various attachments
  226. RefreshFireplaceVisuals();
  227. }
  228. override void EEItemDetached(EntityAI item, string slot_name)
  229. {
  230. super.EEItemDetached(item, slot_name);
  231. ItemBase item_base = ItemBase.Cast(item);
  232. if (IsKindling(item_base) || IsFuel(item_base))
  233. {
  234. RemoveFromFireConsumables(GetFireConsumableByItem(item_base));
  235. }
  236. //cookware
  237. if (item_base.Type() == ATTACHMENT_COOKING_POT)
  238. {
  239. ClearCookingEquipment(item_base);
  240. //rotate handle
  241. if (GetGame().IsServer())
  242. {
  243. item_base.SetAnimationPhase(ANIMATION_COOKWARE_HANDLE, 1);
  244. }
  245. //remove audio visuals
  246. Bottle_Base cooking_pot = Bottle_Base.Cast(item);
  247. cooking_pot.RemoveAudioVisualsOnClient();
  248. }
  249. if (item_base.Type() == ATTACHMENT_CAULDRON)
  250. {
  251. ClearCookingEquipment(item_base);
  252. //rotate handle
  253. if (GetGame().IsServer())
  254. {
  255. item_base.SetAnimationPhase(ANIMATION_CAULDRON_HANDLE, 1);
  256. }
  257. //remove audio visuals
  258. Bottle_Base cauldron = Bottle_Base.Cast( item );
  259. cauldron.RemoveAudioVisualsOnClient();
  260. }
  261. if (item_base.Type() == ATTACHMENT_FRYING_PAN)
  262. {
  263. ClearCookingEquipment(item_base);
  264. //remove audio visuals
  265. FryingPan frying_pan = FryingPan.Cast(item);
  266. frying_pan.RemoveAudioVisualsOnClient();
  267. }
  268. // direct cooking/smoking slots
  269. switch (slot_name)
  270. {
  271. case "DirectCookingA":
  272. m_DirectCookingSlots[0] = null;
  273. break;
  274. case "DirectCookingB":
  275. m_DirectCookingSlots[1] = null;
  276. break;
  277. case "DirectCookingC":
  278. m_DirectCookingSlots[2] = null;
  279. break;
  280. case "SmokingA":
  281. m_SmokingSlots[0] = null;
  282. break;
  283. case "SmokingB":
  284. m_SmokingSlots[1] = null;
  285. break;
  286. case "SmokingC":
  287. m_SmokingSlots[2] = null;
  288. break;
  289. case "SmokingD":
  290. m_SmokingSlots[3] = null;
  291. break;
  292. }
  293. //no attachments left, no cargo items & no ashes are present
  294. CheckForDestroy();
  295. RefreshFireplaceVisuals();
  296. }
  297. override void SetCookingEquipment(ItemBase equipment)
  298. {
  299. super.SetCookingEquipment(equipment);
  300. TripodBase stand = TripodBase.Cast(FindAttachmentBySlotName("CookingTripod"));
  301. if (stand)
  302. {
  303. if (equipment)
  304. stand.LockToParent();
  305. else
  306. stand.UnlockFromParent();
  307. }
  308. }
  309. override void OnBeforeTryDelete()
  310. {
  311. super.OnBeforeTryDelete();
  312. MiscGameplayFunctions.DropAllItemsInInventoryInBounds(this, m_HalfExtents);
  313. }
  314. override bool IsPrepareToDelete()
  315. {
  316. return GetInventory().AttachmentCount() == 0 && !IsBurning() && !HasAshes();
  317. }
  318. //CONDITIONS
  319. //this into/outo parent.Cargo
  320. override bool CanPutInCargo(EntityAI parent)
  321. {
  322. if (!super.CanPutInCargo(parent))
  323. {
  324. return false;
  325. }
  326. if (HasAshes() || IsBurning() || HasStones() || HasStoneCircle() || IsOven() || !IsCargoEmpty() || HasCookingStand())
  327. {
  328. return false;
  329. }
  330. return true;
  331. }
  332. override bool CanRemoveFromCargo( EntityAI parent )
  333. {
  334. return true;
  335. }
  336. //cargo item into/outo this.Cargo
  337. override bool CanReceiveItemIntoCargo( EntityAI item )
  338. {
  339. if ( GetHierarchyParent() )
  340. return false;
  341. return super.CanReceiveItemIntoCargo( item );
  342. }
  343. override bool CanLoadItemIntoCargo( EntityAI item )
  344. {
  345. if (!super.CanLoadItemIntoCargo( item ))
  346. return false;
  347. if ( GetHierarchyParent() )
  348. return false;
  349. return true;
  350. }
  351. //hands
  352. override bool CanPutIntoHands(EntityAI parent)
  353. {
  354. if (!super.CanPutIntoHands(parent))
  355. {
  356. return false;
  357. }
  358. if (HasAshes() || IsBurning() || HasStones() || HasStoneCircle() || IsOven() || !IsCargoEmpty() || HasCookingStand())
  359. {
  360. return false;
  361. }
  362. return true;
  363. }
  364. override bool CanDisplayAttachmentCategory( string category_name )
  365. {
  366. if ( !super.CanDisplayAttachmentCategory( category_name ) )
  367. return false;
  368. if ( IsOven() )
  369. {
  370. if ( category_name == "CookingEquipment" )
  371. return false;
  372. if ( ( category_name == "DirectCooking" ) || ( category_name == "Smoking" ) )
  373. return true;
  374. }
  375. else
  376. {
  377. if ( category_name == "CookingEquipment" )
  378. return true;
  379. if ( ( category_name == "DirectCooking" ) || ( category_name == "Smoking" ) )
  380. return false;
  381. }
  382. return true;
  383. }
  384. override bool CanAssignAttachmentsToQuickbar()
  385. {
  386. return false;
  387. }
  388. override float HeightStartCheckOverride()
  389. {
  390. return 0.5;
  391. }
  392. //particles
  393. override bool CanShowSmoke()
  394. {
  395. return !IsOven();
  396. }
  397. void DestroyClutterCutter( Object clutter_cutter )
  398. {
  399. GetGame().ObjectDelete( clutter_cutter );
  400. }
  401. override void RefreshPhysics()
  402. {
  403. super.RefreshPhysics();
  404. //Oven
  405. if ( IsOven() )
  406. {
  407. RemoveProxyPhysics( ANIMATION_OVEN );
  408. AddProxyPhysics( ANIMATION_OVEN );
  409. }
  410. else
  411. {
  412. RemoveProxyPhysics( ANIMATION_OVEN );
  413. }
  414. //Tripod
  415. if ( IsItemTypeAttached( ATTACHMENT_TRIPOD ) )
  416. {
  417. RemoveProxyPhysics( ANIMATION_TRIPOD );
  418. AddProxyPhysics( ANIMATION_TRIPOD );
  419. }
  420. else
  421. {
  422. RemoveProxyPhysics( ANIMATION_TRIPOD );
  423. }
  424. }
  425. override void RefreshFireplacePhysics()
  426. {
  427. RefreshPhysics();
  428. }
  429. //on store save/load
  430. override void OnStoreSave( ParamsWriteContext ctx )
  431. {
  432. super.OnStoreSave(ctx);
  433. if ( GetGame().SaveVersion() >= 110 )
  434. {
  435. // save stone circle state
  436. ctx.Write( m_HasStoneCircle );
  437. // save stone oven state
  438. ctx.Write( m_IsOven );
  439. }
  440. }
  441. override bool OnStoreLoad( ParamsReadContext ctx, int version )
  442. {
  443. if ( !super.OnStoreLoad(ctx, version) )
  444. return false;
  445. if ( version >= 110 )
  446. {
  447. // read stone circle state
  448. if ( !ctx.Read( m_HasStoneCircle ) )
  449. {
  450. m_HasStoneCircle = false;
  451. return false;
  452. }
  453. // read stone oven state
  454. if ( !ctx.Read( m_IsOven ) )
  455. {
  456. m_IsOven = false;
  457. return false;
  458. }
  459. }
  460. return true;
  461. }
  462. override void AfterStoreLoad()
  463. {
  464. super.AfterStoreLoad();
  465. if ( IsBurning() )
  466. {
  467. if ( !m_ClutterCutter )
  468. {
  469. m_ClutterCutter = GetGame().CreateObjectEx( OBJECT_CLUTTER_CUTTER, GetPosition(), ECE_PLACE_ON_SURFACE );
  470. m_ClutterCutter.SetOrientation( GetOrientation() );
  471. }
  472. }
  473. }
  474. //================================================================
  475. // IGNITION ACTION
  476. //================================================================
  477. // Item-to-item fire distribution
  478. override bool HasFlammableMaterial()
  479. {
  480. return true;
  481. }
  482. override bool CanBeIgnitedBy(EntityAI igniter = NULL)
  483. {
  484. return HasAnyKindling() && !IsBurning() && !GetHierarchyParent();
  485. }
  486. override bool CanIgniteItem(EntityAI ignite_target = NULL)
  487. {
  488. return IsBurning();
  489. }
  490. override bool IsIgnited()
  491. {
  492. return IsBurning();
  493. }
  494. override void OnIgnitedTarget( EntityAI ignited_item )
  495. {
  496. }
  497. override void OnIgnitedThis( EntityAI fire_source )
  498. {
  499. //remove grass
  500. Object cc_object = GetGame().CreateObjectEx( OBJECT_CLUTTER_CUTTER , GetPosition(), ECE_PLACE_ON_SURFACE );
  501. cc_object.SetOrientation ( GetOrientation() );
  502. GetGame().GetCallQueue( CALL_CATEGORY_GAMEPLAY ).CallLater( DestroyClutterCutter, 200, false, cc_object );
  503. //start fire
  504. StartFire();
  505. if ( fire_source )
  506. {
  507. Man player = fire_source.GetHierarchyRootPlayer();
  508. if ( player )
  509. {
  510. EFireIgniteType ignate_type = EFireIgniteType.Unknow;
  511. if ( fire_source.ClassName() == "Matchbox" )
  512. {
  513. ignate_type = EFireIgniteType.Matchbox;
  514. }
  515. else if ( fire_source.ClassName() == "Roadflare" )
  516. {
  517. ignate_type = EFireIgniteType.Roadflare;
  518. }
  519. else if ( fire_source.ClassName() == "HandDrillKit" )
  520. {
  521. ignate_type = EFireIgniteType.HandDrill;
  522. }
  523. SyncEvents.SendPlayerIgnatedFireplace( player, ignate_type );
  524. }
  525. }
  526. }
  527. override bool IsThisIgnitionSuccessful( EntityAI item_source = NULL )
  528. {
  529. SetIgniteFailure( false );
  530. Param1<bool> failure;
  531. //check kindling
  532. if ( !HasAnyKindling() )
  533. {
  534. return false;
  535. }
  536. //check roof
  537. if ( !IsOven() )
  538. {
  539. if ( !IsCeilingHighEnoughForSmoke() && IsOnInteriorSurface() )
  540. {
  541. return false;
  542. }
  543. }
  544. //check surface
  545. if ( IsOnWaterSurface() )
  546. {
  547. return false;
  548. }
  549. //check wetness
  550. if ( IsWet() )
  551. {
  552. SetIgniteFailure( true );
  553. failure = new Param1<bool>( GetIgniteFailure() );
  554. GetGame().RPCSingleParam( this, FirePlaceFailure.WET, failure, true );
  555. return false;
  556. }
  557. // check if the fireplace isnt below a roof
  558. // excluding this check whein oven stage
  559. CheckForRoofLimited(0);
  560. if ( !IsOven() && !IsRoofAbove() )
  561. {
  562. // if not, check if there is strong rain or wind
  563. if ( IsRainingAbove() )
  564. {
  565. SetIgniteFailure( true );
  566. failure = new Param1<bool>( GetIgniteFailure() );
  567. GetGame().RPCSingleParam( this, FirePlaceFailure.WET, failure, true );
  568. return false;
  569. }
  570. if ( IsWindy() )
  571. {
  572. SetIgniteFailure( true );
  573. failure = new Param1<bool>( GetIgniteFailure() );
  574. GetGame().RPCSingleParam( this, FirePlaceFailure.WIND, failure, true );
  575. return false;
  576. }
  577. }
  578. return true;
  579. }
  580. //================================================================
  581. // FIREPLACE ENTITY
  582. //================================================================
  583. static Fireplace IgniteEntityAsFireplace( notnull EntityAI entity, notnull EntityAI fire_source )
  584. {
  585. //get player
  586. PlayerBase player = PlayerBase.Cast( fire_source.GetHierarchyRootPlayer() );
  587. //create fireplace
  588. Fireplace fireplace = Fireplace.Cast( GetGame().CreateObjectEx( "Fireplace" , entity.GetPosition(), ECE_PLACE_ON_SURFACE ) );
  589. //attach
  590. if ( !GetGame().IsMultiplayer() ) //clear inventory reservation (single player)
  591. {
  592. InventoryLocation loc = new InventoryLocation;
  593. entity.GetInventory().GetCurrentInventoryLocation( loc );
  594. player.GetInventory().ClearInventoryReservationEx( entity, loc );
  595. }
  596. if ( GetGame().IsServer() && GetGame().IsMultiplayer() )
  597. {
  598. player.ServerTakeEntityToTargetAttachment( fireplace, entity ); // multiplayer server side
  599. }
  600. else
  601. {
  602. player.LocalTakeEntityToTargetAttachment( fireplace, entity ); // single player or multiplayer client side
  603. }
  604. //start fire
  605. fireplace.StartFire();
  606. fireplace.OnIgnitedThis(fire_source);
  607. return fireplace;
  608. }
  609. static bool CanIgniteEntityAsFireplace(notnull EntityAI entity)
  610. {
  611. //check surface
  612. if (FireplaceBase.IsEntityOnWaterSurface(entity))
  613. {
  614. return false;
  615. }
  616. entity.CheckForRoofLimited(); //TODO: limit more severely? Should update at least once during UATimeSpent.FIREPLACE_IGNITE
  617. if (!entity.IsRoofAbove())
  618. return !FireplaceBase.IsRainingAboveEntity(entity);
  619. //check ceiling (enough space for smoke)
  620. if (IsEntityOnInteriorSurface(entity) && MiscGameplayFunctions.IsUnderRoof(entity, FireplaceBase.MIN_CEILING_HEIGHT))
  621. {
  622. return false;
  623. }
  624. return true;
  625. }
  626. //================================================================
  627. // ADVANCED PLACEMENT
  628. //================================================================
  629. override string GetPlaceSoundset()
  630. {
  631. return "placeFireplace_SoundSet";
  632. }
  633. override void SetActions()
  634. {
  635. super.SetActions();
  636. AddAction(ActionPlaceFireplaceIntoBarrel);
  637. AddAction(ActionPlaceFireplaceIndoor);
  638. AddAction(ActionPlaceOvenIndoor);
  639. AddAction(ActionTogglePlaceObject);
  640. AddAction(ActionPlaceObject);
  641. AddAction(ActionBuildOven);
  642. AddAction(ActionDismantleOven);
  643. AddAction(ActionBuildStoneCircle);
  644. AddAction(ActionDismantleStoneCircle);
  645. }
  646. }