/// <summary> /// Copy constructor used to place independent objects on the grid /// </summary> /// <param name="obj"></param> public AnnoObject(AnnoObject obj) { Size = obj.Size; Color = obj.Color; Position = obj.Position; Label = obj.Label; Icon = obj.Icon; Radius = obj.Radius; Borderless = obj.Borderless; Road = obj.Road; // note: this is not really a copy, just a reference, but it is not supposed to change anyway //BuildCosts = obj.BuildCosts; }
/// <summary> /// Copy constructor used to place independent objects on the grid /// </summary> /// <param name="obj"></param> public AnnoObject(AnnoObject obj) { Size = obj.Size; Color = obj.Color; Position = obj.Position; Label = obj.Label; Icon = obj.Icon; Radius = obj.Radius; Borderless = obj.Borderless; Road = obj.Road; // note: this is not really a copy, just a reference, but it is not supposed to change anyway //BuildCosts = obj.BuildCosts; }