text: /*
   * SEGS - Super Entity Game Server
   * http://www.segs.io/
   * Copyright (c) 2006 - 2018 SEGS Team (see AUTHORS.md)
   * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
   */
  
  #pragma once
  
  #include "GameCommandList.h"
  #include "MapEvents.h"
  
  #include <QtCore/QString>
  
  namespace SEGSEvents
  {
      // [[ev_def:type]]
      class FaceLocation : public GameCommandEvent
      {
      public:
          explicit FaceLocation() : GameCommandEvent(evFaceLocation) {}
          FaceLocation(glm::vec3 loc) : GameCommandEvent(evFaceLocation),
              m_loc(loc)
          {}
  
          // SerializableEvent interface
          void serializefrom(BitStream &/*src*/) override
          {}
          void serializeto(BitStream &bs) const override
          {
              bs.StorePackedBits(1,type()-evFirstServerToClient);
              bs.StoreFloat(m_loc.x);
              bs.StoreFloat(m_loc.y);
              bs.StoreFloat(m_loc.z);
          }
          EVENT_IMPL(FaceLocation)
  
      protected:
          // [[ev_def:field]]
          glm::vec3 m_loc;
      };
  }
  