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