SM.Core: + Particle System + scriptable system for scripts ~ Moved Texts- and Particles-namespace to SM.Base.Drawing ~ Changed how you tell the stopwatch to pause. (From method to property) ~ Fixed Randomize.GetFloat(min, max) ~ Now automaticly adds the DrawingBase.Transformation to DrawContext.ModelMatrix. No need to change DrawContext.Instances[0], anymore. SM.OGL: + "one-file-shader"-support SM2D: + DrawParticles (Control for Texture and Color not there yet) ~ Changed coordnate system to upper-right as (1,1) ~ Changed default shader to "one-file-shader"
46 lines
No EOL
1.2 KiB
C#
46 lines
No EOL
1.2 KiB
C#
#region usings
|
|
|
|
using System.Collections.Generic;
|
|
using SM.Base.Contexts;
|
|
|
|
#endregion
|
|
|
|
namespace SM.Base.Scene
|
|
{
|
|
/// <summary>
|
|
/// Adds requirements to object, to be properly used as a update and/or draw item.
|
|
/// </summary>
|
|
public interface IShowItem
|
|
{
|
|
/// <summary>
|
|
/// Parent of the object.
|
|
/// </summary>
|
|
object Parent { get; set; }
|
|
|
|
/// <summary>
|
|
/// Contains the name for the object.
|
|
/// </summary>
|
|
string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Contains specific flags for the object.
|
|
/// </summary>
|
|
ICollection<string> Flags { get; set; }
|
|
|
|
/// <summary>
|
|
/// Tells the object to draw its object.
|
|
/// </summary>
|
|
/// <param name="context"></param>
|
|
void Draw(DrawContext context);
|
|
|
|
/// <summary>
|
|
/// Action, that is called, when the object was added to a GenericItemCollection.
|
|
/// </summary>
|
|
void OnAdded(object sender);
|
|
|
|
/// <summary>
|
|
/// Action, that is called, when the object was removed from a GenericItemCollection.
|
|
/// </summary>
|
|
void OnRemoved(object sender);
|
|
}
|
|
} |