public MiraeBuildResult(Dictionary <NetworkBlockName, List <IBlock> > blockCodes, NetworkBlockName startingBlockName, string context) { Result = MiraeBuildError.Success; ErrorDetail = null; BlockCodes = blockCodes; StartingBlockName = startingBlockName; Context = context; }
public MiraeNetworkBlock(NetworkBlockName name) { Name = name; State = MiraeNetworkState.None; RawBuffer = new ParseBuffer(); Data = new ABlockData[0]; Updated = false; RawBuffer.OnRead += RawBuffer_OnRead; }
private string GetAddress(NetworkBlockName name) { switch (name) { case NetworkBlockName.None: throw new Exception("Wrong NetworkBlockName"); case NetworkBlockName.LocalStarting: return("127.0.0.1"); default: return("192.168.0." + (int)name); } }
public ErrorTarget(NetworkBlockName name, byte blockId) { Name = name; BlockId = blockId; }
public MiraeCodeRunner(Dictionary <NetworkBlockName, List <IBlock> > blockCodes, NetworkBlockName startingBlockName) { mBlockCodes = blockCodes; mMainName = startingBlockName; mCurrentName = startingBlockName; }
public ResultTarget(NetworkBlockName name, byte blockId) { Name = name; BlockId = blockId; }
private void RunFunctionCall(FunctionCallBlock block) { mCurrentName = block.TargetName; mFunctionStack.Push(block); mCurrentBlock = null; }
public FunctionCallBlock(byte id, string context, IBlock prev, NetworkBlockName targetName) : base(id, context, prev) { TargetName = targetName; }