public void Visit(ExitValueNode exitValueNode) { if (exitValueNode is TileExitValueNode tileExit) { DazelLogger.EmitWarning("TileExits have not been implemented yet.", tileExit.Token); } if (exitValueNode is ScreenExitValueNode screenExit) { screenModel.ScreenExits.Add(new ScreenExitModel(screenExit.ConnectedScreenIdentifier, screenExit.ExitDirection)); } }
public void Visit(ExitValueNode exitValueNode) { if (exitValueNode is TileExitValueNode tileExit) { EnvironmentStore.AccessMember(tileExit.ToExit); } if (exitValueNode is ScreenExitValueNode screenExit) { if (!abstractSyntaxTree.TryRetrieveGameObject(screenExit.ConnectedScreenIdentifier)) { DazelLogger.EmitError( $"Exit {screenExit} is invalid: {screenExit.ConnectedScreenIdentifier} does not exist.", screenExit.Token); } } }
public override int GetValue(ExitValueNode a) { throw new System.NotImplementedException(); }
public void Visit(ExitValueNode exitValueNode) { sb.Append(exitValueNode); }
public override ArrayNode GetValue(ExitValueNode a) { DazelLogger.EmitError("ExitValue is not an array.", Token); return(null); }
public abstract T GetValue(ExitValueNode a);
public override T GetValue(ExitValueNode a) { throw new NotImplementedException(); }
public void Visit(ExitValueNode exitValueNode) { Result = Calculator.GetValue(exitValueNode); }
public override string GetValue(ExitValueNode a) { DazelLogger.EmitError("Exits cannot be used as strings.", Token); return(null); }
public void Visit(ExitValueNode exitValueNode) { typeHandler.SetType(exitValueNode.Type, exitValueNode.Token); }