GlobalParametersExample.cs 441 B

123456789101112131415161718
  1. namespace I2.Loc
  2. {
  3. public class GlobalParametersExample : RegisterGlobalParameters
  4. {
  5. public override string GetParameterValue( string ParamName )
  6. {
  7. if (ParamName == "WINNER")
  8. return "Javier"; // For your game, get this value from your Game Manager
  9. if (ParamName == "NUM PLAYERS")
  10. return 5.ToString();
  11. return null;
  12. }
  13. }
  14. }