Remove all FormerlySerializedAs attributes

This commit is contained in:
AdamRamberg 2019-10-18 17:36:10 +02:00
parent 53a5d0a6c8
commit cd90f0e667
10 changed files with 1 additions and 18 deletions

View File

@ -28,6 +28,7 @@ _The release notes were introduced halfway through the work with version `2.0.0`
## 🏠 Internal
- Added internal tool to regenerate all existing Atoms. Nifty when doing changes that requires you to update all types of Atoms.
- Removed all `FormerlySerializedAs` attributes.
## 💅 Polish

View File

@ -7,7 +7,6 @@ namespace UnityAtoms.Examples
[CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Decrease Players Health")]
public sealed class DecreasePlayersHealth : Collider2DAction
{
[FormerlySerializedAs("TagPlayer")]
[SerializeField]
private StringConstant _tagPlayer = null;

View File

@ -22,14 +22,12 @@ namespace UnityAtoms
/// <summary>
/// The Variable to set.
/// </summary>
[FormerlySerializedAs("Variable")]
[SerializeField]
private V _variable = null;
/// <summary>
/// The value to set.
/// </summary>
[FormerlySerializedAs("Value")]
[SerializeField]
private R _value = null;

View File

@ -20,7 +20,6 @@ namespace UnityAtoms
/// <summary>
/// The Event that we are listening to.
/// </summary>
[FormerlySerializedAs("Event")]
[SerializeField]
private E _event = null;
@ -34,7 +33,6 @@ namespace UnityAtoms
/// The Unity Event responses.
/// NOTE: This variable is public due to this bug: https://issuetracker.unity3d.com/issues/events-generated-by-the-player-input-component-do-not-have-callbackcontext-set-as-their-parameter-type. Will be changed back to private when fixed (this could happen in a none major update).
/// </summary>
[FormerlySerializedAs("UnityEventResponse")]
public UER _unityEventResponse = null;
/// <summary>
@ -42,7 +40,6 @@ namespace UnityAtoms
/// </summary>
/// <typeparam name="A">The Action type.</typeparam>
/// <returns>A `List&lt;A&gt;` of Actions.</returns>
[FormerlySerializedAs("GameActionResponses")]
[SerializeField]
private List<A> _actionResponses = new List<A>();
@ -89,7 +86,6 @@ namespace UnityAtoms
/// <summary>
/// The Event that we are listening to.
/// </summary>
[FormerlySerializedAs("Event")]
[SerializeField]
private E _event;
@ -103,7 +99,6 @@ namespace UnityAtoms
/// The Unity Event responses.
/// NOTE: This variable is public due to this bug: https://issuetracker.unity3d.com/issues/events-generated-by-the-player-input-component-do-not-have-callbackcontext-set-as-their-parameter-type. Will be changed back to private when fixed (this could happen in a none major update).
/// </summary>
[FormerlySerializedAs("UnityEventResponse")]
public UER _unityEventResponse = null;
/// <summary>
@ -111,7 +106,6 @@ namespace UnityAtoms
/// </summary>
/// <typeparam name="A">The Action type.</typeparam>
/// <returns>A `List&lt;A&gt;` of Actions.</returns>
[FormerlySerializedAs("GameActionResponses")]
[SerializeField]
private List<A> _actionResponses = new List<A>();

View File

@ -52,7 +52,6 @@ namespace UnityAtoms
/// <returns>Get or set the Variable value.</returns>
public virtual T Value { get { return _value; } set { throw new NotImplementedException(); } }
[FormerlySerializedAs("value")]
[SerializeField]
protected T _value;

View File

@ -35,7 +35,6 @@ namespace UnityAtoms
/// <value></value>
public T OldValue { get { return _oldValue; } }
[FormerlySerializedAs("oldValue")]
[SerializeField]
private T _oldValue;

View File

@ -23,13 +23,11 @@ namespace UnityAtoms.MonoHooks
/// <summary>
/// Event including a GameObject reference.
/// </summary>
[FormerlySerializedAs("EventWithGORef")]
public E2 EventWithGameObjectReference;
/// <summary>
/// Selector function for the Event `EventWithGameObjectReference`. Makes it possible to for example select the parent GameObject and pass that a long to the `EventWithGameObjectReference`.
/// </summary>
[FormerlySerializedAs("SelectGORef")]
[SerializeField]
protected F _selectGameObjectReference;

View File

@ -13,14 +13,12 @@ namespace UnityAtoms.MonoHooks
/// <summary>
/// Listener
/// </summary>
[FormerlySerializedAs("listener")]
[SerializeField]
private VoidListener _listener;
/// <summary>
/// Listener with GameObject reference
/// </summary>
[FormerlySerializedAs("listenerWithGO")]
[SerializeField]
private VoidGameObjectListener _listenerWithGameObject;

View File

@ -14,7 +14,6 @@ namespace UnityAtoms.SceneMgmt
/// <summary>
/// Scene to change to.
/// </summary>
[FormerlySerializedAs("SceneName")]
[SerializeField]
private StringReference _sceneName = null;

View File

@ -16,14 +16,12 @@ namespace UnityAtoms.UI
/// <summary>
/// Variable that we listens to.
/// </summary>
[FormerlySerializedAs("UIStateVariable")]
[SerializeField]
private StringVariable _UIStateVariable = null;
/// <summary>
/// A list of states that this `UIContainer` will be visible for.
/// </summary>
[FormerlySerializedAs("VisibleForStates")]
[SerializeField]
private List<StringConstant> _visibleForStates = null;