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); } }
public virtual void Visit(ActorStmt actorStmt, object[] args) { }
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); }
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 )); }