forked from teamnwah/openmw-tes3coop
added callback-interface for character creation
This commit is contained in:
parent
9a2f128f58
commit
e411c6e833
2 changed files with 56 additions and 8 deletions
|
@ -83,4 +83,34 @@ namespace MWMechanics
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MechanicsManager::setPlayerName (const std::string& name)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void MechanicsManager::setPlayerRace (const std::string& race, bool male)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void MechanicsManager::setPlayerBirthsign (const std::string& id)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void MechanicsManager::setPlayerClass (const std::string& id)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void MechanicsManager::setPlayerClass (const ESM::Class& class_)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void MechanicsManager::finalizePlayer()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,30 +26,48 @@ namespace MWMechanics
|
||||||
std::set<MWWorld::Ptr> mActors;
|
std::set<MWWorld::Ptr> mActors;
|
||||||
MWWorld::Ptr mWatched;
|
MWWorld::Ptr mWatched;
|
||||||
CreatureStats mWatchedCreature;
|
CreatureStats mWatchedCreature;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
MechanicsManager (const ESMS::ESMStore& store, MWGui::WindowManager& windowManager);
|
MechanicsManager (const ESMS::ESMStore& store, MWGui::WindowManager& windowManager);
|
||||||
|
|
||||||
void configureGUI();
|
void configureGUI();
|
||||||
|
|
||||||
void addActor (const MWWorld::Ptr& ptr);
|
void addActor (const MWWorld::Ptr& ptr);
|
||||||
///< Register an actor for stats management
|
///< Register an actor for stats management
|
||||||
|
|
||||||
void removeActor (const MWWorld::Ptr& ptr);
|
void removeActor (const MWWorld::Ptr& ptr);
|
||||||
///< Deregister an actor for stats management
|
///< Deregister an actor for stats management
|
||||||
|
|
||||||
void dropActors (const MWWorld::Ptr::CellStore *cellStore);
|
void dropActors (const MWWorld::Ptr::CellStore *cellStore);
|
||||||
///< Deregister all actors in the given cell.
|
///< Deregister all actors in the given cell.
|
||||||
|
|
||||||
void watchActor (const MWWorld::Ptr& ptr);
|
void watchActor (const MWWorld::Ptr& ptr);
|
||||||
///< On each update look for changes in a previously registered actor and update the
|
///< On each update look for changes in a previously registered actor and update the
|
||||||
/// GUI accordingly.
|
/// GUI accordingly.
|
||||||
|
|
||||||
void update();
|
void update();
|
||||||
///< Update actor stats
|
///< Update actor stats
|
||||||
|
|
||||||
|
void setPlayerName (const std::string& name);
|
||||||
|
///< Set player name.
|
||||||
|
|
||||||
|
void setPlayerRace (const std::string& id, bool male);
|
||||||
|
///< Set player race.
|
||||||
|
|
||||||
|
void setPlayerBirthsign (const std::string& id);
|
||||||
|
///< Set player birthsign.
|
||||||
|
|
||||||
|
void setPlayerClass (const std::string& id);
|
||||||
|
///< Set player class to stock class.
|
||||||
|
|
||||||
|
void setPlayerClass (const ESM::Class& class_);
|
||||||
|
///< Set player class to custom class.
|
||||||
|
|
||||||
|
void finalizePlayer();
|
||||||
|
///< Configure player according to previously called setPlayer functions.
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue