Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
355 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Notes | ||
This document contains a series of notes and commands we've collected over the years for making | ||
building all of our plugins and dependencies as easy as possible. | ||
|
||
## Compiling the various plugins on Linux | ||
### samp-streamer-plugin | ||
$ git clone https://github.com/samp-incognito/samp-streamer-plugin.git | ||
$ cd samp-streamer-plugin | ||
$ git submodule update --init --recursive . ":(exclude)lib/boost" | ||
$ mkdir build && cd build | ||
$ cmake .. -DBOOST_ROOT=/opt/boost_1_73_0_32bit -DCMAKE_BUILD_TYPE=Release | ||
$ make streamer_unity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright 2020 Las Venturas Playground. All rights reserved. | ||
// Use of this source code is governed by the MIT license, a copy of which can | ||
// be found in the LICENSE file. | ||
|
||
import { GameObject } from 'entities/game_object.js'; | ||
|
||
// Global counter for creating a unique mocked object ID. | ||
let globalMockObjectId = 0; | ||
|
||
// Mocked version of the GameObject, which represents objects created in the world of San Andreas. | ||
// Overrides all functionality that would end up calling into Pawn and/or the streamer plugin. | ||
export class MockGameObject extends GameObject { | ||
#position_ = null; | ||
#rotation_ = null; | ||
|
||
// Overridden to avoid creating a real object on the server. | ||
createInternal(options) { | ||
this.#position_ = options.position; | ||
this.#rotation_ = options.rotation; | ||
|
||
return ++globalMockObjectId; | ||
} | ||
|
||
// Overridden to avoid destroying a real object on the server. | ||
destroy() {} | ||
|
||
// --------------------------------------------------------------------------------------------- | ||
|
||
get position() { return this.#position_; } | ||
set position(value) { this.#position_ = value; } | ||
|
||
get rotation() { return this.#rotation_; } | ||
set rotation(value) { this.#rotation_ = value; } | ||
|
||
// --------------------------------------------------------------------------------------------- | ||
|
||
attachToVehicle(vehicle, offset, rotation) {} | ||
} |
Oops, something went wrong.