Description:
Add sound effect to construction.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r600:c9d2a919b2ad -

1 NO CONTENT: new file 100644, binary diff hidden
1 NO CONTENT: new file 100644, binary diff hidden
@@ -26,7 +26,8
26 26 typeof(SelectedComponent),
27 27 typeof(ToolComponent),
28 28 typeof(PointComponent))]
29 [Sends(typeof(ChangeContractStatusMessage))]
29 [Sends(typeof(ChangeContractStatusMessage),
30 typeof(PlaySoundMessage))]
30 31 public class BuildToolEngine : Engine {
31 32
32 33 private CellMap Map;
@@ -253,6 +254,7
253 254 AddComponent(structure_entity,
254 255 new StructureComponent { Structure = Structure.Tower});
255 256 Destroy(entity);
257 SendMessage(new PlaySoundMessage { SoundName = "ConstructionShort" });
256 258 Logging.Success("Placed Tower!");
257 259 }
258 260
@@ -201,6 +201,8
201 201 SoundEffectEngine.LoadSound(Content, "Click");
202 202 SoundEffectEngine.LoadSound(Content, "ClickPart1");
203 203 SoundEffectEngine.LoadSound(Content, "ClickPart2");
204 SoundEffectEngine.LoadSound(Content, "Construction");
205 SoundEffectEngine.LoadSound(Content, "ConstructionShort");
204 206 // #endif
205 207 Tile.TileSetTexture = Content.Load<Texture2D>(@"merged_tileset");
206 208 var texture = Content.Load<Texture2D>(@"solid_tileset");
@@ -98,6 +98,12
98 98 <None Include="Content\ClickPart2.wav">
99 99 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
100 100 </None>
101 <None Include="Content\ConstructionShort.wav">
102 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
103 </None>
104 <None Include="Content\Construction.wav">
105 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
106 </None>
101 107 <None Include="packages.config" />
102 108 <!-- <None Include="Content\part4_tileset.png"> -->
103 109 <!-- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> -->
You need to be logged in to leave comments. Login now