mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
feature: info o elektryfikacji spawnu na scenerii
This commit is contained in:
@@ -41,7 +41,7 @@ export default interface Station {
|
||||
maxUsers: number;
|
||||
currentUsers: number;
|
||||
|
||||
spawns: { spawnName: string; spawnLength: number }[];
|
||||
spawns: { spawnName: string; spawnLength: number; isElectrified: boolean }[];
|
||||
dispatcherRate: number;
|
||||
dispatcherName: string;
|
||||
dispatcherExp: number;
|
||||
|
||||
@@ -66,8 +66,9 @@ export const parseSpawns = (spawnString: string) => {
|
||||
const spawnArray = spawn.split(',');
|
||||
const spawnName = spawnArray[6] ? spawnArray[6] : spawnArray[0];
|
||||
const spawnLength = parseInt(spawnArray[2]);
|
||||
const isElectrified = spawnArray[3] == 'True';
|
||||
|
||||
return { spawnName, spawnLength };
|
||||
return { spawnName, spawnLength, isElectrified };
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user