Terraria.ModLoader.PlayerHooks.SyncPlayer C# (CSharp) Method

SyncPlayer() public static method

public static SyncPlayer ( Player player, int toWho, int fromWho, bool newPlayer ) : void
player Player
toWho int
fromWho int
newPlayer bool
return void
        public static void SyncPlayer(Player player, int toWho, int fromWho, bool newPlayer)
        {
            foreach (ModPlayer modPlayer in player.modPlayers)
            {
                modPlayer.SyncPlayer(toWho, fromWho, newPlayer);
            }
        }