Skip to content

Instantly share code, notes, and snippets.

@Kolesias123
Created November 6, 2014 04:52
Show Gist options
  • Save Kolesias123/bb0cefe62cb3ee49383a to your computer and use it in GitHub Desktop.
Save Kolesias123/bb0cefe62cb3ee49383a to your computer and use it in GitHub Desktop.
Entidad con físicas en Cliente
class MyEntity extends PhysicsEntity
{
int m_iPings = 0;
// Esta función es llamada cuando se recibe información del servidor
void receiveDatatable( data )
{
m_iPings = data["Pings"];
Msg("[Cliente] ¡Llevo $m_iPings pings!");
super.receiveDatatable( data );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment