private void Update(WorldForm wf, ref MapSelection sel, Quaternion q) { Entity?.SetPivotOrientationFromWidget(q); if (Entity != sel.EntityDef) { wf.SelectEntity(Entity); } wf.SetWidgetRotation(q); }
private void Update(WorldForm wf, ref MapSelection sel, Vector3 p) { Entity?.SetPivotPositionFromWidget(p); if (Entity != sel.EntityDef) { wf.SelectEntity(Entity); } wf.SetWidgetPosition(p); }
private void Update(WorldForm wf, ref MapSelection sel, Vector3 s) { Entity?.SetScale(s); if (Entity != sel.EntityDef) { wf.SelectEntity(Entity); } wf.SetWidgetScale(s); }
private void Update(WorldForm wf, ProjectForm pf, ref MapSelection sel, Quaternion q) { Entity?.SetOrientationFromWidget(q); if (Entity != sel.EntityDef) { wf.SelectEntity(Entity); } wf.SetWidgetRotation(q); if ((Entity != null) && (pf != null)) { pf.OnWorldEntityModified(Entity); } }
private void Update(WorldForm wf, ProjectForm pf, ref MapSelection sel, Vector3 p) { Entity?.SetPositionFromWidget(p); if (Entity != sel.EntityDef) { wf.SelectEntity(Entity); } wf.SetWidgetPosition(Entity.WidgetPosition); if ((Entity != null) && (pf != null)) { pf.OnWorldEntityModified(Entity); } }
private void Update(WorldForm wf, ProjectForm pf, ref MapSelection sel, Vector3 s) { Entity?.SetScale(s); if (Entity != sel.EntityDef) { wf.SelectEntity(Entity); } wf.SetWidgetScale(s); if ((Entity != null) && (pf != null)) { pf.OnWorldEntityModified(Entity); } }