public PedComponent this[PedComponentType componentId] { get { if (!_pedComponents.TryGetValue(componentId, out PedComponent variation)) { variation = new PedComponent(_ped, componentId); _pedComponents.Add(componentId, variation); } return(variation); } }
internal PedComponent(Ped ped, PedComponentType componentId) { _ped = ped; Type = componentId; }