public RectangleItem() { ResetOnLoad = new CustomNode("string"); Scale = new CustomNode("string"); BodyScale = new CustomNode("string"); ManualBodyScale = new CustomNode("string"); Scale.value = ""; }
public Item() { ArchetypeId = new CustomNode("string"); ArchetypeId.value = PositionOrig.X.ToString(); Position = new CustomNode("vec2"); Rotation = new CustomNode("float"); ActivatedBySecondaryObjectIds = new CustomNode("string"); SecondaryObjectId = new CustomNode("string"); ActivatesObjectWithSecondaryId = new CustomNode("string"); ActivatedBySecondaryObjectIds.value = "0,0,0,0"; SecondaryObjectId.value = "0"; ActivatesObjectWithSecondaryId.value = "0"; CustomProperties = new SerializableDictionary(); }
public RectangleItem(Rectangle rect) : base() { PositionOrig = rect.Location.ToVector2(); Width = rect.Width; Height = rect.Height; PositionOrig.X += (Width / 2); PositionOrig.Y += (Height / 2); Scale = new CustomNode("string"); BodyScale = new CustomNode("string"); ResetOnLoad = new CustomNode("string"); ManualBodyScale = new CustomNode("string"); ArchetypeId = new CustomNode("string"); Rotation.value = "0"; OnTransformed(); FillColor = Constants.Instance.ColorPrimitives; }
public override Item clone() { RectangleItem result = (RectangleItem)this.MemberwiseClone(); result.CustomProperties = new SerializableDictionary(CustomProperties); result.Scale = new CustomNode("string"); result.BodyScale = new CustomNode("string"); result.ManualBodyScale.value = this.ManualBodyScale.value; result.Rotation = new CustomNode("string"); result.Position = new CustomNode("string"); result.ResetOnLoad = new CustomNode("string"); result.SecondaryObjectId = new CustomNode("string"); result.ActivatesObjectWithSecondaryId = new CustomNode("string"); result.ActivatedBySecondaryObjectIds = new CustomNode("string"); ArchetypeId = new CustomNode("string"); result.hovering = false; result.OnTransformed(); return(result); }
public CircleItem() { Scale = new CustomNode("string"); }