Guest User

Untitled

a guest
Jun 24th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. // this compiles, therefore the type is clearly accessible
  2. Engine.Logic.LevelDataReader r = new Engine.Logic.LevelDataReader();
  3.  
  4. // this also works:
  5. var i = Activator.CreateInstance("CEX_Runtime", "Engine.Logic.LevelDataReader");
  6.  
  7. // this fails, with the exception "Error loading "BigLevel". Cannot find ContentTypeReader Engine.Logic.LevelDataReader, CEX_Runtime, Version=1.0.0.0, Culture=neutral."
  8.             LevelData levelData = this.game.Content.Load<LevelData> ( "BigLevel" );
  9.  
  10. // here is the runtime reader string:
  11. public override string GetRuntimeReader(TargetPlatform targetPlatform)
  12. {
  13.     return "Engine.Logic.LevelDataReader, CEX_Runtime," + " Version=1.0.0.0, Culture=neutral";
  14. }
Add Comment
Please, Sign In to add comment