Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions BlazorGame.Library/Audio/SoundEffect.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;

namespace BlazorGame.Framework.Audio
{
public class SoundEffect : IContent, IDisposable
{
public string Name { get; set; }
public string Path { get; set; }

public bool Play()
{
throw new NotImplementedException();
}

protected virtual void Dispose(bool value) { }

public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>


<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components" Version="3.1.6" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.1.6" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="5.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="5.0.0" />
</ItemGroup>

</Project>
177 changes: 177 additions & 0 deletions BlazorGame.Library/BoundingBox.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
using System;
using System.Collections.Generic;

namespace BlazorGame.Framework
{
public struct BoundingBox : IEquatable<BoundingBox>
{
public const int CornerCount = 8;
public Vector3 Max;
public Vector3 Min;

public BoundingBox(Vector3 min, Vector3 max)
{
throw new NotImplementedException();
}

public ContainmentType Contains(BoundingBox box)
{
throw new NotImplementedException();
}

public void Contains(ref BoundingBox box, out ContainmentType result)
{
throw new NotImplementedException();
}

public ContainmentType Contains(BoundingFrustum frustum)
{
throw new NotImplementedException();
}

public ContainmentType Contains(BoundingSphere sphere)
{
throw new NotImplementedException();
}

public void Contains(ref BoundingSphere sphere, out ContainmentType result)
{
throw new NotImplementedException();
}

public ContainmentType Contains(Vector3 point)
{
throw new NotImplementedException();
}

public void Contains(ref Vector3 point, out ContainmentType result)
{
throw new NotImplementedException();
}

public static BoundingBox CreateFromPoints(Vector3[] points, int index = 0, int count = -1)
{
throw new NotImplementedException();
}

public static BoundingBox CreateFromPoints(IEnumerable<Vector3> points)
{
throw new NotImplementedException();
}

public static BoundingBox CreateFromPoints(List<Vector3> points, int index = 0, int count = -1)
{
throw new NotImplementedException();
}

public static BoundingBox CreateFromSphere(BoundingSphere sphere)
{
throw new NotImplementedException();
}

public static void CreateFromSphere(ref BoundingSphere sphere, out BoundingBox result)
{
throw new NotImplementedException();
}

public static BoundingBox CreateMerged(BoundingBox original, BoundingBox additional)
{
throw new NotImplementedException();
}

public static void CreateMerged(ref BoundingBox original, ref BoundingBox additional, out BoundingBox result)
{
throw new NotImplementedException();
}

public void Deconstruct(out Vector3 min, out Vector3 max)
{
throw new NotImplementedException();
}

public bool Equals(BoundingBox other)
{
throw new NotImplementedException();
}

public override bool Equals(object obj)
{
throw new NotImplementedException();
}

public Vector3[] GetCorners()
{
throw new NotImplementedException();
}

public void GetCorners(Vector3[] corners)
{
throw new NotImplementedException();
}

public override int GetHashCode()
{
throw new NotImplementedException();
}

public bool Intersects(BoundingBox box)
{
throw new NotImplementedException();
}

public void Intersects(ref BoundingBox box, out bool result)
{
throw new NotImplementedException();
}

public bool Intersects(BoundingFrustum frustum)
{
throw new NotImplementedException();
}

public bool Intersects(BoundingSphere sphere)
{
throw new NotImplementedException();
}

public void Intersects(ref BoundingSphere sphere, out bool result)
{
throw new NotImplementedException();
}

public PlaneIntersectionType Intersects(Plane plane)
{
throw new NotImplementedException();
}

public void Intersects(ref Plane plane, out PlaneIntersectionType result)
{
throw new NotImplementedException();
}

public float? Intersects(Ray ray)
{
throw new NotImplementedException();
}

public void Intersects(ref Ray ray, out float? result)
{
throw new NotImplementedException();
}

public override string ToString()
{
throw new NotImplementedException();
}

public static bool operator ==(BoundingBox a, BoundingBox b)
{
throw new NotImplementedException();
}

public static bool operator !=(BoundingBox a, BoundingBox b)
{
throw new NotImplementedException();
}
}
}
138 changes: 138 additions & 0 deletions BlazorGame.Library/BoundingFrustum.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
using System;

namespace BlazorGame.Framework
{
public class BoundingFrustum : IEquatable<BoundingFrustum>
{
public const int CornerCount = 8;
public const int PlaneCount = 6;

public Plane Bottom { get; }
public Plane Far { get; }
public Plane Left { get; }
public Matrix Matrix { get; set; }
public Plane Near { get; }
public Plane Right { get; }
public Plane Top { get; }

public BoundingFrustum(Matrix value)
{
throw new NotImplementedException();
}

public ContainmentType Contains(BoundingBox box)
{
throw new NotImplementedException();
}

public void Contains(ref BoundingBox box, out ContainmentType result)
{
throw new NotImplementedException();
}

public ContainmentType Contains(BoundingFrustum frustum)
{
throw new NotImplementedException();
}

public ContainmentType Contains(BoundingSphere sphere)
{
throw new NotImplementedException();
}

public void Contains(ref BoundingSphere sphere, out ContainmentType result)
{
throw new NotImplementedException();
}

public ContainmentType Contains(Vector3 point)
{
throw new NotImplementedException();
}

public void Contains(ref Vector3 point, out ContainmentType result)
{
throw new NotImplementedException();
}

public bool Equals(BoundingFrustum other)
{
throw new NotImplementedException();
}

public override bool Equals(object obj)
{
throw new NotImplementedException();
}

public Vector3[] GetCorners()
{
throw new NotImplementedException();
}

public void GetCorners(Vector3[] corners)
{
throw new NotImplementedException();
}

public bool Intersects(BoundingBox box)
{
throw new NotImplementedException();
}

public void Intersects(ref BoundingBox box, out bool result)
{
throw new NotImplementedException();
}

public bool Intersects(BoundingFrustum frustum)
{
throw new NotImplementedException();
}

public bool Intersects(BoundingSphere sphere)
{
throw new NotImplementedException();
}

public void Intersects(ref BoundingSphere sphere, out bool result)
{
throw new NotImplementedException();
}

public PlaneIntersectionType Intersects(Plane plane)
{
throw new NotImplementedException();
}

public void Intersects(ref Plane plane, out PlaneIntersectionType result)
{
throw new NotImplementedException();
}

public float? Intersects(Ray ray)
{
throw new NotImplementedException();
}

public void Intersects(ref Ray ray, out float? result)
{
throw new NotImplementedException();
}

public override string ToString()
{
throw new NotImplementedException();
}

public static bool operator ==(BoundingFrustum a, BoundingFrustum b)
{
throw new NotImplementedException();
}

public static bool operator !=(BoundingFrustum a, BoundingFrustum b)
{
throw new NotImplementedException();
}
}
}
Loading