Пример #1
0
 public EntityNode(EntityNode parent, EntityType type, string Name)
 {
     this.parent = parent;
     this.Childs = new ObservableCollection <EntityNode>();
     this.Name   = Name;
     this.Type   = type;
 }
Пример #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;
 }
Пример #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;
 }
Пример #4
0
 public EntityFolder CreateFolder(EntityNode parent, String name)
 {
     return(new EntityFolder(name, parent));
 }
Пример #5
0
 public EntityFolder(string name, EntityNode parent)
     : base(parent, EntityType.Folder, name)
 {
 }
Пример #6
0
 public EntityObject(EntityNode parent, string name)
     : base(parent, EntityType.Object, name)
 {
     Events = new ObservableCollection <BaseEvent>();
 }