示例#1
0
        public static string GetOPLHeader(this IEntity e, ClilocLNG lng)
        {
            ObjectPropertyList opl = null;

            try
            {
                opl = GetOPL(e, true);

                if (opl != null)
                {
                    return(opl.DecodePropertyListHeader(lng));
                }

                return(String.Empty);
            }
            catch
            {
                return(String.Empty);
            }
            finally
            {
                if (opl != null)
                {
                    opl.Release();
                }
            }
        }
示例#2
0
        public static IEnumerable <string> GetOPLStrings(this IEntity e, Mobile viewer)
        {
            ObjectPropertyList opl = null;

            try
            {
                opl = GetOPL(e, viewer);

                if (opl != null)
                {
                    return(opl.DecodePropertyList(viewer));
                }

                return(Enumerable.Empty <string>());
            }
            catch
            {
                return(Enumerable.Empty <string>());
            }
            finally
            {
                if (opl != null)
                {
                    opl.Release();
                }
            }
        }
示例#3
0
文件: Packets.cs 项目: Telm/RunUO_EME
        public static void Release( ref ObjectPropertyList p )
        {
            if ( p != null )
                p.Release();

            p = null;
        }