Smoothed naming and other conventions
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#ifndef CLIENTDATA_HPP_
|
||||
#define CLIENTDATA_HPP_
|
||||
|
||||
#include "vector2.hpp"
|
||||
|
||||
#include <string>
|
||||
|
||||
struct ClientData {
|
||||
ClientData() = default;
|
||||
ClientData(int ID, int ch, std::string h, std::string a) {
|
||||
playerID = ID;
|
||||
channel = ch;
|
||||
handle = h;
|
||||
avatar = a;
|
||||
}
|
||||
void Update(int delta) {
|
||||
position += motion * delta;
|
||||
}
|
||||
|
||||
int playerID = -1;
|
||||
int channel = -1;
|
||||
Vector2 position;
|
||||
Vector2 motion;
|
||||
std::string handle;
|
||||
std::string avatar;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user