Custom build sounds for walls

This commit is contained in:
pchote
2010-02-27 18:04:38 +13:00
parent 16c0065005
commit 49edeb9549
7 changed files with 19 additions and 15 deletions

View File

@@ -46,8 +46,10 @@ namespace OpenRa.Traits.Activities
var rb = self.traits.Get<RenderBuilding>();
rb.PlayCustomAnimBackwards(self, "make",
() => self.World.AddFrameEndTask(w => DoUndeploy(w,self)));
Sound.PlayToPlayer(self.Owner, self.Owner.PlayerActor.Info.Traits.Get<PlaceBuildingInfo>().SellSound);
foreach (var s in self.Info.Traits.Get<BuildingInfo>().SellSounds)
Sound.PlayToPlayer(self.Owner, s);
started = true;
}