method 1 setting an int/string/whatever to value of message.GetInt() :
- Code: Select all
GotMessage(Player p, Message message){
//do whatever
int theInt = message.getInt(0);
someFunction(theInt);
someOtherFunction(theInt);
someOtherOtherFunction(theInt);
//etc....
}
method 2 just using message.GetInt() (too lazy to manage all the various Ints and strings and booleans etc.) :
- Code: Select all
GotMessage(Player p, Message message){
//do whatever
someFunction(message.getInt(0));
someOtherFunction(message.getInt(0));
someOtherOtherFunction(message.getInt(0));
//etc....
}
I am currently using method 2 because, as stated, i'm lazy and dont mind typing the few extra characters. is it less efficient that method 1? does it even make a difference in either flash or c#?