Пример #1
0
 /// <summary>
 /// Get a <see cref="Effect"/> that was already loaded into memory.
 /// </summary>
 /// <param name="name">The name assigned to a previously loaded effect.</param>
 /// <returns>The loaded <see cref="Effect"/> associated with the given name.</returns>
 public static Effect GetEffect(string name)
 {
     return(effects.Get(name));
 }
Пример #2
0
 /// <summary>
 /// Get a <see cref="BMFont"/> that was already loaded into memory.
 /// </summary>
 /// <param name="name">The name assigned to a previously loaded font.</param>
 /// <returns>The loaded <see cref="BMFont"/> associated with the given name.</returns>
 public static BMFont GetFont(string name)
 {
     return(fonts.Get(name));
 }
Пример #3
0
 /// <summary>
 /// Get a <see cref="Texture2D"/> that was already loaded into memory.
 /// </summary>
 /// <param name="name">The name assigned to a previously loaded image.</param>
 /// <returns>The loaded <see cref="Texture2D"/> associated with the given name.</returns>
 public static Texture2D GetImage(string name)
 {
     return(textures.Get(name));
 }
Пример #4
0
 /// <summary>
 /// Get <see cref="SpriteData"/> that was previously registered.
 /// </summary>
 /// <param name="name">The name given to the sprite data that was previously registered.</param>
 /// <returns>The registered sprite data with the given name.</returns>
 public static SpriteData GetSpriteData(string name)
 {
     return(spriteDataLookup.Get(name));
 }
Пример #5
0
 /// <summary>
 /// Get a <see cref="SoundEffect"/> that was already loaded into memory.
 /// </summary>
 /// <param name="name">The name assigned to a previously loaded sound effect.</param>
 /// <returns>The loaded <see cref="SoundEffect"/> associated with the given name.</returns>
 public static SoundEffect GetSoundEffect(string name)
 {
     return(soundEffects.Get(name));
 }
Пример #6
0
 /// <summary>
 /// Get <see cref="ShapeData"/> that was previously registered.
 /// </summary>
 /// <param name="name">The name given to shape data that was already registered.</param>
 /// <returns>The registered shape data with the given name.</returns>
 public static ShapeData GetShapeData(string name)
 {
     return(shapes.Get(name));
 }
Пример #7
0
 /// <summary>
 /// Get a <see cref="DebugEntry"/> that was previously registered.
 /// </summary>
 /// <param name="name">The name given to the debug entry that was previously registered.</param>
 /// <returns>The registered debug entry with the given name.</returns>
 public static DebugEntry GetDebugEntry(string name)
 {
     return(debugEntries.Get(name));
 }
Пример #8
0
 /// <summary>
 /// Get a <see cref="Camera"/> that was previously registered.
 /// </summary>
 /// <param name="name">The name given to the camera that was previously registered.</param>
 /// <returns>The registered camera with the given name.</returns>
 public static Camera GetCamera(string name)
 {
     return(cameras.Get(name));
 }
Пример #9
0
 /// <summary>
 /// Get an <see cref="InputProfile"/> that was previously saved.
 /// </summary>
 /// <param name="name">The name of the input profile that was previously saved.</param>
 /// <returns>The saved input profile with the given name.</returns>
 public static InputProfile GetProfile(string name)
 {
     return(profiles.Get(name));
 }
Пример #10
0
 /// <summary>
 /// Get a <see cref="Scene"/> that was previously registered.
 /// </summary>
 /// <param name="name">The name given to the scene that was previously registered.</param>
 /// <returns>The registered scene with the given name.</returns>
 public static Scene GetScene(string name)
 {
     return(scenes.Get(name));
 }