init commit
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class Options : Node {
|
||||
|
||||
// Server Settings
|
||||
public ENetMultiplayerPeer connection;
|
||||
public bool isServer = false;
|
||||
public string Host = "mistox.net";
|
||||
public int Port = 6500;
|
||||
public int SelectedMap = 0;
|
||||
public int maxPlayers = 32;
|
||||
public bool isAlive = false;
|
||||
public double timeBetweenDropsReset = 2f; // in Minutes
|
||||
|
||||
// Saved Settings
|
||||
public SettingsFile _SettingsFile;
|
||||
|
||||
// Alert Settings
|
||||
public float AlertTime = 2f;
|
||||
public float AlertPauseTime = 1f;
|
||||
|
||||
// Select Tool
|
||||
public float ClickDistance = 5;
|
||||
|
||||
}
|
||||
|
||||
namespace Godot {
|
||||
|
||||
public static class Extensions {
|
||||
public static T [] Join<T>( this T [] first, T [] second ) {
|
||||
T[] bytes = new T[first.Length + second.Length];
|
||||
#pragma warning disable CA2018 // 'Buffer.BlockCopy' expects the number of bytes to be copied for the 'count' argument
|
||||
Buffer.BlockCopy( first, 0, bytes, 0, first.Length );
|
||||
Buffer.BlockCopy( second, 0, bytes, first.Length, second.Length );
|
||||
#pragma warning restore CA2018 // 'Buffer.BlockCopy' expects the number of bytes to be copied for the 'count' argument
|
||||
return bytes;
|
||||
}
|
||||
|
||||
public static T [] Sub<T>( this T [] data, int index, int length ) {
|
||||
T[] result = new T[length];
|
||||
Array.Copy( data, index, result, 0, length );
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user