private void PlayerEntityViewChanged(object sender, EntityViewEventArgs e)
 {
     _server.ServerConnection.Send(new EntityHeadDirectionMessage
     {
         Rotation = e.Entity.HeadRotation,
         EntityId = e.Entity.DynamicId
     });
 }
Exemple #2
0
        protected void OnViewChanged(EntityViewEventArgs e)
        {
            var handler = ViewChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #3
0
        private void OnEntityView(EntityViewEventArgs e)
        {
            var handler = EntityView;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #4
0
 void EntityViewChanged(object sender, EntityViewEventArgs e)
 {
     // retranslate
     OnEntityView(e);
 }