Object parenting; Ship module prototype; Use 64 bit
This commit is contained in:
parent
3f97e18615
commit
8335714acc
30 changed files with 436 additions and 62 deletions
14
scripts/GameObjects/Vessel.cs
Normal file
14
scripts/GameObjects/Vessel.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
public class Vessel : GameObject
|
||||
{
|
||||
public List<VesselModule> Modules = [];
|
||||
|
||||
public override void Simulate(double delta)
|
||||
{
|
||||
Modules.ForEach(module =>
|
||||
{
|
||||
module.Simulate(delta);
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue