This file contains hidden or 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
| Section "ServerLayout" | |
| Identifier "layout" | |
| Screen 0 "nvidia" | |
| Inactive "intel" | |
| EndSection | |
| Section "Device" | |
| Identifier "nvidia" | |
| Driver "nvidia" | |
| BusID "PCI:7:0:0" |
This file contains hidden or 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
| // accepts relative path to running binary (UE4Editor) or absolute path | |
| FPaths::FileExists |
This file contains hidden or 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
| const Bundler = require('parcel-bundler'); | |
| const childProcess = require('child_process'); | |
| const file = 'index.js'; | |
| const options = {}; | |
| const bundler = new Bundler(file, options); | |
| const runBundle = process.argv.includes('run'); | |
| let bundle = null; |
This file contains hidden or 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
| const PLAYER_SPEED: f64 = 50.0; | |
| const TOI_DISTANCE_THRESHOLD: f64 = 0.001; | |
| #[wasm_bindgen(js_name = processPlayersMovement)] | |
| pub fn process_players_movement(time_delta: f64, players: &js_sys::Iterator, objects: &js_sys::Iterator) { | |
| for player_object in players { | |
| let player_object = player_object.unwrap(); | |
| let player = player_object.dyn_ref::<muddle_types::Player>(); | |
| if player.is_none() { | |
| continue; |
OlderNewer