Gondwana Game Engine Development (master) - 2.7.0
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
ReferenceRelocation.cs
1namespace Gondwana.Assets;
2
4public sealed class ReferenceRelocation
5{
7 public AssetLocation Source { get; }
8
10 public AssetLocation Destination { get; }
11
16 {
17 ArgumentNullException.ThrowIfNull(source);
18 ArgumentNullException.ThrowIfNull(destination);
19
20 if (source.AssetType != destination.AssetType)
21 throw new ArgumentException(
22 $"Incompatible relocation from {source.AssetType} to {destination.AssetType}.",
23 nameof(destination));
24
25 Source = source;
26 Destination = destination;
27 }
28}
A physical endpoint for reference transformation, without opening files or archives....
AssetTypes AssetType
Gets the resource or definition type, including for loose files.
AssetLocation Source
Gets the original physical endpoint.
ReferenceRelocation(AssetLocation source, AssetLocation destination)
Creates a same-type relocation between loose or packed endpoints.
AssetLocation Destination
Gets the replacement physical endpoint.