class TrackingSocket : Socket
{
- unsigned int OnReceive(unsigned char * buffer, unsigned int count)
+ unsigned int OnReceive(const byte * buffer, unsigned int count)
{
- parser.Parse(buffer, count);
+ parser.Parse((char *)buffer, count);
// Update Things Here
return count;
{
Track object;
- void ProcessKeyword(char * keyWord)
+ void ProcessKeyword(const char * keyWord)
{
if(!strcmpi(keyWord, "object"))
{
Vector3Df position { };
while(GetWord())
{
- if(!strcmpi(keyWord, "x")) { GetWord(); position.x = atof(keyWord); }
- else if(!strcmpi(keyWord, "y")) { GetWord(); position.y = atof(keyWord); }
- else if(!strcmpi(keyWord, "z")) { GetWord(); position.z = atof(keyWord); }
- else if(!strcmpi(keyWord, "speed")) { GetWord(); object.speed = atof(keyWord); }
- else if(!strcmpi(keyWord, "dir")) { GetWord(); object.direction = atof(keyWord); }
+ if(!strcmpi(keyWord, "x")) { GetWord(); position.x = (float)atof(keyWord); }
+ else if(!strcmpi(keyWord, "y")) { GetWord(); position.y = (float)atof(keyWord); }
+ else if(!strcmpi(keyWord, "z")) { GetWord(); position.z = (float)atof(keyWord); }
+ else if(!strcmpi(keyWord, "speed")) { GetWord(); object.speed = (float)atof(keyWord); }
+ else if(!strcmpi(keyWord, "dir")) { GetWord(); object.direction = (float)atof(keyWord); }
}
object.position = position;
}
{
MyTag tag;
- void ProcessCharacterData(char * data)
+ void ProcessCharacterData(const char * data)
{
switch(tag)
{
}
}
- void ProcessKeyword(char * keyWord)
+ void ProcessKeyword(const char * keyWord)
{
- NamedLink nl;
+ NamedLink64 nl;
EnumClassData tagData = class(MyTag).data;
for(nl = tagData.values.first; nl; nl = nl.next)
{