tidy in RenderBuildingWarFactory
This commit is contained in:
@@ -40,13 +40,11 @@ namespace OpenRA.Mods.RA.Render
|
|||||||
|
|
||||||
class RenderBuildingWarFactory : RenderBuilding, INotifyBuildComplete, ITick, INotifyProduction, INotifySold, ISync
|
class RenderBuildingWarFactory : RenderBuilding, INotifyBuildComplete, ITick, INotifyProduction, INotifySold, ISync
|
||||||
{
|
{
|
||||||
public Animation roof;
|
Animation roof;
|
||||||
[Sync]
|
[Sync] bool isOpen;
|
||||||
bool isOpen;
|
[Sync] int2 openExit;
|
||||||
[Sync]
|
|
||||||
int2 openExit;
|
|
||||||
|
|
||||||
bool buildComplete;
|
bool buildComplete;
|
||||||
|
|
||||||
public RenderBuildingWarFactory(ActorInitializer init, RenderBuildingInfo info)
|
public RenderBuildingWarFactory(ActorInitializer init, RenderBuildingInfo info)
|
||||||
: base(init, info)
|
: base(init, info)
|
||||||
{
|
{
|
||||||
@@ -70,7 +68,8 @@ namespace OpenRA.Mods.RA.Render
|
|||||||
.Any( a => a != self ))
|
.Any( a => a != self ))
|
||||||
{
|
{
|
||||||
isOpen = false;
|
isOpen = false;
|
||||||
roof.PlayBackwardsThen(NormalizeSequence(self, "build-top"), () => roof.Play(NormalizeSequence(self, "idle-top")));
|
roof.PlayBackwardsThen(NormalizeSequence(self, "build-top"),
|
||||||
|
() => roof.Play(NormalizeSequence(self, "idle-top")));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,11 +91,7 @@ namespace OpenRA.Mods.RA.Render
|
|||||||
roof.PlayThen(NormalizeSequence(self, "build-top"), () => { isOpen = true; openExit = exit; });
|
roof.PlayThen(NormalizeSequence(self, "build-top"), () => { isOpen = true; openExit = exit; });
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Selling(Actor self)
|
public void Selling(Actor self) { anims.Remove("roof"); }
|
||||||
{
|
|
||||||
anims.Remove("roof");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Sold(Actor self) { }
|
public void Sold(Actor self) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user