Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
js/ts traduce comandos internos

Actualmente estoy tratando de traducir algunos procesos de registro de consola basados en texto al formato JSON.

Comandos de Console.log:

 give ENTITY.name = "entitytest"; give entity.userid = 99; give entity.storagenum = 22; give ENTITY.behaviour = "GIVE entity.storagenum xp to USERID" WHEN entity2.quest = 22

La entrada de la consola será procesada:

var translationData = "LEER DE CADENA";

dar como resultado este tipo de traducción:

 { 'entity.name' = "entitytest", entity.behaviour: {data: "give entity.storagenum xp to USERID", result: "give 22 xp to 99 when entity2 quest is 22", when: ["entity2.quest": 22}], }

Pensamientos:

  • ¿Cómo crearé esta class para construirla?
  • ¿Cómo puedo hacer el anidamiento, con múltiples behaviours y razones detrás del behaviour de la entity ? ¿Cómo podría construir este tipo de funcionalidad? He estado intentando con javascript, pero las respuestas mecanografiadas también funcionan.
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!