C# Class Sanguosha.UI.Controls.LogFormatter

Afficher le fichier Open project: RagingBigFemaleBird/sgs Class Usage Examples

Méthodes publiques

Méthode Description
Format ( string format, List args ) : List
RichTranslate ( Sanguosha.Core.Cards.Card c, bool useUiCard = true ) : IList
RichTranslate ( Sanguosha.Core.Cards.CardHandler cardType ) : IList
RichTranslate ( CardViewModel card ) : IList
RichTranslate ( ICard card, bool useUiCard = true ) : IList
RichTranslate ( IList cards ) : IList
RichTranslate ( ISkill skill ) : IList
RichTranslateCardMove ( List cards, DeckPlace source, DeckPlace dest, GameAction reason ) : System.Windows.Documents.Paragraph
RichTranslateChoice ( Player p, string answer ) : System.Windows.Documents.Paragraph
RichTranslateDamage ( Player source, Player target, int magnitude, DamageElement element ) : System.Windows.Documents.Paragraph
RichTranslateDeath ( Player p, Player by ) : System.Windows.Documents.Paragraph
RichTranslateImprisoned ( Player player ) : System.Windows.Documents.Paragraph
RichTranslateKeyLog ( ActionLog log ) : System.Windows.Documents.Paragraph
RichTranslateMainLog ( ActionLog log ) : System.Windows.Documents.Paragraph
RichTranslatePickHero ( Player player, bool isPrimaryHero ) : System.Windows.Documents.Paragraph
RichTranslateRole ( Player p ) : System.Windows.Documents.Paragraph
Translate ( Sanguosha.Core.Cards.CardHandler cardHandler ) : string
Translate ( DamageElement element ) : string
Translate ( DeckPlace deckPlace ) : string
Translate ( Sanguosha.Core.Cards.DeckType deckType ) : string
Translate ( Sanguosha.Core.Heroes.Hero hero ) : string
Translate ( ICard card ) : string
Translate ( IList players ) : string
Translate ( ISkill skill ) : string
Translate ( Player player ) : string
Translate ( Prompt prompt ) : string
Translate ( Role role ) : string
Translate ( SuitType suitType ) : string
TranslateCardFootnote ( ActionLog log ) : string
TranslateLogEvent ( Prompt custom, bool useUICard = true ) : IList

Private Methods

Méthode Description
LogFormatter ( ) : System
RichTranslateChat ( string playerName, string userName, string message ) : System.Windows.Documents.Paragraph
RichTranslateChatMessage ( string message ) : IList
RichTranslateJudgeResult ( Player p, Sanguosha.Core.Cards.Card card, ActionLog log, bool isFinalResult ) : System.Windows.Documents.Paragraph
RichTranslateJudgeResultEffectiveness ( Player p, ActionLog log, bool isSuccess ) : System.Windows.Documents.Paragraph
RichTranslateLoseHealth ( Player player, int delta ) : System.Windows.Documents.Paragraph
RichTranslateLoseMaxHealth ( Player player, int delta ) : System.Windows.Documents.Paragraph
RichTranslateRecoverHealth ( Player player, int delta ) : System.Windows.Documents.Paragraph
RichTranslateReforgeCard ( Player player, ICard card ) : System.Windows.Documents.Paragraph
RichTranslateShowCards ( Player player, IList cards ) : System.Windows.Documents.Paragraph
TranslateHeroName ( Sanguosha.Core.Heroes.Hero hero ) : string

Method Details

Format() public static méthode

public static Format ( string format, List args ) : List
format string
args List
Résultat List

RichTranslate() public static méthode

public static RichTranslate ( Sanguosha.Core.Cards.Card c, bool useUiCard = true ) : IList
c Sanguosha.Core.Cards.Card
useUiCard bool
Résultat IList

RichTranslate() public static méthode

public static RichTranslate ( Sanguosha.Core.Cards.CardHandler cardType ) : IList
cardType Sanguosha.Core.Cards.CardHandler
Résultat IList

RichTranslate() public static méthode

public static RichTranslate ( CardViewModel card ) : IList
card CardViewModel
Résultat IList

RichTranslate() public static méthode

public static RichTranslate ( ICard card, bool useUiCard = true ) : IList
card ICard
useUiCard bool
Résultat IList

RichTranslate() public static méthode

public static RichTranslate ( IList cards ) : IList
cards IList
Résultat IList

RichTranslate() public static méthode

