コード例 #1
0
ファイル: DialogNode.cs プロジェクト: gitter-badger/OpenORPG
 private void RemoveDialogLink(DialogLink link)
 {
 }
コード例 #2
0
ファイル: DialogNode.cs プロジェクト: gitter-badger/OpenORPG
 private void AddDialogLink(DialogLink link)
 {
 }
コード例 #3
0
 /// <summary>
 /// Scrubs a dialog link of all the scripts and links associated with them using a deep recursive
 /// call to prevent leaking out information to the outside world about them.
 /// </summary>
 /// <param name="link"></param>
 private void ScrubLink(DialogLink link)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
        private void PerformLinkActions(Player player, DialogLink link)
        {
            _receiver.BeginSession(player);

            try
            {
                link.DialogActions.ForEach(action => action.Execute(_receiver));
            }
            catch (Exception exception)
            {
                Logger.Instance.Warn("An action was attempted to be executed and fail. It was likely not implemented. Check for unimplemented actions.");
            }

            _receiver.EndSession();
        }
コード例 #5
0
 private TreeNode CreateTreeNodeFromDialogLink(DialogLink link)
 {
     var treeNode = new TreeNode(link.Name + ": " + TruncateLongString(link.Text, 40));
     treeNode.ImageKey = "link.png";
     treeNode.SelectedImageKey = treeNode.ImageKey;
     treeNode.Tag = link;
     return treeNode;
 }