コード例 #1
0
ファイル: RpDialogShow.cs プロジェクト: tbs005/Temu
        public override void Process()
        {
            TeraObject obj = Uid.GetObject(TargetId) as TeraObject;

            if (obj != null)
            {
                Communication.Logic.PlayerLogic.ShowDialog(Connection.Player, obj);
            }
        }
コード例 #2
0
        public void AddTarget(long uniqueId)
        {
            Creature.Creature creature = Uid.GetObject(uniqueId) as Creature.Creature;

            if (creature != null)
            {
                Targets.Add(creature);
            }
        }
コード例 #3
0
ファイル: RpCharacterInspect.cs プロジェクト: tbs005/Temu
        public override void Process()
        {
            Player player = (Player)Uid.GetObject(CharacterId);

            if (player == null)
            {
                return;
            }

            new SpCharacterInspect(player).Send(Connection);
        }
コード例 #4
0
        public void StartGather(Player player, long uid)
        {
            var gather = Uid.GetObject(uid) as Gather;

            if (gather == null)
            {
                return;
            }

            Global.ControllerService.SetController(player, new GatherableController(player, gather));
        }
コード例 #5
0
        public override void Process()
        {
            Player target = (Player)Uid.GetObject(TargetUid);

            if (target != null)
            {
                Communication.Global.ActionEngine.AddRequest(new GuildInvite(target)
                {
                    Owner = Connection.Player
                });
            }
        }
コード例 #6
0
ファイル: ItemService.cs プロジェクト: tbs005/Temu
        public void GetItemInfo(Player player, long itemUid)
        {
            try
            {
                TeraObject itemObject = Uid.GetObject(itemUid) as TeraObject;

                if (itemObject == null || !(itemObject is StorageItem))
                {
                    return;
                }

                new SpItemInfo(((StorageItem)itemObject).ItemId,
                               itemUid,
                               "",
                               player.PlayerData.Name)
                .Send(player);
            }
            // ReSharper disable EmptyGeneralCatchClause
            catch
            // ReSharper restore EmptyGeneralCatchClause
            {
                //Nothing
            }
        }