public ActionResult <string> Get(EntityIdList ids) { if (ids == null) { throw new Exception("Why did FV not catch this?"); } return(string.Join(",", ids.Select(x => x))); }
public void Server_TryOpenMarket(RPCMessage msg) { if (!CanPlayerInteract(msg.player)) { return; } if (!_marketplace.IsValid(true)) { Debug.LogError("Marketplace is not set", this); return; } using (EntityIdList entityIdList = Facepunch.Pool.Get <EntityIdList>()) { entityIdList.entityIds = Facepunch.Pool.GetList <uint>(); GetDeliveryEligibleVendingMachines(entityIdList.entityIds); ClientRPCPlayer(null, msg.player, "Client_OpenMarket", entityIdList); } }
private int GenerateHashCode() { unchecked { int hash = 17; if (RequestCacheKey != null) { hash = hash * 92821 + RequestCacheKey.GetHashCode( ); } if (EntityIdList != null) { hash = hash * 92821 + EntityIdList.GetHashCode( ); } if (Filter != null) { hash = hash * 92821 + Filter.GetHashCode( ); } return(hash); } }