예제 #1
0
        private void Update(WorldForm wf, ref MapSelection sel, Quaternion q)
        {
            Entity?.SetPivotOrientationFromWidget(q);

            if (Entity != sel.EntityDef)
            {
                wf.SelectEntity(Entity);
            }
            wf.SetWidgetRotation(q);
        }
예제 #2
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 p)
        {
            Entity?.SetPivotPositionFromWidget(p);

            if (Entity != sel.EntityDef)
            {
                wf.SelectEntity(Entity);
            }
            wf.SetWidgetPosition(p);
        }
예제 #3
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 s)
        {
            Entity?.SetScale(s);

            if (Entity != sel.EntityDef)
            {
                wf.SelectEntity(Entity);
            }
            wf.SetWidgetScale(s);
        }
예제 #4
0
        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);
            }
        }
예제 #5
0
        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);
            }
        }
예제 #6
0
        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);
            }
        }