Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Roudenn committed Nov 30, 2024
1 parent 5e3ee59 commit 69a990e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Content.Shared/Backmen/Blob/BlobTypedStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public abstract partial class BlobTypedStorage<T> : IEnumerable<KeyValuePair<Blo
public virtual T Normal { get; set; } = default!;
[DataField]
public virtual T Storage { get; set; }
[DataField]
public virtual T Turret { get; set; }
/*[DataField]
public virtual T Turret { get; set; }*/
// Метод для доступа к полям через индексатор
[Pure]
public T this[BlobTileType type]
Expand All @@ -45,7 +45,7 @@ public T this[BlobTileType type]
BlobTileType.Strong => Strong,
BlobTileType.Normal => Normal,
BlobTileType.Storage => Storage,
BlobTileType.Turret => Turret,
//BlobTileType.Turret => Turret,
_ => throw new ArgumentOutOfRangeException(nameof(type), $"Unknown tile type: {type}")
};
set
Expand Down Expand Up @@ -79,9 +79,9 @@ public T this[BlobTileType type]
case BlobTileType.Storage:
Storage = value;
break;
case BlobTileType.Turret:
/*case BlobTileType.Turret:
Turret = value;
break;
break;*/
default:
throw new ArgumentOutOfRangeException(nameof(type), $"Unknown tile type: {type}");
}
Expand All @@ -104,7 +104,7 @@ public IEnumerator<KeyValuePair<BlobTileType, T>> GetEnumerator()
yield return new KeyValuePair<BlobTileType, T>(BlobTileType.Strong, Strong);
yield return new KeyValuePair<BlobTileType, T>(BlobTileType.Normal, Normal);
yield return new KeyValuePair<BlobTileType, T>(BlobTileType.Storage, Storage);
yield return new KeyValuePair<BlobTileType, T>(BlobTileType.Turret, Turret);
//yield return new KeyValuePair<BlobTileType, T>(BlobTileType.Turret, Turret);
}

IEnumerator IEnumerable.GetEnumerator()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public sealed partial class BlobCoreComponent : Component
{BlobTileType.Normal, "NormalBlobTile"},
{BlobTileType.Invalid, "NormalBlobTile"}, // wtf
{BlobTileType.Storage, "StorageBlobTile"},
{BlobTileType.Turret, "TurretBlobTile"},
//{BlobTileType.Turret, "TurretBlobTile"},
{BlobTileType.Core, "CoreBlobTile"},
};

Expand Down

0 comments on commit 69a990e

Please sign in to comment.