Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /Conversation.cs by Jordi
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using System.Xml;
- using System.Xml.Serialization;
- public class Conversation
- {
- [XmlAttribute("interactionCodeName")]
- public string interactionCodeName;
- [XmlArray("lines")]
- public Line[] lines;
- }
- public class Line
- {
- [XmlElement("actors")]
- public Actors actors;
- [XmlElement("text")]
- public string text;
- [XmlElement("expression")]
- public Expression expression;
- [XmlElement("cameraPosition")]
- public Movement cameraPosition;
- [XmlElement("choice")]
- public Choice choice;
- [XmlElement("effect")]
- public Effect effects;
- }
- public class Expression
- {
- public enum PortraitExpression
- {
- None,
- Neutral,
- Happy,
- Sad,
- Smirk,
- Thinking,
- Angry,
- Enraged,
- Frightened,
- Serious,
- };
- [XmlEnum("portraitExpression")]
- public PortraitExpression portraitExpression;
- [XmlElement("voiceActing")]
- public bool voiceActing;
- }
- // etc etc
Add Comment
Please, Sign In to add comment