示例#1
0
文件: main.cpp 项目: CCJY/coliru
int main(void)
{
	Door d;

	d.open();
	d.open();
	d.close();
	d.close();
	d.open();

	return 0;
}
示例#2
0
void Functions::actionCloseDoor(Aurora::NWScript::FunctionContext &ctx) {
	Door *door = NWN::ObjectContainer::toDoor(getParamObject(ctx, 0));
	if (door)
		door->close(NWN::ObjectContainer::toObject(ctx.getCaller()));
}