Esempio n. 1
0
        public DialogEvent(tDialogCharacter character, string text, AnimatedEntity2D entity = null, float activationTime = 0.3f, float textSpeed = 30.0f, bool skippable = true)
            : base(activationTime)
        {
            this.character = character;
            this.text = text;
            this.textSpeed = textSpeed;
            this.entity = entity;

            this.textComplete = false;
            this.charactersToShow = 0;

            this.skippable = skippable;
        }
 public string getCharacterName(tDialogCharacter character)
 {
     switch (character)
     {
         case tDialogCharacter.Wish: return "Wish";
         case tDialogCharacter.DarkWish: return "Dark wish";
         case tDialogCharacter.OnionElder: return "Onion Elder";
         case tDialogCharacter.KingTomato: return "King Tomato";
         case tDialogCharacter.Macedonia: return "Macedonia";
     }
     return "";
 }