alles fertig
This commit is contained in:
@@ -31,11 +31,11 @@ async function readSingle(_i: number) {
|
||||
}
|
||||
|
||||
async function readRegion(_i: number) {
|
||||
await redis.hget("region:1", "name");
|
||||
const enemyIds = await redis.smembers("region:1:enemies");
|
||||
const itemIds = await redis.smembers("region:1:items");
|
||||
for (const id of enemyIds) await redis.hgetall(`enemy:${id}`);
|
||||
for (const id of itemIds) await redis.hgetall(`item:${id}`);
|
||||
await redis.hget("bench:region:1", "name");
|
||||
const enemyIds = await redis.smembers("bench:region:1:enemies");
|
||||
const itemIds = await redis.smembers("bench:region:1:items");
|
||||
for (const id of enemyIds) await redis.hgetall(`bench:enemy:${id}`);
|
||||
for (const id of itemIds) await redis.hgetall(`bench:item:${id}`);
|
||||
}
|
||||
|
||||
async function writeRegion(_i: number) {
|
||||
|
||||
Reference in New Issue
Block a user