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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Gas : Mineral | |
{ | |
// Update is called once per frame | |
void Update() | |
{ |
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
#define SDL_MAIN_HANDLED | |
#ifdef _WIN32 | |
#include <SDL.h> | |
#else | |
#include <SDL2/SDL.h> | |
#endif | |
#include <stdio.h> |
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
#define SDL_MAIN_HANDLED | |
#ifdef _WIN32 | |
#include <SDL.h> | |
#else | |
#include <SDL2/SDL.h> | |
#endif | |
#include <stdio.h> |
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
#include <stdio.h> | |
#ifdef _WIN32 | |
#include <windows.h> | |
#else | |
#include <dlfcn.h> | |
#endif | |
#ifdef _WIN32 | |
#define EXPORT __declspec(dllexport) |
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
#ifdef _WIN32 | |
#define EXPORT __declspec(dllexport) | |
#else | |
#define EXPORT | |
#endif | |
EXPORT int app_adder(int, int); | |
EXPORT int app_multiplier(int , int); |
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
#include "app.h" | |
int app_adder(int a, int b) | |
{ | |
return a + b; | |
} | |
int app_multiplier(int a, int b) | |
{ | |
return a * b; |
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
#include "app.h" | |
EXPORT int plugin_divider(int a, int b) | |
{ | |
int value0 = app_adder(a, b); | |
int value1 = app_multiplier(a, b); | |
return value0 / value1; | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace BattleSimulator | |
{ | |
class Program | |
{ |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ScavengerStateMachine : MonoBehaviour | |
{ | |
public float Speed; | |
delegate void ScavengerState(); |
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
#include <aiv_opengl.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define STB_IMAGE_IMPLEMENTATION | |
#include <stb_image.h> | |
aiv_opengl_context_t context; | |
int main(int argc, char *argv[]) | |
{ |