Ejemplo n.º 1
0
 public void OnTeleportApply(Frame frame)
 {
     for (int eid = 0; eid < transformElements.Length; eid++)
     {
         TransformElement te = transformElements[eid];
         if (te.teleportOverride)
         {
             te.Teleport(frame.elements[eid].transform);
         }
     }
 }
Ejemplo n.º 2
0
 public void OnSvrTeleportCmd()
 {
     for (int eid = 0; eid < transformElements.Length; eid++)
     {
         TransformElement te = transformElements[eid];
         if (te.teleportOverride)
         {
             te.Teleport();
         }
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Teleport all elements that are flagged with teleportOverride = true;
        /// </summary>
        public void OnRcvSvrTeleportCmd(Frame frame)
        {
            for (int eid = 0; eid < elementCount; ++eid)
            {
                TransformElement te = transformElements[eid];

                // TODO: this likely is only wired to work correctly with offtick
                if (te.teleportOverride)
                {
                    te.Teleport(frame);
                }
            }
        }
Ejemplo n.º 4
0
        //public void OnSvrTeleportCmd()
        //{
        //	for (int eid = 0; eid < elementCount; ++eid)
        //	{
        //		TransformElement te = transformElements[eid];
        //		if (te.teleportOverride)
        //			te.Teleport();
        //	}

        //}

        public void OnTeleportApply(Frame frame)
        {
            for (int eid = 0; eid < elementCount; ++eid)
            {
                TransformElement te = transformElements[eid];
                //TODO this should be checking for the elements mask?
                // TODO: Uncertain about this check for null - should be testing for whether or not this element has any info to teleport with.
                if (te.teleportOverride)
                {
                    te.Teleport(frame);
                }
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Teleport all elements that are flagged with teleportOverride = true;
        /// </summary>
        public void OnRcvSvrTeleportCmd(Frame frame)
        {
            for (int eid = 0; eid < transformElements.Length; eid++)
            {
                TransformElement te = transformElements[eid];

                // TODO: this likely is only wired to work correctly with offtick
                if (te.teleportOverride)
                {
                    te.Teleport(frame.elements[eid].compTrans, frame.elements[eid].transform);
                }
            }
        }