gameServer2/src/protocol/messages.rs
changeset 13428 c8425fbcf1d9
parent 13423 87a6cad20c90
child 13432 ee3fa3b8809d
equal deleted inserted replaced
13427:6f6a866c86a2 13428:c8425fbcf1d9
    91     TeamAccepted(String),
    91     TeamAccepted(String),
    92     TeamColor(String, u8),
    92     TeamColor(String, u8),
    93     HedgehogsNumber(String, u8),
    93     HedgehogsNumber(String, u8),
    94     ConfigEntry(String, Vec<String>),
    94     ConfigEntry(String, Vec<String>),
    95     RunGame,
    95     RunGame,
    96     ForwardEngineMessage(String),
    96     ForwardEngineMessage(Vec<String>),
    97     RoundFinished,
    97     RoundFinished,
    98 
    98 
    99     ServerMessage(String),
    99     ServerMessage(String),
   100     Warning(String),
   100     Warning(String),
   101     Error(String),
   101     Error(String),
   261             TeamColor(name, color) => msg!["TEAM_COLOR", name, color],
   261             TeamColor(name, color) => msg!["TEAM_COLOR", name, color],
   262             HedgehogsNumber(name, number) => msg!["HH_NUM", name, number],
   262             HedgehogsNumber(name, number) => msg!["HH_NUM", name, number],
   263             ConfigEntry(name, values) =>
   263             ConfigEntry(name, values) =>
   264                 construct_message(&["CFG", name], &values),
   264                 construct_message(&["CFG", name], &values),
   265             RunGame => msg!["RUN_GAME"],
   265             RunGame => msg!["RUN_GAME"],
   266             ForwardEngineMessage(em) => msg!["EM", em],
   266             ForwardEngineMessage(em) =>
       
   267                 construct_message(&["EM"], &em),
   267             RoundFinished => msg!["ROUND_FINISHED"],
   268             RoundFinished => msg!["ROUND_FINISHED"],
   268             ChatMsg(nick, msg) => msg!["CHAT", nick, msg],
   269             ChatMsg(nick, msg) => msg!["CHAT", nick, msg],
   269             ServerMessage(msg) => msg!["SERVER_MESSAGE", msg],
   270             ServerMessage(msg) => msg!["SERVER_MESSAGE", msg],
   270             Warning(msg) => msg!["WARNING", msg],
   271             Warning(msg) => msg!["WARNING", msg],
   271             Error(msg) => msg!["ERROR", msg],
   272             Error(msg) => msg!["ERROR", msg],