Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
829 B

  1. namespace Oculus.Platform.Samples.VrHoops
  2. {
  3. using Oculus.Platform.Models;
  4. public class RemotePlayer : Player
  5. {
  6. private User m_user;
  7. private P2PNetworkGoal m_goal;
  8. public User User
  9. {
  10. set { m_user = value; }
  11. }
  12. public ulong ID
  13. {
  14. get { return m_user.ID; }
  15. }
  16. public P2PNetworkGoal Goal
  17. {
  18. get { return m_goal; }
  19. set { m_goal = value; }
  20. }
  21. public override uint Score
  22. {
  23. set
  24. {
  25. // For now we ignore the score determined from locally scoring backets.
  26. // To get an indication of how close the physics simulations were between devices,
  27. // or whether the remote player was cheating, an estimate of the score could be
  28. // kept and compared against what the remote player was sending us.
  29. }
  30. }
  31. public void ReceiveRemoteScore(uint score)
  32. {
  33. base.Score = score;
  34. }
  35. }
  36. }