public override bool CustomBiomesMatch(Player other) { BiomeHandler modOther = other.GetModPlayer <BiomeHandler>(mod); return(ZoneGlass == modOther.ZoneGlass); // If you have several Zones, you might find the &= operator or other logic operators useful: // bool allMatch = true; // allMatch &= ZoneGlass == modOther.ZoneGlass; // allMatch &= ZoneModel == modOther.ZoneModel; // return allMatch; // Here is an example just using && chained together in one statemeny // return ZoneGlass == modOther.ZoneGlass && ZoneModel == modOther.ZoneModel; }
public override void CopyCustomBiomesTo(Player other) { BiomeHandler modOther = other.GetModPlayer <BiomeHandler>(mod); modOther.ZoneGlass = ZoneGlass; }