daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /Conversation.cs by Jordi
  2.  
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. using System.Xml;
  7. using System.Xml.Serialization;
  8.  
  9.  
  10. public class Conversation
  11. {
  12.     [XmlAttribute("interactionCodeName")]
  13.     public string interactionCodeName;
  14.  
  15.     [XmlArray("lines")]
  16.     public Line[] lines;
  17. }
  18.  
  19. public class Line
  20. {
  21.     [XmlElement("actors")]
  22.     public Actors actors;
  23.  
  24.     [XmlElement("text")]
  25.     public string text;
  26.  
  27.     [XmlElement("expression")]
  28.     public Expression expression;
  29.  
  30.     [XmlElement("cameraPosition")]
  31.     public Movement cameraPosition;
  32.  
  33.     [XmlElement("choice")]
  34.     public Choice choice;
  35.  
  36.     [XmlElement("effect")]
  37.     public Effect effects;
  38.  
  39. }
  40.  
  41. public class Expression
  42. {
  43.    
  44.     public enum PortraitExpression
  45.     {
  46.         None,
  47.         Neutral,
  48.         Happy,
  49.         Sad,
  50.         Smirk,
  51.         Thinking,
  52.         Angry,
  53.         Enraged,
  54.         Frightened,
  55.         Serious,
  56.     };
  57.  
  58.     [XmlEnum("portraitExpression")]
  59.     public PortraitExpression portraitExpression;
  60.  
  61.     [XmlElement("voiceActing")]
  62.     public bool voiceActing;
  63. }
  64.  
  65. // etc etc
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top