Mouse&Keyboard | Controller | Action |
---|---|---|
WASD or ArrowKeys | Left Stick | Move Player |
Mouse | Right Stick | Move Camera |
Right Shift | Press Right Stick | Reset Camera |
Space | Button South | Jump |
Left Shift | Press Left Stick | Sprint |
Mouse Left Click | Left Trigger | Place Voxel |
Mouse Right Click | Right Trigger | Delete Voxel |
1 key | Left Shoulder | Move left toolbar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string fileName = "./files/01100.dat"; | |
var fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.None); | |
var data = new byte[fileStream.Length]; | |
fileStream.Read(data, 0, data.Length); | |
var first8Bytes = data[0..8]; | |
var offset = BitConverter.ToUInt64(first8Bytes); | |
var result = BlockFactory.Deserialize(Converter.BytesToHex(data[(int) offset..])); | |
Console.WriteLine(result); | |
Console.WriteLine(Converter.BytesToHex(result.Serialize())); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var source = @" | |
using System; | |
using CatSdk.Symbol; | |
using CatSdk.Utils; | |
using CatSdk.CryptoTypes; | |
public class SymbolSdk | |
{ | |
public static Signature Sign(string message) | |
{ | |
var keiPair = new KeyPair(new PrivateKey(""5DB8324E7EB83E7665D500B014283260EF312139034E86DFB7EE736503E*****"")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var source = @" | |
using System; | |
using CatSdk.Utils; | |
public class SymbolSdk | |
{ | |
public static string Utf8ToHex(string message) | |
{ | |
return Converter.Utf8ToHex(message); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using CatSdk.Symbol; | |
using CatSdk.Utils; | |
using System.Text.Json.Nodes; | |
using System.Runtime.Loader; | |
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp; | |
var node = "https://hideyoshi.mydns.jp:3001"; | |
async Task<string> GetDataFromApi(string _node, string _param) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using CatSdk.Utils; | |
using System.Text.Json.Nodes; | |
using System.Runtime.Loader; | |
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp; | |
var node = "https://hideyoshi.mydns.jp:3001"; | |
async Task<string> GetDataFromApi(string _node, string _param) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var source = @" | |
using System; | |
using System.Text; | |
using System.Runtime; | |
using System.Linq; | |
public class Test1 | |
{ | |
public static string Message(string message) | |
{ | |
return message; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var source = @" | |
using System; | |
using System.Collections.Generic; | |
public class MyRandom | |
{ | |
public static Dictionary<string, int> GetRandomInt(int maxValue, string sig) | |
{ | |
var random = new Random(sig.GetHashCode()); | |
return new Dictionary<string, int>() | |
{ |
マウス&キーボード | コントローラー | 動作 |
---|---|---|
WASD or 矢印キー | 左スティック | プレイヤー移動 |
マウス | 右スティック | カメラ移動 |
右シフトキー | 右スティック押し込み | カメラリセット |
スペースキー | 下ボタン(PSだと×) | ジャンプ |
左シフトキー | 左スティック押し込み | スプリントモード |
マウス左クリック | 左トリガー(PSだとL1) | Voxelの配置 |
マウス右クリック | 右トリガー(PSだとR1) | Voxelの削除 |
1キー | 左ショルダー(PSだとL2) | ツールバー左移動 |