Skip to content

Commit

Permalink
Fix SimAnimationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyDuchess committed Sep 4, 2024
1 parent 8b5a27f commit 3f309c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Assets/Scripts/OpenTS2/Engine/Tests/SimAnimationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using OpenTS2.Files;
using OpenTS2.Files.Formats.DBPF;
using UnityEngine;
using System.IO;

namespace OpenTS2.Engine.Tests
{
Expand All @@ -24,12 +25,13 @@ public class SimAnimationTest : MonoBehaviour

private void Start()
{
Core.InitializeCore();
var contentManager = ContentManager.Instance;

// Load base game assets.
contentManager.AddPackages(
Filesystem.GetPackagesInDirectory(Filesystem.GetPathForProduct(ProductFlags.BaseGame) +
"TSData/Res/Sims3D"));
Filesystem.GetPackagesInDirectory(Path.Combine(Filesystem.GetPathForProduct(ProductFlags.BaseGame),
"TSData/Res/Sims3D")));

// Load all animations involving auskel and put them in the dictionary.
foreach (var animationAsset in contentManager.GetAssetsOfType<ScenegraphAnimationAsset>(TypeIDs.SCENEGRAPH_ANIM))
Expand Down

0 comments on commit 3f309c8

Please sign in to comment.