diff --git a/clients/unity/.gitignore b/clients/unity/.gitignore
deleted file mode 100644
index d784f4250..000000000
--- a/clients/unity/.gitignore
+++ /dev/null
@@ -1,11 +0,0 @@
-[Oo]bj
-[Bb]in
-*.user
-*.suo
-*.[Cc]ache
-*.bak
-*.ncb
-*.log
-*.DS_Store
-[Tt]humbs.db
-Ankh.NoLoad
diff --git a/clients/unity/simple_sample/.gitignore b/clients/unity/simple_sample/.gitignore
deleted file mode 100644
index 6ea3f8947..000000000
--- a/clients/unity/simple_sample/.gitignore
+++ /dev/null
@@ -1,12 +0,0 @@
-*.sln
-*.userprefs
-*.csproj
-*.pidb
-*.unityproj
-.DS_Store
-/Library/FailedAssetImports.txt
-/Library/cache/
-/Library/previews/
-/Library/ScriptAssemblies
-/obj
-/Temp
\ No newline at end of file
diff --git a/clients/unity/simple_sample/Assets/ArenaMode.png b/clients/unity/simple_sample/Assets/ArenaMode.png
deleted file mode 100644
index 57f5651c2..000000000
Binary files a/clients/unity/simple_sample/Assets/ArenaMode.png and /dev/null differ
diff --git a/clients/unity/simple_sample/Assets/ArenaMode.png.meta b/clients/unity/simple_sample/Assets/ArenaMode.png.meta
deleted file mode 100644
index 14108e0a7..000000000
--- a/clients/unity/simple_sample/Assets/ArenaMode.png.meta
+++ /dev/null
@@ -1,36 +0,0 @@
-fileFormatVersion: 2
-guid: 89b0f8fea628a544a9855c108fbe35dc
-TextureImporter:
- serializedVersion: 2
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- linearTexture: 0
- correctGamma: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: .25
- normalMapFilter: 0
- isReadable: 0
- grayScaleToAlpha: 0
- generateCubemap: 0
- seamlessCubemap: 0
- textureFormat: -1
- maxTextureSize: 1024
- textureSettings:
- filterMode: -1
- aniso: -1
- mipBias: -1
- wrapMode: -1
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- alphaIsTransparency: 0
- textureType: -1
- buildTargetSettings: []
- userData:
diff --git a/clients/unity/simple_sample/Assets/Bad.mat b/clients/unity/simple_sample/Assets/Bad.mat
deleted file mode 100644
index 33b8991c8..000000000
--- a/clients/unity/simple_sample/Assets/Bad.mat
+++ /dev/null
@@ -1,27 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!21 &2100000
-Material:
- serializedVersion: 3
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_Name: Bad
- m_Shader: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
- m_ShaderKeywords: []
- m_SavedProperties:
- serializedVersion: 2
- m_TexEnvs:
- data:
- first:
- name: _MainTex
- second:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- m_Floats: {}
- m_Colors:
- data:
- first:
- name: _Color
- second: {r: 1, g: 0, b: 0, a: 1}
diff --git a/clients/unity/simple_sample/Assets/Bad.mat.meta b/clients/unity/simple_sample/Assets/Bad.mat.meta
deleted file mode 100644
index 2cb7b3f0b..000000000
--- a/clients/unity/simple_sample/Assets/Bad.mat.meta
+++ /dev/null
@@ -1,4 +0,0 @@
-fileFormatVersion: 2
-guid: 9fd804cbd377fd445805d7e5eea47877
-NativeFormatImporter:
- userData:
diff --git a/clients/unity/simple_sample/Assets/DFHack.meta b/clients/unity/simple_sample/Assets/DFHack.meta
deleted file mode 100644
index 283b60fb8..000000000
--- a/clients/unity/simple_sample/Assets/DFHack.meta
+++ /dev/null
@@ -1,5 +0,0 @@
-fileFormatVersion: 2
-guid: fd22bd16464e8784cbd88809cdc697a3
-folderAsset: yes
-DefaultImporter:
- userData:
diff --git a/clients/unity/simple_sample/Assets/DFHack/isoworldremote.pb.cs b/clients/unity/simple_sample/Assets/DFHack/isoworldremote.pb.cs
deleted file mode 100644
index 95ef929f9..000000000
--- a/clients/unity/simple_sample/Assets/DFHack/isoworldremote.pb.cs
+++ /dev/null
@@ -1,356 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-// Generated from: isoworldremote.proto
-namespace isoworldremote
-{
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ColorDefinition")]
- public partial class ColorDefinition : global::ProtoBuf.IExtensible
- {
- public ColorDefinition() {}
-
- private int _red;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"red", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int red
- {
- get { return _red; }
- set { _red = value; }
- }
- private int _green;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"green", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int green
- {
- get { return _green; }
- set { _green = value; }
- }
- private int _blue;
- [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"blue", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int blue
- {
- get { return _blue; }
- set { _blue = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"EmbarkTileLayer")]
- public partial class EmbarkTileLayer : global::ProtoBuf.IExtensible
- {
- public EmbarkTileLayer() {}
-
- private readonly global::System.Collections.Generic.List _mat_type_table = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(4, Name=@"mat_type_table", DataFormat = global::ProtoBuf.DataFormat.TwosComplement, Options = global::ProtoBuf.MemberSerializationOptions.Packed)]
- public global::System.Collections.Generic.List mat_type_table
- {
- get { return _mat_type_table; }
- }
-
- private readonly global::System.Collections.Generic.List _mat_subtype_table = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(5, Name=@"mat_subtype_table", DataFormat = global::ProtoBuf.DataFormat.TwosComplement, Options = global::ProtoBuf.MemberSerializationOptions.Packed)]
- public global::System.Collections.Generic.List mat_subtype_table
- {
- get { return _mat_subtype_table; }
- }
-
- private readonly global::System.Collections.Generic.List _tile_shape_table = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(6, Name=@"tile_shape_table", DataFormat = global::ProtoBuf.DataFormat.TwosComplement, Options = global::ProtoBuf.MemberSerializationOptions.Packed)]
- public global::System.Collections.Generic.List tile_shape_table
- {
- get { return _tile_shape_table; }
- }
-
- private readonly global::System.Collections.Generic.List _tile_color_table = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(7, Name=@"tile_color_table", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List tile_color_table
- {
- get { return _tile_color_table; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"EmbarkTile")]
- public partial class EmbarkTile : global::ProtoBuf.IExtensible
- {
- public EmbarkTile() {}
-
- private int _world_x;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"world_x", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int world_x
- {
- get { return _world_x; }
- set { _world_x = value; }
- }
- private int _world_y;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"world_y", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int world_y
- {
- get { return _world_y; }
- set { _world_y = value; }
- }
- private int _world_z;
- [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"world_z", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
- public int world_z
- {
- get { return _world_z; }
- set { _world_z = value; }
- }
- private readonly global::System.Collections.Generic.List _tile_layer = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(4, Name=@"tile_layer", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List tile_layer
- {
- get { return _tile_layer; }
- }
-
-
- private int _current_year = default(int);
- [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"current_year", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int current_year
- {
- get { return _current_year; }
- set { _current_year = value; }
- }
-
- private int _current_season = default(int);
- [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"current_season", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int current_season
- {
- get { return _current_season; }
- set { _current_season = value; }
- }
-
- private bool _is_valid = default(bool);
- [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"is_valid", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(default(bool))]
- public bool is_valid
- {
- get { return _is_valid; }
- set { _is_valid = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"TileRequest")]
- public partial class TileRequest : global::ProtoBuf.IExtensible
- {
- public TileRequest() {}
-
-
- private int _want_x = default(int);
- [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"want_x", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int want_x
- {
- get { return _want_x; }
- set { _want_x = value; }
- }
-
- private int _want_y = default(int);
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"want_y", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int want_y
- {
- get { return _want_y; }
- set { _want_y = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"MapRequest")]
- public partial class MapRequest : global::ProtoBuf.IExtensible
- {
- public MapRequest() {}
-
-
- private string _save_folder = "";
- [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"save_folder", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string save_folder
- {
- get { return _save_folder; }
- set { _save_folder = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"MapReply")]
- public partial class MapReply : global::ProtoBuf.IExtensible
- {
- public MapReply() {}
-
- private bool _available;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"available", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public bool available
- {
- get { return _available; }
- set { _available = value; }
- }
-
- private int _region_x = default(int);
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"region_x", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int region_x
- {
- get { return _region_x; }
- set { _region_x = value; }
- }
-
- private int _region_y = default(int);
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"region_y", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int region_y
- {
- get { return _region_y; }
- set { _region_y = value; }
- }
-
- private int _region_size_x = default(int);
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"region_size_x", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int region_size_x
- {
- get { return _region_size_x; }
- set { _region_size_x = value; }
- }
-
- private int _region_size_y = default(int);
- [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"region_size_y", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int region_size_y
- {
- get { return _region_size_y; }
- set { _region_size_y = value; }
- }
-
- private int _current_year = default(int);
- [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"current_year", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int current_year
- {
- get { return _current_year; }
- set { _current_year = value; }
- }
-
- private int _current_season = default(int);
- [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"current_season", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int current_season
- {
- get { return _current_season; }
- set { _current_season = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RawNames")]
- public partial class RawNames : global::ProtoBuf.IExtensible
- {
- public RawNames() {}
-
- private bool _available;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"available", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public bool available
- {
- get { return _available; }
- set { _available = value; }
- }
- private readonly global::System.Collections.Generic.List _inorganic = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(2, Name=@"inorganic", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List inorganic
- {
- get { return _inorganic; }
- }
-
- private readonly global::System.Collections.Generic.List _organic = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(3, Name=@"organic", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List organic
- {
- get { return _organic; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::ProtoBuf.ProtoContract(Name=@"BasicMaterial")]
- public enum BasicMaterial
- {
-
- [global::ProtoBuf.ProtoEnum(Name=@"AIR", Value=0)]
- AIR = 0,
-
- [global::ProtoBuf.ProtoEnum(Name=@"OTHER", Value=1)]
- OTHER = 1,
-
- [global::ProtoBuf.ProtoEnum(Name=@"INORGANIC", Value=2)]
- INORGANIC = 2,
-
- [global::ProtoBuf.ProtoEnum(Name=@"LIQUID", Value=3)]
- LIQUID = 3,
-
- [global::ProtoBuf.ProtoEnum(Name=@"PLANT", Value=4)]
- PLANT = 4,
-
- [global::ProtoBuf.ProtoEnum(Name=@"WOOD", Value=5)]
- WOOD = 5
- }
-
- [global::ProtoBuf.ProtoContract(Name=@"LiquidType")]
- public enum LiquidType
- {
-
- [global::ProtoBuf.ProtoEnum(Name=@"ICE", Value=0)]
- ICE = 0,
-
- [global::ProtoBuf.ProtoEnum(Name=@"WATER", Value=1)]
- WATER = 1,
-
- [global::ProtoBuf.ProtoEnum(Name=@"MAGMA", Value=2)]
- MAGMA = 2
- }
-
- [global::ProtoBuf.ProtoContract(Name=@"BasicShape")]
- public enum BasicShape
- {
-
- [global::ProtoBuf.ProtoEnum(Name=@"NONE", Value=0)]
- NONE = 0,
-
- [global::ProtoBuf.ProtoEnum(Name=@"OPEN", Value=1)]
- OPEN = 1,
-
- [global::ProtoBuf.ProtoEnum(Name=@"WALL", Value=3)]
- WALL = 3,
-
- [global::ProtoBuf.ProtoEnum(Name=@"FLOOR", Value=4)]
- FLOOR = 4,
-
- [global::ProtoBuf.ProtoEnum(Name=@"RAMP_UP", Value=5)]
- RAMP_UP = 5,
-
- [global::ProtoBuf.ProtoEnum(Name=@"RAMP_DOWN", Value=6)]
- RAMP_DOWN = 6
- }
-
-}
\ No newline at end of file
diff --git a/clients/unity/simple_sample/Assets/DFHack/isoworldremote.pb.cs.meta b/clients/unity/simple_sample/Assets/DFHack/isoworldremote.pb.cs.meta
deleted file mode 100644
index 24cdda335..000000000
--- a/clients/unity/simple_sample/Assets/DFHack/isoworldremote.pb.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 49176d7675a998345966feca21555311
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/clients/unity/simple_sample/Assets/Editor.meta b/clients/unity/simple_sample/Assets/Editor.meta
deleted file mode 100644
index 359b7c636..000000000
--- a/clients/unity/simple_sample/Assets/Editor.meta
+++ /dev/null
@@ -1,5 +0,0 @@
-fileFormatVersion: 2
-guid: f9efc5e870ab48243b2f508f00b7a740
-folderAsset: yes
-DefaultImporter:
- userData:
diff --git a/clients/unity/simple_sample/Assets/Editor/MapBlockEditor.cs b/clients/unity/simple_sample/Assets/Editor/MapBlockEditor.cs
deleted file mode 100644
index db9a093df..000000000
--- a/clients/unity/simple_sample/Assets/Editor/MapBlockEditor.cs
+++ /dev/null
@@ -1,110 +0,0 @@
-using isoworldremote;
-using UnityEditor;
-using UnityEngine;
-using System;
-
-[CustomEditor(typeof(MapBlock))]
-[CanEditMultipleObjects]
-public class MapBlockEditor : Editor
-{
- static Color32 selectedColor = Color.white;
- static BasicShape selectedShape = BasicShape.WALL;
-
- public override void OnInspectorGUI()
- {
- MapBlock[] targetBlocks = Array.ConvertAll(targets, element => (MapBlock)element);
- if(targets.Length == 1)
- EditorGUILayout.LabelField(targets.Length + " Map Block selected.");
- else
- EditorGUILayout.LabelField(targets.Length + " Map Blocks selected.");
-
- selectedColor = EditorGUILayout.ColorField("Material Color", selectedColor);
- selectedShape = (BasicShape)EditorGUILayout.EnumPopup("Terrain Shape ", selectedShape);
- EditorGUILayout.BeginVertical();
- DFHack.DFCoord2d tempCoord = new DFHack.DFCoord2d();
- for (int i = 0; i < 16; i++)
- {
- EditorGUILayout.BeginHorizontal();
- for (int j = 0; j < 16; j++)
- {
- tempCoord.x = j;
- tempCoord.y = i;
- Color currentColor = targetBlocks[0].GetColor(tempCoord);
- for (int index = 1; index < targetBlocks.Length; index++)
- {
- if (currentColor != targetBlocks[index].GetColor(tempCoord))
- {
- currentColor = Color.white;
- break;
- }
- }
- currentColor.a = 1.0f;
- GUI.color = currentColor;
- string buttonIcon = "\u00A0";
- BasicShape tile = targetBlocks[0].GetSingleTile(tempCoord);
- for (int index = 1; index < targetBlocks.Length; index++)
- {
- if (tile != targetBlocks[index].GetSingleTile(tempCoord))
- {
- tile = BasicShape.NONE;
- break;
- }
-
- }
- switch (tile)
- {
- case BasicShape.WALL:
- buttonIcon = "â–“";
- break;
- case BasicShape.FLOOR:
- buttonIcon = "+";
- break;
- case BasicShape.NONE:
- buttonIcon = "?";
- break;
- case BasicShape.OPEN:
- buttonIcon = "\u00A0";
- break;
- case BasicShape.RAMP_UP:
- buttonIcon = "â–²";
- break;
- case BasicShape.RAMP_DOWN:
- buttonIcon = "â–¼";
- break;
- default:
- buttonIcon = "?";
- break;
- }
- if (GUILayout.Button(buttonIcon))
- {
- for (int index = 0; index < targetBlocks.Length; index++)
- {
- targetBlocks[index].SetSingleTile(tempCoord, selectedShape);
- targetBlocks[index].SetColor(tempCoord, selectedColor);
- targetBlocks[index].Regenerate();
- EditorUtility.SetDirty(targetBlocks[index]);
- }
- }
- }
- EditorGUILayout.EndHorizontal();
- }
- EditorGUILayout.EndVertical();
- GUI.color = Color.white;
- if (GUILayout.Button("Fill"))
- {
- for (int index = 0; index < targetBlocks.Length; index++)
- {
- for (int i = 0; i < 16; i++)
- for (int j = 0; j < 16; j++)
- {
- DFHack.DFCoord2d here = new DFHack.DFCoord2d(j, i);
- targetBlocks[index].SetSingleTile(here, selectedShape);
- targetBlocks[index].SetColor(here, selectedColor);
-
- }
- targetBlocks[index].Regenerate();
- EditorUtility.SetDirty(targetBlocks[index]);
- }
- }
- }
-}
diff --git a/clients/unity/simple_sample/Assets/Editor/MapBlockEditor.cs.meta b/clients/unity/simple_sample/Assets/Editor/MapBlockEditor.cs.meta
deleted file mode 100644
index 7e14634d7..000000000
--- a/clients/unity/simple_sample/Assets/Editor/MapBlockEditor.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 6e1305e96d61f204f8229e0a0cb7f8c1
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/clients/unity/simple_sample/Assets/GameWindow.cs b/clients/unity/simple_sample/Assets/GameWindow.cs
deleted file mode 100644
index a886ea36d..000000000
--- a/clients/unity/simple_sample/Assets/GameWindow.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-using UnityEngine;
-using System.Collections;
-
-public class GameWindow : MonoBehaviour
-{
- public int viewPortWidth = 80;
- public int viewPortHeight = 25;
- public float verticalShift;
- public float viewDistance = 5;
- float n, f, r, l, t, b;
- Matrix4x4 mat = new Matrix4x4();
- // Use this for initialization
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
- float screenAspect = (float)Screen.width / (float)Screen.height;
- float viewportAspect = (float)viewPortWidth / (float)viewPortHeight;
-
- float fraction = screenAspect / viewportAspect;
-
- float height = (viewPortHeight / 2.0f) / Mathf.Sin((camera.fieldOfView / 2) * Mathf.Deg2Rad);
- transform.localPosition = new Vector3(0, height, -verticalShift);
-
- camera.nearClipPlane = height - 1.0001f;
- camera.farClipPlane = height + viewDistance;
- RenderSettings.fogStartDistance = camera.nearClipPlane;
- RenderSettings.fogEndDistance = camera.farClipPlane;
- if (fraction > 1.0f) //If the screen is wider than the DF Viewport
- {
- camera.rect = new Rect(0.5f - ((1.0f / fraction) / 2.0f), 0.0f, 1.0f / fraction, 1.0f);
- }
- else //If the DF Viewport is wider.
- {
- camera.rect = new Rect(0.0f, 0.5f - (fraction / 2.0f), 1.0f, fraction);
- }
- //make a custom camera matrix, rather than use the inbuilt one.
- n = camera.nearClipPlane;
- f = camera.farClipPlane;
- r = viewPortWidth / 2.0f;
- l = -viewPortWidth / 2.0f;
- t = verticalShift + (viewPortHeight / 2.0f);
- b = verticalShift - (viewPortHeight / 2.0f);
-
-
- mat[0, 0] = 2 * n / (r - l); mat[1, 0] = 0; mat[2, 0] = 0; mat[3, 0] = 0;
- mat[0, 1] = 0; mat[1, 1] = 2 * n / (t - b); mat[2, 1] = 0; mat[3, 1] = 0;
- mat[0, 2] = (r + l) / (r - l); mat[1, 2] = (t + b) / (t - b); mat[2, 2] = -(f + n) / (f - n); mat[3, 2] = -1;
- mat[0, 3] = 0; mat[1, 3] = 0; mat[2, 3] = -2 * f * n / (f - n); ; mat[3, 3] = 0;
-
- camera.projectionMatrix = mat;
- }
-}
diff --git a/clients/unity/simple_sample/Assets/GameWindow.cs.meta b/clients/unity/simple_sample/Assets/GameWindow.cs.meta
deleted file mode 100644
index cfc663b20..000000000
--- a/clients/unity/simple_sample/Assets/GameWindow.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: b54fa8be8a38a9f4e8f53b4399135e30
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/clients/unity/simple_sample/Assets/HUDFPS.cs b/clients/unity/simple_sample/Assets/HUDFPS.cs
deleted file mode 100644
index 88fdd3755..000000000
--- a/clients/unity/simple_sample/Assets/HUDFPS.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-using UnityEngine;
-using System.Collections;
-
-[AddComponentMenu("Utilities/HUDFPS")]
-public class HUDFPS : MonoBehaviour
-{
- // Attach this to any object to make a frames/second indicator.
- //
- // It calculates frames/second over each updateInterval,
- // so the display does not keep changing wildly.
- //
- // It is also fairly accurate at very low FPS counts (<10).
- // We do this not by simply counting frames per interval, but
- // by accumulating FPS for each frame. This way we end up with
- // corstartRect overall FPS even if the interval renders something like
- // 5.5 frames.
-
- public Rect startRect = new Rect(10, 10, 75, 50); // The rect the window is initially displayed at.
- public bool updateColor = true; // Do you want the color to change if the FPS gets low
- public bool allowDrag = true; // Do you want to allow the dragging of the FPS window
- public float frequency = 0.5F; // The update frequency of the fps
- public int nbDecimal = 1; // How many decimal do you want to display
-
- private float accum = 0f; // FPS accumulated over the interval
- private int frames = 0; // Frames drawn over the interval
- private Color color = Color.white; // The color of the GUI, depending of the FPS ( R < 10, Y < 30, G >= 30 )
- private string sFPS = ""; // The fps formatted into a string.
- private GUIStyle style; // The style the text will be displayed at, based en defaultSkin.label.
-
- void Start()
- {
- StartCoroutine(FPS());
- }
-
- void Update()
- {
- accum += Time.timeScale / Time.deltaTime;
- ++frames;
- }
-
- IEnumerator FPS()
- {
- // Infinite loop executed every "frenquency" secondes.
- while (true)
- {
- // Update the FPS
- float fps = accum / frames;
- sFPS = fps.ToString("f" + Mathf.Clamp(nbDecimal, 0, 10));
-
- //Update the color
- color = (fps >= 30) ? Color.green : ((fps > 10) ? Color.red : Color.yellow);
-
- accum = 0.0F;
- frames = 0;
-
- yield return new WaitForSeconds(frequency);
- }
- }
-
- void OnGUI()
- {
- // Copy the default label skin, change the color and the alignement
- if (style == null)
- {
- style = new GUIStyle(GUI.skin.label);
- style.normal.textColor = Color.white;
- style.alignment = TextAnchor.MiddleCenter;
- }
-
- GUI.color = updateColor ? color : Color.white;
- startRect = GUI.Window(0, startRect, DoMyWindow, "");
- }
-
- void DoMyWindow(int windowID)
- {
- GUI.Label(new Rect(0, 0, startRect.width, startRect.height), sFPS + " FPS", style);
- if (allowDrag) GUI.DragWindow(new Rect(0, 0, Screen.width, Screen.height));
- }
-}
\ No newline at end of file
diff --git a/clients/unity/simple_sample/Assets/HUDFPS.cs.meta b/clients/unity/simple_sample/Assets/HUDFPS.cs.meta
deleted file mode 100644
index 8354414be..000000000
--- a/clients/unity/simple_sample/Assets/HUDFPS.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 2fb12edbd5d56cb4c99ccf773df52492
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/clients/unity/simple_sample/Assets/MapGen.meta b/clients/unity/simple_sample/Assets/MapGen.meta
deleted file mode 100644
index 4978dd295..000000000
--- a/clients/unity/simple_sample/Assets/MapGen.meta
+++ /dev/null
@@ -1,5 +0,0 @@
-fileFormatVersion: 2
-guid: c7e34aa4b4a41d1478337506ce720e18
-folderAsset: yes
-DefaultImporter:
- userData:
diff --git a/clients/unity/simple_sample/Assets/MapGen/GameMap.cs b/clients/unity/simple_sample/Assets/MapGen/GameMap.cs
deleted file mode 100644
index 8f7bc1ffc..000000000
--- a/clients/unity/simple_sample/Assets/MapGen/GameMap.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using UnityEngine;
-using System.Collections;
-
-public class GameMap : MonoBehaviour {
-
- // Use this for initialization
- void Start () {
-
- }
-
- // Update is called once per frame
- void Update () {
-
- }
-}
diff --git a/clients/unity/simple_sample/Assets/MapGen/GameMap.cs.meta b/clients/unity/simple_sample/Assets/MapGen/GameMap.cs.meta
deleted file mode 100644
index 318ffd70a..000000000
--- a/clients/unity/simple_sample/Assets/MapGen/GameMap.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: aa92a0e1eefe93b40bec1e868142e050
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/clients/unity/simple_sample/Assets/MapGen/MapBlock.cs b/clients/unity/simple_sample/Assets/MapGen/MapBlock.cs
deleted file mode 100644
index 489299fdc..000000000
--- a/clients/unity/simple_sample/Assets/MapGen/MapBlock.cs
+++ /dev/null
@@ -1,321 +0,0 @@
-using DFHack;
-using System.Collections.Generic;
-using UnityEngine;
-using isoworldremote;
-
-public class MapBlock : MonoBehaviour
-{
- public static float floorHeight = 0.1f;
- public static float rampDistance = 2.0f;
- DFCoord coordinates;
- GameMap parent;
-
- [SerializeField]
- BasicShape[] terrain = new BasicShape[256];
- [SerializeField]
- Color32[] colors = new Color32[256];
-
- List finalVertices = new List();
- List finalFaces = new List();
- List finalVertexColors = new List();
- List finalUVs = new List();
-
- public enum Openness
- {
- air,
- mixed,
- stone
- }
- Openness openness;
-
- public void SetOpenness()
- {
- int air = 0;
- int solid = 0;
- for (int x = 0; x < 16; x++)
- for (int y = 0; y < 16; y++)
- {
- if (terrain[y * 16 + x] == BasicShape.OPEN || terrain[y * 16 + x] == BasicShape.NONE)
- air++;
- else if (terrain[y * 16 + x] == BasicShape.WALL)
- solid++;
- }
- if (air == 256)
- openness = Openness.air;
- else if (solid == 256)
- openness = Openness.stone;
- else openness = Openness.mixed;
- }
-
- public Openness GetOpenness()
- {
- return openness;
- }
-
- public Color32 GetColor(DFCoord2d position)
- {
- return colors[position.x + position.y * 16];
- }
-
- public void SetColor(DFCoord2d position, Color32 input)
- {
- colors[position.x + position.y * 16] = input;
- }
-
- public void SetSingleTile(DFCoord2d position, BasicShape tile)
- {
- terrain[position.x + position.y * 16] = tile;
- SetOpenness();
- }
-
- public BasicShape GetSingleTile(DFCoord2d position)
- {
- if (position.x >= 0 && position.x < 16 && position.y >= 0 && position.y < 16)
- return terrain[position.x + position.y * 16];
- else
- return BasicShape.NONE;
- }
-
- public void Regenerate()
- {
- finalVertices.Clear();
- finalFaces.Clear();
- finalVertexColors.Clear();
- finalUVs.Clear();
-
- if (openness == Openness.air)
- {
- }
- else
- {
- for (int i = 0; i < 16; i++)
- for (int j = 0; j < 16; j++)
- {
- DFCoord2d here = new DFCoord2d(i, j);
- switch (GetSingleTile(here))
- {
- case BasicShape.WALL:
- AddTopFace(here, 1.0f);
- break;
- case BasicShape.FLOOR:
- AddTopFace(here, floorHeight);
- break;
- }
- AddSideFace(here, FaceDirection.North);
- AddSideFace(here, FaceDirection.South);
- AddSideFace(here, FaceDirection.East);
- AddSideFace(here, FaceDirection.West);
- }
- }
- MeshFilter mf = GetComponent();
- Mesh mesh = new Mesh();
- mf.mesh = mesh;
- mesh.vertices = finalVertices.ToArray();
- mesh.uv = finalUVs.ToArray();
- mesh.colors32 = finalVertexColors.ToArray();
- mesh.triangles = finalFaces.ToArray();
- mesh.RecalculateBounds();
- mesh.RecalculateNormals();
- }
-
- enum FaceDirection
- {
- Up,
- Down,
- North,
- South,
- East,
- West
- }
-
- BasicShape GetRelativeTile(DFCoord2d position, FaceDirection direction)
- {
- DFCoord2d relativePosition = new DFCoord2d(position.x, position.y);
- switch (direction)
- {
- case FaceDirection.North:
- relativePosition.y--;
- break;
- case FaceDirection.South:
- relativePosition.y++;
- break;
- case FaceDirection.East:
- relativePosition.x++;
- break;
- case FaceDirection.West:
- relativePosition.x--;
- break;
- }
- return GetSingleTile(relativePosition);
- }
-
- enum Layer
- {
- Base,
- Floor,
- Top
- }
-
- float convertDistanceToOffset(float input)
- {
- if (input == float.MaxValue)
- return 0;
- input = Mathf.Pow(input, 0.5f);
- input = (rampDistance - input) / rampDistance;
- if (input < 0)
- return 0;
- return Mathf.Sin(input * Mathf.PI / 4.0f);
- }
-
- Vector3 AdjustForRamps(Vector3 input, Layer layer = Layer.Floor)
- {
- float nearestUpRamp = float.MaxValue;
- float nearestDownRamp = float.MaxValue;
- for (int x = (int)(input.x - rampDistance); x < (int)(input.x + rampDistance + 1.0f); x++)
- for (int y = (int)(-input.z - rampDistance); y < (int)(-input.z + rampDistance + 1.0f); y++)
- {
- BasicShape tile = GetSingleTile(new DFCoord2d(x, y));
- if(tile == BasicShape.RAMP_UP || tile == BasicShape.RAMP_DOWN)
- {
- float tempDistance = Mathf.Pow(input.x - x, 2) + Mathf.Pow(-input.z - y, 2);
- if (tile == BasicShape.RAMP_DOWN && tempDistance < nearestDownRamp)
- nearestDownRamp = tempDistance;
- if (tile == BasicShape.RAMP_UP && tempDistance < nearestUpRamp)
- nearestUpRamp = tempDistance;
- }
- }
-
- nearestUpRamp = convertDistanceToOffset(nearestUpRamp);
- nearestDownRamp = convertDistanceToOffset(nearestDownRamp);
-
- if (layer == Layer.Floor)
- input.y = input.y + nearestUpRamp - nearestDownRamp;
- if (layer == Layer.Top)
- input.y = input.y - nearestUpRamp;
-
- return input;
- }
-
- void AddSideFace(DFCoord2d position, FaceDirection direction)
- {
- Layer topLayer = Layer.Top;
- Layer bottomLayer = Layer.Base;
- float currentFloorHeight = -0.5f;
- float adjacentFloorHeight = -0.5f;
- switch (GetSingleTile(position))
- {
- case BasicShape.WALL:
- currentFloorHeight = 0.5f;
- topLayer = Layer.Top;
- break;
- case BasicShape.FLOOR:
- currentFloorHeight = floorHeight - 0.5f;
- topLayer = Layer.Floor;
- break;
- default:
- break;
- }
- switch (GetRelativeTile(position, direction))
- {
- case BasicShape.WALL:
- adjacentFloorHeight = 0.5f;
- bottomLayer = Layer.Top;
- break;
- case BasicShape.FLOOR:
- adjacentFloorHeight = floorHeight - 0.5f;
- bottomLayer = Layer.Floor;
- break;
- default:
- break;
- }
- if (currentFloorHeight <= adjacentFloorHeight)
- return;
- int startindex = finalVertices.Count;
- int uvPos = 0;
- switch (direction)
- {
- case FaceDirection.North:
- finalVertices.Add(AdjustForRamps(new Vector3(position.x + 0.5f, currentFloorHeight, -(position.y - 0.5f)), topLayer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x - 0.5f, currentFloorHeight, -(position.y - 0.5f)), topLayer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x + 0.5f, adjacentFloorHeight, -(position.y - 0.5f)), bottomLayer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x - 0.5f, adjacentFloorHeight, -(position.y - 0.5f)), bottomLayer));
- uvPos = position.x;
- break;
- case FaceDirection.South:
- finalVertices.Add(AdjustForRamps(new Vector3(position.x - 0.5f, currentFloorHeight, -(position.y + 0.5f)), topLayer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x + 0.5f, currentFloorHeight, -(position.y + 0.5f)), topLayer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x - 0.5f, adjacentFloorHeight, -(position.y + 0.5f)), bottomLayer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x + 0.5f, adjacentFloorHeight, -(position.y + 0.5f)), bottomLayer));
- uvPos = 16 - position.x;
- break;
- case FaceDirection.East:
- finalVertices.Add(AdjustForRamps(new Vector3(position.x + 0.5f, currentFloorHeight, -(position.y + 0.5f)), topLayer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x + 0.5f, currentFloorHeight, -(position.y - 0.5f)), topLayer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x + 0.5f, adjacentFloorHeight, -(position.y + 0.5f)), bottomLayer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x + 0.5f, adjacentFloorHeight, -(position.y - 0.5f)), bottomLayer));
- uvPos = position.y;
- break;
- case FaceDirection.West:
- finalVertices.Add(AdjustForRamps(new Vector3(position.x - 0.5f, currentFloorHeight, -(position.y - 0.5f)), topLayer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x - 0.5f, currentFloorHeight, -(position.y + 0.5f)), topLayer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x - 0.5f, adjacentFloorHeight, -(position.y - 0.5f)), bottomLayer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x - 0.5f, adjacentFloorHeight, -(position.y + 0.5f)), bottomLayer));
- uvPos = 16 - position.y;
- break;
- default:
- break;
- }
- finalUVs.Add(new Vector2(-(float)(uvPos + 1) / 16.0f, -(float)(0) / 16.0f));
- finalUVs.Add(new Vector2(-(float)(uvPos) / 16.0f, -(float)(0) / 16.0f));
- finalUVs.Add(new Vector2(-(float)(uvPos + 1) / 16.0f, -(float)(0 + 1) / 16.0f));
- finalUVs.Add(new Vector2(-(float)(uvPos) / 16.0f, -(float)(0 + 1) / 16.0f));
-
- finalVertexColors.Add(GetColor(position));
- finalVertexColors.Add(GetColor(position));
- finalVertexColors.Add(GetColor(position));
- finalVertexColors.Add(GetColor(position));
-
- finalFaces.Add(startindex);
- finalFaces.Add(startindex + 1);
- finalFaces.Add(startindex + 2);
-
- finalFaces.Add(startindex + 1);
- finalFaces.Add(startindex + 3);
- finalFaces.Add(startindex + 2);
- }
-
- void AddTopFace(DFCoord2d position, float height)
- {
- Layer layer = Layer.Base;
- if (GetSingleTile(position) == BasicShape.FLOOR)
- layer = Layer.Floor;
- else if (GetSingleTile(position) == BasicShape.WALL)
- layer = Layer.Top;
- height -= 0.5f;
- //Todo: Weld vertices that should be welded
- //On second though, not with vertex colors there.
- int startindex = finalVertices.Count;
- finalVertices.Add(AdjustForRamps(new Vector3(position.x - 0.5f, height, -(position.y - 0.5f)), layer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x + 0.5f, height, -(position.y - 0.5f)), layer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x - 0.5f, height, -(position.y + 0.5f)), layer));
- finalVertices.Add(AdjustForRamps(new Vector3(position.x + 0.5f, height, -(position.y + 0.5f)), layer));
-
- finalUVs.Add(new Vector2((float)(position.x) / 16.0f, -(float)(position.y) / 16.0f));
- finalUVs.Add(new Vector2((float)(position.x + 1) / 16.0f, -(float)(position.y) / 16.0f));
- finalUVs.Add(new Vector2((float)(position.x) / 16.0f, -(float)(position.y + 1) / 16.0f));
- finalUVs.Add(new Vector2((float)(position.x + 1) / 16.0f, -(float)(position.y + 1) / 16.0f));
-
- finalVertexColors.Add(GetColor(position));
- finalVertexColors.Add(GetColor(position));
- finalVertexColors.Add(GetColor(position));
- finalVertexColors.Add(GetColor(position));
-
- finalFaces.Add(startindex);
- finalFaces.Add(startindex + 1);
- finalFaces.Add(startindex + 2);
-
- finalFaces.Add(startindex + 1);
- finalFaces.Add(startindex + 3);
- finalFaces.Add(startindex + 2);
- }
-}
diff --git a/clients/unity/simple_sample/Assets/MapGen/MapBlock.cs.meta b/clients/unity/simple_sample/Assets/MapGen/MapBlock.cs.meta
deleted file mode 100644
index d14ccadbb..000000000
--- a/clients/unity/simple_sample/Assets/MapGen/MapBlock.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 8d11b6dacbf85e24ead2e95cafce40fd
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/clients/unity/simple_sample/Assets/RemoteClient.meta b/clients/unity/simple_sample/Assets/RemoteClient.meta
deleted file mode 100644
index c7abf0d2a..000000000
--- a/clients/unity/simple_sample/Assets/RemoteClient.meta
+++ /dev/null
@@ -1,5 +0,0 @@
-fileFormatVersion: 2
-guid: e4195866782d0214cb59abbae44f068f
-folderAsset: yes
-DefaultImporter:
- userData:
diff --git a/clients/unity/simple_sample/Assets/RemoteClient/Basic.cs b/clients/unity/simple_sample/Assets/RemoteClient/Basic.cs
deleted file mode 100644
index 146df0232..000000000
--- a/clients/unity/simple_sample/Assets/RemoteClient/Basic.cs
+++ /dev/null
@@ -1,968 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-// Generated from: Basic.proto
-namespace dfproto
-{
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"EnumItemName")]
- public partial class EnumItemName : global::ProtoBuf.IExtensible
- {
- public EnumItemName() {}
-
- private int _value;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int value
- {
- get { return _value; }
- set { _value = value; }
- }
-
- private string _name = "";
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string name
- {
- get { return _name; }
- set { _name = value; }
- }
-
- private int _bit_size = (int)1;
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"bit_size", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue((int)1)]
- public int bit_size
- {
- get { return _bit_size; }
- set { _bit_size = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"BasicMaterialId")]
- public partial class BasicMaterialId : global::ProtoBuf.IExtensible
- {
- public BasicMaterialId() {}
-
- private int _type;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int type
- {
- get { return _type; }
- set { _type = value; }
- }
- private int _index;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"index", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
- public int index
- {
- get { return _index; }
- set { _index = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"BasicMaterialInfo")]
- public partial class BasicMaterialInfo : global::ProtoBuf.IExtensible
- {
- public BasicMaterialInfo() {}
-
- private int _type;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int type
- {
- get { return _type; }
- set { _type = value; }
- }
- private int _index;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"index", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
- public int index
- {
- get { return _index; }
- set { _index = value; }
- }
- private string _token;
- [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"token", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string token
- {
- get { return _token; }
- set { _token = value; }
- }
- private readonly global::System.Collections.Generic.List _flags = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(4, Name=@"flags", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public global::System.Collections.Generic.List flags
- {
- get { return _flags; }
- }
-
-
- private int _subtype = (int)-1;
- [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"subtype", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue((int)-1)]
- public int subtype
- {
- get { return _subtype; }
- set { _subtype = value; }
- }
-
- private int _creature_id = (int)-1;
- [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"creature_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue((int)-1)]
- public int creature_id
- {
- get { return _creature_id; }
- set { _creature_id = value; }
- }
-
- private int _plant_id = (int)-1;
- [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"plant_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue((int)-1)]
- public int plant_id
- {
- get { return _plant_id; }
- set { _plant_id = value; }
- }
-
- private int _histfig_id = (int)-1;
- [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"histfig_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue((int)-1)]
- public int histfig_id
- {
- get { return _histfig_id; }
- set { _histfig_id = value; }
- }
-
- private string _name_prefix = "";
- [global::ProtoBuf.ProtoMember(9, IsRequired = false, Name=@"name_prefix", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string name_prefix
- {
- get { return _name_prefix; }
- set { _name_prefix = value; }
- }
- private readonly global::System.Collections.Generic.List _state_color = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(10, Name=@"state_color", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
- public global::System.Collections.Generic.List state_color
- {
- get { return _state_color; }
- }
-
- private readonly global::System.Collections.Generic.List _state_name = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(11, Name=@"state_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List state_name
- {
- get { return _state_name; }
- }
-
- private readonly global::System.Collections.Generic.List _state_adj = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(12, Name=@"state_adj", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List state_adj
- {
- get { return _state_adj; }
- }
-
- private readonly global::System.Collections.Generic.List _reaction_class = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(13, Name=@"reaction_class", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List reaction_class
- {
- get { return _reaction_class; }
- }
-
- private readonly global::System.Collections.Generic.List _reaction_product = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(14, Name=@"reaction_product", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List reaction_product
- {
- get { return _reaction_product; }
- }
-
- private readonly global::System.Collections.Generic.List _inorganic_flags = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(15, Name=@"inorganic_flags", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public global::System.Collections.Generic.List inorganic_flags
- {
- get { return _inorganic_flags; }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Product")]
- public partial class Product : global::ProtoBuf.IExtensible
- {
- public Product() {}
-
- private string _id;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string id
- {
- get { return _id; }
- set { _id = value; }
- }
- private int _type;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int type
- {
- get { return _type; }
- set { _type = value; }
- }
- private int _index;
- [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"index", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
- public int index
- {
- get { return _index; }
- set { _index = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"BasicMaterialInfoMask")]
- public partial class BasicMaterialInfoMask : global::ProtoBuf.IExtensible
- {
- public BasicMaterialInfoMask() {}
-
- private readonly global::System.Collections.Generic.List _states = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(1, Name=@"states", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public global::System.Collections.Generic.List states
- {
- get { return _states; }
- }
-
-
- private int _temperature = (int)10015;
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"temperature", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue((int)10015)]
- public int temperature
- {
- get { return _temperature; }
- set { _temperature = value; }
- }
-
- private bool _flags = (bool)false;
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"flags", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue((bool)false)]
- public bool flags
- {
- get { return _flags; }
- set { _flags = value; }
- }
-
- private bool _reaction = (bool)false;
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"reaction", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue((bool)false)]
- public bool reaction
- {
- get { return _reaction; }
- set { _reaction = value; }
- }
- [global::ProtoBuf.ProtoContract(Name=@"StateType")]
- public enum StateType
- {
-
- [global::ProtoBuf.ProtoEnum(Name=@"Solid", Value=0)]
- Solid = 0,
-
- [global::ProtoBuf.ProtoEnum(Name=@"Liquid", Value=1)]
- Liquid = 1,
-
- [global::ProtoBuf.ProtoEnum(Name=@"Gas", Value=2)]
- Gas = 2,
-
- [global::ProtoBuf.ProtoEnum(Name=@"Powder", Value=3)]
- Powder = 3,
-
- [global::ProtoBuf.ProtoEnum(Name=@"Paste", Value=4)]
- Paste = 4,
-
- [global::ProtoBuf.ProtoEnum(Name=@"Pressed", Value=5)]
- Pressed = 5
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"JobSkillAttr")]
- public partial class JobSkillAttr : global::ProtoBuf.IExtensible
- {
- public JobSkillAttr() {}
-
- private int _id;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int id
- {
- get { return _id; }
- set { _id = value; }
- }
- private string _key;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"key", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string key
- {
- get { return _key; }
- set { _key = value; }
- }
-
- private string _caption = "";
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"caption", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string caption
- {
- get { return _caption; }
- set { _caption = value; }
- }
-
- private string _caption_noun = "";
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"caption_noun", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string caption_noun
- {
- get { return _caption_noun; }
- set { _caption_noun = value; }
- }
-
- private int _profession = default(int);
- [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"profession", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int profession
- {
- get { return _profession; }
- set { _profession = value; }
- }
-
- private int _labor = default(int);
- [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"labor", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int labor
- {
- get { return _labor; }
- set { _labor = value; }
- }
-
- private string _type = "";
- [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string type
- {
- get { return _type; }
- set { _type = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ProfessionAttr")]
- public partial class ProfessionAttr : global::ProtoBuf.IExtensible
- {
- public ProfessionAttr() {}
-
- private int _id;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int id
- {
- get { return _id; }
- set { _id = value; }
- }
- private string _key;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"key", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string key
- {
- get { return _key; }
- set { _key = value; }
- }
-
- private string _caption = "";
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"caption", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string caption
- {
- get { return _caption; }
- set { _caption = value; }
- }
-
- private bool _military = default(bool);
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"military", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(default(bool))]
- public bool military
- {
- get { return _military; }
- set { _military = value; }
- }
-
- private bool _can_assign_labor = default(bool);
- [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"can_assign_labor", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(default(bool))]
- public bool can_assign_labor
- {
- get { return _can_assign_labor; }
- set { _can_assign_labor = value; }
- }
-
- private int _parent = default(int);
- [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"parent", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int parent
- {
- get { return _parent; }
- set { _parent = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"UnitLaborAttr")]
- public partial class UnitLaborAttr : global::ProtoBuf.IExtensible
- {
- public UnitLaborAttr() {}
-
- private int _id;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int id
- {
- get { return _id; }
- set { _id = value; }
- }
- private string _key;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"key", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string key
- {
- get { return _key; }
- set { _key = value; }
- }
-
- private string _caption = "";
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"caption", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string caption
- {
- get { return _caption; }
- set { _caption = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"NameInfo")]
- public partial class NameInfo : global::ProtoBuf.IExtensible
- {
- public NameInfo() {}
-
-
- private string _first_name = "";
- [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"first_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string first_name
- {
- get { return _first_name; }
- set { _first_name = value; }
- }
-
- private string _nickname = "";
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"nickname", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string nickname
- {
- get { return _nickname; }
- set { _nickname = value; }
- }
-
- private int _language_id = (int)-1;
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"language_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue((int)-1)]
- public int language_id
- {
- get { return _language_id; }
- set { _language_id = value; }
- }
-
- private string _last_name = "";
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"last_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string last_name
- {
- get { return _last_name; }
- set { _last_name = value; }
- }
-
- private string _english_name = "";
- [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"english_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string english_name
- {
- get { return _english_name; }
- set { _english_name = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"NameTriple")]
- public partial class NameTriple : global::ProtoBuf.IExtensible
- {
- public NameTriple() {}
-
- private string _normal;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"normal", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string normal
- {
- get { return _normal; }
- set { _normal = value; }
- }
-
- private string _plural = "";
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"plural", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string plural
- {
- get { return _plural; }
- set { _plural = value; }
- }
-
- private string _adjective = "";
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"adjective", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string adjective
- {
- get { return _adjective; }
- set { _adjective = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"UnitCurseInfo")]
- public partial class UnitCurseInfo : global::ProtoBuf.IExtensible
- {
- public UnitCurseInfo() {}
-
- private uint _add_tags1;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"add_tags1", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
- public uint add_tags1
- {
- get { return _add_tags1; }
- set { _add_tags1 = value; }
- }
- private uint _rem_tags1;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"rem_tags1", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
- public uint rem_tags1
- {
- get { return _rem_tags1; }
- set { _rem_tags1 = value; }
- }
- private uint _add_tags2;
- [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"add_tags2", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
- public uint add_tags2
- {
- get { return _add_tags2; }
- set { _add_tags2 = value; }
- }
- private uint _rem_tags2;
- [global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"rem_tags2", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
- public uint rem_tags2
- {
- get { return _rem_tags2; }
- set { _rem_tags2 = value; }
- }
-
- private dfproto.NameTriple _name = null;
- [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(null)]
- public dfproto.NameTriple name
- {
- get { return _name; }
- set { _name = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"SkillInfo")]
- public partial class SkillInfo : global::ProtoBuf.IExtensible
- {
- public SkillInfo() {}
-
- private int _id;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int id
- {
- get { return _id; }
- set { _id = value; }
- }
- private int _level;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"level", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int level
- {
- get { return _level; }
- set { _level = value; }
- }
- private int _experience;
- [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"experience", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int experience
- {
- get { return _experience; }
- set { _experience = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"UnitMiscTrait")]
- public partial class UnitMiscTrait : global::ProtoBuf.IExtensible
- {
- public UnitMiscTrait() {}
-
- private int _id;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int id
- {
- get { return _id; }
- set { _id = value; }
- }
- private int _value;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int value
- {
- get { return _value; }
- set { _value = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"BasicUnitInfo")]
- public partial class BasicUnitInfo : global::ProtoBuf.IExtensible
- {
- public BasicUnitInfo() {}
-
- private int _unit_id;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"unit_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int unit_id
- {
- get { return _unit_id; }
- set { _unit_id = value; }
- }
- private int _pos_x;
- [global::ProtoBuf.ProtoMember(13, IsRequired = true, Name=@"pos_x", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int pos_x
- {
- get { return _pos_x; }
- set { _pos_x = value; }
- }
- private int _pos_y;
- [global::ProtoBuf.ProtoMember(14, IsRequired = true, Name=@"pos_y", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int pos_y
- {
- get { return _pos_y; }
- set { _pos_y = value; }
- }
- private int _pos_z;
- [global::ProtoBuf.ProtoMember(15, IsRequired = true, Name=@"pos_z", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int pos_z
- {
- get { return _pos_z; }
- set { _pos_z = value; }
- }
-
- private dfproto.NameInfo _name = null;
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(null)]
- public dfproto.NameInfo name
- {
- get { return _name; }
- set { _name = value; }
- }
- private uint _flags1;
- [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"flags1", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
- public uint flags1
- {
- get { return _flags1; }
- set { _flags1 = value; }
- }
- private uint _flags2;
- [global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"flags2", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
- public uint flags2
- {
- get { return _flags2; }
- set { _flags2 = value; }
- }
- private uint _flags3;
- [global::ProtoBuf.ProtoMember(5, IsRequired = true, Name=@"flags3", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
- public uint flags3
- {
- get { return _flags3; }
- set { _flags3 = value; }
- }
- private int _race;
- [global::ProtoBuf.ProtoMember(6, IsRequired = true, Name=@"race", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int race
- {
- get { return _race; }
- set { _race = value; }
- }
- private int _caste;
- [global::ProtoBuf.ProtoMember(7, IsRequired = true, Name=@"caste", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int caste
- {
- get { return _caste; }
- set { _caste = value; }
- }
-
- private int _gender = (int)-1;
- [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"gender", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue((int)-1)]
- public int gender
- {
- get { return _gender; }
- set { _gender = value; }
- }
-
- private int _civ_id = (int)-1;
- [global::ProtoBuf.ProtoMember(9, IsRequired = false, Name=@"civ_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue((int)-1)]
- public int civ_id
- {
- get { return _civ_id; }
- set { _civ_id = value; }
- }
-
- private int _histfig_id = (int)-1;
- [global::ProtoBuf.ProtoMember(10, IsRequired = false, Name=@"histfig_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue((int)-1)]
- public int histfig_id
- {
- get { return _histfig_id; }
- set { _histfig_id = value; }
- }
-
- private int _death_id = (int)-1;
- [global::ProtoBuf.ProtoMember(17, IsRequired = false, Name=@"death_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue((int)-1)]
- public int death_id
- {
- get { return _death_id; }
- set { _death_id = value; }
- }
-
- private uint _death_flags = default(uint);
- [global::ProtoBuf.ProtoMember(18, IsRequired = false, Name=@"death_flags", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(uint))]
- public uint death_flags
- {
- get { return _death_flags; }
- set { _death_flags = value; }
- }
-
- private int _squad_id = (int)-1;
- [global::ProtoBuf.ProtoMember(19, IsRequired = false, Name=@"squad_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue((int)-1)]
- public int squad_id
- {
- get { return _squad_id; }
- set { _squad_id = value; }
- }
-
- private int _squad_position = (int)-1;
- [global::ProtoBuf.ProtoMember(20, IsRequired = false, Name=@"squad_position", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue((int)-1)]
- public int squad_position
- {
- get { return _squad_position; }
- set { _squad_position = value; }
- }
-
- private int _profession = (int)-1;
- [global::ProtoBuf.ProtoMember(22, IsRequired = false, Name=@"profession", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue((int)-1)]
- public int profession
- {
- get { return _profession; }
- set { _profession = value; }
- }
-
- private string _custom_profession = "";
- [global::ProtoBuf.ProtoMember(23, IsRequired = false, Name=@"custom_profession", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string custom_profession
- {
- get { return _custom_profession; }
- set { _custom_profession = value; }
- }
- private readonly global::System.Collections.Generic.List _labors = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(11, Name=@"labors", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public global::System.Collections.Generic.List labors
- {
- get { return _labors; }
- }
-
- private readonly global::System.Collections.Generic.List _skills = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(12, Name=@"skills", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List skills
- {
- get { return _skills; }
- }
-
- private readonly global::System.Collections.Generic.List _misc_traits = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(24, Name=@"misc_traits", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List misc_traits
- {
- get { return _misc_traits; }
- }
-
-
- private dfproto.UnitCurseInfo _curse = null;
- [global::ProtoBuf.ProtoMember(16, IsRequired = false, Name=@"curse", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(null)]
- public dfproto.UnitCurseInfo curse
- {
- get { return _curse; }
- set { _curse = value; }
- }
- private readonly global::System.Collections.Generic.List _burrows = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(21, Name=@"burrows", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public global::System.Collections.Generic.List burrows
- {
- get { return _burrows; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"BasicUnitInfoMask")]
- public partial class BasicUnitInfoMask : global::ProtoBuf.IExtensible
- {
- public BasicUnitInfoMask() {}
-
-
- private bool _labors = (bool)false;
- [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"labors", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue((bool)false)]
- public bool labors
- {
- get { return _labors; }
- set { _labors = value; }
- }
-
- private bool _skills = (bool)false;
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"skills", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue((bool)false)]
- public bool skills
- {
- get { return _skills; }
- set { _skills = value; }
- }
-
- private bool _profession = (bool)false;
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"profession", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue((bool)false)]
- public bool profession
- {
- get { return _profession; }
- set { _profession = value; }
- }
-
- private bool _misc_traits = (bool)false;
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"misc_traits", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue((bool)false)]
- public bool misc_traits
- {
- get { return _misc_traits; }
- set { _misc_traits = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"BasicSquadInfo")]
- public partial class BasicSquadInfo : global::ProtoBuf.IExtensible
- {
- public BasicSquadInfo() {}
-
- private int _squad_id;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"squad_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int squad_id
- {
- get { return _squad_id; }
- set { _squad_id = value; }
- }
-
- private dfproto.NameInfo _name = null;
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(null)]
- public dfproto.NameInfo name
- {
- get { return _name; }
- set { _name = value; }
- }
-
- private string _alias = "";
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"alias", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string alias
- {
- get { return _alias; }
- set { _alias = value; }
- }
- private readonly global::System.Collections.Generic.List _members = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(4, Name=@"members", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
- public global::System.Collections.Generic.List members
- {
- get { return _members; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"UnitLaborState")]
- public partial class UnitLaborState : global::ProtoBuf.IExtensible
- {
- public UnitLaborState() {}
-
- private int _unit_id;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"unit_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int unit_id
- {
- get { return _unit_id; }
- set { _unit_id = value; }
- }
- private int _labor;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"labor", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int labor
- {
- get { return _labor; }
- set { _labor = value; }
- }
- private bool _value;
- [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public bool value
- {
- get { return _value; }
- set { _value = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-}
\ No newline at end of file
diff --git a/clients/unity/simple_sample/Assets/RemoteClient/Basic.cs.meta b/clients/unity/simple_sample/Assets/RemoteClient/Basic.cs.meta
deleted file mode 100644
index a56dd6d40..000000000
--- a/clients/unity/simple_sample/Assets/RemoteClient/Basic.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 2678d7ad7ff72d248854d487d8f15c21
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/clients/unity/simple_sample/Assets/RemoteClient/BasicApi.cs b/clients/unity/simple_sample/Assets/RemoteClient/BasicApi.cs
deleted file mode 100644
index 3f9f97984..000000000
--- a/clients/unity/simple_sample/Assets/RemoteClient/BasicApi.cs
+++ /dev/null
@@ -1,460 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-// Generated from: BasicApi.proto
-// Note: requires additional types generated from: Basic.proto
-namespace dfproto
-{
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetWorldInfoOut")]
- public partial class GetWorldInfoOut : global::ProtoBuf.IExtensible
- {
- public GetWorldInfoOut() {}
-
- private dfproto.GetWorldInfoOut.Mode _mode;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"mode", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public dfproto.GetWorldInfoOut.Mode mode
- {
- get { return _mode; }
- set { _mode = value; }
- }
- private string _save_dir;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"save_dir", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string save_dir
- {
- get { return _save_dir; }
- set { _save_dir = value; }
- }
-
- private dfproto.NameInfo _world_name = null;
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"world_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(null)]
- public dfproto.NameInfo world_name
- {
- get { return _world_name; }
- set { _world_name = value; }
- }
-
- private int _civ_id = default(int);
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"civ_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int civ_id
- {
- get { return _civ_id; }
- set { _civ_id = value; }
- }
-
- private int _site_id = default(int);
- [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"site_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int site_id
- {
- get { return _site_id; }
- set { _site_id = value; }
- }
-
- private int _group_id = default(int);
- [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"group_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int group_id
- {
- get { return _group_id; }
- set { _group_id = value; }
- }
-
- private int _race_id = default(int);
- [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"race_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int race_id
- {
- get { return _race_id; }
- set { _race_id = value; }
- }
-
- private int _player_unit_id = default(int);
- [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"player_unit_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int player_unit_id
- {
- get { return _player_unit_id; }
- set { _player_unit_id = value; }
- }
-
- private int _player_histfig_id = default(int);
- [global::ProtoBuf.ProtoMember(9, IsRequired = false, Name=@"player_histfig_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int player_histfig_id
- {
- get { return _player_histfig_id; }
- set { _player_histfig_id = value; }
- }
- private readonly global::System.Collections.Generic.List _companion_histfig_ids = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(10, Name=@"companion_histfig_ids", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public global::System.Collections.Generic.List companion_histfig_ids
- {
- get { return _companion_histfig_ids; }
- }
-
- [global::ProtoBuf.ProtoContract(Name=@"Mode")]
- public enum Mode
- {
-
- [global::ProtoBuf.ProtoEnum(Name=@"MODE_DWARF", Value=1)]
- MODE_DWARF = 1,
-
- [global::ProtoBuf.ProtoEnum(Name=@"MODE_ADVENTURE", Value=2)]
- MODE_ADVENTURE = 2,
-
- [global::ProtoBuf.ProtoEnum(Name=@"MODE_LEGENDS", Value=3)]
- MODE_LEGENDS = 3
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ListEnumsOut")]
- public partial class ListEnumsOut : global::ProtoBuf.IExtensible
- {
- public ListEnumsOut() {}
-
- private readonly global::System.Collections.Generic.List _material_flags = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(1, Name=@"material_flags", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List material_flags
- {
- get { return _material_flags; }
- }
-
- private readonly global::System.Collections.Generic.List _inorganic_flags = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(2, Name=@"inorganic_flags", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List inorganic_flags
- {
- get { return _inorganic_flags; }
- }
-
- private readonly global::System.Collections.Generic.List _unit_flags1 = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(3, Name=@"unit_flags1", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List unit_flags1
- {
- get { return _unit_flags1; }
- }
-
- private readonly global::System.Collections.Generic.List _unit_flags2 = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(4, Name=@"unit_flags2", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List unit_flags2
- {
- get { return _unit_flags2; }
- }
-
- private readonly global::System.Collections.Generic.List _unit_flags3 = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(5, Name=@"unit_flags3", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List unit_flags3
- {
- get { return _unit_flags3; }
- }
-
- private readonly global::System.Collections.Generic.List _unit_labor = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(6, Name=@"unit_labor", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List unit_labor
- {
- get { return _unit_labor; }
- }
-
- private readonly global::System.Collections.Generic.List _job_skill = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(7, Name=@"job_skill", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List job_skill
- {
- get { return _job_skill; }
- }
-
- private readonly global::System.Collections.Generic.List _cie_add_tag_mask1 = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(8, Name=@"cie_add_tag_mask1", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List cie_add_tag_mask1
- {
- get { return _cie_add_tag_mask1; }
- }
-
- private readonly global::System.Collections.Generic.List _cie_add_tag_mask2 = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(9, Name=@"cie_add_tag_mask2", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List cie_add_tag_mask2
- {
- get { return _cie_add_tag_mask2; }
- }
-
- private readonly global::System.Collections.Generic.List _death_info_flags = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(10, Name=@"death_info_flags", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List death_info_flags
- {
- get { return _death_info_flags; }
- }
-
- private readonly global::System.Collections.Generic.List _profession = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(11, Name=@"profession", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List profession
- {
- get { return _profession; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ListJobSkillsOut")]
- public partial class ListJobSkillsOut : global::ProtoBuf.IExtensible
- {
- public ListJobSkillsOut() {}
-
- private readonly global::System.Collections.Generic.List _skill = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(1, Name=@"skill", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List skill
- {
- get { return _skill; }
- }
-
- private readonly global::System.Collections.Generic.List _profession = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(2, Name=@"profession", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List profession
- {
- get { return _profession; }
- }
-
- private readonly global::System.Collections.Generic.List _labor = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(3, Name=@"labor", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List labor
- {
- get { return _labor; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ListMaterialsIn")]
- public partial class ListMaterialsIn : global::ProtoBuf.IExtensible
- {
- public ListMaterialsIn() {}
-
-
- private dfproto.BasicMaterialInfoMask _mask = null;
- [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"mask", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(null)]
- public dfproto.BasicMaterialInfoMask mask
- {
- get { return _mask; }
- set { _mask = value; }
- }
- private readonly global::System.Collections.Generic.List _id_list = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(2, Name=@"id_list", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List id_list
- {
- get { return _id_list; }
- }
-
-
- private bool _builtin = default(bool);
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"builtin", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(default(bool))]
- public bool builtin
- {
- get { return _builtin; }
- set { _builtin = value; }
- }
-
- private bool _inorganic = default(bool);
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"inorganic", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(default(bool))]
- public bool inorganic
- {
- get { return _inorganic; }
- set { _inorganic = value; }
- }
-
- private bool _creatures = default(bool);
- [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"creatures", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(default(bool))]
- public bool creatures
- {
- get { return _creatures; }
- set { _creatures = value; }
- }
-
- private bool _plants = default(bool);
- [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"plants", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(default(bool))]
- public bool plants
- {
- get { return _plants; }
- set { _plants = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ListMaterialsOut")]
- public partial class ListMaterialsOut : global::ProtoBuf.IExtensible
- {
- public ListMaterialsOut() {}
-
- private readonly global::System.Collections.Generic.List _value = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(1, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List value
- {
- get { return _value; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ListUnitsIn")]
- public partial class ListUnitsIn : global::ProtoBuf.IExtensible
- {
- public ListUnitsIn() {}
-
-
- private dfproto.BasicUnitInfoMask _mask = null;
- [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"mask", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(null)]
- public dfproto.BasicUnitInfoMask mask
- {
- get { return _mask; }
- set { _mask = value; }
- }
- private readonly global::System.Collections.Generic.List _id_list = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(2, Name=@"id_list", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public global::System.Collections.Generic.List id_list
- {
- get { return _id_list; }
- }
-
-
- private bool _scan_all = default(bool);
- [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"scan_all", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(default(bool))]
- public bool scan_all
- {
- get { return _scan_all; }
- set { _scan_all = value; }
- }
-
- private int _race = default(int);
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"race", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int race
- {
- get { return _race; }
- set { _race = value; }
- }
-
- private int _civ_id = default(int);
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"civ_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int civ_id
- {
- get { return _civ_id; }
- set { _civ_id = value; }
- }
-
- private bool _dead = default(bool);
- [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"dead", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(default(bool))]
- public bool dead
- {
- get { return _dead; }
- set { _dead = value; }
- }
-
- private bool _alive = default(bool);
- [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"alive", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(default(bool))]
- public bool alive
- {
- get { return _alive; }
- set { _alive = value; }
- }
-
- private bool _sane = default(bool);
- [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"sane", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(default(bool))]
- public bool sane
- {
- get { return _sane; }
- set { _sane = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ListUnitsOut")]
- public partial class ListUnitsOut : global::ProtoBuf.IExtensible
- {
- public ListUnitsOut() {}
-
- private readonly global::System.Collections.Generic.List _value = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(1, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List value
- {
- get { return _value; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ListSquadsIn")]
- public partial class ListSquadsIn : global::ProtoBuf.IExtensible
- {
- public ListSquadsIn() {}
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ListSquadsOut")]
- public partial class ListSquadsOut : global::ProtoBuf.IExtensible
- {
- public ListSquadsOut() {}
-
- private readonly global::System.Collections.Generic.List _value = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(1, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List value
- {
- get { return _value; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"SetUnitLaborsIn")]
- public partial class SetUnitLaborsIn : global::ProtoBuf.IExtensible
- {
- public SetUnitLaborsIn() {}
-
- private readonly global::System.Collections.Generic.List _change = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(1, Name=@"change", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List change
- {
- get { return _change; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-}
\ No newline at end of file
diff --git a/clients/unity/simple_sample/Assets/RemoteClient/BasicApi.cs.meta b/clients/unity/simple_sample/Assets/RemoteClient/BasicApi.cs.meta
deleted file mode 100644
index 1a1944d8d..000000000
--- a/clients/unity/simple_sample/Assets/RemoteClient/BasicApi.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: ab257b5c0c7259943a5b614e3dde558e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/clients/unity/simple_sample/Assets/RemoteClient/ColorText.cs b/clients/unity/simple_sample/Assets/RemoteClient/ColorText.cs
deleted file mode 100644
index c98941b01..000000000
--- a/clients/unity/simple_sample/Assets/RemoteClient/ColorText.cs
+++ /dev/null
@@ -1,119 +0,0 @@
-using System;
-using UnityEngine;
-using AT.MIN;
-using dfproto;
-
-namespace DFHack
-{
- public enum color_value
- {
- COLOR_RESET = -1,
- COLOR_BLACK = 0,
- COLOR_BLUE,
- COLOR_GREEN,
- COLOR_CYAN,
- COLOR_RED,
- COLOR_MAGENTA,
- COLOR_BROWN,
- COLOR_GREY,
- COLOR_DARKGREY,
- COLOR_LIGHTBLUE,
- COLOR_LIGHTGREEN,
- COLOR_LIGHTCYAN,
- COLOR_LIGHTRED,
- COLOR_LIGHTMAGENTA,
- COLOR_YELLOW,
- COLOR_WHITE,
- COLOR_MAX = COLOR_WHITE
- };
-
- public class color_ostream
- {
- string buffer;
- public void printerr(string Format, params object[] Parameters)
- {
- Debug.LogError(Tools.sprintf(Format, Parameters));
- }
- public void print(string Format, params object[] Parameters)
- {
- Debug.Log(Tools.sprintf(Format, Parameters));
- }
- public void begin_batch()
- {
- buffer = "";
- }
- public void end_batch()
- {
- Debug.Log(buffer);
- buffer = null;
- }
-
- public void add_text(color_value color, string text)
- {
- //Debug.Log(text);
- buffer += text;
- }
-
- }
- public class buffered_color_ostream : color_ostream
- {
- //protected:
- public new void add_text(color_value color, string text)
- {
- if (text.Length == 0)
- return;
-
- if (buffer.Length == 0)
- {
- buffer = text;
- }
- else
- {
- buffer += text;
- }
- }
-
-
-
- // buffered_color_ostream() {}
- // ~buffered_color_ostream() {}
-
- // const std::list &fragments() { return buffer; }
-
- protected string buffer;
- }
- public class color_ostream_proxy : buffered_color_ostream
- {
- protected color_ostream target;
-
- //virtual void flush_proxy();
-
- public color_ostream_proxy(color_ostream targetIn)
- {
- target = targetIn;
- }
-
- public virtual color_ostream proxy_target() { return target; }
-
- public void decode(dfproto.CoreTextNotification data)
- {
- int cnt = data.fragments.Count;
-
- if (cnt > 0)
- {
- target.begin_batch();
-
- for (int i = 0; i < cnt; i++)
- {
- var frag = data.fragments[i];
-
- //color_value color = frag.has_color() ? color_value(frag.color()) : COLOR_RESET;
- target.add_text(color_value.COLOR_RESET, frag.text);
- //target.printerr(data.fragments[i].text);
- }
-
- target.end_batch();
- }
- }
- }
-}
\ No newline at end of file
diff --git a/clients/unity/simple_sample/Assets/RemoteClient/ColorText.cs.meta b/clients/unity/simple_sample/Assets/RemoteClient/ColorText.cs.meta
deleted file mode 100644
index 2df78fd3d..000000000
--- a/clients/unity/simple_sample/Assets/RemoteClient/ColorText.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 8401f7b1211481b469ac746534a896b8
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/clients/unity/simple_sample/Assets/RemoteClient/CoreProtocol.cs b/clients/unity/simple_sample/Assets/RemoteClient/CoreProtocol.cs
deleted file mode 100644
index e5536da04..000000000
--- a/clients/unity/simple_sample/Assets/RemoteClient/CoreProtocol.cs
+++ /dev/null
@@ -1,311 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-// Generated from: CoreProtocol.proto
-namespace dfproto
-{
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CoreTextFragment")]
- public partial class CoreTextFragment : global::ProtoBuf.IExtensible
- {
- public CoreTextFragment() {}
-
- private string _text;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"text", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string text
- {
- get { return _text; }
- set { _text = value; }
- }
-
- private dfproto.CoreTextFragment.Color _color = dfproto.CoreTextFragment.Color.COLOR_BLACK;
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"color", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(dfproto.CoreTextFragment.Color.COLOR_BLACK)]
- public dfproto.CoreTextFragment.Color color
- {
- get { return _color; }
- set { _color = value; }
- }
- [global::ProtoBuf.ProtoContract(Name=@"Color")]
- public enum Color
- {
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_BLACK", Value=0)]
- COLOR_BLACK = 0,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_BLUE", Value=1)]
- COLOR_BLUE = 1,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_GREEN", Value=2)]
- COLOR_GREEN = 2,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_CYAN", Value=3)]
- COLOR_CYAN = 3,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_RED", Value=4)]
- COLOR_RED = 4,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_MAGENTA", Value=5)]
- COLOR_MAGENTA = 5,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_BROWN", Value=6)]
- COLOR_BROWN = 6,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_GREY", Value=7)]
- COLOR_GREY = 7,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_DARKGREY", Value=8)]
- COLOR_DARKGREY = 8,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_LIGHTBLUE", Value=9)]
- COLOR_LIGHTBLUE = 9,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_LIGHTGREEN", Value=10)]
- COLOR_LIGHTGREEN = 10,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_LIGHTCYAN", Value=11)]
- COLOR_LIGHTCYAN = 11,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_LIGHTRED", Value=12)]
- COLOR_LIGHTRED = 12,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_LIGHTMAGENTA", Value=13)]
- COLOR_LIGHTMAGENTA = 13,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_YELLOW", Value=14)]
- COLOR_YELLOW = 14,
-
- [global::ProtoBuf.ProtoEnum(Name=@"COLOR_WHITE", Value=15)]
- COLOR_WHITE = 15
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CoreTextNotification")]
- public partial class CoreTextNotification : global::ProtoBuf.IExtensible
- {
- public CoreTextNotification() {}
-
- private readonly global::System.Collections.Generic.List _fragments = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(1, Name=@"fragments", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List fragments
- {
- get { return _fragments; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CoreErrorNotification")]
- public partial class CoreErrorNotification : global::ProtoBuf.IExtensible
- {
- public CoreErrorNotification() {}
-
- private dfproto.CoreErrorNotification.ErrorCode _code;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public dfproto.CoreErrorNotification.ErrorCode code
- {
- get { return _code; }
- set { _code = value; }
- }
- [global::ProtoBuf.ProtoContract(Name=@"ErrorCode")]
- public enum ErrorCode
- {
-
- [global::ProtoBuf.ProtoEnum(Name=@"CR_LINK_FAILURE", Value=-3)]
- CR_LINK_FAILURE = -3,
-
- [global::ProtoBuf.ProtoEnum(Name=@"CR_WOULD_BREAK", Value=-2)]
- CR_WOULD_BREAK = -2,
-
- [global::ProtoBuf.ProtoEnum(Name=@"CR_NOT_IMPLEMENTED", Value=-1)]
- CR_NOT_IMPLEMENTED = -1,
-
- [global::ProtoBuf.ProtoEnum(Name=@"CR_OK", Value=0)]
- CR_OK = 0,
-
- [global::ProtoBuf.ProtoEnum(Name=@"CR_FAILURE", Value=1)]
- CR_FAILURE = 1,
-
- [global::ProtoBuf.ProtoEnum(Name=@"CR_WRONG_USAGE", Value=2)]
- CR_WRONG_USAGE = 2,
-
- [global::ProtoBuf.ProtoEnum(Name=@"CR_NOT_FOUND", Value=3)]
- CR_NOT_FOUND = 3
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"EmptyMessage")]
- public partial class EmptyMessage : global::ProtoBuf.IExtensible
- {
- public EmptyMessage() {}
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"IntMessage")]
- public partial class IntMessage : global::ProtoBuf.IExtensible
- {
- public IntMessage() {}
-
- private int _value;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int value
- {
- get { return _value; }
- set { _value = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"IntListMessage")]
- public partial class IntListMessage : global::ProtoBuf.IExtensible
- {
- public IntListMessage() {}
-
- private readonly global::System.Collections.Generic.List _value = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(1, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public global::System.Collections.Generic.List value
- {
- get { return _value; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"StringMessage")]
- public partial class StringMessage : global::ProtoBuf.IExtensible
- {
- public StringMessage() {}
-
- private string _value;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string value
- {
- get { return _value; }
- set { _value = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"StringListMessage")]
- public partial class StringListMessage : global::ProtoBuf.IExtensible
- {
- public StringListMessage() {}
-
- private readonly global::System.Collections.Generic.List _value = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(1, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List value
- {
- get { return _value; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CoreBindRequest")]
- public partial class CoreBindRequest : global::ProtoBuf.IExtensible
- {
- public CoreBindRequest() {}
-
- private string _method;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"method", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string method
- {
- get { return _method; }
- set { _method = value; }
- }
- private string _input_msg;
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"input_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string input_msg
- {
- get { return _input_msg; }
- set { _input_msg = value; }
- }
- private string _output_msg;
- [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"output_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string output_msg
- {
- get { return _output_msg; }
- set { _output_msg = value; }
- }
-
- private string _plugin = "";
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"plugin", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string plugin
- {
- get { return _plugin; }
- set { _plugin = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CoreBindReply")]
- public partial class CoreBindReply : global::ProtoBuf.IExtensible
- {
- public CoreBindReply() {}
-
- private int _assigned_id;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"assigned_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int assigned_id
- {
- get { return _assigned_id; }
- set { _assigned_id = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CoreRunCommandRequest")]
- public partial class CoreRunCommandRequest : global::ProtoBuf.IExtensible
- {
- public CoreRunCommandRequest() {}
-
- private string _command;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"command", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string command
- {
- get { return _command; }
- set { _command = value; }
- }
- private readonly global::System.Collections.Generic.List _arguments = new global::System.Collections.Generic.List();
- [global::ProtoBuf.ProtoMember(2, Name=@"arguments", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List arguments
- {
- get { return _arguments; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-}
\ No newline at end of file
diff --git a/clients/unity/simple_sample/Assets/RemoteClient/CoreProtocol.cs.meta b/clients/unity/simple_sample/Assets/RemoteClient/CoreProtocol.cs.meta
deleted file mode 100644
index 23e58ec8e..000000000
--- a/clients/unity/simple_sample/Assets/RemoteClient/CoreProtocol.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: d8595cea157337845be980bcc8978623
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/clients/unity/simple_sample/Assets/RemoteClient/RemoteClient.cs b/clients/unity/simple_sample/Assets/RemoteClient/RemoteClient.cs
deleted file mode 100644
index dd315310f..000000000
--- a/clients/unity/simple_sample/Assets/RemoteClient/RemoteClient.cs
+++ /dev/null
@@ -1,849 +0,0 @@
-/*
-https://github.com/peterix/dfhack
-Copyright (c) 2009-2012 Petr Mrázek (peterix@gmail.com)
-
-This software is provided 'as-is', without any express or implied
-warranty. In no event will the authors be held liable for any
-damages arising from the use of this software.
-
-Permission is granted to anyone to use this software for any
-purpose, including commercial applications, and to alter it and
-redistribute it freely, subject to the following restrictions:
-
-1. The origin of this software must not be misrepresented; you must
-not claim that you wrote the original software. If you use this
-software in a product, an acknowledgment in the product documentation
-would be appreciated but is not required.
-
-2. Altered source versions must be plainly marked as such, and
-must not be misrepresented as being the original software.
-
-3. This notice may not be removed or altered from any source
-distribution.
-*/
-
-using dfproto;
-using System;
-using System.Net;
-using System.Net.Sockets;
-using System.IO;
-using System.Text;
-using System.Runtime.Serialization;
-using System.Runtime.Serialization.Formatters.Binary;
-using System.Collections.Generic;
-using System.Diagnostics;
-
-namespace DFHack
-{
- using message_type = ProtoBuf.IExtensible;
-
- public enum command_result
- {
- CR_LINK_FAILURE = -3, // RPC call failed due to I/O or protocol error
- CR_NEEDS_CONSOLE = -2, // Attempt to call interactive command without console
- CR_NOT_IMPLEMENTED = -1, // Command not implemented, or plugin not loaded
- CR_OK = 0, // Success
- CR_FAILURE = 1, // Failure
- CR_WRONG_USAGE = 2, // Wrong arguments or ui state
- CR_NOT_FOUND = 3 // Target object not found (for RPC mainly)
- }
-
- public enum DFHackReplyCode
- {
- RPC_REPLY_RESULT = -1,
- RPC_REPLY_FAIL = -2,
- RPC_REPLY_TEXT = -3,
- RPC_REQUEST_QUIT = -4
- }
-
- class RPCHandshakeHeader
- {
- //public string magic;
- //public int version;
-
- public static string REQUEST_MAGIC = "DFHack?\n";
- public static string RESPONSE_MAGIC = "DFHack!\n";
- }
-
- struct RPCMessageHeader
- {
- public const int MAX_MESSAGE_SIZE = 8 * 1048576;
-
- public Int16 id;
- public Int32 size;
-
- public byte[] ConvertToBtyes()
- {
- List output = new List();
- output.AddRange(BitConverter.GetBytes(id));
- output.AddRange(new byte[2]);
- output.AddRange(BitConverter.GetBytes(size));
- return output.ToArray();
- }
- string BytesToString(byte[] input)
- {
- string output = "";
- foreach (byte item in input)
- {
- if (output.Length > 0)
- output += ",";
- output += item;
- }
- return output;
- }
- }
-
- // simple function to store
- struct DFCoord
- {
- public int x, y, z;
- //convert
- UnityEngine.Vector3 ToVector3()
- {
- return new UnityEngine.Vector3(x + 0.5f, z + 0.5f, -y - 0.5f);
- }
- static DFCoord FromVector3(UnityEngine.Vector3 input)
- {
- DFCoord output = new DFCoord((int)input.x, (int)(-input.z), (int)input.y);
- return output;
- }
-
- DFCoord(int inx, int iny, int inz)
- {
- x = inx;
- y = iny;
- z = inz;
- }
-
- public bool isValid()
- {
- return x != -30000;
- }
- public void clear()
- {
- x = y = z = -30000;
- }
-
- public static bool operator <(DFCoord a, DFCoord b)
- {
- if (a.x != b.x) return (a.x < b.x);
- if (a.y != b.y) return (a.y < b.y);
- return a.z < b.z;
- }
- public static bool operator >(DFCoord a, DFCoord b)
- {
- if (a.x != b.x) return (a.x > b.x);
- if (a.y != b.y) return (a.y > b.y);
- return a.z > b.z;
- }
- public static DFCoord operator +(DFCoord a, DFCoord b)
- {
- return new DFCoord(a.x + b.x, a.y + b.y, a.z + b.z);
- }
- public static DFCoord operator -(DFCoord a, DFCoord b)
- {
- return new DFCoord(a.x - b.x, a.y - b.y, a.z - b.z);
- }
- public static DFCoord operator /(DFCoord a, int number)
- {
- return new DFCoord((a.x < 0 ? a.x - number : a.x) / number, (a.y < 0 ? a.y - number : a.y) / number, a.z);
- }
- public static DFCoord operator *(DFCoord a, int number)
- {
- return new DFCoord(a.x * number, a.y * number, a.z);
- }
- public static DFCoord operator %(DFCoord a, int number)
- {
- return new DFCoord((a.x + number) % number, (a.y + number) % number, a.z);
- }
- public static DFCoord operator -(DFCoord a, int number)
- {
- return new DFCoord(a.x, a.y, a.z - number);
- }
- public static DFCoord operator +(DFCoord a, int number)
- {
- return new DFCoord(a.x, a.y, a.z + number);
- }
- }
- public struct DFCoord2d
- {
- public int x;
- public int y;
-
- public DFCoord2d(int _x, int _y)
- {
- x = _x;
- y = _y;
- }
-
- public bool isValid()
- {
- return x != -30000;
- }
- public void clear()
- {
- x = y = -30000;
- }
-
- public static bool operator <(DFCoord2d a, DFCoord2d b)
- {
- if (a.x != b.x) return (a.x < b.x);
- return a.y < b.y;
- }
- public static bool operator >(DFCoord2d a, DFCoord2d b)
- {
- if (a.x != b.x) return (a.x > b.x);
- return a.y > b.y;
- }
-
- public static DFCoord2d operator +(DFCoord2d a, DFCoord2d b)
- {
- return new DFCoord2d(a.x + b.x, a.y + b.y);
- }
- public static DFCoord2d operator -(DFCoord2d a, DFCoord2d b)
- {
- return new DFCoord2d(a.x - b.x, a.y - b.y);
- }
-
-
- public static DFCoord2d operator /(DFCoord2d a, int number)
- {
- return new DFCoord2d((a.x < 0 ? a.x - number : a.x) / number, (a.y < 0 ? a.y - number : a.y) / number);
- }
- public static DFCoord2d operator *(DFCoord2d a, int number)
- {
- return new DFCoord2d(a.x * number, a.y * number);
- }
- public static DFCoord2d operator %(DFCoord2d a, int number)
- {
- return new DFCoord2d((a.x + number) % number, (a.y + number) % number);
- }
- public static DFCoord2d operator &(DFCoord2d a, int number)
- {
- return new DFCoord2d(a.x & number, a.y & number);
- }
- }
- /* Protocol description:
- *
- * 1. Handshake
- *
- * Client initiates connection by sending the handshake
- * request header. The server responds with the response
- * magic. Currently both versions must be 1.
- *
- * 2. Interaction
- *
- * Requests are done by exchanging messages between the
- * client and the server. Messages consist of a serialized
- * protobuf message preceeded by RPCMessageHeader. The size
- * field specifies the length of the protobuf part.
- *
- * NOTE: As a special exception, RPC_REPLY_FAIL uses the size
- * field to hold the error code directly.
- *
- * Every callable function is assigned a non-negative id by
- * the server. Id 0 is reserved for BindMethod, which can be
- * used to request any other id by function name. Id 1 is
- * RunCommand, used to call console commands remotely.
- *
- * The client initiates every call by sending a message with
- * appropriate function id and input arguments. The server
- * responds with zero or more RPC_REPLY_TEXT:CoreTextNotification
- * messages, followed by RPC_REPLY_RESULT containing the output
- * of the function if it succeeded, or RPC_REPLY_FAIL with the
- * error code if it did not.
- *
- * 3. Disconnect
- *
- * The client terminates the connection by sending an
- * RPC_REQUEST_QUIT header with zero size and immediately
- * closing the socket.
- */
-
- public class RPCFunctionBase
- {
-
- public message_type p_in_template;
- public message_type p_out_template;
-
- public message_type make_in()
- {
- return (message_type)Activator.CreateInstance(p_in_template.GetType());
- }
-
- public message_type input()
- {
- if (p_in == null) p_in = make_in();
- return p_in;
- }
-
- public message_type make_out()
- {
- return (message_type)Activator.CreateInstance(p_out_template.GetType());
- }
-
- public message_type output()
- {
- if (p_out == null) p_out = make_out();
- return p_out;
- }
-
- public void reset(bool free = false)
- {
- if (free)
- {
- p_in = null;
- p_out = null;
- }
- else
- {
- if (p_in != null)
- p_in = (message_type)Activator.CreateInstance(p_in.GetType());
- if (p_out != null)
- p_out = (message_type)Activator.CreateInstance(p_out.GetType());
- }
- }
-
- public RPCFunctionBase(message_type input, message_type output)
- {
- p_in_template = input;
- p_out_template = output;
- p_in = null;
- p_out = null;
- }
- ~RPCFunctionBase()
- {
- p_in = null;
- p_out = null;
- }
-
- message_type p_in;
- message_type p_out;
- }
-
- public class RemoteFunctionBase : RPCFunctionBase
- {
- public bool bind(RemoteClient client, string name,
- string proto = "")
- {
- return bind(client.default_output(), client, name, proto);
- }
- public bool bind(color_ostream output,
- RemoteClient client, string name,
- string proto = "")
- {
- if (isValid())
- {
- if (p_client == client && this.name == name && this.proto == proto)
- return true;
-
- output.printerr("Function already bound to %s::%s\n",
- this.proto, this.name);
- return false;
- }
-
- this.name = name;
- this.proto = proto;
- this.p_client = client;
-
- return client.bind(output, this, name, proto);
- }
-
- public bool isValid() { return (id >= 0); }
-
- public RemoteFunctionBase(message_type input, message_type output)
- : base(input, output)
- {
- p_client = null;
- id = -1;
- }
-
- protected color_ostream default_ostream()
- {
- return p_client.default_output();
- }
-
- bool sendRemoteMessage(Socket socket, Int16 id, MemoryStream msg)
- {
- List buffer = new List();
-
- RPCMessageHeader header = new RPCMessageHeader();
- header.id = id;
- header.size = (Int32)msg.Length;
- buffer.AddRange(header.ConvertToBtyes());
- buffer.AddRange(msg.ToArray());
-
- int fullsz = buffer.Count;
-
- int got = socket.Send(buffer.ToArray());
- return (got == fullsz);
- }
-
- protected command_result execute(color_ostream outString, Input input, Output output)
- where Input : message_type, new()
- where Output : message_type, new()
- {
- if (!isValid())
- {
- outString.printerr("Calling an unbound RPC function %s::%s.\n",
- this.proto, this.name);
- return command_result.CR_NOT_IMPLEMENTED;
- }
-
- if (p_client.socket == null)
- {
- outString.printerr("In call to %s::%s: invalid socket.\n",
- this.proto, this.name);
- return command_result.CR_LINK_FAILURE;
- }
-
- MemoryStream sendStream = new MemoryStream();
-
- ProtoBuf.Serializer.Serialize(sendStream, input);
-
- long send_size = sendStream.Length;
-
- if (send_size > RPCMessageHeader.MAX_MESSAGE_SIZE)
- {
- outString.printerr("In call to %s::%s: message too large: %d.\n",
- this.proto, this.name, send_size);
- return command_result.CR_LINK_FAILURE;
- }
-
- if (!sendRemoteMessage(p_client.socket, id, sendStream))
- {
- outString.printerr("In call to %s::%s: I/O error in send.\n",
- this.proto, this.name);
- return command_result.CR_LINK_FAILURE;
- }
-
- color_ostream_proxy text_decoder = new color_ostream_proxy(outString);
- CoreTextNotification text_data;
-
- output = new Output();
- //return command_result.CR_OK;
-
- while (true)
- {
- RPCMessageHeader header = new RPCMessageHeader();
- byte[] buffer = new byte[8];
-
- if (!RemoteClient.readFullBuffer(p_client.socket, buffer, 8))
- {
- outString.printerr("In call to %s::%s: I/O error in receive header.\n",
- this.proto, this.name);
- return command_result.CR_LINK_FAILURE;
- }
-
- header.id = BitConverter.ToInt16(buffer, 0);
- header.size = BitConverter.ToInt32(buffer, 4); //because something, somewhere, is fucking retarded
-
- //outString.print("Received %d:%d.\n", header.id, header.size);
-
-
- if ((DFHackReplyCode)header.id == DFHackReplyCode.RPC_REPLY_FAIL)
- if (header.size == (int)command_result.CR_OK)
- return command_result.CR_FAILURE;
- else
- return (command_result)header.size;
-
- if (header.size < 0 || header.size > RPCMessageHeader.MAX_MESSAGE_SIZE)
- {
- outString.printerr("In call to %s::%s: invalid received size %d.\n",
- this.proto, this.name, header.size);
- return command_result.CR_LINK_FAILURE;
- }
-
- byte[] buf = new byte[header.size];
-
- if (!RemoteClient.readFullBuffer(p_client.socket, buf, header.size))
- {
- outString.printerr("In call to %s::%s: I/O error in receive %d bytes of data.\n",
- this.proto, this.name, header.size);
- return command_result.CR_LINK_FAILURE;
- }
-
- switch ((DFHackReplyCode)header.id)
- {
- case DFHackReplyCode.RPC_REPLY_RESULT:
- output = ProtoBuf.Serializer.Deserialize