示例#1
0
文件: GrhInfo.cs 项目: wtfcolt/game
 /// <summary>
 /// Gets a unique title for a <see cref="GrhData"/> in the given category.
 /// </summary>
 /// <param name="category">The category.</param>
 /// <param name="title">The string to base the new title off of.</param>
 /// <returns>A unique title for the given <paramref name="category"/>.</returns>
 public static SpriteTitle GetUniqueTitle(SpriteCategory category, SpriteTitle title)
 {
     return(GetUniqueTitle(category, title.ToString()));
 }
示例#2
0
 public static void Write(this IValueWriter writer, string name, SpriteTitle value)
 {
     writer.Write(name, value.ToString());
 }