public SpawnedObject getSpawnedObjectInformation(Area area) { SpawnedObject.Builder builder = SpawnedObject.CreateBuilder(); string description = WorldMap.getDescriptionForStarAt(area.position.x, area.position.y); GlobalPosition.Builder pBuilder = GlobalPosition.CreateBuilder(); pBuilder.SetAreaX(area.position.x); pBuilder.SetAreaY(area.position.y); pBuilder.SetLocalX((int)gameObject.transform.position.x); pBuilder.SetLocalY((int)gameObject.transform.position.z); builder.SetObjectPosition(pBuilder.Build()); builder.SetObjectData(getDirectObject().getDirectObjectAsProtobuf()); builder.SetDescription(description); EnemyData.Builder eBuilder = EnemyData.CreateBuilder(); eBuilder.SetHealthRemaining((int)hp); builder.SetEnemyAttributes(eBuilder.Build()); return(builder.Build()); }