public static RichTranslate ( ISkill skill ) : IList
skill ISkill
Résultat IList

RichTranslateCardMove() public static méthode

public static RichTranslateCardMove ( List cards, DeckPlace source, DeckPlace dest, GameAction reason ) : System.Windows.Documents.Paragraph
cards List
source Sanguosha.Core.Cards.DeckPlace
dest Sanguosha.Core.Cards.DeckPlace
reason GameAction
Résultat System.Windows.Documents.Paragraph

RichTranslateChoice() public static méthode

public static RichTranslateChoice ( Player p, string answer ) : System.Windows.Documents.Paragraph
p Sanguosha.Core.Players.Player
answer string
Résultat System.Windows.Documents.Paragraph

RichTranslateDamage() public static méthode

public static RichTranslateDamage ( Player source, Player target, int magnitude, DamageElement element ) : System.Windows.Documents.Paragraph
source Sanguosha.Core.Players.Player
target Sanguosha.Core.Players.Player
magnitude int
element DamageElement
Résultat System.Windows.Documents.Paragraph

RichTranslateDeath() public static méthode

public static RichTranslateDeath ( Player p, Player by ) : System.Windows.Documents.Paragraph
p Sanguosha.Core.Players.Player
by Sanguosha.Core.Players.Player
Résultat System.Windows.Documents.Paragraph

RichTranslateImprisoned() public static méthode

public static RichTranslateImprisoned ( Player player ) : System.Windows.Documents.Paragraph
player Sanguosha.Core.Players.Player
Résultat System.Windows.Documents.Paragraph

RichTranslateKeyLog() public static méthode

public static RichTranslateKeyLog ( ActionLog log ) : System.Windows.Documents.Paragraph
log Sanguosha.Core.UI.ActionLog
Résultat System.Windows.Documents.Paragraph

RichTranslateMainLog() public static méthode

public static RichTranslateMainLog ( ActionLog log ) : System.Windows.Documents.Paragraph
log Sanguosha.Core.UI.ActionLog
Résultat System.Windows.Documents.Paragraph

RichTranslatePickHero() public static méthode

public static RichTranslatePickHero ( Player player, bool isPrimaryHero ) : System.Windows.Documents.Paragraph
player Sanguosha.Core.Players.Player
isPrimaryHero bool
Résultat System.Windows.Documents.Paragraph

RichTranslateRole() public static méthode

public static RichTranslateRole ( Player p ) : System.Windows.Documents.Paragraph
p Sanguosha.Core.Players.Player
Résultat System.Windows.Documents.Paragraph

Translate() public static méthode

public static Translate ( Sanguosha.Core.Cards.CardHandler cardHandler ) : string
cardHandler Sanguosha.Core.Cards.CardHandler
Résultat string

Translate() public static méthode

public static Translate ( DamageElement element ) : string
element DamageElement
Résultat string

Translate() public static méthode

public static Translate ( DeckPlace deckPlace ) : string
deckPlace Sanguosha.Core.Cards.DeckPlace
Résultat string

Translate() public static méthode

public static Translate ( Sanguosha.Core.Cards.DeckType deckType ) : string
deckType Sanguosha.Core.Cards.DeckType
Résultat string

Translate() public static méthode

public static Translate ( Sanguosha.Core.Heroes.Hero hero ) : string
hero Sanguosha.Core.Heroes.Hero
Résultat string

Translate() public static méthode

public static Translate ( ICard card ) : string
card ICard
Résultat string

Translate() public static méthode

public static Translate ( IList players ) : string
players IList
Résultat string

Translate() public static méthode

public static Translate ( ISkill skill ) : string
skill ISkill
Résultat string

Translate() public static méthode

public static Translate ( Player player ) : string
player Sanguosha.Core.Players.Player
Résultat string

Translate() public static méthode

public static Translate ( Prompt prompt ) : string
prompt Sanguosha.Core.UI.Prompt
Résultat string

Translate() public static méthode

public static Translate ( Role role ) : string
role Role
Résultat string

Translate() public static méthode

public static Translate ( SuitType suitType ) : string
suitType SuitType
Résultat string

TranslateCardFootnote() public static méthode

public static TranslateCardFootnote ( ActionLog log ) : string
log Sanguosha.Core.UI.ActionLog
Résultat string

TranslateLogEvent() public static méthode

public static TranslateLogEvent ( Prompt custom, bool useUICard = true ) : IList
custom Sanguosha.Core.UI.Prompt
useUICard bool
Résultat IList