public Region(World world_, World.Coord2D coord_) { world = world_; coord = coord_; name = coord_.x.ToString() + "-" + coord_.y.ToString(); population = world.rnd.Next(1, 5); if (onCreatedCallback != null) { onCreatedCallback(this); } }
public static Vector2 ToVector2(this World.Coord2D input) { return(new Vector2(input.x, input.y)); }