public void Collide(ICollidable o) { Collided = true; if (o is ILiquid) { ILiquid liquid = o as ILiquid; slow = liquid.Density; IsGrounded = false; JumpsLeft = 2; } else { slow = DefaultSlowValue; Vector2 movement = actionManager.MoveObject((ICollidable)this, o); if (movement.Y < 0) { IsGrounded = true; JumpsLeft = 2; Velocity.Y = 0; } if (movement.Y > 0 && Velocity.Y < 0) { Velocity.Y = 0; } tomove = movement; //Position += movement; } }
public void Fill(ILiquid liquid, CapacityUnit capacity) { if (Utensil.Capacity.Value - LiquidLevel.Value <= capacity.Value) { throw new ArgumentException("Liquid capacity cannot exceed kettle capacity!"); } LiquidLevel.Value += capacity.Value; }
public void Init(MonoBehaviour monoBehaviour, float tileScale) { TileSize = tileScale; liquid = new Liquid(mapGenerator); Container.Inject(liquid); mapGenerator.Generate(liquid); //liquidUpdateThread = new Thread(LiquidUpdate); sleepTime = (int)(Time.fixedDeltaTime * 1000); //liquidUpdateThread.Start(); }
public ILiquid MixedWith(ILiquid other) { _other = other; return(this); }
public void GetWater() { _liquid = LiquidProvider.GetLiquid(); }
public StandardLiquidDispencer(ILiquid liquid) { DispencerSize = 10; LiquidType = liquid; }
public void Drink(ILiquid liquid) { throw new System.NotImplementedException(); }
public CoffeeMaker(ILiquid liquid, IPowderedCoffee powderedCoffee) { _liquid = liquid; _powderedCoffee = powderedCoffee; }
public BottleData(ILiquid liquid = null) =>
public Dog(ILiquid liquid) { this.liquid = liquid; }
public void SplashWater(ILiquid Monster) { Monster.Douse("Splash"); // Kills with holy water }
public static ILiquid With <TSyrup>(this ILiquid self) where TSyrup : Syrup, new() => new TSyrup().MixedWith(self);