Gruppe22.Client.Mainmap.AddProjectile C# (CSharp) Method

AddProjectile() public method

public AddProjectile ( Backend coords, Backend dir, ProjectileTile tile ) : uint
coords Backend
dir Backend
tile ProjectileTile
return uint
        public uint AddProjectile(Backend.Coords coords, Backend.Direction dir, ProjectileTile tile)
        {
            uint id = 0;
            lock (_mylock)
            {
                id = _maxProjectile;
                _maxProjectile += 1;
            }
            // System.Diagnostics.Debug.WriteLine("Added at " + coords);
            _projectiles.Add(new Projectile(id, this, coords, dir, tile));
            return id;
        }