コード例 #1
0
ファイル: Henhouse.cs プロジェクト: PirateSeal/ChickenFarmer
        public Henhouse(BuildingCollection ctx, IBuildingFactory factory, Vector posVector)
        {
            CtxCollection = ctx ?? throw new ArgumentNullException(nameof(ctx));
            PosVector     = posVector;
            Racks         = new List <IRack> {
                new SeedRack(this)
            };
            Factory       = factory;
            MaxCapacity   = FarmOptions.DefaultHenHouseLimit;
            Lvl           = 0;
            Chikens       = new List <Chicken>(MaxCapacity * Lvl);
            DyingChickens = new List <Chicken>();
            var interactionZonePos = new Vector(posVector.X + 20, PosVector.Y + 96);

            InteractionZone = new InteractionZone(interactionZonePos, 15, 15);
        }
コード例 #2
0
ファイル: Henhouse.cs プロジェクト: PirateSeal/ChickenFarmer
 public bool CheckIfInside(InteractionZone interactionZone)
 {
     return(true);
 }