I am writing a program using a namespace that I did not write. Inside this namespace there is a class called Message. Now this is where I am getting confused. I am able to compile code similar to what is below:
void Func(Message message)
{
BasePlayer player = message.Player();
}
The reason I am confused is that the method Player does not exist in the Message class and Message does not inherit any other class. Could someone explain how this could be happening? I'd be happy to share more info on request.