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