public void Process(SocketClient client, DataPacket packet) { if(client.User != null) { UserInput input = new UserInput("shot"); input["nX"] = packet["nX"]; input["nY"] = packet["nY"]; client.User.AddInput(input); } }
public void Process(SocketClient client, DataPacket packet) { if (client.User != null) { UserInput input = new UserInput("charMove"); input["d"] = ((FieldData)packet["d"]).Value; client.User.AddInput(input); //client.User.Char.Target = } /*if(client.User != null) { client.User.Name = packet["n"].ToString(); }*/ }
public void AddInput(UserInput input) { this.input.Enqueue(input); }