document various traits

This commit is contained in:
Matthias Mailänder
2014-11-04 23:53:17 +01:00
parent 43f4e3f5c3
commit 5361b920ca
20 changed files with 32 additions and 10 deletions

View File

@@ -12,13 +12,13 @@ using OpenRA.Traits;
namespace OpenRA.Mods.RA.Infiltration
{
[Desc("Steal and reset the owner's exploration.")]
class InfiltrateForExplorationInfo : TraitInfo<InfiltrateForExploration> { }
class InfiltrateForExploration : INotifyInfiltrated
{
public void Infiltrated(Actor self, Actor infiltrator)
{
// Steal and reset the owners exploration
infiltrator.Owner.Shroud.Explore(self.Owner.Shroud);
if (!self.Owner.Shroud.HasFogVisibility())
self.Owner.Shroud.ResetExploration();