Replace all ITransformComponent by TransformComponent
This commit is contained in:
@@ -24,8 +24,8 @@ namespace Content.Client.Animations
|
||||
{
|
||||
new AnimationTrackComponentProperty
|
||||
{
|
||||
ComponentType = typeof(ITransformComponent),
|
||||
Property = nameof(ITransformComponent.LocalRotation),
|
||||
ComponentType = typeof(TransformComponent),
|
||||
Property = nameof(TransformComponent.LocalRotation),
|
||||
InterpolationMode = AnimationInterpolationMode.Linear,
|
||||
KeyFrames =
|
||||
{
|
||||
|
||||
@@ -36,8 +36,8 @@ namespace Content.Client.Animations
|
||||
{
|
||||
new AnimationTrackComponentProperty
|
||||
{
|
||||
ComponentType = typeof(ITransformComponent),
|
||||
Property = nameof(ITransformComponent.LocalPosition),
|
||||
ComponentType = typeof(TransformComponent),
|
||||
Property = nameof(TransformComponent.LocalPosition),
|
||||
InterpolationMode = AnimationInterpolationMode.Linear,
|
||||
KeyFrames =
|
||||
{
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Content.Client.Atmos.Visualizers
|
||||
{
|
||||
base.OnChangeData(component);
|
||||
|
||||
if (!component.Owner.TryGetComponent<ITransformComponent>(out var xform))
|
||||
if (!component.Owner.TryGetComponent<TransformComponent>(out var xform))
|
||||
return;
|
||||
|
||||
if (!component.Owner.TryGetComponent<ISpriteComponent>(out var sprite))
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace Content.Client.Popups
|
||||
if (!EntityManager.EntityExists(uid))
|
||||
return;
|
||||
|
||||
var transform = EntityManager.GetComponent<ITransformComponent>(uid);
|
||||
var transform = EntityManager.GetComponent<TransformComponent>(uid);
|
||||
PopupMessage(message, _eyeManager.CoordinatesToScreen(transform.Coordinates));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user