本文整理汇总了C++中SystemBody::GetSeed方法的典型用法代码示例。如果您正苦于以下问题:C++ SystemBody::GetSeed方法的具体用法?C++ SystemBody::GetSeed怎么用?C++ SystemBody::GetSeed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SystemBody
的用法示例。
在下文中一共展示了SystemBody::GetSeed方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: l_sbody_attr_seed
/*
* Attribute: seed
*
* The random seed used to generate this <SystemBody>. This is guaranteed to
* be the same for this body across runs of the same build of the game, and
* should be used to seed a <Rand> object when you want to ensure the same
* random numbers come out each time.
*
* This value is the same is the one available via <Body.seed> once you enter
* this system.
*
* Availability:
*
* alpha 10
*
* Status:
*
* stable
*/
static int l_sbody_attr_seed(lua_State *l)
{
SystemBody *sbody = LuaObject<SystemBody>::CheckFromLua(1);
lua_pushinteger(l, sbody->GetSeed());
return 1;
}