Terrarium.Game.GameEngine.ReceiveTeleportation C# (CSharp) Метод

ReceiveTeleportation() публичный Метод

Receieves a teleported state either from a remote peer or the local peer.
public ReceiveTeleportation ( Object teleportedObject, bool teleportedToSelf ) : void
teleportedObject Object The teleported object.
teleportedToSelf bool Whether the teleportation is local or from a remote peer.
Результат void
        public void ReceiveTeleportation(Object teleportedObject, bool teleportedToSelf)
        {
            if (null == teleportedObject)
            {
                throw new Exception("Null object passed into ReceiveTeleportation");
            }

            TeleportState teleportState = (TeleportState) teleportedObject;
            teleportState.TeleportedToSelf = teleportedToSelf;
            _newOrganismQueue.Enqueue(teleportState);
        }