Skip to content

Instantly share code, notes, and snippets.

View Mr00Anderson's full-sized avatar
🏠

Daniel Anderson Mr00Anderson

🏠
View GitHub Profile
using System;
using System.Diagnostics;
namespace ServerCommon
{
public class FixedPhysicsTimeStep : AbsLooper
{
/**
* This may range between 15-200
*/
using SquidLib.SquidMath;
namespace Maps
{
/**
* An experimental way of speeding up {@link FastNoise} by using a large buffer of random bytes, and choosing a byte
* from the buffer purely by the current seed and position (a simpler calculation than a hash). This currently gives a
* modest speed boost to {@link #SIMPLEX}, {@link #PERLIN}, {@link #CUBIC}, and {@link #HONEY}, a smaller speed boost to
* {@link #FOAM}, and no change for {@link #VALUE} or {@link #WHITE_NOISE}. This class only uses the least-significant
package app.virtualhex.gdx.engine.data;
import com.badlogic.gdx.utils.Array;
import org.bson.BsonReader;
import org.bson.BsonType;
import org.bson.BsonValue;
import org.bson.BsonWriter;
import org.bson.codecs.BsonValueCodecProvider;
import org.bson.codecs.Codec;
import org.bson.codecs.DecoderContext;
package app.virtualhex.gdx.engine.server;
import com.mongodb.MongoTimeoutException;
import org.bson.Document;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CountDownLatch;
package app.virtualhex.math;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
package app.virtualhex.gdx.engine.maps;
import app.virtualhex.math.VLQUtilsNative;
import app.virtualhex.types.Decoder;
import app.virtualhex.types.Encoder;
import java.nio.ByteBuffer;
/**
* Used to describe the parameters of a playable section of the game
package app.virtualhex.gdx.free_universe;
import app.virtualhex.app.App;
import app.virtualhex.app.AppLauncher;
import app.virtualhex.gdx.engine.graphics.g2d.ExtendedDynamicAtlasWrapper;
import app.virtualhex.gdx.engine.state.StateRefBooleanWrapper;
import app.virtualhex.gdx.engine.state.StateRefStringWrapper;
import app.virtualhex.gdx.engine.state.StateReference;
import app.virtualhex.network.CachedEventLoopGroup;
import app.virtualhex.network.ClientPorts;
@Mr00Anderson
Mr00Anderson / StringFormatter.java
Created December 13, 2020 17:51
Sl4j String formatter
package app.virtualhex.gdx.util;
/**
* Copyright (c) 2004-2011 QOS.ch
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
@Mr00Anderson
Mr00Anderson / AccountClientTable.java
Created December 13, 2020 12:25
AccountClientUI
package app.virtualhex.gdx.free_universe.network;
import app.virtualhex.gdx.engine.scene2d.TextFieldChangeListener;
import app.virtualhex.gdx.engine.scene2d.TextFieldChangedNotify;
import app.virtualhex.gdx.engine.scene2d.filters.*;
import app.virtualhex.gdx.free_universe.FuReferences;
import app.virtualhex.network.PacketSpeedLimiter;
import app.virtualhex.network.clients.AccountClient;
import app.virtualhex.network.clients.AccountPacket;
import app.virtualhex.utils.StringFormatter;