Changed NetworkComponent to be able to register ints, floats and components.