Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using Godot;
- using GlmSharp;
- public enum PrimitiveType
- {
- Quad
- }
- public class GameObject
- {
- public Transform transform;
- public string name;
- public object layer;
- public GameObject(string x="") => throw new NotImplementedException();
- public GameObject Instantiate() => throw new NotImplementedException();
- public void DestroyImmediate() => throw new NotImplementedException();
- public T GetComponent<T>() => throw new NotImplementedException();
- public T[] GetComponents<T>() => throw new NotImplementedException();
- public T AddComponent<T>() => throw new NotImplementedException();
- public object AddComponent(Type t) => throw new NotImplementedException();
- public void SetActive(bool x) => throw new NotImplementedException();
- public static GameObject CreatePrimitive(PrimitiveType pt) => throw new NotImplementedException();
- public static GameObject Player => throw new NotImplementedException();
- public static GameObject Find(string x) => throw new NotImplementedException();
- public static IEnumerable<GameObject> IterateScene() => throw new NotImplementedException();
- }
- public class MonoBehaviour
- {
- public GameObject gameObject;
- public Transform transform => gameObject.transform;
- public T GetComponent<T>() => throw new NotImplementedException();
- public T AddComponent<T>() => throw new NotImplementedException();
- public static void StartCoroutine(IEnumerator x) => throw new NotImplementedException();
- }
- public class Component
- {
- }
- public class Transform
- {
- public vec3 position;
- public vec3 localScale;
- public vec3 localPosition;
- public Transform parent;
- }
- public class Camera : GameObject
- {
- public bool enabled;
- public float depth;
- public float orthographicSize;
- public RenderTexture targetTexture;
- public float aspect;
- public Rect rect;
- public Transform transform;
- public bool orthographic;
- public int cullingMask;
- public static Camera main => null;
- public void Render() => throw new NotImplementedException();
- public void CopyFrom(Camera c) => throw new NotImplementedException();
- public Ray ScreenPointToRay(vec2 p) => throw new NotImplementedException();
- public vec3 ScreenToWorldPoint(vec3 x) => throw new NotImplementedException();
- }
- public class Material : EngineObject
- {
- public int renderQueue;
- public Texture mainTexture;
- public bool enableInstancing;
- public string name;
- public Material(params object[] x) =>throw new NotImplementedException();
- public void SetTexture(string n, object t) => throw new NotImplementedException();
- public void SetInt(string q, object i) => throw new NotImplementedException();
- public void SetFloat(string q, object i) => throw new NotImplementedException();
- public void SetVector(string q, object i) => throw new NotImplementedException();
- public void SetBuffer(string q, object i) => throw new NotImplementedException();
- public void SetColor(string q, object i) => throw new NotImplementedException();
- public void SetColorArray(string q, object i) => throw new NotImplementedException();
- public void SetFloatArray(string q, object i) => throw new NotImplementedException();
- public bool HasProperty(string x) => throw new NotImplementedException();
- public void EnableKeyword(string x) => throw new NotImplementedException();
- }
- public class MeshRenderer
- {
- public Material[] materials;
- public Material material => materials[0];
- public bool enabled;
- }
- public class MeshCollider
- {
- public bool enabled;
- }
- public class MeshFilter
- {
- public Mesh mesh;
- }
- public static class Debug
- {
- public static void Assert(bool v, string msg = "")
- {
- if (!v)
- throw new ApplicationException("Assertion failed: " +msg);
- }
- public static void AssertFormat(bool v, string fmt, params object[] args)
- {
- if (!v)
- throw new ApplicationException("Assertion failed: " + String.Format(fmt,args));
- }
- public static void Log(string msg) => GD.Print(msg);
- public static void LogFormat(string fmt, params object[] args) => GD.Print(fmt,args);
- public static void LogError(string msg) => GD.PrintErr(msg);
- public static void LogWarning(string msg) => GD.PrintErr(msg);
- public static void LogException(Exception e) => throw new NotImplementedException();
- }
- public enum LogType
- {
- Log=0,
- Exception,
- Assert
- }
- public class GUIStyle
- {
- }
- public static class GUILayout
- {
- public static void BeginArea(Rect r, string s = "", string q = "") => throw new NotImplementedException();
- public static void EndArea() => throw new NotImplementedException();
- public static void BeginHorizontal() => throw new NotImplementedException();
- public static void BeginVertical() => throw new NotImplementedException();
- public static void EndHorizontal() => throw new NotImplementedException();
- public static void EndVertical() => throw new NotImplementedException();
- public static vec2 BeginScrollView(vec2 p) => throw new NotImplementedException();
- public static void EndScrollView() => throw new NotImplementedException();
- public static void FlexibleSpace() => throw new NotImplementedException();
- public static void Label(string s) => throw new NotImplementedException();
- public static bool Button(object s) => throw new NotImplementedException();
- public static string TextField(string s, GUIStyle style = null) => throw new NotImplementedException();
- public static int SelectionGrid(params object[] args) => throw new NotImplementedException();
- public static bool Toggle(params object[] args) => throw new NotImplementedException();
- public static float HorizontalSlider(params object[] args) => throw new NotImplementedException();
- }
- public class SerializeFieldAttribute : System.Attribute { }
- public class ReadOnlyAttribute : System.Attribute{}
- public class WriteOnlyAttribute : System.Attribute{}
- public static class Job
- {
- public static void Schedule(IJobParallelFor job, int len, int chunkSize) => throw new NotImplementedException();
- public static void Schedule(IJob job) => throw new NotImplementedException();
- }
- public interface IJobParallelFor
- {
- void Execute(int index);
- }
- public interface IJob
- {
- void Execute();
- }
- public static class PlayerPrefs
- {
- public static int GetInt(string s, int v) => throw new NotImplementedException();
- public static void SetInt(string s, int v) => throw new NotImplementedException();
- }
- namespace UnityEngine
- {
- namespace Profiling
- {
- public static class Profiler
- {
- public static void BeginSample(string s) => throw new NotImplementedException();
- public static void EndSample() => throw new NotImplementedException();
- }
- }
- }
- public struct ProfilerMarker
- {
- public ProfilerMarker(string s) { }
- public void Begin() => throw new NotImplementedException();
- public void End() => throw new NotImplementedException();
- }
- public struct Color32
- {
- public byte r;
- public byte g;
- public byte b;
- public byte a;
- public Color32(byte R, byte G, byte B, byte A)
- {
- r = R;
- g = G;
- b = B;
- a = A;
- }
- public static implicit operator Color(Color32 x) => throw new NotImplementedException();
- public static implicit operator Color32(Color x) => throw new NotImplementedException();
- }
- public static class Application
- {
- public static string dataPath => ProjectSettings.GlobalizePath("res://");
- public static string streamingAssetsPath => ProjectSettings.GlobalizePath("res://") + "/assets/json";
- public static string temporaryCachePath => ProjectSettings.GlobalizePath("tmp://");
- //public delegate Messenger.OnLightmapChangedDelegate()
- public delegate void HandleLogDelegate(string logString, string stackTrace, LogType type);
- public static HandleLogDelegate logMessageReceived;
- }
- public static class math
- {
- public static T min<T>(T lhs, T rhs) => throw new NotImplementedException();
- public static T max<T>(T lhs, T rhs) => throw new NotImplementedException();
- public static T abs<T>(T v) => throw new NotImplementedException();
- public static T clamp<T>(T v, T e0, T e1) => throw new NotImplementedException();
- public static ivec2 clamp(ivec2 v, int e0, int e1) => throw new NotImplementedException();
- public static float length<T>(T lhs) => throw new NotImplementedException();
- public static float lengthsq<T>(T lhs) => throw new NotImplementedException();
- public static float log2(float v) => throw new NotImplementedException();
- public static float dot<T>(T v, T q) => throw new NotImplementedException();
- public static int dot(ivec2 v, ivec2 q) => throw new NotImplementedException();
- public static bool any(object x) => throw new NotImplementedException();
- public static float smoothstep(float a, float b, float c) => throw new NotImplementedException();
- public static vec3 normalize(vec3 x) => throw new NotImplementedException();
- public static vec2 normalize(vec2 x) => throw new NotImplementedException();
- public static vec2 normalize(ivec2 x) => throw new NotImplementedException();
- public static dvec2 normalize(dvec2 x) => throw new NotImplementedException();
- public static T lerp<T,U>(T a, T b, U y) => throw new NotImplementedException();
- public static vec2 normalizesafe(ivec2 x) => throw new NotImplementedException();
- public static vec2 normalizesafe(vec2 x) => throw new NotImplementedException();
- public static float sqrt(object x) => throw new NotImplementedException();
- public static bool all(object x) => throw new NotImplementedException();
- public static float floor(object x) => throw new NotImplementedException();
- public static float round(object x) => throw new NotImplementedException();
- public static T frac<T>(T x) => throw new NotImplementedException();
- public static float clamp01(float x) => throw new NotImplementedException();
- public static T sign<T>(T x) => throw new NotImplementedException();
- public static vec2 round(vec2 x) => throw new NotImplementedException();
- }
- public interface ISerializationCallbackReceiver
- {
- void OnBeforeSerialize();
- void OnAfterDeserialize();
- }
- public class Singleton<T> where T: new()
- {
- static Singleton()
- {
- Instance = new();
- }
- public static T Instance;
- }
- public static class Screen
- {
- public static int width;
- public static int height;
- }
- public static class Time
- {
- public static float time;
- public static float deltaTime;
- public static int frameCount;
- }
- public static class Extensions
- {
- public static float grayscale(this Color c) => throw new NotImplementedException();
- }
- public static class JsonUtility
- {
- public static string ToJson(object x, bool q = true) => throw new NotImplementedException();
- public static object FromJson(string x) => throw new NotImplementedException();
- public static string ToJson<T>(T x, bool q = true) => throw new NotImplementedException();
- public static T FromJson<T>(string x) => throw new NotImplementedException();
- }
- public enum FilterMode
- {
- Point=0,
- Bilinear,
- Trilinear
- }
- public enum TextureWrapMode
- {
- Clamp=0,
- Repeat
- }
- public enum TextureFormat
- {
- RGBA32,
- ARGB32,
- R8,
- RFloat,
- BC4,
- BC7,
- BGRA32,
- R16
- }
- public enum RenderTextureFormat
- {
- RGBA32,
- ARGB32,
- R8,
- RFloat
- }
- public enum RenderTextureReadWrite
- {
- Linear
- }
- public class Texture : EngineObject
- {
- public TextureFormat format;
- public FilterMode filterMode;
- public TextureWrapMode wrapMode;
- public int width;
- public int height;
- public void Apply(params object[] args) => throw new NotImplementedException();
- public void SetPixelData(params object[] args) => throw new NotImplementedException();
- }
- public class Texture2D : Texture
- {
- public byte[] GetRawTextureData() => throw new NotImplementedException();
- public T[] GetRawTextureData<T>() => throw new NotImplementedException();
- public void LoadRawTextureData<T>(T[] v) => throw new NotImplementedException();
- public void ReadPixels(params object[] args) => throw new NotImplementedException();
- public byte[] EncodeToPNG() => throw new NotImplementedException();
- public bool LoadImage(byte[] x) => throw new NotImplementedException();
- public Texture2D(params object[] args) => throw new NotImplementedException();
- }
- public class Texture2DArray : Texture
- {
- public int depth;
- public Texture2DArray(params object[] args) => throw new NotImplementedException();
- public T[] GetPixelData<T>(int mipLevel, int sliceIdx) => throw new NotImplementedException();
- }
- public class RenderTexture
- {
- public int width;
- public int height;
- public static RenderTexture active;
- public RenderTexture(params object[] args) => throw new NotImplementedException();
- public void CopyTo(Texture tgt) => throw new NotImplementedException();
- }
- public class Rect
- {
- public Rect(params object[] args) => throw new NotImplementedException();
- }
- public class ComputeBuffer
- {
- public void SetData(params object[] args) => throw new NotImplementedException();
- public ComputeBuffer(params object[] args) => throw new NotImplementedException();
- public void Release() => throw new NotImplementedException();
- }
- public static class Input
- {
- public static vec2 mousePosition;
- public static bool GetKeyDown(object x) => throw new NotImplementedException();
- public static bool GetKey(object x) => throw new NotImplementedException();
- public static bool GetMouseButtonDown(object x) => throw new NotImplementedException();
- public static bool GetMouseButton(object x) => throw new NotImplementedException();
- public static int GetAxis(string axis) => throw new NotImplementedException();
- }
- public enum KeyCode
- {
- A, B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,Escape,LeftControl,LeftAlt, LeftArrow, RightArrow, Return,Tab, Alpha1, Alpha2, Alpha3, Alpha4, Alpha5, Alpha6, Alpha7, Alpha8, Alpha9,
- LeftShift, RightShift, None,
- }
- public class AudioSource
- {
- public AudioClip clip;
- public float pitch;
- public float volume;
- public bool loop;
- public void Play() => throw new NotImplementedException();
- public void PlayOneShot(AudioClip clip, float volume) => throw new NotImplementedException();
- public void Stop() => throw new NotImplementedException();
- }
- public class Shader : EngineObject
- {
- public static Shader Find(string x) => throw new NotImplementedException();
- }
- public class LayerMask
- {
- public static int NameToLayer(string x) => throw new NotImplementedException();
- }
- public class EngineObject
- {
- public static void Destroy(object x) => throw new NotImplementedException();
- public static void DestroyImmediately(object x) => throw new NotImplementedException();
- }
- public static class Graphics
- {
- public static void DrawMeshInstancedIndirect(params object[] args) => throw new NotImplementedException();
- }
- public enum ComputeBufferType
- {
- Default,
- IndirectArguments
- }
- public class AudioClip : EngineObject
- {
- public string name;
- }
- public class AudioMixer : EngineObject
- {
- }
- public class Font { }
- public static class Event
- {
- public static KeyCode keyCode;
- }
- public class WaitForSeconds
- {
- public WaitForSeconds(params object[] args) => throw new NotImplementedException();
- }
- public static class ScreenCapture
- {
- public static void CaptureScreenshot(string fname, int magTimes) => throw new NotImplementedException();
- }
- public static class NativeExtras
- {
- public static T[] SubArray<T>(T[] ar, int i, int num) => throw new NotImplementedException();
- }
- public static class SystemInfo
- {
- public static bool SupportsRenderTextureFormat(RenderTextureFormat rtf) => throw new NotImplementedException();
- public static bool SupportsTextureFormat(TextureFormat tf) => throw new NotImplementedException();
- public static bool supportsComputeShaders;
- }
- public class RaycastHit
- {
- public vec2 textureCoord;
- public vec3 point;
- }
- public class Ray
- {
- }
- public static class Physics
- {
- public static bool Raycast(Ray ray, out RaycastHit rh) => throw new NotImplementedException();
- }
- public static class PerlinNoise
- {
- public static float Calc2D(float x, float y) => throw new NotImplementedException();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement