Пример #1
0
 public EntitySprite(SerialisedObject obj)
 {
     Name  = obj.Get <string>("Name");
     Scale = obj.Get <float>("Scale");
     Color = obj.GetColor("Color");
     Size  = new SizeF(obj.Get <float>("Width"), obj.Get <float>("Height"));
 }
Пример #2
0
 public Visgroup(SerialisedObject obj)
 {
     Objects = new ThreadSafeSet <IMapObject>();
     ID      = obj.Get <long>("ID");
     Name    = obj.Get <string>("Name");
     Visible = obj.Get <bool>("Visible");
     Colour  = obj.GetColor("Colour");
 }
Пример #3
0
 public ObjectColor(SerialisedObject obj)
 {
     Color = obj.GetColor("Color");
 }