index
:
minetest.git
gpcf
lifo-fixes
release
modified minetest for gpcfs purposes
gpcf
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
src
/
script
/
cpp_api
Mode
Name
Size
-rw-r--r--
CMakeLists.txt
639
log
plain
-rw-r--r--
s_async.cpp
7288
log
plain
-rw-r--r--
s_async.h
4014
log
plain
-rw-r--r--
s_base.cpp
9549
log
plain
-rw-r--r--
s_base.h
3872
log
plain
-rw-r--r--
s_client.cpp
5922
log
plain
-rw-r--r--
s_client.h
1903
log
plain
-rw-r--r--
s_entity.cpp
8714
log
plain
-rw-r--r--
s_entity.h
1561
log
plain
-rw-r--r--
s_env.cpp
7320
log
plain
-rw-r--r--
s_env.h
1461
log
plain
-rw-r--r--
s_internal.h
2896
log
plain
-rw-r--r--
s_inventory.cpp
7737
log
plain
-rw-r--r--
s_inventory.h
2278
log
plain
-rw-r--r--
s_item.cpp
7077
log
plain
-rw-r--r--
s_item.h
1930
log
plain
-rw-r--r--
s_mainmenu.cpp
2660
log
plain
-rw-r--r--
s_mainmenu.h
1395
log
plain
-rw-r--r--
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef CHAT_HEADER
#define CHAT_HEADER
#include
"irrlichttypes.h"
#include <string>
#include <vector>
#include <list>
// Chat console related classes, only used by the client
struct
ChatLine
{
// age in seconds
f32 age
;
// name of sending player, or empty if sent by server
std
::
wstring name
;
// message text
std
::
wstring text
;
ChatLine
(
std
::
wstring a_name
,
std
::
wstring a_text
):
age
(
0.0
),
name
(
a_name
),
text
(
a_text
)
{
}
};
struct
ChatFormattedFragment
{
// text string
std
::
wstring text
;
// starting column
u32 column
;
// formatting
//u8 bold:1;
};
struct
ChatFormattedLine
{
// Array of text fragments
std
::
vector
<
ChatFormattedFragment
>
fragments
;
// true if first line of one formatted ChatLine
bool
first
;
};
class
ChatBuffer
{
public
:
ChatBuffer
(
u32 scrollback
);
~
Ch'>plain
-rw-r--r--
s_security.h
2769
log
plain
-rw-r--r--
s_server.cpp
4532
log
plain
-rw-r--r--
s_server.h
1504
log
plain