Side.TakeSide C# (CSharp) Method

TakeSide() public method

public TakeSide ( LaunchPacket, info, int team, bool isPlayer = false ) : void
info LaunchPacket,
team int
isPlayer bool
return void
    public void TakeSide(LaunchPacket info, int team, bool isPlayer = false)
    {
        //owned by same team

        if (info.Paint)
        {
            if (timeToBeTaken < 0 || // if there is no time to be taken
            info.GameTimeETA < timeToBeTaken && timeLastTaken + LOCKINTERVAL < info.GameTimeETA)//if eta is less then the current time to be taken and we can take it becuase its not locked
            {
                willPaint = true;
            }
        }

        timeToBeTaken = info.GameTimeETA;
        currentTeamClaim = team;
        _isPlayer = isPlayer;
    }