31 lines
553 B
C#
31 lines
553 B
C#
public struct PhotonMessageInfo
|
|
{
|
|
private readonly int timeInt;
|
|
|
|
public readonly PhotonPlayer sender;
|
|
|
|
public readonly PhotonView photonView;
|
|
|
|
public double timestamp
|
|
{
|
|
get
|
|
{
|
|
uint num = (uint)timeInt;
|
|
double num2 = num;
|
|
return num2 / 1000.0;
|
|
}
|
|
}
|
|
|
|
public PhotonMessageInfo(PhotonPlayer player, int timestamp, PhotonView view)
|
|
{
|
|
sender = player;
|
|
timeInt = timestamp;
|
|
photonView = view;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return string.Format("[PhotonMessageInfo: Sender='{1}' Senttime={0}]", timestamp, sender);
|
|
}
|
|
}
|