Don’t export certain Init types.
This commit is contained in:
@@ -117,7 +117,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
}
|
||||
}
|
||||
|
||||
public class HideBibPreviewInit : IActorInit<bool>
|
||||
public class HideBibPreviewInit : IActorInit<bool>, ISuppressInitExport
|
||||
{
|
||||
[FieldFromYamlKey] readonly bool value = true;
|
||||
public HideBibPreviewInit() { }
|
||||
|
||||
@@ -349,7 +349,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public interface INotifyPassengerEntered { void PassengerEntered(Actor self, Actor passenger); }
|
||||
public interface INotifyPassengerExited { void PassengerExited(Actor self, Actor passenger); }
|
||||
|
||||
public class RuntimeCargoInit : IActorInit<Actor[]>
|
||||
public class RuntimeCargoInit : IActorInit<Actor[]>, ISuppressInitExport
|
||||
{
|
||||
[FieldFromYamlKey]
|
||||
readonly Actor[] value = { };
|
||||
|
||||
@@ -146,7 +146,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
}
|
||||
}
|
||||
|
||||
public class RuntimeNeighbourInit : IActorInit<Dictionary<CPos, string[]>>
|
||||
public class RuntimeNeighbourInit : IActorInit<Dictionary<CPos, string[]>>, ISuppressInitExport
|
||||
{
|
||||
[FieldFromYamlKey] readonly Dictionary<CPos, string[]> value = null;
|
||||
public RuntimeNeighbourInit() { }
|
||||
|
||||
@@ -41,5 +41,5 @@ namespace OpenRA.Mods.Common.Traits
|
||||
}
|
||||
}
|
||||
|
||||
public class SkipMakeAnimsInit : IActorInit { }
|
||||
public class SkipMakeAnimsInit : IActorInit, ISuppressInitExport { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user