public virtual void ControlledEntity_Use()
        {
            ControlledEntity_UseMsg msg = new ControlledEntity_UseMsg();

            msg.EntityId = SyncedEntityId;

            Sync.Layer.SendMessageToServer(ref msg, MyTransportMessageEnum.Request);
        }
        static void ControlledEntity_UseCallback(MySyncControllableEntity sync, ref ControlledEntity_UseMsg msg, MyNetworkClient sender)
        {
            var handler = sync.ControlledEntity_Used;

            if (handler != null)
            {
                handler();
            }
        }
 static void ControlledEntity_UseRequest(MySyncControllableEntity sync, ref ControlledEntity_UseMsg msg, MyNetworkClient sender)
 {
     // TODO: check responsibility for update
     ControlledEntity_UseCallback(sync, ref msg, sender);
     Sync.Layer.SendMessageToAll(ref msg, MyTransportMessageEnum.Success);
 }
 static void ControlledEntity_UseCallback(MySyncControllableEntity sync, ref ControlledEntity_UseMsg msg, MyNetworkClient sender)
 {
     var handler = sync.ControlledEntity_Used;
     if (handler != null) 
         handler();
 }
 static void ControlledEntity_UseRequest(MySyncControllableEntity sync, ref ControlledEntity_UseMsg msg, MyNetworkClient sender)
 {
     // TODO: check responsibility for update
     ControlledEntity_UseCallback(sync, ref msg, sender);
     Sync.Layer.SendMessageToAll(ref msg, MyTransportMessageEnum.Success);
 }
        public virtual void ControlledEntity_Use()
        {
            ControlledEntity_UseMsg msg = new ControlledEntity_UseMsg();
            msg.EntityId = SyncedEntityId;

            Sync.Layer.SendMessageToServer(ref msg, MyTransportMessageEnum.Request);
        }