nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::Event Struct Reference

#include <world.h>

Public Types

enum class  Kind {
  kKill , kDeath , kLoot , kPrize ,
  kLevel , kTake , kTurnIn , kUse ,
  kHit , kHurt , kHeal , kCraft
}

Public Attributes

Kind kind = Kind::kKill
std::string player
uint32_t player_id = 0
 The player's id in the world, which the clients know them by.
int land = 0
 By its place in kLands.
uint32_t copy = 0
 The copy of the land it happened in, which Copies fills in.
float x = 0.0f
float z = 0.0f
uint32_t monster = 0
 The monster killed, or that killed or hit the player.
uint32_t monster_id = 0
 The monster the player hit, by its id in the world.
uint32_t item = 0
 An item dropped, given for a quest, used or made, and how many.
uint32_t count = 0
uint32_t quest = 0
uint32_t level = 0
 The level a player's reached.
uint32_t amount = 0
 The health a hit took, or that a potion or a skill gave back.

Detailed Description

Something a player did, or that happened to them, for the game's analytics and for the players near them to see: what, who and where, and what it was about, by its ids in the content.

Definition at line 265 of file world.h.

Member Enumeration Documentation

◆ Kind

enum class nanommo::Event::Kind
strong
Enumerator
kKill 
kDeath 
kLoot 
kPrize 
kLevel 
kTake 
kTurnIn 
kUse 
kHit 
kHurt 
kHeal 
kCraft 

Definition at line 266 of file world.h.

Member Data Documentation

◆ amount

uint32_t nanommo::Event::amount = 0

The health a hit took, or that a potion or a skill gave back.

Definition at line 301 of file world.h.

◆ copy

uint32_t nanommo::Event::copy = 0

The copy of the land it happened in, which Copies fills in.

Definition at line 287 of file world.h.

◆ count

uint32_t nanommo::Event::count = 0

Definition at line 296 of file world.h.

◆ item

uint32_t nanommo::Event::item = 0

An item dropped, given for a quest, used or made, and how many.

Definition at line 295 of file world.h.

◆ kind

Kind nanommo::Event::kind = Kind::kKill

Definition at line 280 of file world.h.

◆ land

int nanommo::Event::land = 0

By its place in kLands.

Definition at line 285 of file world.h.

◆ level

uint32_t nanommo::Event::level = 0

The level a player's reached.

Definition at line 299 of file world.h.

◆ monster

uint32_t nanommo::Event::monster = 0

The monster killed, or that killed or hit the player.

Definition at line 291 of file world.h.

◆ monster_id

uint32_t nanommo::Event::monster_id = 0

The monster the player hit, by its id in the world.

Definition at line 293 of file world.h.

◆ player

std::string nanommo::Event::player

Definition at line 281 of file world.h.

◆ player_id

uint32_t nanommo::Event::player_id = 0

The player's id in the world, which the clients know them by.

Definition at line 283 of file world.h.

◆ quest

uint32_t nanommo::Event::quest = 0

Definition at line 297 of file world.h.

◆ x

float nanommo::Event::x = 0.0f

Definition at line 288 of file world.h.

◆ z

float nanommo::Event::z = 0.0f

Definition at line 289 of file world.h.


The documentation for this struct was generated from the following file: