/// <summary> /// Returns a string that represents the current object. /// </summary> /// <returns> /// A string that represents the current object. /// </returns> public override string ToString() { return(string.Format("Id: {0}, QuarryContainerId: {1}, EntityIds: {2}, TicksSinceUpdate: {3}", Id, QuarryContainerId, string.Join(", ", EntityIds.Select(i => i.ToString()).ToArray()), TicksSinceUpdate)); }
public IEnumerable <BaseEntity> GetEntities() { return(EntityIds.Select(entityId => BaseNetworkable.serverEntities.Find(entityId)).OfType <BaseEntity>()); }