Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Test
- {
- public class TestComponent : GameComponent
- {
- private List<IExposable> _exposables;
- public TestComponent(Game _)
- { }
- public override void StartedNewGame()
- {
- _exposables = new List<IExposable>
- {
- new TestGeneric<ClassFromOtherAssembly>()
- };
- }
- public override void ExposeData()
- {
- Scribe_Collections.Look(ref _exposables, "exposables", LookMode.Deep);
- }
- }
- public class TestGeneric<TTest> : IExposable
- {
- public void ExposeData()
- { }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement