Skip to content

Instantly share code, notes, and snippets.

fn addController<T: HasController>(controller: T){
println("ADdded controller");//Hier in Registry aufnehmen, durch namen hin routen
}
import PokeAPI from 'pokemongo-api';
const Poke = new PokeAPI();
function lerp(a, b, t) {
var len = a.length;
if (b.length != len) return;
var x = [];
for (var i = 0; i < len; i++)
function SinglePlayer.Server:OnClientConnect( channelId )
local params =
{
name = "Dude",
class = "Player",
position = {x=0, y=0, z=0},
rotation = {x=0, y=0, z=0},
scale = {x=1, y=1, z=1},
};
player = Actor.CreateActor(channelId, params);
function KillAll()
for i, entity in pairs(System.GetEntitiesInSphereByClass(player:GetWorldPos(), 200, "NPC")) do
entity.soul:DealDamage(100, 100)
end
for i, entity in pairs(System.GetEntitiesInSphereByClass(player:GetWorldPos(), 200, "NPC_Female")) do
entity.soul:DealDamage(100, 100)
end
end
-- Opens a file in append mode
defmodule CryptoDiscord.Application do
use Application
alias Alchemy.Client
defmodule Commands do
use Alchemy.Cogs
alias Alchemy.{Client, Cache, User, Embed}
import Embed
This file has been truncated, but you can view the full file.
[INFO][winit::platform::platform::x11::window] Guessed window DPI factor: 1.0833333333333333
[DEBUG][winit::platform::platform::x11::window] Calculated physical dimensions: 542x542
[INFO][amethyst::app] Initializing Amethyst...
[INFO][amethyst::app] Version: 0.11.1
[INFO][amethyst::app] Platform: x86_64-unknown-linux-gnu
[INFO][amethyst::app] Amethyst git commit: fc9243e292affa8b48dc801af05bb94fe7db2074
[INFO][amethyst::app] Rustc version: 1.35.0 Stable
[INFO][amethyst::app] Rustc git commit: 3c235d5600393dfe6c36eeed34042efad8d4f26e
[TRACE][amethyst::app] Entering `ApplicationBuilder::build`
[DEBUG][rendy_factory::factory] Creating factory
obj.AddGameMenuOption("village", "village_work", "Work", game_menu_work_here_on_condition, this.game_menu_work_village_on_consequence,false,3);
obj.AddWaitGameMenu("village_work_menus", "You are Working", null, game_menu_village_work_on_condition, null, onWaitTick, GameMenu.MenuAndOptionType.WaitMenuHideProgressAndHoursOption, GameOverlays.MenuOverlayType.SettlementWithBoth);
obj.AddGameMenuOption("village_work_menus", "work_leave", "Stop Working", game_menu_stop_waiting_at_village_on_condition, this.game_menu_stop_working_at_village_on_consequence, true);
using TaleWorlds.Engine.GauntletUI;
using TaleWorlds.Engine.Screens;
using TaleWorlds.GauntletUI.Data;
using TaleWorlds.InputSystem;
using TaleWorlds.MountAndBlade.View.Missions;
namespace CombatDevTest
{
[OverrideView(typeof(HostOptionsScreen))]
public class HostOptionsGauntletScreen : ScreenBase
using System.Collections.Generic;
using TaleWorlds.CampaignSystem;
using TaleWorlds.SaveSystem;
namespace TestSPMod
{
public class CustomSaveTickerTest : CampaignBehaviorBase
{
public override void RegisterEvents()
{
@doc "Alle drehenede x"
defprotocol Drehzahl do
@doc "Berechnet die Aktuelle Drehzahl"
def rpm(device)
end
defimpl Drehzahl, for: Any do
def rpm(any), do: any.rpm
end