コード例 #1
0
ファイル: Player.cs プロジェクト: Soulflare3/PUServer
        public override bool OnCreatureMoved(Creature creature, Position oldPosition, Position newPosition, bool isTeleport)
        {
            bool movedInsideViewport = base.OnCreatureMoved(creature, oldPosition, newPosition, isTeleport);

            if (movedInsideViewport && creature.UniqueId != this.UniqueId)
            {
                if (clientConnection != null)
                {
                    clientConnection.CreatureMoved(creature, oldPosition, newPosition, isTeleport);
                }
            }

            return(movedInsideViewport);
        }