Logo
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Properties | List of all members
Yukar.Engine.MessageReader Class Reference

A class for interpreting and sequencing formatting in messages and conversations More...

Classes

class  MessageEntry
 message entry More...
 

Public Member Functions

 MessageReader (GameMain gameMain)
 
int ReadMessage (string messageString, TextDrawer textDrawer, int width, float textScale, int maxLineNum, Guid sender)
 
MessageEntry GetFirstMessage ()
 
MessageEntry Update (bool touchPressed, bool keepWindow, bool processMessage=true)
 
MessageEntry wordWrap (string str, GameMain gameMain, TextDrawer textDrawer, int width, float textScale)
 
MessageEntry.MessageParts DequeueMessageCommand ()
 
bool IsQueuedMessage (int id)
 

Static Public Member Functions

static string[] SplitStringInnerWidth (string text, int width, TextDrawer textDrawer, float scale=1f, SharpKmyGfx.Font font=null)
 
static void Release ()
 

Static Public Attributes

static Common.Resource.Texture icon
 
static bool recentPopped
 

Properties

int MessageQueueCount [get]
 

Detailed Description

A class for interpreting and sequencing formatting in messages and conversations

Constructor & Destructor Documentation

◆ MessageReader()

Yukar.Engine.MessageReader.MessageReader ( GameMain  gameMain)

Member Function Documentation

◆ DequeueMessageCommand()

MessageEntry.MessageParts Yukar.Engine.MessageReader.DequeueMessageCommand ( )

◆ GetFirstMessage()

MessageEntry Yukar.Engine.MessageReader.GetFirstMessage ( )

◆ IsQueuedMessage()

bool Yukar.Engine.MessageReader.IsQueuedMessage ( int  id)

◆ ReadMessage()

int Yukar.Engine.MessageReader.ReadMessage ( string  messageString,
TextDrawer  textDrawer,
int  width,
float  textScale,
int  maxLineNum,
Guid  sender 
)

◆ Release()

static void Yukar.Engine.MessageReader.Release ( )
static

◆ SplitStringInnerWidth()

static string[] Yukar.Engine.MessageReader.SplitStringInnerWidth ( string  text,
int  width,
TextDrawer  textDrawer,
float  scale = 1f,
SharpKmyGfx.Font  font = null 
)
static

◆ Update()

MessageEntry Yukar.Engine.MessageReader.Update ( bool  touchPressed,
bool  keepWindow,
bool  processMessage = true 
)

◆ wordWrap()

MessageEntry Yukar.Engine.MessageReader.wordWrap ( string  str,
GameMain  gameMain,
TextDrawer  textDrawer,
int  width,
float  textScale 
)

Member Data Documentation

◆ icon

Common.Resource.Texture Yukar.Engine.MessageReader.icon
static

◆ recentPopped

bool Yukar.Engine.MessageReader.recentPopped
static

Property Documentation

◆ MessageQueueCount

int Yukar.Engine.MessageReader.MessageQueueCount
get