- 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 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 |
using UnityEngine; | |
using UnityEngine.AI; | |
namespace AIEngineTest | |
{ | |
public class Archetype : MonoBehaviour, | |
IHiraBotArchetype<NavMeshAgent>, | |
IHiraBotArchetype<Animator>, | |
IHiraBotArchetype<ConsolidatedSensor>, | |
IHiraBotArchetype<HiraLGOAPRealtimeBot>, |
// ***************************************************************************************** | |
// ***************************************************************************************** | |
// ***************************************************************************************** | |
// ****************************************PC SA Main Script******************************** | |
// ***************************************************************************************** | |
// ***************************************************************************************** | |
// ***************************************************************************************** | |
SCRIPT_NAME MAIN //NEW MAIN |
// ------------------------------------------------------------------------------------ AddressInfo | |
// --- AddressInfo -------------------------------------------------------------------------------- | |
public static class AddressInfo | |
{ | |
public static string prefabGroup = "Prefabs"; | |
public static string prefabLabel = "Prefab"; | |
} | |
// ------------------------------------------------------------------------------ AddressableHelper | |
// --- AddressableHelper -------------------------------------------------------------------------- |
# References: | |
# https://cmake.org/cmake/help/latest/command/add_custom_target.html | |
# https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/ | |
# https://gist.github.com/socantre/7ee63133a0a3a08f3990 | |
# https://stackoverflow.com/questions/24163778/how-to-add-custom-target-that-depends-on-make-install | |
# https://stackoverflow.com/questions/30719275/add-custom-command-is-not-generating-a-target | |
# https://stackoverflow.com/questions/26024235/how-to-call-a-cmake-function-from-add-custom-target-command | |
# https://blog.csdn.net/gubenpeiyuan/article/details/51096777 | |
cmake_minimum_required(VERSION 3.10) |