- From console create file:
dd if=/dev/zero of=/tmp/sharedfile bs=12288 count=1 - The C# program
- The C program
mcs Sender.cs| using UnityEngine; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Runtime.CompilerServices; | |
| using CanTarget = And<And<InRange, IsAlive>, LineOfSight>; | |
| // ---------- Domain ---------- | |
| class Health : MonoBehaviour { | |
| public int hp = 10; |
| #include "BlenderSyncLibExport.h" | |
| #include <enet/enet.h> | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <string> | |
| #include <fstream> | |
| #include "../Basis/include/editor/BasisBlenderSync.h" |
| using System; | |
| using System.Linq.Expressions; | |
| using UnityEngine; | |
| public class DamageCalculator : MonoBehaviour { | |
| void Start() { | |
| Func<int, int, int> damageExpression = CreateDamageEvaluator(); | |
| int damage = damageExpression(10, 2); | |
| Debug.Log($"Calculated Damage: {damage}"); |
| <m-group id="agent-group"> | |
| <m-audio id="agent-audio" y="2" z="-2.7" loop="false"></m-audio> | |
| <m-group id="float-wrapper"> | |
| <m-group id="actions-wrapper"> | |
| <m-model | |
| id="agent-model" | |
| src="/assets/playground/brainzo_draco.glb" |
| using System.Collections.Generic; | |
| namespace Automata { | |
| public abstract class State { | |
| protected readonly PushDownAutomata pda; | |
| protected State(PushDownAutomata pda) { | |
| this.pda = pda; | |
| } | |
| // .NET 3.5 implementation | |
| public int GetHashCodeDotNet35(string str) | |
| { | |
| int hashCode = 0; | |
| foreach (char ch in str) | |
| { | |
| hashCode = (hashCode << 5) - hashCode + (int)ch; | |
| } | |
| return hashCode; | |
| } |
| using System; | |
| using System.Linq; | |
| using UnityEditor; | |
| using UnityEngine; | |
| [Serializable] | |
| public class SerializableType : ISerializationCallbackReceiver { | |
| [SerializeField] string assemblyQualifiedName = string.Empty; | |
| public Type Type { get; private set; } |
| [CreateAssetMenu(fileName = "AbilityData", menuName = "ScriptableObjects/AbilityData", order = 1)] | |
| public class AbilityData : ScriptableObject { | |
| public AnimationClip animationClip; | |
| public int animationHash; | |
| public float duration; | |
| public Sprite icon; | |
| public string fullName; | |
| void OnValidate() { |
| CLANG_DIR = $(HOME)/clang+llvm-13.0.1-x86_64-linux-gnu-ubuntu-18.04 | |
| CLANG = $(CLANG_DIR)/bin/clang | |
| LLC = $(CLANG_DIR)/bin/llc | |
| LD = $(CLANG_DIR)/bin/wasm-ld | |
| C_SRC := $(wildcard src/c/*.c) | |
| OBJ_SRC := $(patsubst %.c, %.o, $(C_SRC)) | |
| %.o: %.c # delete competing implicit rule |