public Hitbox GetHitBox() { Hitbox hitbox = new Hitbox(); hitbox.X = Position.X; hitbox.Y = Position.Y; ProjectileData data = GetData(); if (data != null) { hitbox.Width = data.BoundsWidth; hitbox.Height = data.BoundsHeight; } return(hitbox); }
public static void PreLoadData() { ClassData.ReloadData(); DropTableData.ReloadData(); EnemyData.ReloadData(); EventData.ReloadData(); ItemData.ReloadData(); MapInfo.ReloadData(); ProjectileData.ReloadData(); CraftableData.ReloadData(); ParticleEmitterData.ReloadData(); QuestData.ReloadData(); ShopData.ReloadData(); SpriteData.ReloadData(); SystemData.ReloadData(); SystemVariable.ReloadData(); TilesetData.ReloadData(); }
public static void AddProjectileData(ProjectileData data) { _projectileData.Add(data); }
public ProjectileData GetData() { return(ProjectileData.GetProjectileData(ProjectileID)); }