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