Everything in ContantPiple line is explained, accept of a little black box in: GetRuntimeType and GetRuntimeReader. the return value of those two is Unclear to me... sometimes it's a string wnd sometimes it's this "gameAssebmly", which i understand it return the same string that we can write by our selfs.
There are some questions and i have 3 books of xna which explains about the Contant Pipeline, and non of them says how to build this string or what are all the tags that can be used in this strings. they jusg say : writhe this, and write that.
every one show it in a different way, which just make me more confused. understand this, i can just make as they say , but i need to undrestand.
for example some book and/or tutorials say i need to implement two functions: GameRuntimeType and GetRuntimeReader while others "forget" about the GameRuntimeType, why?
also, everyone has a differend way to return the assembly, few examples:
"microsoft xna unleashed":
public override string GetRuntimeType (TargetPlatform targetPlatform)
{
return "XELibrary.Skybox, " +
"XELibrary, Version=1.0.0.0, Culture=neutral";
}
public override string GetRuntimeReader (TargetPlatform targetPlatform)
{
return "XELibrary.SkyboxReader, " +
"XELibrary, Version=1.0.0.0, Culture=neutral";
}
"microsoft xna agme studio creators club":
public override string GetRuntimeType (TargetPlatform targetPlatform)
{
return typeof(MyTerrain).AssemlyQualifiedName; // explanation????
}
public override string GetRuntimeReader (TargetPlatform targetPlatform)
{
return "TerrImporter.TerrReader, " +
"TerrImporter, Version=1.0.0.0, Culture=neutral";
}
I someone explain in details what is the structure of this string, whay essential and what is not, what more tags there are to add if i need and what is Culture?
also, what string the command typeof (MyCustomClass).AssemblyQualifiedName , returns? and why the use of typeof? why take the type of the MyCustomClass from the first place?
thanks for your kind help