载入中...
搜索中...
未找到
Weapon.cpp 文件参考
#include "weapon/Weapon.h"
#include "common/Value.h"
#include "weapon/CombatCarrierScript.h"
#include "weapon/WeaponAttributes.h"
#include "weapon/WeaponDefinitionRuntime.h"
#include "weapon/WeaponSystem.h"
#include <squirrel.h>
#include <simplesquirrel/simplesquirrel.hpp>
#include <algorithm>
#include <cmath>
#include <memory>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::weapon
 载具模块入口(eve.Vehicle):定义注册 / 实体工厂 / RTS 命令 / 帧调度。 设计文档:docs/dev/通用载具系统设计.md
 

函数

 eve::weapon::Module_IMPL (Weapon, new Weapon())
 
const char * eve::weapon::fireModeName (FireMode mode)
 开火模式的字符串名("single" | "burst" | "auto")。
 
FireMode eve::weapon::fireModeFromName (const std::string &name)
 从字符串解析开火模式;未知名字回退 Single。
 
const char * eve::weapon::weaponKindName (WeaponKind kind)
 武器形态的字符串名("melee" | "ranged" | "magic" | "missile" | "custom")。
 
WeaponKind eve::weapon::weaponKindFromName (const std::string &name)
 从字符串解析武器形态;未知名字回退 Ranged。
 
const char * eve::weapon::attackStageName (AttackStage stage)
 攻击阶段的字符串名("idle" | "windup" | "active" | "recover")。
 
const char * eve::weapon::weaponEventTypeName (WeaponEventType type)
 事件类型的字符串名。