Example #1
0
        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));
            }
        }
Example #2
0
        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);
                }
            }
        }
Example #3
0
 public override int GetValue(ExitValueNode a)
 {
     throw new System.NotImplementedException();
 }
Example #4
0
 public void Visit(ExitValueNode exitValueNode)
 {
     sb.Append(exitValueNode);
 }
Example #5
0
        public override ArrayNode GetValue(ExitValueNode a)
        {
            DazelLogger.EmitError("ExitValue is not an array.", Token);

            return(null);
        }
Example #6
0
 public abstract T GetValue(ExitValueNode a);
Example #7
0
 public override T GetValue(ExitValueNode a)
 {
     throw new NotImplementedException();
 }
Example #8
0
 public void Visit(ExitValueNode exitValueNode)
 {
     Result = Calculator.GetValue(exitValueNode);
 }
Example #9
0
        public override string GetValue(ExitValueNode a)
        {
            DazelLogger.EmitError("Exits cannot be used as strings.", Token);

            return(null);
        }
Example #10
0
 public void Visit(ExitValueNode exitValueNode)
 {
     typeHandler.SetType(exitValueNode.Type, exitValueNode.Token);
 }