Skip to content

Commit

Permalink
Create energy_source.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 15, 2024
1 parent ae01845 commit ad0c40a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ftl_drive/drive.modules/energy_source.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { normalize } from '../drive.utils';

class EnergySource {
constructor() {
this.type = 'antimatter';
this.capacity = 10000;
}

async init() {
// Initialize the energy source system
}

async provideEnergy(input) {
// Provide energy from antimatter source
const output = [];
//...
return output;
}
}

export default EnergySource;

0 comments on commit ad0c40a

Please sign in to comment.