Skip to content

Localisation Layer#603

Open
gruenwaldlk wants to merge 4 commits into
masterfrom
features/gruenwaldlk/localisation_layer
Open

Localisation Layer#603
gruenwaldlk wants to merge 4 commits into
masterfrom
features/gruenwaldlk/localisation_layer

Conversation

@gruenwaldlk

Copy link
Copy Markdown
Member

Closes #316 finally.

@gruenwaldlk gruenwaldlk requested a review from AnakinRaW June 9, 2026 23:03

@AnakinRaW AnakinRaW left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx, look cool.

get rid of the hashing service registration in the core service contribution and i'm happy 👍🏼

public static void SupportDAT(this IServiceCollection serviceCollection)
{
PetroglyphCommons.ContributeServices(serviceCollection);
serviceCollection.TryAddSingleton<IHashingService>(sp => new HashingService(sp));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

providing the hashing service, for me, is also responsibility of the consumer

serviceCollection.AddSingleton<IHashAlgorithmProvider>(new Crc32HashingProvider());
serviceCollection.AddSingleton<ICrc32HashingService>(sp => new Crc32HashingService(sp));
serviceCollection.TryAddSingleton<IHashAlgorithmProvider>(new Crc32HashingProvider());
serviceCollection.TryAddSingleton<IHashingService>(sp => new HashingService(sp));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

providing the hashing service, for me, is also responsibility of the consumer

// Copyright (c) Alamo Engine Tools and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.

using System;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't have a strong bias. but if xml is evenaully superseeded by a new format or dropped entirely. i'd be ok with a breaking change of the lib. and for now mark the thing as [Obsolete]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a new localisation handling layer PG.StarWarsGame.Localisation

2 participants