private ILocValue FuncAttrib(FluentBundle bundle, LocArgs args)
        {
            if (args.Args.Count < 2)
            {
                return(new LocValueString("other"));
            }

            ILocValue entity0 = args.Args[0];

            if (entity0.Value != null)
            {
                EntityUid entity  = (EntityUid)entity0.Value;
                ILocValue attrib0 = args.Args[1];
                if (TryGetEntityLocAttrib(entity, attrib0.Format(new LocContext(bundle)), out var attrib))
                {
                    return(new LocValueString(attrib));
                }
            }

            return(new LocValueString("other"));
        }
        private ILocValue FuncAttrib(MessageContext context, LocArgs args)
        {
            if (args.Args.Count < 2)
            {
                return(new LocValueString("other"));
            }

            ILocValue entity0 = args.Args[0];

            if (entity0.Value != null)
            {
                IEntity   entity  = (IEntity)entity0.Value;
                ILocValue attrib0 = args.Args[1];
                if (TryGetEntityLocAttrib(entity, attrib0.Format(new LocContext(context)), out var attrib))
                {
                    return(new LocValueString(attrib));
                }
            }

            return(new LocValueString("other"));
        }
 public string AsString()
 {
     return(WrappedValue.Format(new LocContext()));
 }