Files
RobustToolbox/Robust.Shared/GameObjects/EntitySystemMessages/EntParentChangedMessage.cs
T
SilverandGitHub 25926a17b7 Renames SS14.* to Robust.* (#793)
RobustToolbox projects should be named Robust.* 

This PR changes the RobustToolbox projects from SS14.* to Robust.*

Updates SS14.* prefixes/namespaces to Robust.*
Updates SpaceStation14.sln to RobustToolbox.sln
Updates MSBUILD/SS14.* to MSBUILD/Robust.*
Updates CSProject and MSBuild references for the above
Updates git_helper.py
Removes Runserver and Runclient as they are unusable
2019-04-15 20:24:59 -06:00

32 lines
973 B
C#

using Robust.Shared.Interfaces.GameObjects;
namespace Robust.Shared.GameObjects.EntitySystemMessages
{
/// <summary>
/// Raised when an entity parent is changed.
/// </summary>
public class EntParentChangedMessage : EntitySystemMessage
{
/// <summary>
/// Entity that was adopted. The transform component has a property with the new parent.
/// </summary>
public IEntity Entity { get; }
/// <summary>
/// Old parent that abandoned the Entity.
/// </summary>
public IEntity OldParent { get; }
/// <summary>
/// Creates a new instance of <see cref="EntParentChangedMessage"/>.
/// </summary>
/// <param name="entity"></param>
/// <param name="oldParent"></param>
public EntParentChangedMessage(IEntity entity, IEntity oldParent)
{
Entity = entity;
OldParent = oldParent;
}
}
}