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

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

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