コード例 #1
0
    public static void TakeOrder(this DynamicBuffer <OrderBufferElement> buffer, OrderBufferElement order)
    {
        var index = buffer.OrderIndex(order.Requester, order.RequestedResourceName, order.Recipe, order.RequestedAmount);

        order.IsTaken = true;
        buffer[index] = order;
    }