상속: ProcessedContent
예제 #1
0
 private static bool SpriteRequirementsMet(Sprite sp, double version)
 {
     //TODO: If a vector based Sprite, make sure it has a scale
     return true;
 }
예제 #2
0
 private static void ProcessSprite(ref Sprite sp, XmlNode spriteComponent, double version)
 {
     //TODO: Extra components to a Sprite: If a vector based Sprite, get the scale of the sprite
 }
예제 #3
0
 private static void SpecifySpriteRequirements(Sprite sp, double version, ContentProcessorContext context)
 {
     //If vector based Sprite, print out that a scale is required and default to a scale of 1 for 1
 }
예제 #4
0
 private static Sprite CopySprite(Sprite src)
 {
     if (src is BitmapSprite)
     {
         BitmapSprite dstB = new BitmapSprite();
         dstB.SpriteID = ((BitmapSprite)src).SpriteID;
         dstB.Visible = src.Visible;
         dstB.DrawOrder = src.DrawOrder;
         return dstB;
     }
     return null;
 }