コード例 #1
0
 public PlayerFireCmd(byte[] bytes, int offset = 0) :
     base(CommandType.PlayerFire)
 {
     pID     = Serialization.DecodeInt(bytes, offset);
     offset += 4;
     sDir    = Serialization.DecodeVec2(bytes, offset);
     offset += Vector2.SizeInBytes;
     sPos    = Serialization.DecodeVec2(bytes, offset);
     offset += Vector2.SizeInBytes;
 }