Exemple #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"));
 }
Exemple #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");
 }
Exemple #3
0
 public ObjectColor(SerialisedObject obj)
 {
     Color = obj.GetColor("Color");
 }