Example #1
0
 public PedProp this[PedProps propId]
 {
     get
     {
         PedProp prop = null;
         if (!_pedProps.TryGetValue(propId, out prop))
         {
             prop = new PedProp(_ped, propId);
             _pedProps.Add(propId, prop);
         }
         return(prop);
     }
 }
Example #2
0
        public PedProp[] GetAllProps()
        {
            List <PedProp> props = new List <PedProp>();

            foreach (PedProps propId in Enum.GetValues(typeof(PedProps)))
            {
                PedProp prop = this[propId];
                if (prop.HasAnyVariations)
                {
                    props.Add(prop);
                }
            }
            return(props.ToArray());
        }