コード例 #1
0
        public SystemMessage AddName(L2Object obj)
        {
            if (obj is L2Player)
            {
                return(AddPlayerName(((L2Player)obj).Name));
            }
            if (obj is L2Npc)
            {
                return(AddNpcName(((L2Npc)obj).NpcId));
            }
            if (obj is L2Item)
            {
                return(AddItemName(((L2Item)obj).Template.ItemId));
            }

            return(AddString(obj.AsString()));
        }