private void PlayerEntityViewChanged(object sender, EntityViewEventArgs e) { _server.ServerConnection.Send(new EntityHeadDirectionMessage { Rotation = e.Entity.HeadRotation, EntityId = e.Entity.DynamicId }); }
protected void OnViewChanged(EntityViewEventArgs e) { var handler = ViewChanged; if (handler != null) { handler(this, e); } }
private void OnEntityView(EntityViewEventArgs e) { var handler = EntityView; if (handler != null) { handler(this, e); } }
void EntityViewChanged(object sender, EntityViewEventArgs e) { // retranslate OnEntityView(e); }