public P2PPackage(object v, P2PPackageType type) { this.type = type; value = v; Object_identity = -1; ObjectSpawnID = -1; }
public P2PPackage(object v, P2PPackageType type, Identity identity) { this.type = type; value = v; if (identity != null) { Object_identity = identity.ID; ObjectSpawnID = identity.SpawnID; } else { Object_identity = -1; ObjectSpawnID = -1; } }