Advertisement
Guest User

Scribe_Collections generic foreign assembly bug

a guest
Feb 22nd, 2021
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 KB | None | 0 0
  1. namespace Test
  2. {
  3.     public class TestComponent : GameComponent
  4.     {
  5.         private List<IExposable> _exposables;
  6.  
  7.         public TestComponent(Game _)
  8.         { }
  9.  
  10.         public override void StartedNewGame()
  11.         {
  12.             _exposables = new List<IExposable>
  13.             {
  14.                 new TestGeneric<ClassFromOtherAssembly>()
  15.             };
  16.         }
  17.  
  18.         public override void ExposeData()
  19.         {
  20.             Scribe_Collections.Look(ref _exposables, "exposables", LookMode.Deep);
  21.         }
  22.     }
  23.  
  24.     public class TestGeneric<TTest> : IExposable
  25.     {
  26.         public void ExposeData()
  27.         { }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement