public override void InteractWith(InteractiveStatus s, PhysicalInteractionEntity i) { if (this.currentSetOnElement != null) { this.currentSetOnElement(false); this.currentSetOnElement = null; } switch (s.element.type) { case ChemicalElement.Fire: this.currentSetOnElement += this.SetOnFire; break; default: this.currentSetOnElement = null; break; } if (this.currentSetOnElement != null) { this.currentSetOnElement(true); } }
/* ---------------------------------------------------------------------------------------------*/ /* ---------------------------------------------------------------------------------------------*/ /* ---------------------------------------------------------------------------------------------*/ /* ------------------------------------ INTERACT FUNCTIONS -------------------------------------*/ /* ---------------------------------------------------------------------------------------------*/ /* ---------------------------------------------------------------------------------------------*/ /* ---------------------------------------------------------------------------------------------*/ public override void InteractWith(InteractiveStatus s, PhysicalInteractionEntity i) { // to do }