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

#include <world.h>

Public Attributes

std::string name
uint32_t kind = 0
 By its id in the NPCs file.
float x = 0.0f
float z = 0.0f
float yaw = 0.0f
bool talks = false
 Whether players can talk to it.
std::set< uint32_t > teaches
 The skills it teaches, by their ids in the skills file.

Detailed Description

Someone who stands in one place, such as a guard. NPCs don't move or fight, so they have none of a monster's health or of what it thinks with.

Definition at line 234 of file world.h.

Member Data Documentation

◆ kind

uint32_t nanommo::Npc::kind = 0

By its id in the NPCs file.

Definition at line 237 of file world.h.

◆ name

std::string nanommo::Npc::name

Definition at line 235 of file world.h.

◆ talks

bool nanommo::Npc::talks = false

Whether players can talk to it.

Definition at line 242 of file world.h.

◆ teaches

std::set<uint32_t> nanommo::Npc::teaches

The skills it teaches, by their ids in the skills file.

Definition at line 244 of file world.h.

◆ x

float nanommo::Npc::x = 0.0f

Definition at line 238 of file world.h.

◆ yaw

float nanommo::Npc::yaw = 0.0f

Definition at line 240 of file world.h.

◆ z

float nanommo::Npc::z = 0.0f

Definition at line 239 of file world.h.


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