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
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)] | |
use std::collections::{HashMap, VecDeque}; | |
use std::ops::{Coroutine, CoroutineState}; | |
use std::pin::Pin; | |
use std::time::{Duration, SystemTime, UNIX_EPOCH}; | |
type PlayerScript = Pin<Box<dyn Coroutine<&'static mut Player, Yield = f32, Return = ()>>>; | |
pub struct PlayerTask { |
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
// extern crate bindgen; | |
// use std::env; | |
// use std::path::PathBuf; | |
fn main() { | |
// Tell cargo to tell rustc to link the Gdiplus shared library. | |
println!("cargo:rustc-link-lib=Gdiplus"); | |
// // Tell cargo to invalidate the built crate whenever the wrapper changes |
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
use crate::player::Player; | |
#[derive(PartialEq, Eq, Hash)] | |
pub enum InterfaceLocation { | |
None, | |
Main = 1 | |
} | |
#[derive(PartialEq, Eq, Hash)] |
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
extern crate config; | |
#[macro_use] | |
extern crate serde_derive; | |
use std::{convert::Infallible, net::SocketAddr}; | |
use std::sync::Mutex; | |
use hyper::{Body, Request, Response, Server, StatusCode}; | |
use hyper::service::{make_service_fn, service_fn}; | |
use rand::prelude::SliceRandom; |
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
package net.runelite.cache | |
import io.netty.buffer.ByteBuf | |
import io.netty.buffer.Unpooled | |
import net.runelite.cache.fs.Container | |
import net.runelite.cache.fs.Store | |
import net.runelite.cache.fs.flat.FlatStorage | |
import net.runelite.cache.fs.jagex.DataFileWriteResult | |
import net.runelite.cache.fs.jagex.DiskStorage | |
import net.runelite.cache.fs.jagex.IndexEntry |
This file has been truncated, but you can view the full file.
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
#ifndef _BINFS_OUTPUT_HPP_ | |
#define _BINFS_OUTPUT_HPP_ | |
#include <string> | |
#include <vector> | |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <iomanip> |
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
// +build windows | |
package main | |
import ( | |
"os" | |
"syscall" | |
"unsafe" | |
) |
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
package main | |
import ( | |
"fmt" | |
"syscall" | |
"unsafe" | |
) | |
var ( | |
user32, _ = syscall.LoadLibrary("User32.dll") |
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
package server.model.players; | |
import java.util.concurrent.CopyOnWriteArrayList; | |
import server.Config; | |
import server.Server; | |
import server.event.CycleEvent; | |
import server.event.CycleEventContainer; | |
import server.event.CycleEventHandler; | |
import server.model.items.GameItem; |
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
public static void openDialogue(final Player player, int dialogueId) { | |
try { | |
System.out.println("Starting: "+dialogueId); | |
if (player == null) | |
return; | |
if (dialogueId == -1) { | |
return; | |
} | |
for (int i = 0; i < 5; i++) { | |
player.getInterfaceState().setNextDialogueId(i, -1); |
NewerOlder