Ejemplo n.º 1
0
 public EntityNode(EntityNode parent, EntityType type, string Name)
 {
     this.parent = parent;
     this.Childs = new ObservableCollection <EntityNode>();
     this.Name   = Name;
     this.Type   = type;
 }
Ejemplo n.º 2
0
 public EntityScreen(string name, EntityNode parent)
     : base(parent, EntityType.Screen, name)
 {
     //Default values
     Header      = "Test Screen";
     ScreenSizeX = 320;
     ScreenSizeY = 280;
     ShowGrid    = true;
     ScreenScale = 1;
 }
Ejemplo n.º 3
0
 public EntitySprite(EntityNode node, string name, BitmapImage imageSource)
     : base(node, EntityType.Sprite, name)
 {
     this.imageSource = imageSource;
     width            = imageSource.PixelWidth;
     height           = imageSource.PixelHeight;
     centerX          = width / 2;
     centerY          = height / 2;
     size             = (int)imageSource.StreamSource.Length;
 }
Ejemplo n.º 4
0
 public EntityFolder CreateFolder(EntityNode parent, String name)
 {
     return(new EntityFolder(name, parent));
 }
Ejemplo n.º 5
0
 public EntityFolder(string name, EntityNode parent)
     : base(parent, EntityType.Folder, name)
 {
 }
Ejemplo n.º 6
0
 public EntityObject(EntityNode parent, string name)
     : base(parent, EntityType.Object, name)
 {
     Events = new ObservableCollection <BaseEvent>();
 }