Exemple #1
0
        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);
        }
Exemple #2
0
 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();
 }
Exemple #3
0
 public static void AddProjectileData(ProjectileData data)
 {
     _projectileData.Add(data);
 }
Exemple #4
0
 public ProjectileData GetData()
 {
     return(ProjectileData.GetProjectileData(ProjectileID));
 }