﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using RimWorld;
using Verse;

namespace MizuMod
{
    public class Building_DrawingWaterSpot : Building_WorkTable, IBuilding_DrinkWater
    {
        public bool IsActivated
        {
            get
            {
                return true;
            }
        }

        public WaterType WaterType
        {
            get
            {
                return this.Map.terrainGrid.TerrainAt(this.Position).ToWaterType();
            }
        }

        public float WaterVolume
        {
            get
            {
                return 100000f;
            }
        }

        public bool IsEmpty
        {
            get
            {
                return false;
            }
        }

        public bool CanDrinkFor(Pawn p)
        {
            // 常時使用可能
            return true;
        }

        public bool CanDrawFor(Pawn p)
        {
            // 手が使えればいつでも水汲み可能
            return p.CanManipulate();
        }

        public void DrawWater(float amount)
        {
            // 何もしない
        }
    }
}
