1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00
tobspr_shapez.io/src/js/game/entity_components.js

83 lines
2.4 KiB
JavaScript
Raw Normal View History

2020-05-09 14:45:23 +00:00
/* typehints:start */
import { BeltComponent } from "./components/belt";
import { BeltUnderlaysComponent } from "./components/belt_underlays";
import { HubComponent } from "./components/hub";
2020-05-09 14:45:23 +00:00
import { ItemAcceptorComponent } from "./components/item_acceptor";
import { ItemEjectorComponent } from "./components/item_ejector";
2020-05-09 14:45:23 +00:00
import { ItemProcessorComponent } from "./components/item_processor";
import { MinerComponent } from "./components/miner";
import { StaticMapEntityComponent } from "./components/static_map_entity";
2020-05-20 13:51:06 +00:00
import { StorageComponent } from "./components/storage";
import { UndergroundBeltComponent } from "./components/underground_belt";
2020-06-24 20:23:10 +00:00
import { WiredPinsComponent } from "./components/wired_pins";
2020-08-11 16:40:09 +00:00
import { WireComponent } from "./components/wire";
2020-08-12 19:05:32 +00:00
import { ConstantSignalComponent } from "./components/constant_signal";
2020-08-13 17:23:00 +00:00
import { LogicGateComponent } from "./components/logic_gate";
import { LeverComponent } from "./components/lever";
import { WireTunnelComponent } from "./components/wire_tunnel";
2020-08-14 12:55:37 +00:00
import { DisplayComponent } from "./components/display";
2020-05-09 14:45:23 +00:00
/* typehints:end */
/**
* Typedefs for all entity components. These are not actually present on the entity,
* thus they are undefined by default
*/
export class EntityComponentStorage {
constructor() {
/* typehints:start */
/** @type {StaticMapEntityComponent} */
this.StaticMapEntity;
/** @type {BeltComponent} */
this.Belt;
/** @type {ItemEjectorComponent} */
this.ItemEjector;
/** @type {ItemAcceptorComponent} */
this.ItemAcceptor;
/** @type {MinerComponent} */
this.Miner;
/** @type {ItemProcessorComponent} */
this.ItemProcessor;
/** @type {UndergroundBeltComponent} */
this.UndergroundBelt;
/** @type {HubComponent} */
this.Hub;
2020-05-20 13:51:06 +00:00
/** @type {StorageComponent} */
this.Storage;
2020-06-24 20:23:10 +00:00
/** @type {WiredPinsComponent} */
this.WiredPins;
/** @type {BeltUnderlaysComponent} */
this.BeltUnderlays;
2020-08-11 16:40:09 +00:00
/** @type {WireComponent} */
this.Wire;
2020-08-12 19:05:32 +00:00
/** @type {ConstantSignalComponent} */
this.ConstantSignal;
2020-08-13 17:23:00 +00:00
/** @type {LogicGateComponent} */
this.LogicGate;
/** @type {LeverComponent} */
this.Lever;
/** @type {WireTunnelComponent} */
this.WireTunnel;
2020-08-14 12:55:37 +00:00
/** @type {DisplayComponent} */
this.Display;
2020-05-09 14:45:23 +00:00
/* typehints:end */
}
}