예제 #1
0
        public override void CopyCustomBiomesTo(Player other)
        {
            TutorialPlayer otherPlayer = other.GetModPlayer <TutorialPlayer>(mod);

            otherPlayer.zoneBiome = zoneBiome; // This will set other player's biome to the same as thisPlayer
        }
예제 #2
0
        public override bool CustomBiomesMatch(Player other)
        {
            TutorialPlayer otherPlayer = other.GetModPlayer <TutorialPlayer>(mod); // This will get other players using the TutorialPlayerClass

            return(zoneBiome == otherPlayer.zoneBiome);                            // This will return true or false depending on other player
        }