Exemplo n.º 1
0
        public bool GetBeaconLocationData(SteamPartyBeaconLocation_t BeaconLocation, SteamPartyBeaconLocationData eData, out string pchDataStringOut)
        {
            IntPtr mempchDataStringOut = Helpers.TakeMemory();

            var returnValue = _GetBeaconLocationData(Self, BeaconLocation, eData, mempchDataStringOut, (1024 * 32));

            pchDataStringOut = Helpers.MemoryToString(mempchDataStringOut);
            return(returnValue);
        }
Exemplo n.º 2
0
 private static extern bool _GetBeaconLocationData(IntPtr self, SteamPartyBeaconLocation_t BeaconLocation, SteamPartyBeaconLocationData eData, IntPtr pchDataStringOut, int cchDataStringOut);
 internal bool GetBeaconLocationData(SteamPartyBeaconLocation_t BeaconLocation, SteamPartyBeaconLocationData eData, StringBuilder pchDataStringOut, int cchDataStringOut)
 {
     return(_GetBeaconLocationData(Self, BeaconLocation, eData, pchDataStringOut, cchDataStringOut));
 }
Exemplo n.º 4
0
        internal bool GetBeaconLocationData(SteamPartyBeaconLocation_t BeaconLocation, SteamPartyBeaconLocationData eData, StringBuilder pchDataStringOut, int cchDataStringOut)
        {
            if (Config.Os == OsType.Windows)
            {
                SteamPartyBeaconLocation_t.Pack8 BeaconLocation_windows = BeaconLocation;
                var retVal = _GetBeaconLocationData_Windows(Self, BeaconLocation, eData, pchDataStringOut, cchDataStringOut);
                BeaconLocation = BeaconLocation_windows;
                return(retVal);
            }

            return(_GetBeaconLocationData(Self, BeaconLocation, eData, pchDataStringOut, cchDataStringOut));
        }
        internal bool GetBeaconLocationData(SteamPartyBeaconLocation_t BeaconLocation, SteamPartyBeaconLocationData eData, StringBuilder pchDataStringOut, int cchDataStringOut)
        {
            bool self;

            if (Config.Os != OsType.Windows)
            {
                self = this._GetBeaconLocationData(this.Self, BeaconLocation, eData, pchDataStringOut, cchDataStringOut);
            }
            else
            {
                SteamPartyBeaconLocation_t.Pack8 beaconLocation = BeaconLocation;
                bool _GetBeaconLocationDataWindows = this._GetBeaconLocationData_Windows(this.Self, BeaconLocation, eData, pchDataStringOut, cchDataStringOut);
                BeaconLocation = beaconLocation;
                self           = _GetBeaconLocationDataWindows;
            }
            return(self);
        }