コード例 #1
0
        public override void Visit(ActorStmt actorStmt, object[] args)
        {
            if (actorStmt.Img != null && !StrVarRefProcessor.IsVariableIncluded(actorStmt.Img))
            {
                CheckContent(actorStmt.Img, ContentType.Texture, actorStmt.Location);
            }

            if (actorStmt.Asset != null)
            {
                CheckAsset(actorStmt.Asset, typeof(ActorAsset), actorStmt.Location);
            }

            if (actorStmt.Avatar != null && !StrVarRefProcessor.IsVariableIncluded(actorStmt.Avatar))
            {
                CheckContent(actorStmt.Avatar, ContentType.Texture, actorStmt.Location);
            }

            if (actorStmt.AvaAsset != null)
            {
                CheckAsset(actorStmt.AvaAsset, typeof(ActorAsset), actorStmt.Location);
            }
        }
コード例 #2
0
ファイル: ASTRecursor.cs プロジェクト: highjin/firefromheaven
 public virtual void Visit(ActorStmt actorStmt, object[] args)
 {
 }
コード例 #3
0
 public virtual void Visit(ActorStmt actorStmt, object[] args)
 {
 }
コード例 #4
0
 public override void Visit(ActorStmt actorStmt, object[] args)
 {
     if (actorStmt.Layer != null && !root.ActionLayerMap.ContainsKey(actorStmt.Layer))
     {
         kernel.IssueError(ErrorType.ActionLayerNotExist, actorStmt.Location, actorStmt.Layer);
     }
     base.Visit(actorStmt, args);
 }
コード例 #5
0
 public void Visit(ActorStmt actorStmt, object[] args)
 {
     kernel.Behave(kernel.FuncCaller.Actor(
         varRefProcessor.Replace(actorStmt.Name),
         varRefProcessor.Replace(actorStmt.Img),
         actorStmt.Asset,
         varRefProcessor.Replace(actorStmt.Avatar),
         actorStmt.AvaAsset,
         actorStmt.Layer,
         actorStmt.Position
         ));
 }