code
stringlengths 3
10M
| language
stringclasses 31
values |
|---|---|
/**
Copyright: 2017 © LLC CERERIS
License: MIT
Authors: LLC CERERIS
*/
module checkit.runner;
import checkit.block;
import checkit.blockmanager;
import checkit.reporter;
import std.conv;
import std.getopt;
import std.stdio;
/// Interface for running test
interface RunnerInterface
{
public:
/// Run tests and return code
int run();
}
/** Provide run BDD tests
Params:
T = BlockManagerInterface
*/
class BDDTestRunner(T): RunnerInterface
{
public:
/** Constructor
Params:
reporter = Provide reporting test.
Examples:
---
auto reporter = new ConsoleReporter();
auto runner = new BDDTestRunner!(reporter);
---
*/
this(ReporterInterface reporter)
{
_reporter = reporter;
}
/** Run tests and return code
Returns:
Return code $(D int) for main function
Examples:
---
auto reporter = new ConsoleReporter();
auto runner = new BDDTestRunner!(reporter);
runner.run();
---
*/
int run()
{
_returnCode = 0;
_failBlocks = [];
_successBlocks = [];
checkNoBlock!GivenBlock();
checkNoBlock!WhenBlock();
checkNoBlock!ThenBlock();
foreach(scenario; T.getByType!ScenarioBlock())
{
runBlock(scenario);
}
_reporter.printResults(_successBlocks, _failBlocks);
return _returnCode;
}
private:
void checkNoBlock(U)()
{
U[] blocks = T.getByType!U();
if(blocks.length)
{
_returnCode = -1;
foreach(block; blocks)
{
T.removeBlockByUUID(block.getUUID());
}
}
}
void runBlock(ScenarioBlock block)
{
checkNoBlock!WhenBlock();
checkNoBlock!ThenBlock();
executeBlock(block);
foreach(given; T.getByType!GivenBlock())
{
runBlock(given);
}
}
void runBlock(GivenBlock block)
{
checkNoBlock!ThenBlock();
executeBlock(block);
foreach(when; T.getByType!WhenBlock())
{
runBlock(when);
}
}
void runBlock(WhenBlock block)
{
executeBlock(block);
foreach(then; T.getByType!ThenBlock())
{
executeBlock(then);
}
}
void executeBlock(U)(U block)
{
try
{
block.getCallback()();
_reporter.success(block);
_successBlocks ~= block;
}
catch(Exception e)
{
_returnCode = -1;
_failBlocks ~= block;
_reporter.fail(block);
_reporter.fail(typeid(e).toString() ~ "@" ~ e.file ~ "(" ~ to!string(e.line) ~ "): " ~ e.msg);
}
T.removeBlockByUUID(block.getUUID());
}
ReporterInterface _reporter;
int _returnCode;
TestBlock[] _successBlocks;
TestBlock[] _failBlocks;
}
int runTests(string[] args)
{
bool verbose = false;
getopt(
args,
"verbose|v", &verbose
);
auto reporter = new ConsoleReporter;
reporter.setVerbose(verbose);
auto runner = new BDDTestRunner!BlockManager(reporter);
return runner.run();
}
|
D
|
// BulletD - a D binding for the Bullet Physics engine
// written in the D programming language
//
// Copyright: Ben Merritt 2012 - 2013,
// MeinMein 2013 - 2014.
// License: Boost License 1.0
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Authors: Ben Merrit,
// Gerbrand Kamphuis (meinmein.com).
module bullet.BulletCollision.CollisionShapes.btBvhTriangleMeshShape;
import bullet.bindings.bindings;
import bullet.BulletCollision.CollisionShapes.btTriangleMeshShape;
import bullet.BulletCollision.CollisionShapes.btStridingMeshInterface;
static if(bindSymbols)
{
static void writeBindings(File f)
{
f.writeIncludes("#include <BulletCollision/CollisionShapes/btBvhTriangleMeshShape.h>");
btBvhTriangleMeshShape.writeBindings(f);
}
}
struct btBvhTriangleMeshShape
{
mixin classChild!("btBvhTriangleMeshShape", btTriangleMeshShape);
mixin opNew!(ParamPtr!btStridingMeshInterface, bool, bool);
}
|
D
|
module libd.datastructures.linkedlist;
import libd.util.errorhandling : onOutOfMemoryError;
import libd.memory;
import libd.memory.ptr;
import libd.algorithm : OptimisationHint;
// "Default" linked list is a double linked list since that's easier for me to implement >xP
@nogc nothrow
@(OptimisationHint.rangeFasterThanIndex)
struct LinkedList(alias T, alias AllocT = SystemAllocator)
{
static struct Node
{
T value;
Node* next;
Node* prev;
}
private size_t _length;
private MaybeNullPtr!(Node, AllocT.Tag) _head;
private MaybeNullPtr!(Node, AllocT.Tag) _tail;
private AllocatorWrapperOf!AllocT _alloc;
@disable this(this) {}
this()(AllocatorWrapperOf!AllocT alloc)
{
this._alloc = alloc;
}
@nogc nothrow
~this()
{
while(this._head !is null)
{
auto head = this._head;
this._head = head.next;
this._alloc.dispose(head);
}
}
alias put = putTail;
void putTail()(auto ref T value)
{
auto node = this._alloc.make!Node(value);
if(node is null)
onOutOfMemoryError(null);
if(this._head is null)
{
this._head = node;
this._tail = node;
}
else
{
auto tail = this._tail;
this._tail.next = node;
node.prev = tail;
this._tail = node;
}
this._length++;
}
void putTail(Args...)(scope auto ref Args args)
{
foreach(ref value; args)
this.putTail(value);
}
void moveTail()(auto ref T value)
{
auto node = this._alloc.make!Node();
if(node is null)
onOutOfMemoryError(null);
move(value, node.value);
if(this._head is null)
{
this._head = node;
this._tail = node;
}
else
{
auto tail = this._tail;
this._tail.next = node;
node.prev = tail;
this._tail = node;
}
this._length++;
}
void putHead()(auto ref T value)
{
auto node = this._alloc.make!Node(value);
if(node is null)
onOutOfMemoryError(null);
if(this._head is null)
{
this._head = node;
this._tail = node;
}
else
{
auto head = this._head;
this._head.prev = node;
node.next = head;
this._head = node;
}
this._length++;
}
void insertAt()(size_t index, auto ref T value)
{
auto node = this._alloc.make!Node(value);
if(node is null)
onOutOfMemoryError(null);
assert(index <= this._length, "Index out of bounds.");
if(this._length == 0) // Special case
{
this._head = node;
this._tail = node;
}
else if(index == 0) // Special case
{
this._head.prev = node;
node.next = this._head;
this._head = node;
}
else if(index == this._length) // Special case
{
this._tail.next = node;
node.prev = this._tail;
this._tail = node;
}
else
{
auto head = this._head;
foreach(i; 0..index)
head = head.next;
assert(head !is null);
head = head.prev;
auto next = head.next;
head.next = node;
node.next = next;
node.prev = head;
if(next !is null)
next.prev = node;
}
this._length++;
}
alias getAt = getAtHead;
ref inout(T) getAtHead()(size_t index) inout
{
return this.getNodeAtHead(index).value;
}
alias removeAt = removeAtHead;
void removeAtHead()(size_t index, scope ref T dest)
{
this.removeAtImpl!getNodeAtHead(index, dest);
}
T removeAtHead()(size_t index)
{
T value;
this.removeAtHead(index, value);
return value;
}
void removeAtTail()(size_t index, scope ref T dest)
{
this.removeAtImpl!getNodeAtTail(index, dest);
}
T removeAtTail()(size_t index)
{
T value;
this.removeAtTail(index, value);
return value;
}
@property @trusted
auto range() inout
{
static struct Range
{
Node* node;
@nogc nothrow:
bool empty() { return this.node is null; }
void popFront()
{
assert(!this.empty, "Cannot pop an empty range.");
this.node = this.node.next;
}
ref T front()
{
assert(!this.empty, "Cannot access front of an empty range.");
return this.node.value;
}
}
return Range(cast(Node*)this._head.ptr);
}
@property @safe
size_t length() const
{
return this._length;
}
@safe size_t opDollar() const { return this.length; }
@safe
ref inout(T) opIndex(size_t index) inout
{
return this.getAt(index);
}
private void removeAtImpl(alias GetterFunc)(size_t index, scope ref T dest)
{
auto node = GetterFunc(index);
move(node.value, dest);
if(this._length == 1)
{
this._head = null;
this._tail = null;
}
else if(index == 0)
{
if(node.next !is null)
node.next.prev = null;
this._head = node.next;
}
else if(index == this._length-1)
{
if(node.prev !is null)
node.prev.next = null;
this._tail = node.prev;
}
else
{
node.prev.next = node.next;
node.next.prev = node.prev;
}
this._alloc.dispose(node);
this._length--;
}
private inout(Node)* getNodeAtHead()(size_t index) inout
{
assert(index < this._length, "Index out of bounds.");
auto result = cast()this._head.ptr;
foreach(i; 0..index)
result = result.next;
assert(result !is null, "Could not find result?");
return result;
}
private inout(Node)* getNodeAtTail()(size_t index) inout
{
assert(index < this._length, "Index out of bounds.");
auto result = cast()this._tail.ptr;
const iterations = (this._length - index) - 1;
foreach(i; 0..iterations)
result = result.prev;
assert(result !is null, "Could not find result?");
return result;
}
}
///
@("LinkedList - basic")
unittest
{
import libd.algorithm : isCollection, isInputRange;
import libd.memory : emplaceInit;
static assert(isCollection!(LinkedList!int, int));
static assert(isInputRange!(typeof(LinkedList!int.range())));
LinkedList!int list;
list.put(2);
assert(list.length == 1);
assert(list._head is list._tail);
assert(list.getAt(0) == 2);
list.put(4);
assert(list.length == 2);
assert(list._head !is list._tail);
assert(list.getAt(0) == 2);
assert(list.getAt(1) == 4);
list.putHead(0);
assert(list.length == 3);
assert(list.getAt(0) == 0);
assert(list.getAt(1) == 2);
assert(list.getAt(2) == 4);
list.getAt(1) /= 2;
assert(list.getAt(1) == 1);
list.removeAt(1);
assert(list.length == 2);
assert(list.getAt(0) == 0);
assert(list.getAt(1) == 4);
list.removeAt(0);
assert(list.length == 1);
assert(list.getAt(0) == 4);
assert(list.removeAt(0));
assert(list.length == 0);
assert(list._head is list._tail);
assert(list._head is null);
list.put(0);
list.put(0);
list.put(0);
int next = 2;
foreach(ref num; list.range)
{
num = next;
next += 2;
}
assert(list[0] == 2);
assert(list[1] == 4);
assert(list[2] == 6);
emplaceInit(list);
list.insertAt(0, 2); // 2
list.insertAt(0, 0); // 0 2
list.insertAt(2, 3); // 0 2 3
list.insertAt(1, 1); // 0 1 2 3
assert(list.length == 4);
assert(list[0] == 0);
assert(list[1] == 1);
assert(list[2] == 2);
assert(list[3] == 3);
assert(list.removeAtTail(1) == 1);
assert(list.removeAtTail(1) == 2);
assert(list.removeAtTail(0) == 0);
assert(list.removeAtTail(0) == 3);
}
|
D
|
/home/zyphen/Projects/rustlings/rustlings/target/release/build/regex-630bd895bd6b5c8a/build_script_build-630bd895bd6b5c8a: /home/zyphen/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.2.11/build.rs
/home/zyphen/Projects/rustlings/rustlings/target/release/build/regex-630bd895bd6b5c8a/build_script_build-630bd895bd6b5c8a.d: /home/zyphen/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.2.11/build.rs
/home/zyphen/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.2.11/build.rs:
|
D
|
var int Skip_DI_ItemsGiven_Chapter_1;
var int Skip_DI_ItemsGiven_Chapter_2;
var int Skip_DI_ItemsGiven_Chapter_3;
var int Skip_DI_ItemsGiven_Chapter_4;
var int Skip_DI_ItemsGiven_Chapter_5;
FUNC VOID B_GiveTradeInv_Mod_Skip_DI (var C_NPC slf)
{
if ((Kapitel >= 1)
&& (Skip_DI_ItemsGiven_Chapter_1 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 100);
CreateInvItems (slf, ItFo_Addon_Rum,4);
CreateInvItems (slf, ItFo_Addon_Grog,8);
CreateInvItems (slf, ItFo_Booze,6);
CreateInvItems (slf, ItFo_Beer,12);
CreateInvItems (slf, Itfo_Wine,4);
CreateInvItems (slf, ItFo_Bacon,2);
CreateInvItems (slf,ItFo_Water , 5);
CreateInvItems (slf, ItMi_Flask,4);
CreateInvItems (slf, ItPl_SwampHerb,4);
CreateInvItems (slf, ItMi_Joint,1);
CreateInvItems (slf, Ri_ProtFire02,1);
Skip_DI_ItemsGiven_Chapter_1 = TRUE;
};
if ((Kapitel >= 2)
&& (Skip_DI_ItemsGiven_Chapter_2 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 100);
CreateInvItems (slf, ItFo_Addon_Rum,4);
CreateInvItems (slf, ItFo_Addon_Grog,8);
CreateInvItems (slf, ItFo_Booze,6);
CreateInvItems (slf, ItFo_Beer,12);
CreateInvItems (slf,ItFo_Water , 5);
CreateInvItems (slf, Itfo_Wine,4);
CreateInvItems (slf, ItFo_Bacon,2);
CreateInvItems (slf, ItMi_Flask,4);
CreateInvItems (slf, ItPl_SwampHerb,4);
CreateInvItems (slf, ItMi_Joint,1);
Skip_DI_ItemsGiven_Chapter_2 = TRUE;
};
if ((Kapitel >= 3)
&& (Skip_DI_ItemsGiven_Chapter_3 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 100);
CreateInvItems (slf, ItFo_Addon_Rum,4);
CreateInvItems (slf, ItFo_Addon_Grog,8);
CreateInvItems (slf, ItFo_Booze,6);
CreateInvItems (slf, ItFo_Beer,12);
CreateInvItems (slf, Itfo_Wine,4);
CreateInvItems (slf,ItFo_Water , 5);
CreateInvItems (slf, ItFo_Bacon,2);
CreateInvItems (slf, ItMi_Flask,4);
CreateInvItems (slf, ItPl_SwampHerb,4);
CreateInvItems (slf, ItMi_Joint,1);
Skip_DI_ItemsGiven_Chapter_3 = TRUE;
};
if ((Kapitel >= 4)
&& (Skip_DI_ItemsGiven_Chapter_4 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 100);
CreateInvItems (slf, ItFo_Addon_Rum,4);
CreateInvItems (slf, ItFo_Addon_Grog,8);
CreateInvItems (slf, ItFo_Booze,6);
CreateInvItems (slf, ItFo_Beer,12);
CreateInvItems (slf, Itfo_Wine,4);
CreateInvItems (slf, ItFo_Water , 5);
CreateInvItems (slf, ItFo_Bacon,2);
CreateInvItems (slf, ItMi_Flask,4);
CreateInvItems (slf, ItPl_SwampHerb,4);
CreateInvItems (slf, ItMi_Joint,1);
Skip_DI_ItemsGiven_Chapter_4 = TRUE;
};
if ((Kapitel >= 5)
&& (Skip_DI_ItemsGiven_Chapter_5 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 100);
CreateInvItems (slf, ItFo_Addon_Rum,4);
CreateInvItems (slf, ItFo_Addon_Grog,8);
CreateInvItems (slf, ItFo_Booze,6);
CreateInvItems (slf, ItFo_Beer,12);
CreateInvItems (slf, Itfo_Wine,4);
CreateInvItems (slf, ItFo_Bacon,2);
CreateInvItems (slf, ItMi_Flask,4);
CreateInvItems (slf, ItPl_SwampHerb,4);
CreateInvItems (slf, ItMi_Joint,1);
Skip_DI_ItemsGiven_Chapter_5 = TRUE;
};
};
|
D
|
instance PAL_251_ORIC(NPC_DEFAULT)
{
name[0] = "Oric";
guild = GIL_PAL;
id = 251;
voice = 11;
flags = 0;
npctype = NPCTYPE_OCMAIN;
b_setattributestochapter(self,5);
fight_tactic = FAI_HUMAN_MASTER;
EquipItem(self,itmw_2h_pal_sword);
EquipItem(self,itrw_mil_crossbow);
b_createambientinv(self);
b_setnpcvisual(self,MALE,"Hum_Head_Fighter",FACE_N_TOUGH_LEE_åHNLICH,BODYTEX_N,itar_pal_h);
Mdl_SetModelFatness(self,1);
Mdl_ApplyOverlayMds(self,"Humans_Militia.mds");
b_givenpctalents(self);
b_setfightskills(self,80);
daily_routine = rtn_start_251;
};
func void rtn_start_251()
{
ta_smalltalk(8,0,21,0,"OC_EBR_HALL_CENTER");
ta_sleep(21,0,8,0,"OC_EBR_ROOM_02_SLEEP");
};
|
D
|
module polyplex.core.audio.music;
import polyplex.core.audio;
import polyplex.core.audio.effect;
import ppc.types.audio;
import openal;
import ppc.backend.cfile;
import polyplex.math;
import std.concurrency;
import std.stdio;
import polyplex.utils.logging;
import core.thread;
import core.time;
import core.sync.mutex;
// This is set to true on application close, so that threads know to quit.
protected __gshared bool shouldStop;
protected __gshared int openMusicChannels;
package(polyplex) void stopMusicThread() {
shouldStop = true;
Logger.Info("Cleaning up music threads... {0}", openMusicChannels);
while (openMusicChannels > 0) {}
}
private void iHandlerLaunch() {
synchronized {
openMusicChannels++;
}
}
private void iHandlerStop() {
synchronized {
openMusicChannels--;
}
}
protected void MusicHandlerThread(Music iMus) {
try {
iHandlerLaunch;
int buffersProcessed;
ALuint deqBuff;
ALint state;
byte[] streamBuffer = new byte[iMus.bufferSize];
size_t startBufferSize = Music.BufferSize;
// Stop thread if requested.
while (iMus !is null && &shouldStop !is null && !shouldStop && !iMus.shouldStopInternal) {
// Sleep needed to make the CPU NOT run at 100% at all times
Thread.sleep(10.msecs);
// Check if we have any buffers to fill
alGetSourcei(iMus.source, AL_BUFFERS_PROCESSED, &buffersProcessed);
iMus.totalProcessed += buffersProcessed;
while(buffersProcessed > 0) {
// Find the ID of the buffer to fill
deqBuff = 0;
alSourceUnqueueBuffers(iMus.source, 1, &deqBuff);
// Resize buffers if needed
if (startBufferSize != Music.BufferSize) {
streamBuffer.length = Music.BufferSize;
startBufferSize = Music.BufferSize;
iMus.bufferSize = cast(int)Music.BufferSize;
}
// Read audio from stream in
size_t readData = iMus.stream.read(streamBuffer.ptr, iMus.bufferSize);
if (readData == 0) {
if (!iMus.looping) {
iMus.playing = false;
iHandlerStop;
return;
}
iMus.stream.seek;
readData = iMus.stream.read(streamBuffer.ptr, iMus.bufferSize);
}
// Send to OpenAL
alBufferData(deqBuff, iMus.fFormat, streamBuffer.ptr, cast(int)readData, cast(int)iMus.stream.info.bitrate);
alSourceQueueBuffers(iMus.source, 1, &deqBuff);
buffersProcessed--;
}
// OpenAL will stop the stream if it runs out of buffers
// Ensure that if OpenAL stops, we start it again.
alGetSourcei(iMus.source, AL_SOURCE_STATE, &state);
if (state != AL_PLAYING) {
iMus.xruns++;
Logger.Warn("Music buffer X-run!");
alSourcePlay(iMus.source);
}
}
} catch(Exception ex) {
Logger.Err("MusicHandlerException: {0}", ex.message);
} catch (Error err) {
Logger.Err("MusicHandlerError: {0}", err.message);
}
iHandlerStop;
}
public class Music {
private:
// Internal thread-communication data.
size_t totalProcessed;
Thread musicThread;
bool shouldStopInternal;
// Buffer
Audio stream;
ALuint[] buffer;
AudioRenderFormats fFormat;
// Buffer sizing
int bufferSize;
int buffers;
// Settings
bool looping;
bool paused;
bool playing;
int xruns;
// Effects & filters
AudioEffect attachedEffect;
AudioFilter attachedFilter;
void applyEffectsAndFilters() {
ALuint efId = attachedEffect !is null ? attachedEffect.Id : AL_EFFECTSLOT_NULL;
ALuint flId = attachedFilter !is null ? attachedFilter.Id : AL_FILTER_NULL;
Logger.Debug("Applying effect {0} and filter {1} on Music {2}...", efId, flId, source);
alSource3i(source, AL_AUXILIARY_SEND_FILTER, efId, 0, flId);
alSourcei(source, AL_DIRECT_FILTER, flId);
ErrCodes err = cast(ErrCodes)alGetError();
import std.conv;
if (cast(ALint)err != AL_NO_ERROR) throw new Exception("Failed to attach effect and/or filter to SoundEffect instance "~err.to!string);
}
// Source
ALuint source;
public:
/// Changes the size of the buffers for music playback.
/// Changes take effect immidiately
static size_t BufferSize = 48_000;
/// Amount of buffers to provision per audio track
/// Takes effect on new audio load.
static size_t BufferCount = 16;
/// Constructs a Music via an Audio source.
// TODO: Optimize enough so that we can have fewer buffers
this(Audio audio, AudioRenderFormats format = AudioRenderFormats.Auto) {
stream = audio;
// Select format if told to.
if (format == AudioRenderFormats.Auto) {
import std.conv;
if (stream.info.channels == 1) fFormat = AudioRenderFormats.Mono16;
else if (stream.info.channels == 2) fFormat = AudioRenderFormats.Stereo16;
else throw new Exception("Unsupported amount of channels! " ~ stream.info.channels.to!string);
}
// Clear errors
alGetError();
// Prepare buffer arrays
this.buffers = cast(int)BufferCount;
buffer = new ALuint[buffers];
this.bufferSize = (cast(int)BufferSize)*stream.info.channels;
alGenBuffers(buffers, buffer.ptr);
// Prepare sources
alGenSources(1, &source);
prestream();
Logger.VerboseDebug("Created new Music! source={3} buffers={0} bufferSize={1} ids={2}", buffers, bufferSize, buffer, source);
}
~this() {
cleanup();
}
private void cleanup() {
// Cleanup procedure
alDeleteSources(1, &source);
alDeleteBuffers(buffers, buffer.ptr);
}
private void prestream() {
byte[] streamBuffer = new byte[bufferSize];
// Pre-read some data.
foreach (i; 0 .. buffers) {
// Read audio from stream in
size_t read = stream.read(streamBuffer.ptr, bufferSize);
// Send to OpenAL
alBufferData(buffer[i], this.fFormat, streamBuffer.ptr, cast(int)read, cast(int)stream.info.bitrate);
alSourceQueueBuffers(source, 1, &buffer[i]);
}
}
// Spawns player thread.
private void spawnHandler() {
if (musicThread !is null && musicThread.isRunning) return;
musicThread = new Thread({
MusicHandlerThread(this);
});
musicThread.start();
}
/// Play music
void Play(bool isLooping = false) {
synchronized {
if (musicThread is null || !musicThread.isRunning) spawnHandler();
this.Looping = isLooping;
alSourcePlay(source);
paused = false;
playing = true;
}
}
/// Stop playing music
/// Does nothing if music isn't playing.
void Stop() {
synchronized {
if (musicThread is null) return;
// Tell thread to die repeatedly, until it does.
while(musicThread.isRunning) shouldStopInternal = true;
// Stop source and prepare for playing again
alSourceStop(source);
stream.seek();
prestream();
playing = false;
}
}
/// Pause music
void Pause() {
synchronized {
alSourcePause(source);
paused = true;
playing = false;
}
}
/// Gets the current position in the music stream (in samples)
size_t Tell() {
synchronized {
return stream.tell;
}
}
/// Seeks the music stream (in samples)
void Seek(size_t position = 0) {
synchronized {
if (position >= Length) position = Length-1;
// Stop stream
alSourceStop(source);
// Unqueue everything
alSourceUnqueueBuffers(source, buffers, buffer.ptr);
// Refill buffers
stream.seekSample(position);
prestream();
// Resume
if (playing) alSourcePlay(source);
}
}
/// Gets length of music (in samples)
size_t Length() {
return stream.info.pcmLength;
}
/// Get amount of unhandled XRuns that has happened.
int XRuns() {
synchronized {
return xruns;
}
}
/// Mark XRuns as handled.
void HandledXRun() {
synchronized {
xruns = 0;
}
}
/// Gets wether the music is paused.
bool Paused() {
return paused;
}
/// Gets wether the music is playing
bool Playing() {
return playing;
}
@property AudioEffect Effect() {
return this.attachedEffect;
}
@property void Effect(AudioEffect effect) {
attachedEffect = effect;
applyEffectsAndFilters();
}
@property AudioFilter Filter() {
return this.attachedFilter;
}
@property void Filter(AudioFilter filter) {
attachedFilter = filter;
applyEffectsAndFilters();
}
@property bool Looping() {
return looping;
}
@property void Looping(bool val) { looping = val; }
@property int ByteOffset() {
int v = 0;
alGetSourcei(source, AL_BYTE_OFFSET, &v);
return v;
}
@property int SecondOffset() {
int v = 0;
alGetSourcei(source, AL_SEC_OFFSET, &v);
return v;
}
@property int SampleOffset() {
int v = 0;
alGetSourcei(source, AL_SAMPLE_OFFSET, &v);
return v;
}
/*
PITCH
*/
@property float Pitch() {
float v = 0f;
alGetSourcef(source, AL_PITCH, &v);
return v;
}
@property void Pitch(float val) { alSourcef(source, AL_PITCH, val); }
/*
GAIN
*/
@property float Gain() {
float v = 0f;
alGetSourcef(source, AL_GAIN, &v);
return v;
}
@property void Gain(float val) { alSourcef(source, AL_GAIN, val); }
/*
MIN GAIN
*/
@property float MinGain() {
float v = 0f;
alGetSourcef(source, AL_MIN_GAIN, &v);
return v;
}
@property void MinGain(float val) { alSourcef(source, AL_MIN_GAIN, val); }
/*
MAX GAIN
*/
@property float MaxGain() {
float v = 0f;
alGetSourcef(source, AL_MAX_GAIN, &v);
return v;
}
@property void MaxGain(float val) { alSourcef(source, AL_MAX_GAIN, val); }
/*
MAX DISTANCE
*/
@property float MaxDistance() {
float v = 0f;
alGetSourcef(source, AL_MAX_DISTANCE, &v);
return v;
}
@property void MaxDistance(float val) { alSourcef(source, AL_MAX_DISTANCE, val); }
/*
ROLLOFF FACTOR
*/
@property float RolloffFactor() {
float v = 0f;
alGetSourcef(source, AL_ROLLOFF_FACTOR, &v);
return v;
}
@property void RolloffFactor(float val) { alSourcef(source, AL_ROLLOFF_FACTOR, val); }
/*
CONE OUTER GAIN
*/
@property float ConeOuterGain() {
float v = 0f;
alGetSourcef(source, AL_CONE_OUTER_GAIN, &v);
return v;
}
@property void ConeOuterGain(float val) { alSourcef(source, AL_CONE_OUTER_GAIN, val); }
/*
CONE INNER ANGLE
*/
@property float ConeInnerAngle() {
float v = 0f;
alGetSourcef(source, AL_CONE_INNER_ANGLE, &v);
return v;
}
@property void ConeInnerAngle(float val) { alSourcef(source, AL_CONE_INNER_ANGLE, val); }
/*
CONE OUTER ANGLE
*/
@property float ConeOuterAngle() {
float v = 0f;
alGetSourcef(source, AL_CONE_OUTER_ANGLE, &v);
return v;
}
@property void ConeOuterAngle(float val) { alSourcef(source, AL_CONE_OUTER_ANGLE, val); }
/*
REFERENCE DISTANCE
*/
@property float ReferenceDistance() {
float v = 0f;
alGetSourcef(source, AL_REFERENCE_DISTANCE, &v);
return v;
}
@property void ReferenceDistance(float val) { alSourcef(source, AL_REFERENCE_DISTANCE, val); }
/*
POSITION
*/
@property Vector3 Position() {
Vector3 v = 0f;
alGetSourcefv(source, AL_POSITION, v.ptr);
return v;
}
@property void Position(Vector3 val) { alSourcefv(source, AL_POSITION, val.ptr); }
/*
VELOCITY
*/
@property Vector3 Velocity() {
Vector3 v = 0f;
alGetSourcefv(source, AL_VELOCITY, v.ptr);
return v;
}
@property void Velocity(Vector3 val) { alSourcefv(source, AL_VELOCITY, val.ptr); }
/*
DIRECTION
*/
@property Vector3 Direction() {
Vector3 v = 0f;
alGetSourcefv(source, AL_DIRECTION, v.ptr);
return v;
}
@property void Direction(Vector3 val) { alSourcefv(source, AL_DIRECTION, val.ptr); }
}
|
D
|
import impl;
import util;
import unit_threaded;
import std.math : approxEqual;
import std.format: format;
import std.algorithm.iteration: map;
import std.algorithm.sorting: isSorted;
import std.random : Random;
@("nearestPoint.0")
unittest {
const center = Point(0.0, 0.0);
const rslt = nearestPoint(pointRng(2000, 1338), center, 10);
rslt.length.should == 10;
assert(rslt.map!(it => distance(center, it)).isSorted);
}
@("nearestPoint.1")
unittest {
const center = Point(0.0, 0.0);
const rslt = nearestPoint(pointRng(7, 1338), center, 10);
rslt.length.should == 7;
assert(rslt.map!(it => distance(center, it)).isSorted);
}
@("distance")
unittest {
const a = Point(1.0, 2.0);
const b = Point(2.0, 1.0);
const c = Point(-1.0, 2.0);
const d = Point(-1.0, -2.0);
const e = Point(0.0, 0.0);
{
const r0 = distance(a, b);
const r1 = distance(b, a);
r0.should ~ r1;
}
{
const r0 = distance(a, c);
const r1 = distance(b, a);
r0.should.not ~ r1;
}
{
const r0 = distance(e, d);
const r1 = distance(e, a);
r0.should ~ r1;
}
}
@("pointRng")
unittest {
import std.algorithm.comparison : equal;
const p1 = pointRng(10, 1337);
const p2 = pointRng(10, 1337);
p1.should == p2;
}
|
D
|
/*********************************************************
Copyright: (C) 2008 by Steven Schveighoffer.
All rights reserved
License: $(LICENSE)
**********************************************************/
module dcollections.HashMap;
public import dcollections.model.Map;
public import dcollections.DefaultFunctions;
private import dcollections.Hash;
private import dcollections.Iterators;
/**
* A map implementation which uses a Hash to have near O(1) insertion,
* deletion and lookup time.
*
* Adding an element might invalidate cursors depending on the implementation.
*
* Removing an element only invalidates cursors that were pointing at that
* element.
*
* You can replace the Hash implementation with a custom implementation, the
* Hash must be a struct template which can be instantiated with a single
* template argument V, and must implement the following members (non-function
* members can be get/set properties unless otherwise specified):
*
*
* parameters -> must be a struct with at least the following members:
* hashFunction -> the hash function to use (should be a HashFunction!(V))
* updateFunction -> the update function to use (should be an
* UpdateFunction!(V))
*
* void setup(parameters p) -> initializes the hash with the given parameters.
*
* uint count -> count of the elements in the hash
*
* position -> must be a struct/class with the following member:
* ptr -> must define the following member:
* value -> the value which is pointed to by this position (cannot be a
* property)
* position next -> next position in the hash map
* position prev -> previous position in the hash map
*
* bool add(V v) -> add the given value to the hash. The hash of the value
* will be given by hashFunction(v). If the value already exists in the hash,
* this should call updateFunction(v) and should not increment count.
*
* position begin -> must be a position that points to the very first valid
* element in the hash, or end if no elements exist.
*
* position end -> must be a position that points to just past the very last
* valid element.
*
* position find(V v) -> returns a position that points to the element that
* contains v, or end if the element doesn't exist.
*
* position remove(position p) -> removes the given element from the hash,
* returns the next valid element or end if p was last in the hash.
*
* void clear() -> removes all elements from the hash, sets count to 0.
*/
class HashMap(K, V, alias ImplTemp=Hash, alias hashFunction=DefaultHash) : Map!(K, V)
{
/**
* used to implement the key/value pair stored in the hash implementation
*/
struct element
{
K key;
V val;
/**
* compare 2 elements for equality. Only compares the keys.
*/
int opEquals(element e)
{
return key == e.key;
}
}
private KeyIterator _keys;
/**
* Function to get the hash of an element
*/
static uint _hashFunction(ref element e)
{
return hashFunction(e.key);
}
/**
* Function to update an element according to the new element.
*/
static void _updateFunction(ref element orig, ref element newelem)
{
//
// only copy the value, leave the key alone
//
orig.val = newelem.val;
}
/**
* convenience alias
*/
alias ImplTemp!(element, _hashFunction, _updateFunction) Impl;
private Impl _hash;
/**
* A cursor for the hash map.
*/
struct cursor
{
private Impl.position position;
/**
* get the value at this cursor
*/
V value()
{
return position.ptr.value.val;
}
/**
* get the key at this cursor
*/
K key()
{
return position.ptr.value.key;
}
/**
* set the value at this cursor
*/
V value(V v)
{
position.ptr.value.val = v;
return v;
}
/**
* increment this cursor, returns what the cursor was before
* incrementing.
*/
cursor opPostInc()
{
cursor tmp = *this;
position = position.next;
return tmp;
}
/**
* decrement this cursor, returns what the cursor was before
* decrementing.
*/
cursor opPostDec()
{
cursor tmp = *this;
position = position.prev;
return tmp;
}
/**
* increment the cursor by the given amount.
*
* This is an O(inc) operation! You should only use this operator in
* the form:
*
* ++i;
*/
cursor opAddAssign(int inc)
{
if(inc < 0)
return opSubAssign(-inc);
while(inc--)
position = position.next;
return *this;
}
/**
* decrement the cursor by the given amount.
*
* This is an O(inc) operation! You should only use this operator in
* the form:
*
* --i;
*/
cursor opSubAssign(int inc)
{
if(inc < 0)
return opAddAssign(-inc);
while(inc--)
position = position.prev;
return *this;
}
/**
* compare two cursors for equality
*/
bool opEquals(cursor it)
{
return it.position is position;
}
}
/**
* Iterate over the values of the HashMap, telling it which ones to
* remove.
*/
final int purge(int delegate(ref bool doPurge, ref V v) dg)
{
int _dg(ref bool doPurge, ref K k, ref V v)
{
return dg(doPurge, v);
}
return _apply(&_dg);
}
/**
* Iterate over the key/value pairs of the HashMap, telling it which ones
* to remove.
*/
final int keypurge(int delegate(ref bool doPurge, ref K k, ref V v) dg)
{
return _apply(dg);
}
private class KeyIterator : Iterator!(K)
{
final uint length()
{
return this.outer.length;
}
final int opApply(int delegate(ref K) dg)
{
int _dg(ref bool doPurge, ref K k, ref V v)
{
return dg(k);
}
return _apply(&_dg);
}
}
private int _apply(int delegate(ref bool doPurge, ref K k, ref V v) dg)
{
cursor it = begin;
bool doPurge;
int dgret = 0;
cursor _end = end; // cache end so it isn't always being generated
while(!dgret && it != _end)
{
//
// don't allow user to change key
//
K tmpkey = it.key;
doPurge = false;
if((dgret = dg(doPurge, tmpkey, it.position.ptr.value.val)) != 0)
break;
if(doPurge)
it = remove(it);
else
it++;
}
return dgret;
}
/**
* iterate over the collection's key/value pairs
*/
int opApply(int delegate(ref K k, ref V v) dg)
{
int _dg(ref bool doPurge, ref K k, ref V v)
{
return dg(k, v);
}
return _apply(&_dg);
}
/**
* iterate over the collection's values
*/
int opApply(int delegate(ref V v) dg)
{
int _dg(ref bool doPurge, ref K k, ref V v)
{
return dg(v);
}
return _apply(&_dg);
}
/**
* Instantiate the hash map
*/
this()
{
// setup any hash info that needs to be done
_hash.setup();
_keys = new KeyIterator;
}
//
// private constructor for dup
//
private this(ref Impl dupFrom)
{
dupFrom.copyTo(_hash);
_keys = new KeyIterator;
}
/**
* Clear the collection of all elements
*/
HashMap clear()
{
_hash.clear();
return this;
}
/**
* returns number of elements in the collection
*/
uint length()
{
return _hash.count;
}
/**
* returns a cursor to the first element in the collection.
*/
cursor begin()
{
cursor it;
it.position = _hash.begin();
return it;
}
/**
* returns a cursor that points just past the last element in the
* collection.
*/
cursor end()
{
cursor it;
it.position = _hash.end();
return it;
}
/**
* remove the element pointed at by the given cursor, returning an
* cursor that points to the next element in the collection.
*
* Runs on average in O(1) time.
*/
cursor remove(cursor it)
{
it.position = _hash.remove(it.position);
return it;
}
/**
* find a given value in the collection starting at a given cursor.
* This is useful to iterate over all elements that have the same value.
*
* Runs in O(n) time.
*/
cursor findValue(cursor it, V v)
{
return _findValue(it, end, v);
}
/**
* find an instance of a value in the collection. Equivalent to
* findValue(begin, v);
*
* Runs in O(n) time.
*/
cursor findValue(V v)
{
return _findValue(begin, end, v);
}
private cursor _findValue(cursor it, cursor last, V v)
{
while(it != last && it.value != v)
it++;
return it;
}
/**
* find the instance of a key in the collection. Returns end if the key
* is not present.
*
* Runs in average O(1) time.
*/
cursor find(K k)
{
cursor it;
element tmp;
tmp.key = k;
it.position = _hash.find(tmp);
return it;
}
/**
* Returns true if the given value exists in the collection.
*
* Runs in O(n) time.
*/
bool contains(V v)
{
return findValue(v) != end;
}
/**
* Removes the first element that has the value v. Returns true if the
* value was present and was removed.
*
* Runs in O(n) time.
*/
HashMap remove(V v)
{
bool ignored;
return remove(v, ignored);
}
/**
* Removes the first element that has the value v. Returns true if the
* value was present and was removed.
*
* Runs in O(n) time.
*/
HashMap remove(V v, ref bool wasRemoved)
{
cursor it = findValue(v);
if(it == end)
{
wasRemoved = false;
}
else
{
remove(it);
wasRemoved = true;
}
return this;
}
/**
* Removes the element that has the given key. Returns true if the
* element was present and was removed.
*
* Runs on average in O(1) time.
*/
HashMap removeAt(K key)
{
bool ignored;
return removeAt(key, ignored);
}
/**
* Removes the element that has the given key. Returns true if the
* element was present and was removed.
*
* Runs on average in O(1) time.
*/
HashMap removeAt(K key, ref bool wasRemoved)
{
cursor it = find(key);
if(it == end)
{
wasRemoved = false;
}
else
{
remove(it);
wasRemoved = true;
}
return this;
}
/**
* Returns the value that is stored at the element which has the given
* key. Throws an exception if the key is not in the collection.
*
* Runs on average in O(1) time.
*/
V opIndex(K key)
{
cursor it = find(key);
if(it == end)
throw new Exception("Index out of range");
return it.value;
}
/**
* assign the given value to the element with the given key. If the key
* does not exist, adds the key and value to the collection.
*
* Runs on average in O(1) time.
*/
V opIndexAssign(V value, K key)
{
set(key, value);
return value;
}
/**
* Set a key/value pair. If the key/value pair doesn't already exist, it
* is added.
*/
HashMap set(K key, V value)
{
bool ignored;
return set(key, value, ignored);
}
/**
* Set a key/value pair. If the key/value pair doesn't already exist, it
* is added, and the wasAdded parameter is set to true.
*/
HashMap set(K key, V value, ref bool wasAdded)
{
element elem;
elem.key = key;
elem.val = value;
wasAdded = _hash.add(elem);
return this;
}
/**
* Set all the values from the iterator in the map. If any elements did
* not previously exist, they are added.
*/
HashMap set(KeyedIterator!(K, V) source)
{
uint ignored;
return set(source, ignored);
}
/**
* Set all the values from the iterator in the map. If any elements did
* not previously exist, they are added. numAdded is set to the number of
* elements that were added in this operation.
*/
HashMap set(KeyedIterator!(K, V) source, ref uint numAdded)
{
uint origlength = length;
bool ignored;
foreach(k, v; source)
{
set(k, v, ignored);
}
numAdded = length - origlength;
return this;
}
/**
* Remove all keys from the map which are in subset.
*/
HashMap remove(Iterator!(K) subset)
{
foreach(k; subset)
removeAt(k);
return this;
}
/**
* Remove all keys from the map which are in subset. numRemoved is set to
* the number of keys that were actually removed.
*/
HashMap remove(Iterator!(K) subset, ref uint numRemoved)
{
uint origlength = length;
remove(subset);
numRemoved = origlength - length;
return this;
}
HashMap intersect(Iterator!(K) subset)
{
uint ignored;
return intersect(subset, ignored);
}
/**
* This function only keeps elements that are found in subset.
*/
HashMap intersect(Iterator!(K) subset, ref uint numRemoved)
{
//
// this one is a bit trickier than removing. We want to find each
// Hash element, then move it to a new table. However, we do not own
// the implementation and cannot make assumptions about the
// implementation. So we defer the intersection to the hash
// implementation.
//
// If we didn't care about runtime, this could be done with:
//
// remove((new HashSet!(K)).add(this.keys).remove(subset));
//
//
// need to create a wrapper iterator to pass to the implementation,
// one that wraps each key in the subset as an element
//
// scope allocates on the stack.
//
scope w = new TransformIterator!(element, K)(subset, function void(ref K k, ref element e) { e.key = k;});
numRemoved = _hash.intersect(w);
return this;
}
/**
* Returns true if the given key is in the collection.
*
* Runs on average in O(1) time.
*/
bool containsKey(K key)
{
return find(key) != end;
}
/**
* Returns the number of elements that contain the value v
*
* Runs in O(n) time.
*/
uint count(V v)
{
uint instances = 0;
foreach(x; this)
{
if(x == v)
instances++;
}
return instances;
}
/**
* Remove all the elements that contain the value v.
*
* Runs in O(n) time.
*/
HashMap removeAll(V v)
{
uint ignored;
return removeAll(v, ignored);
}
/**
* Remove all the elements that contain the value v.
*
* Runs in O(n) time.
*/
HashMap removeAll(V v, ref uint numRemoved)
{
uint origlength = length;
foreach(ref b, x; &purge)
{
b = cast(bool)(x == v);
}
numRemoved = origlength - length;
return this;
}
/**
* return an iterator that can be used to read all the keys
*/
Iterator!(K) keys()
{
return _keys;
}
/**
* Make a shallow copy of the hash map.
*/
HashMap dup()
{
return new HashMap(_hash);
}
/**
* Compare this HashMap with another Map
*
* Returns 0 if o is not a Map object, is null, or the HashMap does not
* contain the same key/value pairs as the given map.
* Returns 1 if exactly the key/value pairs contained in the given map are
* in this HashMap.
*/
int opEquals(Object o)
{
//
// try casting to map, otherwise, don't compare
//
auto m = cast(Map!(K, V))o;
if(m !is null && m.length == length)
{
auto _end = end;
foreach(K k, V v; m)
{
auto cu = find(k);
if(cu is _end || cu.value != v)
return 0;
}
return 1;
}
return 0;
}
/**
* Set all the elements from the given associative array in the map. Any
* key that already exists will be overridden.
*
* returns this.
*/
HashMap set(V[K] source)
{
foreach(K k, V v; source)
this[k] = v;
return this;
}
/**
* Set all the elements from the given associative array in the map. Any
* key that already exists will be overridden.
*
* sets numAdded to the number of key value pairs that were added.
*
* returns this.
*/
HashMap set(V[K] source, ref uint numAdded)
{
uint origLength = length;
set(source);
numAdded = length - origLength;
return this;
}
/**
* Remove all the given keys from the map.
*
* return this.
*/
HashMap remove(K[] subset)
{
foreach(k; subset)
removeAt(k);
return this;
}
/**
* Remove all the given keys from the map.
*
* return this.
*
* numRemoved is set to the number of elements removed.
*/
HashMap remove(K[] subset, ref uint numRemoved)
{
uint origLength = length;
remove(subset);
numRemoved = origLength - length;
return this;
}
/**
* Remove all the keys that are not in the given array.
*
* returns this.
*/
HashMap intersect(K[] subset)
{
scope iter = new ArrayIterator!(K)(subset);
return intersect(iter);
}
/**
* Remove all the keys that are not in the given array.
*
* sets numRemoved to the number of elements removed.
*
* returns this.
*/
HashMap intersect(K[] subset, ref uint numRemoved)
{
scope iter = new ArrayIterator!(K)(subset);
return intersect(iter, numRemoved);
}
}
version(UnitTest)
{
unittest
{
HashMap!(uint, uint) hm = new HashMap!(uint, uint);
Map!(uint, uint) m = hm;
for(int i = 0; i < 10; i++)
hm[i * i + 1] = i;
assert(hm.length == 10);
foreach(ref doPurge, k, v; &hm.keypurge)
{
doPurge = (v % 2 == 1);
}
assert(hm.length == 5);
assert(hm.contains(6));
assert(hm.containsKey(6 * 6 + 1));
}
}
|
D
|
instance DIA_Rega_EXIT(C_Info)
{
npc = BAU_933_Rega;
nr = 999;
condition = DIA_Rega_EXIT_Condition;
information = DIA_Rega_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Rega_EXIT_Condition()
{
return TRUE;
};
func void DIA_Rega_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Rega_HALLO(C_Info)
{
npc = BAU_933_Rega;
nr = 3;
condition = DIA_Rega_HALLO_Condition;
information = DIA_Rega_HALLO_Info;
description = "Как дела?";
};
func int DIA_Rega_HALLO_Condition()
{
return TRUE;
};
func void DIA_Rega_HALLO_Info()
{
AI_Output(other,self,"DIA_Rega_HALLO_15_00"); //Как дела?
if((hero.guild == GIL_MIL) || (hero.guild == GIL_PAL))
{
AI_Output(self,other,"DIA_Rega_HALLO_17_01"); //Ты из города, да?
}
else if((hero.guild == GIL_SLD) || (hero.guild == GIL_DJG))
{
AI_Output(self,other,"DIA_Rega_HALLO_17_02"); //Ты один из наемников Онара, да?
}
else if(hero.guild == GIL_KDF)
{
AI_Output(self,other,"DIA_Rega_HALLO_17_03"); //Ты маг, да?
}
else
{
AI_Output(self,other,"DIA_Rega_HALLO_17_04"); //Ты нездешний, да?
};
AI_Output(self,other,"DIA_Rega_HALLO_17_05"); //На твоем месте, я бы убиралась отсюда побыстрее.
AI_Output(other,self,"DIA_Rega_HALLO_15_06"); //Почему?
AI_Output(self,other,"DIA_Rega_HALLO_17_07"); //Это место и раньше-то не было раем, но хотя бы мы жили в мире и спокойствии, пока работали на Секоба.
AI_Output(self,other,"DIA_Rega_HALLO_17_08"); //Но последнее время жить здесь стало просто невыносимо.
if(Kapitel < 3)
{
AI_Output(self,other,"DIA_Rega_HALLO_17_09"); //Бандиты повсюду, полевые хищники уничтожают наш урожай, а лендлорд совсем озверел.
};
};
instance DIA_Rega_ONAR(C_Info)
{
npc = BAU_933_Rega;
nr = 4;
condition = DIA_Rega_ONAR_Condition;
information = DIA_Rega_ONAR_Info;
description = "Ты боишься лендлорда?";
};
func int DIA_Rega_ONAR_Condition()
{
if(Npc_KnowsInfo(other,DIA_Rega_HALLO) && ((hero.guild != GIL_SLD) && (hero.guild != GIL_DJG)) && (Kapitel < 3))
{
return TRUE;
};
};
func void DIA_Rega_ONAR_Info()
{
AI_Output(other,self,"DIA_Rega_ONAR_15_00"); //Ты боишься лендлорда?
AI_Output(self,other,"DIA_Rega_ONAR_17_01"); //Конечно. Если лендлорду кто-то не понравится, он посылает своих наемников, и больше этого человека никто не видит.
AI_Output(self,other,"DIA_Rega_ONAR_17_02"); //Так что мы предпочитаем помалкивать.
};
instance DIA_Rega_SLD(C_Info)
{
npc = BAU_933_Rega;
nr = 5;
condition = DIA_Rega_SLD_Condition;
information = DIA_Rega_SLD_Info;
description = "Разве наемники не должны уничтожать полевых хищников?";
};
func int DIA_Rega_SLD_Condition()
{
if(Npc_KnowsInfo(other,DIA_Rega_HALLO) && ((hero.guild != GIL_SLD) && (hero.guild != GIL_DJG)) && (Kapitel < 3))
{
return TRUE;
};
};
func void DIA_Rega_SLD_Info()
{
AI_Output(other,self,"DIA_Rega_SLD_15_00"); //Разве наемники не должны уничтожать полевых хищников?
AI_Output(self,other,"DIA_Rega_SLD_17_01"); //Я не знаю, за что им там платят, но уж точно не за то, чтобы они помогали простым людям.
AI_Output(self,other,"DIA_Rega_SLD_17_02"); //А проблему с полевыми хищниками мелким фермерам, арендующим у него землю, приходится решать самим.
};
instance DIA_Rega_BANDITEN(C_Info)
{
npc = BAU_933_Rega;
nr = 6;
condition = DIA_Rega_BANDITEN_Condition;
information = DIA_Rega_BANDITEN_Info;
description = "Как вы защищаетесь от бандитов?";
};
func int DIA_Rega_BANDITEN_Condition()
{
if(Npc_KnowsInfo(other,DIA_Rega_HALLO))
{
return TRUE;
};
};
func void DIA_Rega_BANDITEN_Info()
{
AI_Output(other,self,"DIA_Rega_BANDITEN_15_00"); //Как вы защищаетесь от бандитов?
AI_Output(self,other,"DIA_Rega_BANDITEN_17_01"); //Мы не защищаемся. Мы бежим. А что еще нам остается?
};
instance DIA_Rega_BRONKO(C_Info)
{
npc = BAU_933_Rega;
nr = 7;
condition = DIA_Rega_BRONKO_Condition;
information = DIA_Rega_BRONKO_Info;
description = "(спросить о Бронко)";
};
func int DIA_Rega_BRONKO_Condition()
{
if(Npc_KnowsInfo(other,DIA_Bronko_HALLO) && (MIS_Sekob_Bronko_eingeschuechtert == LOG_Running))
{
return TRUE;
};
};
func void DIA_Rega_BRONKO_Info()
{
AI_Output(other,self,"DIA_Rega_BRONKO_15_00"); //А кто этот противный тип вон там?
AI_Output(self,other,"DIA_Rega_BRONKO_17_01"); //Не пойми меня неправильно, но мне не нужны проблемы. Спроси кого-нибудь еще.
AI_StopProcessInfos(self);
};
instance DIA_Rega_PERMKAP1(C_Info)
{
npc = BAU_933_Rega;
nr = 7;
condition = DIA_Rega_PERMKAP1_Condition;
information = DIA_Rega_PERMKAP1_Info;
permanent = TRUE;
description = "Выше нос.";
};
func int DIA_Rega_PERMKAP1_Condition()
{
if(Npc_KnowsInfo(other,DIA_Rega_HALLO))
{
return TRUE;
};
};
func void DIA_Rega_PERMKAP1_Info()
{
AI_Output(other,self,"DIA_Rega_PERMKAP1_15_00"); //Выше нос.
if((hero.guild == GIL_MIL) || (hero.guild == GIL_PAL))
{
AI_Output(self,other,"DIA_Rega_PERMKAP1_17_01"); //Тебе легко говорить. Ты ведь живешь в городе.
}
else if((hero.guild == GIL_SLD) || (hero.guild == GIL_DJG))
{
AI_Output(self,other,"DIA_Rega_PERMKAP1_17_02"); //Если бы вы, наемники, не доставляли нам столько проблем, жизнь здесь была бы не такой уж плохой.
}
else if(hero.guild == GIL_KDF)
{
AI_Output(self,other,"DIA_Rega_PERMKAP1_17_03"); //Магов вокруг становится все меньше и меньше. Надеюсь, ты не последний из них. Вы нужны нам - и сейчас как никогда.
}
else
{
AI_Output(self,other,"DIA_Rega_PERMKAP1_17_04"); //Это не так-то легко, работая на этого душегуба Секоба.
};
AI_StopProcessInfos(self);
};
instance DIA_Rega_PICKPOCKET(C_Info)
{
npc = BAU_933_Rega;
nr = 900;
condition = DIA_Rega_PICKPOCKET_Condition;
information = DIA_Rega_PICKPOCKET_Info;
permanent = TRUE;
description = Pickpocket_40_Female;
};
func int DIA_Rega_PICKPOCKET_Condition()
{
return C_Beklauen(25,40);
};
func void DIA_Rega_PICKPOCKET_Info()
{
Info_ClearChoices(DIA_Rega_PICKPOCKET);
Info_AddChoice(DIA_Rega_PICKPOCKET,Dialog_Back,DIA_Rega_PICKPOCKET_BACK);
Info_AddChoice(DIA_Rega_PICKPOCKET,DIALOG_PICKPOCKET,DIA_Rega_PICKPOCKET_DoIt);
};
func void DIA_Rega_PICKPOCKET_DoIt()
{
B_Beklauen();
Info_ClearChoices(DIA_Rega_PICKPOCKET);
};
func void DIA_Rega_PICKPOCKET_BACK()
{
Info_ClearChoices(DIA_Rega_PICKPOCKET);
};
|
D
|
module polyomino;
import std.stdio;
import std.array;
import utils;
struct Piece
{
int x;
int y;
bool opEquals(in Piece rhs) const pure nothrow @nogc @safe
{
return x == rhs.x && y == rhs.y;
}
int opCmp(in Piece rhs) const pure nothrow @nogc @safe
{
if (x != rhs.x){
return x - rhs.x;
}
return y - rhs.y;
}
hash_t toHash() const nothrow @safe
{
hash_t y_hash = typeid(y).getHash(&y);
return (
typeid(x).getHash(&x) ^
(y_hash << (hash_t.sizeof * 4)) ^
(y_hash >> (hash_t.sizeof * 4))
);
}
}
struct Shape
{
Piece[] pieces;
this(Piece[] pieces)
{
this.pieces = pieces.dup;
this.pieces.sort;
}
/*
invariant
{
for (int index = 0; index < pieces.length - 1; index++){
assert(pieces[index] < pieces[index + 1]);
}
}
*/
Shape opAssign(in Shape rhs)
{
this.pieces = rhs.pieces.dup;
return this;
}
this(this) pure nothrow @safe
{
pieces = pieces.dup;
}
bool opEquals(in Shape rhs) const pure nothrow @nogc @safe
{
if (pieces.length != rhs.pieces.length){
return false;
}
foreach (index, piece; pieces){
if (piece != rhs.pieces[index]){
return false;
}
}
return true;
}
int opCmp(in Shape rhs) const pure nothrow @nogc @safe
{
if (pieces.length < rhs.pieces.length){
return -1;
}
if (pieces.length > rhs.pieces.length){
return 1;
}
foreach(index, piece; pieces){
auto rhs_piece = rhs.pieces[index];
if (piece < rhs_piece){
return -1;
}
if (piece > rhs_piece){
return 1;
}
}
return 0;
}
hash_t toHash() const nothrow @safe
{
hash_t result;
foreach (piece; pieces){
result ^= piece.toHash;
}
return result;
}
Shape opBinary(string op)(in Shape rhs)
if (op == "|")
{
auto piece_set = this.piece_set;
foreach (piece; rhs.pieces){
piece_set[piece] = true;
}
Piece[] new_pieces;
foreach (piece; piece_set.byKey){
new_pieces ~= piece;
}
return Shape(new_pieces);
}
Shape opBinary(string op)(in Shape rhs)
if (op == "&")
{
auto piece_set = this.piece_set;
Piece[] new_pieces;
foreach (piece; rhs.pieces){
if (piece in piece_set){
new_pieces ~= piece;
}
}
return Shape(new_pieces);
}
size_t length(){
return pieces.length;
}
int extent(string member, string op)()
{
if (!pieces.length){
return 0;
}
mixin("int result = pieces[0]." ~ member ~ ";");
foreach (piece; pieces){
mixin("
if (piece." ~ member ~ " " ~ op ~ " result){
result = piece." ~ member ~ ";
}
");
}
return result;
}
bool[Piece] piece_set()
{
bool[Piece] _piece_set;
foreach (piece; pieces){
_piece_set[piece] = true;
}
return _piece_set;
}
alias west_extent = extent!("x", "<");
alias east_extent = extent!("x", ">");
alias north_extent = extent!("y", "<");
alias south_extent = extent!("y", ">");
void translate(int x, int y){
foreach (ref piece; pieces){
piece.x += x;
piece.y += y;
}
}
void snap()
{
translate(-west_extent, -north_extent);
}
void rotate()
{
foreach(ref piece; pieces){
int temp = piece.x;
piece.x = piece.y;
piece.y = -temp;
}
pieces.sort;
}
void mirror_h()
{
foreach(ref piece; pieces){
piece.x = -piece.x;
}
pieces.sort;
}
void canonize()
{
snap;
auto temp = this;
enum compare_and_replace = "
if (temp < this){
this = temp;
}
";
for (int i = 0; i < 3; i++){
temp.rotate;
temp.snap;
mixin(compare_and_replace);
}
temp.mirror_h;
temp.snap;
mixin(compare_and_replace);
for (int i = 0; i < 3; i++){
temp.rotate;
temp.snap;
mixin(compare_and_replace);
}
}
bool[Shape] shapes_plus_one()
{
auto piece_set = this.piece_set;
bool[Shape] result;
enum add_new_shape = "
if (new_piece !in piece_set){
auto new_pieces = pieces.dup;
new_pieces ~= new_piece;
auto new_shape = Shape(new_pieces);
new_shape.canonize;
result[new_shape] = true;
}
";
foreach (piece; pieces){
auto new_piece = piece;
new_piece.x += 1;
mixin(add_new_shape);
new_piece.x -= 2;
mixin(add_new_shape);
new_piece.x += 1;
new_piece.y += 1;
mixin(add_new_shape);
new_piece.y -= 2;
mixin(add_new_shape);
}
return result;
}
Shape liberties()
{
auto piece_set = this.piece_set;
bool[Piece] liberty_piece_set;
enum add_new_piece = "
if (new_piece !in piece_set){
liberty_piece_set[new_piece] = true;
}
";
foreach (piece; pieces){
auto new_piece = piece;
new_piece.x += 1;
mixin(add_new_piece);
new_piece.x -= 2;
mixin(add_new_piece);
new_piece.x += 1;
new_piece.y += 1;
mixin(add_new_piece);
new_piece.y -= 2;
mixin(add_new_piece);
}
Piece[] new_pieces;
foreach (liberty; liberty_piece_set.byKey){
new_pieces ~= liberty;
}
return Shape(new_pieces);
}
Shape corners()
{
auto piece_set = this.piece_set;
foreach (piece; pieces){
auto new_piece = piece;
new_piece.x += 1;
piece_set[new_piece] = true;
new_piece.x -= 2;
piece_set[new_piece] = true;
new_piece.x += 1;
new_piece.y += 1;
piece_set[new_piece] = true;
new_piece.y -= 2;
piece_set[new_piece] = true;
}
bool[Piece] corner_piece_set;
enum add_new_piece = "
if (new_piece !in piece_set){
corner_piece_set[new_piece] = true;
}
";
foreach (piece; pieces){
auto new_piece = piece;
new_piece.x += 1;
new_piece.y += 1;
mixin(add_new_piece);
new_piece.x -= 2;
mixin(add_new_piece);
new_piece.y -= 2;
mixin(add_new_piece);
new_piece.x += 2;
mixin(add_new_piece);
}
Piece[] new_pieces;
foreach (corner; corner_piece_set.byKey){
new_pieces ~= corner;
}
return Shape(new_pieces);
}
Shape[] chains()
{
bool[Piece] piece_set = this.piece_set;
Piece[] queue;
Shape[] result;
Piece[] chain;
enum add_to_queue = "
if (piece in piece_set){
queue ~= piece;
}
";
while (piece_set.length){
chain = [];
queue ~= piece_set.byKey.front;
while (queue.length){
auto piece = queue.front;
queue.popFront;
piece_set.remove(piece);
chain ~= piece;
piece.x += 1;
mixin(add_to_queue);
piece.x -= 2;
mixin(add_to_queue);
piece.x += 1;
piece.y += 1;
mixin(add_to_queue);
piece.y -= 2;
mixin(add_to_queue);
}
result ~= Shape(chain);
}
return result;
}
}
struct Eyespace
{
Shape space;
Shape edge;
Eyespace opAssign(in Eyespace rhs)
{
this.space = rhs.space;
this.edge = rhs.edge;
return this;
}
this(this)
{
space = space;
edge = edge;
}
bool opEquals(in Eyespace rhs) const pure nothrow
{
return space == rhs.space && edge == rhs.edge;
}
int opCmp(in Eyespace rhs) const pure nothrow
{
if (space != rhs.space){
return space.opCmp(rhs.space);
}
return edge.opCmp(rhs.edge);
}
hash_t toHash() const nothrow @safe
{
return space.toHash ^ edge.toHash;
}
bool is_good(){
foreach (edge_chain; edge.chains){
if ((edge_chain.liberties & space).length < 2){
return false;
}
}
return true;
}
int extent(string direction, string op)()
{
mixin("int space_extent = space." ~ direction ~"_extent;");
mixin("int edge_extent = edge." ~ direction ~ "_extent;");
mixin("
if (space_extent " ~ op ~ " edge_extent){
return space_extent;
}
return edge_extent;
");
}
alias west_extent = extent!("west", "<");
alias north_extent = extent!("north", "<");
alias east_extent = extent!("east", ">");
alias south_extent = extent!("south", ">");
void snap(){
auto west_extent = this.west_extent;
auto north_extent = this.north_extent;
space.translate(-west_extent, -north_extent);
edge.translate(-west_extent, -north_extent);
}
void rotate(){
space.rotate;
edge.rotate;
}
void mirror_h(){
space.mirror_h;
edge.mirror_h;
}
void canonize()
{
snap;
auto temp = this;
enum compare_and_replace = "
if (temp < this){
this = temp;
}
";
for (int i = 0; i < 3; i++){
temp.rotate;
temp.snap;
mixin(compare_and_replace);
}
temp.mirror_h;
temp.snap;
mixin(compare_and_replace);
for (int i = 0; i < 3; i++){
temp.rotate;
temp.snap;
mixin(compare_and_replace);
}
}
string toString()
{
string r;
auto space_set = space.piece_set;
auto edge_set = edge.piece_set;
for (int y = north_extent; y <= south_extent; y++){
for (int x = west_extent; x <= east_extent; x++){
auto piece = Piece(x, y);
if (piece in space_set){
r ~= ". ";
}
else if (piece in edge_set){
r ~= "# ";
}
else{
r ~= " ";
}
}
if (y < south_extent){
r ~= "\n";
}
}
return r;
}
}
bool[Shape] polyominoes(int max_size)
{
bool[Shape] result;
Shape[] queue;
auto shape = Shape([Piece(0, 0)]);
result[shape] = true;
queue ~= shape;
while (queue.length){
shape = queue.front;
queue.popFront;
result[shape] = true;
if (shape.pieces.length < max_size){
foreach (new_shape; shape.shapes_plus_one.byKey){
if (new_shape !in result){
queue ~= new_shape;
}
}
}
}
return result;
}
bool[Eyespace] eyespaces(int max_size)
{
bool[Eyespace] eyespace_set;
foreach (space; polyominoes(max_size).byKey){
Shape[] liberty_parts = space.liberties.chains;
Shape[] corner_parts = space.corners.chains;
foreach (liberty_subset; PowerSet!Shape(liberty_parts)){
Shape edge;
foreach (edge_part; liberty_subset){
edge = edge | edge_part;
}
Shape[] connecting_corner_parts = [];
foreach (corner_part; corner_parts){
if ((corner_part.liberties & edge).length >= 2){
connecting_corner_parts ~= corner_part;
}
}
foreach (corner_subset; PowerSet!Shape(connecting_corner_parts)){
auto final_edge = edge;
foreach (corner_part; corner_subset){
final_edge = final_edge | corner_part;
}
auto eyespace = Eyespace(space, final_edge);
if (eyespace.is_good){
eyespace.canonize;
eyespace_set[eyespace] = true;
}
}
}
}
return eyespace_set;
}
unittest
{
assert(polyominoes(1).length == 1);
assert(polyominoes(2).length == 2);
assert(polyominoes(3).length == 4);
assert(polyominoes(4).length == 9);
assert(polyominoes(5).length == 21);
assert(polyominoes(6).length == 56);
assert(polyominoes(7).length == 164);
}
unittest
{
auto s = Shape([Piece(0, 0)]);
assert(s.liberties == Shape([Piece(-1, 0), Piece(0, -1), Piece(0, 1), Piece(1, 0)]));
assert(s.corners == Shape([Piece(-1, -1), Piece(-1, 1), Piece(1, -1), Piece(1, 1)]));
assert(s.corners.chains.length == 4);
}
unittest
{
auto s = Shape([Piece(0, 0), Piece(0, 1)]);
auto e = Shape([Piece(0, 2)]);
auto es = Eyespace(s, e);
assert(!es.is_good);
es.edge = Shape([Piece(1, 0), Piece(1, 1)]);
assert(es.is_good);
}
unittest
{
assert(eyespaces(4).length == 314);
}
|
D
|
module bullet2.LinearMath.btThreads;
extern (C++):
import bullet2.LinearMath.btScalar;
//#include "btScalar.h" // has definitions like /*SIMD_FORCE_INLINE*/
/*
#if defined(_MSC_VER) && _MSC_VER >= 1600
// give us a compile error if any signatures of overriden methods is changed
#define BT_OVERRIDE override
#endif
#ifndef BT_OVERRIDE
#define BT_OVERRIDE
#endif
*/
// Don't set this to larger than 64, without modifying btThreadSupportPosix
// and btThreadSupportWin32. They use UINT64 bit-masks.
const __gshared uint BT_MAX_THREAD_COUNT = 64; // only if BT_THREADSAFE is 1
// for internal use only
/+bool btIsMainThread();
bool btThreadsAreRunning();
unsigned int btGetCurrentThreadIndex();
void btResetThreadIndexCounter(); // notify that all worker threads have been destroyed
+/
///
/// btSpinMutex -- lightweight spin-mutex implemented with atomic ops, never puts
/// a thread to sleep because it is designed to be used with a task scheduler
/// which has one thread per core and the threads don't sleep until they
/// run out of tasks. Not good for general purpose use.
///
struct btSpinMutex
{
int mLock = 0;
public:
/*this()
{
mLock = 0;
}*/
void lock();
void unlock();
bool tryLock();
};
//
// NOTE: btMutex* is for internal Bullet use only
//
// If BT_THREADSAFE is undefined or 0, should optimize away to nothing.
// This is good because for the single-threaded build of Bullet, any calls
// to these functions will be optimized out.
//
// However, for users of the multi-threaded build of Bullet this is kind
// of bad because if you call any of these functions from external code
// (where BT_THREADSAFE is undefined) you will get unexpected race conditions.
//
/*SIMD_FORCE_INLINE*/ void btMutexLock(btSpinMutex* mutex)
{
version (BT_THREADSAFE)
mutex.lock();
//else
// (void)mutex;
}
/*SIMD_FORCE_INLINE*/ void btMutexUnlock(btSpinMutex* mutex)
{
version (BT_THREADSAFE)
mutex.unlock();
//else
//(void)mutex;
}
/*SIMD_FORCE_INLINE*/ bool btMutexTryLock(btSpinMutex* mutex)
{
version (BT_THREADSAFE)
return mutex.tryLock();
else
//(void)mutex;
return true;
}
//
// btIParallelForBody -- subclass this to express work that can be done in parallel
//
class btIParallelForBody
{
public:
/*virtual*/ ~this() {}
abstract /*virtual*/ void forLoop(int iBegin, int iEnd) const;
};
//
// btIParallelSumBody -- subclass this to express work that can be done in parallel
// and produces a sum over all loop elements
//
class btIParallelSumBody
{
public:
/*virtual*/ ~this() {}
abstract /*virtual*/ btScalar sumLoop(int iBegin, int iEnd) const;
};
//
// btITaskScheduler -- subclass this to implement a task scheduler that can dispatch work to
// worker threads
//
class btITaskScheduler
{
public:
final this(const(char*) name);
/*virtual*/ ~this() {}
final const(char*) getName() const { return m_name; }
abstract /*virtual*/ int getMaxNumThreads() const;
abstract /*virtual*/ int getNumThreads() const;
abstract /*virtual*/ void setNumThreads(int numThreads);
abstract /*virtual*/ void parallelFor(int iBegin, int iEnd, int grainSize, ref const(btIParallelForBody) body_);
abstract /*virtual*/ btScalar parallelSum(int iBegin, int iEnd, int grainSize, ref const(btIParallelSumBody) body_);
/*virtual*/ void sleepWorkerThreadsHint() {} // hint the task scheduler that we may not be using these threads for a little while
// internal use only
/*virtual*/ void activate();
/*virtual*/ void deactivate();
protected:
const(char*) m_name;
uint m_savedThreadCounter;
bool m_isActive;
};
// set the task scheduler to use for all calls to btParallelFor()
// NOTE: you must set this prior to using any of the multi-threaded "Mt" classes
void btSetTaskScheduler(btITaskScheduler ts);
// get the current task scheduler
btITaskScheduler btGetTaskScheduler();
// get non-threaded task scheduler (always available)
btITaskScheduler btGetSequentialTaskScheduler();
// create a default task scheduler (Win32 or pthreads based)
btITaskScheduler btCreateDefaultTaskScheduler();
// get OpenMP task scheduler (if available, otherwise returns null)
btITaskScheduler btGetOpenMPTaskScheduler();
// get Intel TBB task scheduler (if available, otherwise returns null)
btITaskScheduler btGetTBBTaskScheduler();
// get PPL task scheduler (if available, otherwise returns null)
btITaskScheduler btGetPPLTaskScheduler();
// btParallelFor -- call this to dispatch work like a for-loop
// (iterations may be done out of order, so no dependencies are allowed)
void btParallelFor(int iBegin, int iEnd, int grainSize, ref const(btIParallelForBody) body_);
// btParallelSum -- call this to dispatch work like a for-loop, returns the sum of all iterations
// (iterations may be done out of order, so no dependencies are allowed)
btScalar btParallelSum(int iBegin, int iEnd, int grainSize, ref const(btIParallelSumBody) body_);
|
D
|
module watt.conv;
private import std.conv;
import std.string : toLower, toStringz;
alias toInt = to!int;
alias toLong = to!long;
alias toUlong = to!ulong;
alias toFloat = to!float;
alias toDouble = to!double;
alias toString = to!string;
|
D
|
// Copyright © 2012-2013, Bernard Helyer. All rights reserved.
// See copyright notice in src/volt/license.d (BOOST ver. 1.0).
module volt.semantic.typeidreplacer;
import std.string : format;
import ir = volt.ir.ir;
import volt.ir.util;
import volt.exceptions;
import volt.interfaces;
import volt.visitor.visitor;
import volt.semantic.classify;
import volt.semantic.lookup;
import volt.semantic.mangle;
/**
* Replaces typeid(...) expressions with a call
* to the TypeInfo's constructor.
*/
class TypeidReplacer : NullVisitor, Pass
{
public:
LanguagePass lp;
ir.Class typeinfo;
ir.Struct typeinfoVtable;
ir.Module thisModule;
public:
this(LanguagePass lp)
{
this.lp = lp;
}
override void transform(ir.Module m)
{
thisModule = m;
typeinfo = retrieveTypeInfo(lp, m.myScope, m.location);
assert(typeinfo !is null);
accept(m, this);
}
override void close()
{
}
override Status enter(ref ir.Exp exp, ir.Typeid _typeid)
{
assert(_typeid.type !is null);
_typeid.type.mangledName = mangle(_typeid.type);
string name = "_V__TypeInfo_" ~ _typeid.type.mangledName;
auto typeidStore = lookupOnlyThisScope(lp, thisModule.myScope, exp.location, name);
if (typeidStore !is null) {
auto asVar = cast(ir.Variable) typeidStore.node;
exp = buildExpReference(exp.location, asVar, asVar.name);
return Continue;
}
int typeSize = size(_typeid.location, lp, _typeid.type);
auto typeConstant = buildSizeTConstant(_typeid.location, lp, typeSize);
int typeTag = _typeid.type.nodeType;
auto typeTagConstant = new ir.Constant();
typeTagConstant.location = _typeid.location;
typeTagConstant._int = typeTag;
typeTagConstant.type = new ir.PrimitiveType(ir.PrimitiveType.Kind.Int);
typeTagConstant.type.location = _typeid.location;
auto mangledNameConstant = new ir.Constant();
mangledNameConstant.location = _typeid.location;
auto _scope = getScopeFromType(_typeid.type);
mangledNameConstant._string = mangle(_typeid.type);
mangledNameConstant.arrayData = cast(void[]) mangledNameConstant._string;
mangledNameConstant.type = new ir.ArrayType(new ir.PrimitiveType(ir.PrimitiveType.Kind.Char));
bool mindirection = mutableIndirection(_typeid.type);
auto mindirectionConstant = new ir.Constant();
mindirectionConstant.location = _typeid.location;
mindirectionConstant._bool = mindirection;
mindirectionConstant.type = new ir.PrimitiveType(ir.PrimitiveType.Kind.Bool);
mindirectionConstant.type.location = _typeid.location;
auto literal = new ir.ClassLiteral();
literal.location = _typeid.location;
literal.useBaseStorage = true;
literal.type = copyTypeSmart(typeinfo.location, typeinfo);
literal.exps ~= typeConstant;
literal.exps ~= typeTagConstant;
literal.exps ~= mangledNameConstant;
literal.exps ~= mindirectionConstant;
auto asTR = cast(ir.TypeReference) _typeid.type;
ir.Class asClass;
if (asTR !is null) {
asClass = cast(ir.Class) asTR.type;
}
if (asClass !is null) {
literal.exps ~= buildCast(_typeid.location, buildVoidPtr(_typeid.location),
buildAddrOf(_typeid.location, buildExpReference(_typeid.location, asClass.vtableVariable, "__vtable_instance")));
literal.exps ~= buildSizeTConstant(_typeid.location, lp, classSize(_typeid.location, lp, asClass));
} else {
literal.exps ~= buildConstantNull(_typeid.location, buildVoidPtr(_typeid.location));
literal.exps ~= buildSizeTConstant(_typeid.location, lp, 0);
}
auto literalVar = new ir.Variable();
literalVar.location = _typeid.location;
literalVar.assign = literal;
literalVar.mangledName = literalVar.name = name;
literalVar.type = buildTypeReference(_typeid.location, typeinfo, typeinfo.name);
literalVar.isWeakLink = true;
literalVar.useBaseStorage = true;
literalVar.storage = ir.Variable.Storage.Global;
thisModule.children.nodes = literalVar ~ thisModule.children.nodes;
thisModule.myScope.addValue(literalVar, literalVar.name);
auto literalRef = new ir.ExpReference();
literalRef.location = literalVar.location;
literalRef.idents ~= literalVar.name;
literalRef.decl = literalVar;
exp = literalRef;
return Continue;
}
}
|
D
|
/Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Starscream.build/Objects-normal/x86_64/Compression.o : /Users/Natalia/FunChatik/Pods/Starscream/Sources/Compression.swift /Users/Natalia/FunChatik/Pods/Starscream/Sources/WebSocket.swift /Users/Natalia/FunChatik/Pods/Starscream/Sources/SSLSecurity.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Natalia/FunChatik/Pods/Target\ Support\ Files/Starscream/Starscream-umbrella.h /Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Starscream.build/unextended-module.modulemap /Users/Natalia/FunChatik/Pods/Starscream/zlib/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Starscream.build/Objects-normal/x86_64/Compression~partial.swiftmodule : /Users/Natalia/FunChatik/Pods/Starscream/Sources/Compression.swift /Users/Natalia/FunChatik/Pods/Starscream/Sources/WebSocket.swift /Users/Natalia/FunChatik/Pods/Starscream/Sources/SSLSecurity.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Natalia/FunChatik/Pods/Target\ Support\ Files/Starscream/Starscream-umbrella.h /Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Starscream.build/unextended-module.modulemap /Users/Natalia/FunChatik/Pods/Starscream/zlib/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Starscream.build/Objects-normal/x86_64/Compression~partial.swiftdoc : /Users/Natalia/FunChatik/Pods/Starscream/Sources/Compression.swift /Users/Natalia/FunChatik/Pods/Starscream/Sources/WebSocket.swift /Users/Natalia/FunChatik/Pods/Starscream/Sources/SSLSecurity.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Natalia/FunChatik/Pods/Target\ Support\ Files/Starscream/Starscream-umbrella.h /Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Starscream.build/unextended-module.modulemap /Users/Natalia/FunChatik/Pods/Starscream/zlib/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
|
D
|
/git/tbsh/src/lexer/target/debug/deps/lexer-a920a311a7499caf.rmeta: src/lib.rs
/git/tbsh/src/lexer/target/debug/deps/liblexer-a920a311a7499caf.rlib: src/lib.rs
/git/tbsh/src/lexer/target/debug/deps/lexer-a920a311a7499caf.d: src/lib.rs
src/lib.rs:
|
D
|
module xkeybind;
import x11.X;
import x11.keysym;
import x11.Xlib;
import std.string : toStringz;
import std.typecons : NotImplementedError;
///
alias XKeybindHandler = void delegate(ModifierKey mods, int key);
private struct KeyHandlerEntry
{
ModifierKey mods;
int key;
XKeybindHandler handler;
}
/// Use Modifier for binding keys
enum ModifierKey : uint
{
///
Shift = ShiftMask,
///
Control = ControlMask,
///
Mod1 = Mod1Mask,
///
Mod2 = Mod2Mask,
///
Mod3 = Mod3Mask,
///
Mod4 = Mod4Mask,
///
Mod5 = Mod5Mask,
///
Any = AnyModifier
}
/// Modifier keys in this system (Get assigned after calling XKeyBind.load)
final struct Modifier
{
///
static ModifierKey Shift = ModifierKey.Shift;
///
static ModifierKey Control = ModifierKey.Control;
///
static ModifierKey Alt;
///
static ModifierKey AltR;
///
static ModifierKey SuperR;
///
static ModifierKey SuperL;
///
static ModifierKey HyperR;
///
static ModifierKey HyperL;
///
static ModifierKey MetaR;
///
static ModifierKey MetaL;
///
static ModifierKey Any = ModifierKey.Any;
}
///
bool parseKey(Display* display, string key, out ModifierKey mods, out int keycode)
{
import std.string : strip, split, toLower;
//dfmt off
ModifierKey[string] modName = [
"shift" : Modifier.Shift,
"control" : Modifier.Control,
"ctrl" : Modifier.Control,
"alt" : Modifier.Alt,
"altl" : Modifier.Alt,
"altgr" : Modifier.AltR,
"altr" : Modifier.AltR,
"super" : Modifier.SuperL,
"superl" : Modifier.SuperL,
"superr" : Modifier.SuperR,
"hyper" : Modifier.HyperL,
"hyperl" : Modifier.HyperL,
"hyperr" : Modifier.HyperR,
"meta" : Modifier.MetaL,
"metal" : Modifier.MetaL,
"metar" : Modifier.MetaR,
];
//dfmt on
string[] parts = key.split('-');
ModifierKey _mods;
if (parts.length > 1)
{
foreach (part; parts[0 .. $ - 1])
{
if (part.strip.length == 0)
return false; // A--B
string mod = part.strip.toLower;
auto ptr = mod in modName;
if (!ptr)
return false;
_mods |= *ptr;
}
}
auto keysym = XStringToKeysym(cast(char*)(parts[$ - 1] ~ '\0').ptr);
if (keysym == NoSymbol)
return false;
keycode = XKeysymToKeycode(display, keysym);
mods = _mods;
return true;
}
///
final class XKeyBind
{
public:
/// Creates a display and loads XKeyBind
static void load(string port = ":0")
{
load(XOpenDisplay(cast(char*) port.toStringz));
}
/// Loads XKeyBind from an existing display
static void load(Display* displ)
{
display = displ;
root = DefaultRootWindow(displ);
XModifierKeymap* modmap = XGetModifierMapping(displ);
auto key_numlock = XKeysymToKeycode(displ, XK_Num_Lock);
auto key_alt = XKeysymToKeycode(displ, XK_Alt_L);
auto key_altr = XKeysymToKeycode(displ, XK_Alt_R);
auto key_superr = XKeysymToKeycode(displ, XK_Super_R);
auto key_superl = XKeysymToKeycode(displ, XK_Super_L);
auto key_hyperl = XKeysymToKeycode(displ, XK_Hyper_L);
auto key_hyperr = XKeysymToKeycode(displ, XK_Hyper_R);
auto key_metal = XKeysymToKeycode(displ, XK_Meta_L);
auto key_metar = XKeysymToKeycode(displ, XK_Meta_R);
for (int i = 3; i < 8; i++)
{
for (int j = 0; j < modmap.max_keypermod; j++)
{
auto ckey = modmap.modifiermap[i * modmap.max_keypermod + j];
if (key_numlock && ckey == key_numlock)
Numlock = cast(ModifierKey) 1 << i;
if (key_alt && ckey == key_alt)
Modifier.Alt = cast(ModifierKey) 1 << i;
if (key_altr && ckey == key_altr)
Modifier.AltR = cast(ModifierKey) 1 << i;
if (key_superr && ckey == key_superr)
Modifier.SuperR = cast(ModifierKey) 1 << i;
if (key_superl && ckey == key_superl)
Modifier.SuperL = cast(ModifierKey) 1 << i;
if (key_hyperl && ckey == key_hyperl)
Modifier.HyperL = cast(ModifierKey) 1 << i;
if (key_hyperr && ckey == key_hyperr)
Modifier.HyperR = cast(ModifierKey) 1 << i;
if (key_metal && ckey == key_metal)
Modifier.MetaL = cast(ModifierKey) 1 << i;
if (key_metar && ckey == key_metar)
Modifier.MetaR = cast(ModifierKey) 1 << i;
}
}
ignoreMods = [Lock];
ignoreMask = Lock;
if (Numlock)
{
ignoreMods = [Numlock, Lock, Numlock | Lock];
ignoreMask = Numlock | Lock;
}
ignoreMask = ~ignoreMask;
}
/// Checks for key presses and calls handlers
static void update()
{
while (XCheckWindowEvent(display, root, KeyPressMask, &event))
{
if (event.type == KeyPress)
{
int key = event.xkey.keycode;
ModifierKey mods = cast(ModifierKey)(event.xkey.state & ignoreMask);
foreach (KeyHandlerEntry bind; binds)
{
if (bind.key == key && bind.mods == mods)
bind.handler(mods, key);
}
}
}
}
/// Binds the key without binding keys when numlock or lock are active
static void bindExact(ModifierKey mods, int keycode, XKeybindHandler handler)
{
XGrabKey(display, keycode, cast(uint) mods, root, 0, GrabModeAsync, GrabModeAsync);
binds ~= KeyHandlerEntry(mods, keycode, handler);
}
///
static void bind(ModifierKey mods, int keycode, XKeybindHandler handler)
{
bindExact(mods, keycode, handler);
foreach (mod; ignoreMods)
bindExact(mod | mods, keycode, handler);
}
///
static void bind(string key, XKeybindHandler handler)
{
ModifierKey mods;
int code;
parseKey(display, key, mods, code);
bind(mods, code, handler);
}
///
static void unbindExact(ModifierKey mods, int keycode)
{
XUngrabKey(display, keycode, cast(uint) mods, root);
}
///
static void unbind(ModifierKey mods, int keycode)
{
unbindExact(mods, keycode);
foreach (mod; ignoreMods)
unbindExact(mod | mods, keycode);
}
///
static void unbind(string key)
{
ModifierKey mods;
int code;
parseKey(display, key, mods, code);
unbind(mods, code);
}
private:
static ModifierKey Numlock;
static ModifierKey Lock = cast(ModifierKey) LockMask;
static ModifierKey[] ignoreMods;
static ModifierKey ignoreMask;
static KeyHandlerEntry[] binds;
static Display* display;
static Window root;
static XEvent event;
}
|
D
|
INSTANCE Info_Mod_Wuetar_Hi (C_INFO)
{
npc = Mod_7769_OUT_Wuetar_EIS;
nr = 1;
condition = Info_Mod_Wuetar_Hi_Condition;
information = Info_Mod_Wuetar_Hi_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Wuetar_Hi_Condition()
{
return 1;
};
FUNC VOID Info_Mod_Wuetar_Hi_Info()
{
if (Mod_EIS_Amorite == 1)
{
AI_Output(self, hero, "Info_Mod_Wuetar_Hi_04_00"); //Was in Dreiteufelsnamen ...?! Du Schwein machst dich an meine Frau ran?!
AI_Output(self, hero, "Info_Mod_Wuetar_Hi_04_01"); //Dir werde ich helfen!
AI_StopProcessInfos (self);
B_StartOtherRoutine (self, "START");
B_Attack (self, hero, AR_NONE, 0);
}
else
{
AI_Output(self, hero, "Info_Mod_Wuetar_Hi_04_02"); //He, was ist hier los? Belästigst du etwa meine Frau?!
Info_ClearChoices (Info_Mod_Wuetar_Hi);
Info_AddChoice (Info_Mod_Wuetar_Hi, "Blas dich nicht so auf. Deine Frau war es, die mir an die Wäsche wollte.", Info_Mod_Wuetar_Hi_B);
Info_AddChoice (Info_Mod_Wuetar_Hi, "War nur ein Missverständnis ... ich wollte gerade gehen.", Info_Mod_Wuetar_Hi_A);
};
};
FUNC VOID Info_Mod_Wuetar_Hi_B()
{
AI_Output(hero, self, "Info_Mod_Wuetar_Hi_B_15_00"); //Blas dich nicht so auf. Deine Frau war es, die mir an die Wäsche wollte.
AI_Output(self, hero, "Info_Mod_Wuetar_Hi_B_04_01"); //Du dreckiges Schwein wagst es auch noch ...?! Na warte, du Strolch!
Info_ClearChoices (Info_Mod_Wuetar_Hi);
AI_StopProcessInfos (self);
B_StartOtherRoutine (self, "START");
B_Attack (self, hero, AR_NONE, 0);
};
FUNC VOID Info_Mod_Wuetar_Hi_A()
{
AI_Output(hero, self, "Info_Mod_Wuetar_Hi_A_15_00"); //War nur ein Missverständnis ... ich wollte gerade gehen.
AI_Output(self, hero, "Info_Mod_Wuetar_Hi_A_04_01"); //Dann mach, dass du rauskommst, bevor ich mich vergesse!
Info_ClearChoices (Info_Mod_Wuetar_Hi);
AI_StopProcessInfos (self);
B_StartOtherRoutine (self, "START");
};
INSTANCE Info_Mod_Wuetar_Snapperbogen (C_INFO)
{
npc = Mod_7769_OUT_Wuetar_EIS;
nr = 1;
condition = Info_Mod_Wuetar_Snapperbogen_Condition;
information = Info_Mod_Wuetar_Snapperbogen_Info;
permanent = 0;
important = 0;
description = "Kann ich von dir Drachensnappersehnen bekommen?";
};
FUNC INT Info_Mod_Wuetar_Snapperbogen_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Gestath_Snapperbogen))
&& (Npc_HasItems(self, ItAt_Drachensnappersehne) == 2)
{
return 1;
};
};
FUNC VOID Info_Mod_Wuetar_Snapperbogen_Info()
{
AI_Output(hero, self, "Info_Mod_Wuetar_Snapperbogen_15_00"); //Kann ich von dir Drachensnappersehnen bekommen?
if (Mod_EIS_Amorite == 1)
{
AI_Output(self, hero, "Info_Mod_Wuetar_Snapperbogen_04_00"); //(wütend) Von mir bekommen? Eine Tracht Prügel kannst du von mir bekommen, du Schwein!
AI_StopProcessInfos (self);
B_Attack (self, hero, AR_NONE, 0);
}
else
{
AI_Output(self, hero, "Info_Mod_Wuetar_Snapperbogen_04_01"); //(erbost) Wie kommst du dazu von mir etwas haben zu wollen?! Wäre ja noch schöner ...
Info_ClearChoices (Info_Mod_Wuetar_Snapperbogen);
Info_AddChoice (Info_Mod_Wuetar_Snapperbogen, "Weil ich ein netter Kerl bin ...", Info_Mod_Wuetar_Snapperbogen_B);
if (Npc_HasItems(hero, ItFo_Beer) >= 2)
{
Info_AddChoice (Info_Mod_Wuetar_Snapperbogen, "Ach komm, das war nur ein albernes Missverständnis. (einen ausgeben)", Info_Mod_Wuetar_Snapperbogen_A);
};
};
};
FUNC VOID Info_Mod_Wuetar_Snapperbogen_B()
{
AI_Output(hero, self, "Info_Mod_Wuetar_Snapperbogen_B_15_00"); //Weil ich ein netter Kerl bin ... (süffisant) deine Frau wird es dir bestätigen.
AI_Output(self, hero, "Info_Mod_Wuetar_Snapperbogen_B_04_01"); //Na warte, du Strolch!
Info_ClearChoices (Info_Mod_Wuetar_Snapperbogen);
AI_StopProcessInfos (self);
B_Attack (self, hero, AR_NONE, 0);
};
FUNC VOID Info_Mod_Wuetar_Snapperbogen_A()
{
AI_Output(hero, self, "Info_Mod_Wuetar_Snapperbogen_A_15_00"); //Ach komm, das war nur ein albernes Missverständnis.
B_GiveInvItems (hero, self, ItFo_Beer, 1);
B_UseItem (self, ItFo_Beer);
AI_Output(self, hero, "Info_Mod_Wuetar_Snapperbogen_A_04_01"); //Missverständnis? Na, ich weiß ja nicht ...
AI_Output(hero, self, "Info_Mod_Wuetar_Snapperbogen_A_15_02"); //Hier, trink noch einen auf meine Rechnung.
B_GiveInvItems (hero, self, ItFo_Beer, 1);
B_UseItem (self, ItFo_Beer);
AI_Output(self, hero, "Info_Mod_Wuetar_Snapperbogen_A_04_03"); //Also ok, ich will mal nicht nachtragend sein. Für 150 Goldmünzen bekommst du zwei Drachensnappersehnen.
Info_ClearChoices (Info_Mod_Wuetar_Snapperbogen);
Mod_EIS_Wuetar = 1;
};
INSTANCE Info_Mod_Wuetar_Snapperbogen2 (C_INFO)
{
npc = Mod_7769_OUT_Wuetar_EIS;
nr = 1;
condition = Info_Mod_Wuetar_Snapperbogen2_Condition;
information = Info_Mod_Wuetar_Snapperbogen2_Info;
permanent = 0;
important = 0;
description = "(Sehnen für 150 Gold kaufen)";
};
FUNC INT Info_Mod_Wuetar_Snapperbogen2_Condition()
{
if (Mod_EIS_Wuetar == 1)
&& (Npc_HasItems(self, ItAt_Drachensnappersehne) == 2)
&& (Npc_HasItems(hero, ItMi_Gold) >= 150)
{
return 1;
};
};
FUNC VOID Info_Mod_Wuetar_Snapperbogen2_Info()
{
B_GiveInvItems (hero, self, ItMi_Gold, 150);
B_GiveInvItems (self, hero, ItAt_Drachensnappersehne, 2);
};
INSTANCE Info_Mod_Wuetar_LassMich (C_INFO)
{
npc = Mod_7769_OUT_Wuetar_EIS;
nr = 1;
condition = Info_Mod_Wuetar_LassMich_Condition;
information = Info_Mod_Wuetar_LassMich_Info;
permanent = 1;
important = 1;
};
FUNC INT Info_Mod_Wuetar_LassMich_Condition()
{
if (Npc_HasItems(self, ItAt_Drachensnappersehne) == 0)
&& (Npc_IsInState(self, ZS_Talk))
{
return 1;
};
};
FUNC VOID Info_Mod_Wuetar_LassMich_Info()
{
AI_Output(self, hero, "Info_Mod_Wuetar_LassMich_04_00"); //Lass mich in Ruhe!
AI_StopProcessInfos (self);
};
INSTANCE Info_Mod_Wuetar_Pickpocket (C_INFO)
{
npc = Mod_7769_OUT_Wuetar_EIS;
nr = 1;
condition = Info_Mod_Wuetar_Pickpocket_Condition;
information = Info_Mod_Wuetar_Pickpocket_Info;
permanent = 1;
important = 0;
description = Pickpocket_90;
};
FUNC INT Info_Mod_Wuetar_Pickpocket_Condition()
{
if (C_Beklauen(77, ItAt_Drachensnappersehne, 2))
&& (Npc_HasItems(self, ItAt_Drachensnappersehne) == 2)
{
return TRUE;
};
};
FUNC VOID Info_Mod_Wuetar_Pickpocket_Info()
{
Info_ClearChoices (Info_Mod_Wuetar_Pickpocket);
Info_AddChoice (Info_Mod_Wuetar_Pickpocket, DIALOG_BACK, Info_Mod_Wuetar_Pickpocket_BACK);
Info_AddChoice (Info_Mod_Wuetar_Pickpocket, DIALOG_PICKPOCKET, Info_Mod_Wuetar_Pickpocket_DoIt);
};
FUNC VOID Info_Mod_Wuetar_Pickpocket_BACK()
{
Info_ClearChoices (Info_Mod_Wuetar_Pickpocket);
};
FUNC VOID Info_Mod_Wuetar_Pickpocket_DoIt()
{
if (B_Beklauen() == TRUE)
{
Info_ClearChoices (Info_Mod_Wuetar_Pickpocket);
}
else
{
Info_ClearChoices (Info_Mod_Wuetar_Pickpocket);
Info_AddChoice (Info_Mod_Wuetar_Pickpocket, DIALOG_PP_BESCHIMPFEN, Info_Mod_Wuetar_Pickpocket_Beschimpfen);
Info_AddChoice (Info_Mod_Wuetar_Pickpocket, DIALOG_PP_BESTECHUNG, Info_Mod_Wuetar_Pickpocket_Bestechung);
Info_AddChoice (Info_Mod_Wuetar_Pickpocket, DIALOG_PP_HERAUSREDEN, Info_Mod_Wuetar_Pickpocket_Herausreden);
};
};
FUNC VOID Info_Mod_Wuetar_Pickpocket_Beschimpfen()
{
B_Say (hero, self, "$PICKPOCKET_BESCHIMPFEN");
B_Say (self, hero, "$DIRTYTHIEF");
Info_ClearChoices (Info_Mod_Wuetar_Pickpocket);
AI_StopProcessInfos (self);
B_Attack (self, hero, AR_Theft, 1);
};
FUNC VOID Info_Mod_Wuetar_Pickpocket_Bestechung()
{
B_Say (hero, self, "$PICKPOCKET_BESTECHUNG");
var int rnd; rnd = r_max(99);
if (rnd < 25)
|| ((rnd >= 25) && (rnd < 50) && (Npc_HasItems(hero, ItMi_Gold) < 50))
|| ((rnd >= 50) && (rnd < 75) && (Npc_HasItems(hero, ItMi_Gold) < 100))
|| ((rnd >= 75) && (rnd < 100) && (Npc_HasItems(hero, ItMi_Gold) < 200))
{
B_Say (self, hero, "$DIRTYTHIEF");
Info_ClearChoices (Info_Mod_Wuetar_Pickpocket);
AI_StopProcessInfos (self);
B_Attack (self, hero, AR_Theft, 1);
}
else
{
if (rnd >= 75)
{
B_GiveInvItems (hero, self, ItMi_Gold, 200);
}
else if (rnd >= 50)
{
B_GiveInvItems (hero, self, ItMi_Gold, 100);
}
else if (rnd >= 25)
{
B_GiveInvItems (hero, self, ItMi_Gold, 50);
};
B_Say (self, hero, "$PICKPOCKET_BESTECHUNG_01");
Info_ClearChoices (Info_Mod_Wuetar_Pickpocket);
AI_StopProcessInfos (self);
};
};
FUNC VOID Info_Mod_Wuetar_Pickpocket_Herausreden()
{
B_Say (hero, self, "$PICKPOCKET_HERAUSREDEN");
if (r_max(99) < Mod_Verhandlungsgeschick)
{
B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_01");
Info_ClearChoices (Info_Mod_Wuetar_Pickpocket);
}
else
{
B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_02");
};
};
INSTANCE Info_Mod_Wuetar_EXIT (C_INFO)
{
npc = Mod_7769_OUT_Wuetar_EIS;
nr = 1;
condition = Info_Mod_Wuetar_EXIT_Condition;
information = Info_Mod_Wuetar_EXIT_Info;
permanent = 1;
important = 0;
description = DIALOG_ENDE;
};
FUNC INT Info_Mod_Wuetar_EXIT_Condition()
{
return 1;
};
FUNC VOID Info_Mod_Wuetar_EXIT_Info()
{
AI_StopProcessInfos (self);
};
|
D
|
at a steady rate or pace
in a steady manner
|
D
|
taking a vaccine as a precaution against contracting a disease
the scar left following inoculation with a vaccine
|
D
|
/* Converted to D from gsl_vector_ulong.h by htod
* and edited by daniel truemper <truemped.dsource <with> hence22.org>
*/
module auxc.gsl.gsl_vector_ulong;
/* vector/gsl_vector_ulong.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import tango.stdc.stdlib;
import tango.stdc.stdio;
public import auxc.gsl.gsl_types;
public import auxc.gsl.gsl_errno;
public import auxc.gsl.gsl_check_range;
public import auxc.gsl.gsl_block_ulong;
extern (C):
struct gsl_vector_ulong
{
size_t size;
size_t stride;
uint *data;
gsl_block_ulong *block;
int owner;
};
struct _gsl_vector_ulong_view
{
gsl_vector_ulong vector;
};
alias _gsl_vector_ulong_view gsl_vector_ulong_view;
struct _gsl_vector_ulong_const_view
{
gsl_vector_ulong vector;
};
alias _gsl_vector_ulong_const_view gsl_vector_ulong_const_view;
/* Allocation */
gsl_vector_ulong * gsl_vector_ulong_alloc(size_t n);
gsl_vector_ulong * gsl_vector_ulong_calloc(size_t n);
gsl_vector_ulong * gsl_vector_ulong_alloc_from_block(gsl_block_ulong *b, size_t offset, size_t n, size_t stride);
gsl_vector_ulong * gsl_vector_ulong_alloc_from_vector(gsl_vector_ulong *v, size_t offset, size_t n, size_t stride);
void gsl_vector_ulong_free(gsl_vector_ulong *v);
/* Views */
_gsl_vector_ulong_view gsl_vector_ulong_view_array(uint *v, size_t n);
_gsl_vector_ulong_view gsl_vector_ulong_view_array_with_stride(uint *base, size_t stride, size_t n);
_gsl_vector_ulong_const_view gsl_vector_ulong_const_view_array(uint *v, size_t n);
_gsl_vector_ulong_const_view gsl_vector_ulong_const_view_array_with_stride(uint *base, size_t stride, size_t n);
_gsl_vector_ulong_view gsl_vector_ulong_subvector(gsl_vector_ulong *v, size_t i, size_t n);
_gsl_vector_ulong_view gsl_vector_ulong_subvector_with_stride(gsl_vector_ulong *v, size_t i, size_t stride, size_t n);
_gsl_vector_ulong_const_view gsl_vector_ulong_const_subvector(gsl_vector_ulong *v, size_t i, size_t n);
_gsl_vector_ulong_const_view gsl_vector_ulong_const_subvector_with_stride(gsl_vector_ulong *v, size_t i, size_t stride, size_t n);
/* Operations */
uint gsl_vector_ulong_get(gsl_vector_ulong *v, size_t i);
void gsl_vector_ulong_set(gsl_vector_ulong *v, size_t i, uint x);
uint * gsl_vector_ulong_ptr(gsl_vector_ulong *v, size_t i);
uint * gsl_vector_ulong_const_ptr(gsl_vector_ulong *v, size_t i);
void gsl_vector_ulong_set_zero(gsl_vector_ulong *v);
void gsl_vector_ulong_set_all(gsl_vector_ulong *v, uint x);
int gsl_vector_ulong_set_basis(gsl_vector_ulong *v, size_t i);
int gsl_vector_ulong_fread(FILE *stream, gsl_vector_ulong *v);
int gsl_vector_ulong_fwrite(FILE *stream, gsl_vector_ulong *v);
int gsl_vector_ulong_fscanf(FILE *stream, gsl_vector_ulong *v);
int gsl_vector_ulong_fprintf(FILE *stream, gsl_vector_ulong *v, char *format);
int gsl_vector_ulong_memcpy(gsl_vector_ulong *dest, gsl_vector_ulong *src);
int gsl_vector_ulong_reverse(gsl_vector_ulong *v);
int gsl_vector_ulong_swap(gsl_vector_ulong *v, gsl_vector_ulong *w);
int gsl_vector_ulong_swap_elements(gsl_vector_ulong *v, size_t i, size_t j);
uint gsl_vector_ulong_max(gsl_vector_ulong *v);
uint gsl_vector_ulong_min(gsl_vector_ulong *v);
void gsl_vector_ulong_minmax(gsl_vector_ulong *v, uint *min_out, uint *max_out);
size_t gsl_vector_ulong_max_index(gsl_vector_ulong *v);
size_t gsl_vector_ulong_min_index(gsl_vector_ulong *v);
void gsl_vector_ulong_minmax_index(gsl_vector_ulong *v, size_t *imin, size_t *imax);
int gsl_vector_ulong_add(gsl_vector_ulong *a, gsl_vector_ulong *b);
int gsl_vector_ulong_sub(gsl_vector_ulong *a, gsl_vector_ulong *b);
int gsl_vector_ulong_mul(gsl_vector_ulong *a, gsl_vector_ulong *b);
int gsl_vector_ulong_div(gsl_vector_ulong *a, gsl_vector_ulong *b);
int gsl_vector_ulong_scale(gsl_vector_ulong *a, double x);
int gsl_vector_ulong_add_constant(gsl_vector_ulong *a, double x);
int gsl_vector_ulong_isnull(gsl_vector_ulong *v);
|
D
|
const int SPL_Cost_PalHolyBolt = 15;
const int SPL_Damage_PalHolyBolt = 100;
instance Spell_PalHolyBolt(C_Spell_Proto)
{
time_per_mana = 0;
damage_per_level = SPL_Damage_PalHolyBolt;
};
func int Spell_Logic_PalHolyBolt(var int manaInvested)
{
if(Npc_GetActiveSpellIsScroll(self) && (self.attribute[ATR_MANA] >= SPL_Cost_Scroll_Circle2))
{
return SPL_SENDCAST;
}
else if(self.attribute[ATR_MANA] >= SPL_Cost_PalHolyBolt)
{
return SPL_SENDCAST;
}
else
{
return SPL_SENDSTOP;
};
};
func void Spell_Cast_PalHolyBolt()
{
if(Npc_GetActiveSpellIsScroll(self))
{
self.attribute[ATR_MANA] = self.attribute[ATR_MANA] - SPL_Cost_Scroll_Circle2;
}
else
{
self.attribute[ATR_MANA] = self.attribute[ATR_MANA] - SPL_Cost_PalHolyBolt;
};
self.aivar[AIV_SelectSpell] += 1;
};
|
D
|
/**
* TypeInfo support code.
*
* Copyright: Copyright Digital Mars 2004 - 2009.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Walter Bright
*/
/* Copyright Digital Mars 2004 - 2009.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module rt.typeinfo.ti_Ag;
private import core.stdc.string;
private import rt.util.hash;
private import rt.util.string;
// byte[]
class TypeInfo_Ag : TypeInfo
{
@trusted:
const:
pure:
nothrow:
override string toString() const pure nothrow @safe { return "byte[]"; }
override hash_t getHash(in void* p)
{ byte[] s = *cast(byte[]*)p;
return hashOf(s.ptr, s.length * byte.sizeof);
}
override equals_t equals(in void* p1, in void* p2)
{
byte[] s1 = *cast(byte[]*)p1;
byte[] s2 = *cast(byte[]*)p2;
return s1.length == s2.length &&
memcmp(cast(byte *)s1, cast(byte *)s2, s1.length) == 0;
}
override int compare(in void* p1, in void* p2)
{
byte[] s1 = *cast(byte[]*)p1;
byte[] s2 = *cast(byte[]*)p2;
size_t len = s1.length;
if (s2.length < len)
len = s2.length;
for (size_t u = 0; u < len; u++)
{
int result = s1[u] - s2[u];
if (result)
return result;
}
if (s1.length < s2.length)
return -1;
else if (s1.length > s2.length)
return 1;
return 0;
}
@property override size_t tsize() nothrow pure
{
return (byte[]).sizeof;
}
@property override uint flags() nothrow pure
{
return 1;
}
@property override TypeInfo next() nothrow pure
{
return typeid(byte);
}
@property override size_t talign() nothrow pure
{
return (byte[]).alignof;
}
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
//arg1 = typeid(size_t);
//arg2 = typeid(void*);
return 0;
}
}
// ubyte[]
class TypeInfo_Ah : TypeInfo_Ag
{
@trusted:
const:
pure:
nothrow:
override string toString() const pure nothrow @safe { return "ubyte[]"; }
override int compare(in void* p1, in void* p2)
{
char[] s1 = *cast(char[]*)p1;
char[] s2 = *cast(char[]*)p2;
return dstrcmp(s1, s2);
}
@property override TypeInfo next() nothrow pure
{
return typeid(ubyte);
}
}
// void[]
class TypeInfo_Av : TypeInfo_Ah
{
@trusted:
const:
pure:
nothrow:
override string toString() const pure nothrow @safe { return "void[]"; }
@property override TypeInfo next() nothrow pure
{
return typeid(void);
}
}
// bool[]
class TypeInfo_Ab : TypeInfo_Ah
{
@trusted:
const:
pure:
nothrow:
override string toString() const pure nothrow @safe { return "bool[]"; }
@property override TypeInfo next() nothrow pure
{
return typeid(bool);
}
}
// char[]
class TypeInfo_Aa : TypeInfo_Ag
{
@trusted:
const:
pure:
nothrow:
override string toString() const pure nothrow @safe { return "char[]"; }
override hash_t getHash(in void* p)
{ char[] s = *cast(char[]*)p;
hash_t hash = 0;
version (all)
{
foreach (char c; s)
hash = hash * 11 + c;
}
else
{
size_t len = s.length;
char *str = s;
while (1)
{
switch (len)
{
case 0:
return hash;
case 1:
hash *= 9;
hash += *cast(ubyte *)str;
return hash;
case 2:
hash *= 9;
hash += *cast(ushort *)str;
return hash;
case 3:
hash *= 9;
hash += (*cast(ushort *)str << 8) +
(cast(ubyte *)str)[2];
return hash;
default:
hash *= 9;
hash += *cast(uint *)str;
str += 4;
len -= 4;
break;
}
}
}
return hash;
}
@property override TypeInfo next() nothrow pure
{
return typeid(char);
}
}
// string
class TypeInfo_Aya : TypeInfo_Aa
{
@trusted:
const:
pure:
nothrow:
override string toString() const pure nothrow @safe { return "immutable(char)[]"; }
@property override TypeInfo next() nothrow pure
{
return typeid(immutable(char));
}
}
|
D
|
make a splashing sound
walk through mud or mire
cause (a liquid) to spatter about, especially with force
dash a liquid upon or against
|
D
|
/**
MongoClient class doing connection management. Usually this is a main entry point
for client code.
Copyright: © 2012 RejectedSoftware e.K.
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module vibe.db.mongo.client;
public import vibe.db.mongo.collection;
public import vibe.db.mongo.database;
import vibe.core.connectionpool;
import vibe.core.log;
import vibe.db.mongo.connection;
import vibe.db.mongo.settings;
import core.thread;
import std.conv;
import std.string;
import std.range;
/**
Represents a connection to a MongoDB server.
Note that this class uses a ConnectionPool internally to create and reuse
network conections to the server as necessary. It should be reused for all
fibers in a thread for optimum performance in high concurrency scenarios.
*/
final class MongoClient {
private {
ConnectionPool!MongoConnection m_connections;
}
package this(string host, ushort port)
{
this("mongodb://" ~ host ~ ":" ~ to!string(port) ~ "/?safe=true");
}
/**
Initializes a MongoDB client using a URL.
The URL must be in the form documented at
$(LINK http://www.mongodb.org/display/DOCS/Connections) which is:
mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
Throws:
An exception if the URL cannot be parsed as a valid MongoDB URL.
*/
package this(string url)
{
MongoClientSettings settings;
auto goodUrl = parseMongoDBUrl(settings, url);
if(!goodUrl) throw new Exception("Unable to parse mongodb URL: " ~ url);
m_connections = new ConnectionPool!MongoConnection({
auto ret = new MongoConnection(settings);
ret.connect();
return ret;
});
// force a connection to cause an exception for wrong URLs
lockConnection();
}
package this(MongoClientSettings settings)
{
m_connections = new ConnectionPool!MongoConnection({
auto ret = new MongoConnection(settings);
ret.connect();
return ret;
});
// force a connection to cause an exception for wrong URLs
lockConnection();
}
/**
Accesses a collection using an absolute path.
The full database.collection path must be specified. To access
collections using a path relative to their database, use getDatabase in
conjunction with MongoDatabase.opIndex.
Returns:
MongoCollection for the given combined database and collectiion name(path)
Examples:
---
auto col = client.getCollection("test.collection");
---
*/
MongoCollection getCollection(string path)
{
return MongoCollection(this, path);
}
/**
Returns an object representing the specified database.
The returned object allows to access the database entity (which contains
a set of collections). There are two main use cases:
1. Accessing collections using a relative path
2. Performing service commands on the database itself
Note that there is no performance gain in accessing collections via a
relative path compared to getCollection and an absolute path.
Returns:
MongoDatabase instance representing requested database
Examples:
---
auto db = client.getDatabase("test");
auto coll = db["collection"];
---
*/
MongoDatabase getDatabase(string dbName)
{
return MongoDatabase(this, dbName);
}
/**
Return a handle to all databases of the server.
Returns:
An input range of $(D MongoDatabase) objects.
Examples:
---
auto names = client.getDatabaseNames();
writeln("Current databases are: ", names);
---
*/
auto getDatabases()()
{
import std.algorithm : map;
return lockConnection.listDatabases()
.map!(info => MongoDatabase(this, info.name));
}
package auto lockConnection() { return m_connections.lockConnection(); }
}
|
D
|
/++
Authors: Ilya Yaroshenko, documentation is partially based on Phobos.
Copyright: Copyright, Ilya Yaroshenko 2016-.
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
+/
module mir.random.algorithm;
import std.range.primitives;
import std.traits;
import mir.math.common;
import mir.random;
public import mir.random.engine;
/++
Field interface for random distributions and uniform random bit generators.
It used to construct ndslices in combination with `slicedField` and `slice`.
Note: $(UL $(LI The structure holds a pointer to a generator.) $(LI The structure must not be copied (explicitly or implicitly) outside from a function.))
+/
struct RandomField(G, D, T)
if (isSaturatedRandomEngine!G)
{
private D _var;
private G* _gen;
private Unqual!(typeof(_var(*_gen))) _val;
/++
Constructor.
Stores the pointer to the `gen` engine.
+/
this()(ref G gen, D var) { _gen = &gen; _var = var; }
///
T opIndex()(size_t)
{
import mir.internal.utility: isComplex;
static if (isComplex!T)
{
return _var(*_gen) + _var(*_gen) * 1fi;
}
else
{
return _var(*_gen);
}
}
}
/// ditto
struct RandomField(G)
if (isSaturatedRandomEngine!G)
{
private G* _gen;
/++
Constructor.
Stores the pointer to the `gen` engine.
+/
this()(ref G gen) { _gen = &gen; }
///
Unqual!(EngineReturnType!G) opIndex()(size_t) { return (*_gen)(); }
}
/// ditto
RandomField!(G, D, T) field(T, G, D)(ref G gen, D var)
if (isSaturatedRandomEngine!G)
{
return typeof(return)(gen, var);
}
/// ditto
auto field(G, D)(ref G gen, D var)
if (isSaturatedRandomEngine!G)
{
return RandomField!(G, D, Unqual!(typeof(var(gen))))(gen, var);
}
/// ditto
RandomField!G field(G)(ref G gen)
if (isSaturatedRandomEngine!G)
{
return typeof(return)(gen);
}
/// Normal distribution
version(mir_random_test) unittest
{
import mir.ndslice: slicedField, slice;
import mir.random;
import mir.random.variable: NormalVariable;
auto var = NormalVariable!double(0, 1);
auto rng = Random(unpredictableSeed);
auto sample = rng // passed by reference
.field(var) // construct random field from standard normal distribution
.slicedField(5, 3) // construct random matrix 5 row x 3 col (lazy, without allocation)
.slice; // allocates data of random matrix
//import std.stdio;
//writeln(sample);
}
/// Normal distribution for complex numbers
version(mir_random_test) unittest
{
import mir.ndslice: slicedField, slice;
import mir.random;
import mir.random.variable: NormalVariable;
auto var = NormalVariable!double(0, 1);
auto rng = Random(unpredictableSeed);
auto sample = rng // passed by reference
.field!cdouble(var)// construct random field from standard normal distribution
.slicedField(5, 3) // construct random matrix 5 row x 3 col (lazy, without allocation)
.slice; // allocates data of random matrix
//import std.stdio;
//writeln(sample);
}
/// Bi
version(mir_random_test) unittest
{
import mir.ndslice: slicedField, slice;
import mir.random.engine.xorshift;
auto rng = Xorshift(1);
auto bitSample = rng // passed by reference
.field // construct random field
.slicedField(5, 3) // construct random matrix 5 row x 3 col (lazy, without allocation)
.slice; // allocates data of random matrix
}
/++
Range interface for random distributions and uniform random bit generators.
Note: $(UL $(LI The structure holds a pointer to a generator.) $(LI The structure must not be copied (explicitly or implicitly) outside from a function.))
+/
struct RandomRange(G, D)
if (isSaturatedRandomEngine!G)
{
private D _var;
private G* _gen;
private Unqual!(typeof(_var(*_gen))) _val;
/++
Constructor.
Stores the pointer to the `gen` engine.
+/
this()(ref G gen, D var) { _gen = &gen; _var = var; popFront(); }
/// Infinity Input Range primitives
enum empty = false;
/// ditto
auto front()() @property { return _val; }
/// ditto
void popFront()() { _val = _var(*_gen); }
}
///ditto
struct RandomRange(G)
if (isSaturatedRandomEngine!G)
{
private G* _gen;
private EngineReturnType!G _val;
/// Largest generated value.
enum Unqual!(EngineReturnType!G) max = G.max;
/++
Constructor.
Stores the pointer to the `gen` engine.
+/
this()(ref G gen) { _gen = &gen; popFront(); }
/// Infinity Input Range primitives
enum empty = false;
/// ditto
Unqual!(EngineReturnType!G) front()() @property { return _val; }
/// ditto
void popFront()() { _val = (*_gen)(); }
}
/// ditto
RandomRange!(G, D) range(G, D)(ref G gen, D var)
if (isSaturatedRandomEngine!G)
{
return typeof(return)(gen, var);
}
/// ditto
RandomRange!G range(G)(ref G gen)
if (isSaturatedRandomEngine!G)
{
return typeof(return)(gen);
}
///
version(mir_random_test) unittest
{
import std.range : take, array;
import mir.random;
import mir.random.variable: NormalVariable;
auto rng = Random(unpredictableSeed);
auto sample = rng // by reference
.range(NormalVariable!double(0, 1))
.take(1000)
.array;
//import std.stdio;
//writeln(sample);
}
/// Uniform random bit generation
version(mir_random_test) unittest
{
import std.range, std.algorithm;
import mir.random.engine.xorshift;
auto rng = Xorshift(1);
auto bitSample = rng // by reference
.range
.filter!"a % 2 == 0"
.map!"a % 100"
.take(5)
.array;
assert(bitSample == [58, 30, 86, 16, 76]);
}
/++
Random sampling utility.
Complexity:
O(n)
References:
Jeffrey Scott Vitter, An efficient algorithm for sequential random sampling
+/
struct VitterStrides
{
private enum alphainv = 16;
private double vprime;
private size_t N;
private size_t n;
private bool hot;
this(this)
{
hot = false;
}
/++
Params:
N = range length
n = sample length
+/
this(size_t N, size_t n)
{
assert(N >= n);
this.N = N;
this.n = n;
}
/// Returns: `true` if sample length equals to 0.
bool empty() @property { return n == 0; }
/// Returns: `N` (remaining sample length)
size_t length() @property { return n; }
/// Returns: `n` (remaining range length)
size_t tail() @property { return N; }
/++
Returns: random stride step (`S`).
After each call `N` decreases by `S + 1` and `n` decreases by `1`.
Params:
gen = random number engine to use
+/
sizediff_t opCall(G)(ref G gen)
{
pragma(inline, false);
import std.math: LN2;
import mir.random;
size_t S;
switch(n)
{
default:
double Nr = N;
if(alphainv * n > N)
{
hot = false;
double top = N - n;
double v = gen.rand!double.fabs;
double quot = top / Nr;
while(quot > v)
{
top--;
Nr--;
S++;
quot *= top / Nr;
}
goto R;
}
double nr = n;
if(hot)
{
hot = false;
goto L;
}
M:
vprime = exp2(-gen.randExponential2!double / nr);
L:
double X = Nr * (1 - vprime);
S = cast(size_t) X;
if (S + n > N)
goto M;
size_t qu1 = N - n + 1;
double qu1r = qu1;
double y1 = exp2(gen.randExponential2!double / (1 - nr) + double(1 / LN2) / qu1r);
vprime = y1 * (1 - X / Nr) * (qu1r / (qu1r - S));
if (vprime <= 1)
{
hot = true;
goto R;
}
double y2 = 1;
double top = Nr - 1;
double bottom = void;
size_t limit = void;
if(n > S + 1)
{
bottom = N - n;
limit = N - S;
}
else
{
bottom = N - (S + 1);
limit = qu1;
}
foreach_reverse(size_t t; limit .. N)
{
y2 *= top / bottom;
top--;
bottom--;
}
if(Nr / (Nr - X) >= y1 * exp2(log2(y2) / (nr - 1)))
goto R;
goto M;
case 1:
S = gen.randIndex(N);
R:
N -= S + 1;
n--;
return S;
case 0:
S = -1;
goto R;
}
}
}
///
version(mir_random_test) unittest
{
import mir.random.engine.xorshift;
auto gen = Xorshift(112);
auto strides = VitterStrides(20, 3);
size_t s;
foreach(_; 0..3)
{
s += strides(gen) + 1;
assert(s + strides.tail == 20);
}
}
/++
Selects a random subsample out of `range`, containing exactly `n` elements.
The order of elements is the same as in the original range.
Returns: $(LREF RandomSample) over the `range`.
Params:
range = range to sample from
gen = random number engine to use
n = number of elements to include in the sample; must be less than or equal to the `range.length`
Complexity: O(n)
+/
auto sample(Range, G)(Range range, ref G gen, size_t n)
if(isInputRange!Range && hasLength!Range && isSaturatedRandomEngine!G)
{
return RandomSample!(Range, G)(range, gen, n);
}
///
version(mir_random_test) unittest
{
import std.range;
import mir.random.engine.xorshift;
auto gen = Xorshift(112);
auto sample = iota(100).sample(gen, 7);
foreach(elem; sample)
{
//import std.stdio;
//writeln(elem);
}
}
version(mir_random_test) unittest
{
import std.algorithm.comparison;
import std.range;
import mir.random.engine.xorshift;
auto gen = Xorshift(232);
assert(iota(0).equal(iota(0).sample(gen, 0)));
assert(iota(1).equal(iota(1).sample(gen, 1)));
assert(iota(2).equal(iota(2).sample(gen, 2)));
assert(iota(3).equal(iota(3).sample(gen, 3)));
assert(iota(8).equal(iota(8).sample(gen, 8)));
assert(iota(1000).equal(iota(1000).sample(gen, 1000)));
}
/++
Lazy input or forward range containing a random sample.
$(LREF VitterStrides) is used to skip elements.
Complexity: O(n)
Note: $(UL $(LI The structure holds a pointer to a generator.) $(LI The structure must not be copied (explicitly or implicitly) outside from a function.))
+/
struct RandomSample(Range, G)
{
private VitterStrides strides;
private G* gen;
private Range range;
///
this(Range range, ref G gen, size_t n)
{
this.range = range;
this.gen = &gen;
strides = VitterStrides(range.length, n);
auto s = strides(*this.gen);
if(s > 0)
this.range.popFrontExactly(s);
}
/// Range primitives
size_t length() @property { return strides.length + 1; }
/// ditto
bool empty() @property { return length == 0; }
/// ditto
auto ref front() @property { return range.front; }
/// ditto
void popFront() { range.popFrontExactly(strides(*gen) + 1); }
/// ditto
static if (isForwardRange!Range)
auto save() @property { return RandomSample(range.save, *gen, length); }
}
/++
Shuffles elements of `range`.
Params:
gen = random number engine to use
range = random-access range whose elements are to be shuffled
Complexity: O(range.length)
+/
void shuffle(Range, G)(ref G gen, Range range)
if (isSaturatedRandomEngine!G && isRandomAccessRange!Range && hasLength!Range)
{
import std.algorithm.mutation : swapAt;
for (; !range.empty; range.popFront)
range.swapAt(0, gen.randIndex(range.length));
}
///
version(mir_random_test) unittest
{
import mir.ndslice.allocation: slice;
import mir.ndslice.topology: iota;
import mir.ndslice.sorting;
auto gen = Random(unpredictableSeed);
auto a = iota(10).slice;
gen.shuffle(a);
sort(a);
assert(a == iota(10));
}
/++
Partially shuffles the elements of `range` such that upon returning `range[0..n]`
is a random subset of `range` and is randomly ordered.
`range[n..r.length]` will contain the elements not in `range[0..n]`.
These will be in an undefined order, but will not be random in the sense that their order after
`shuffle` returns will not be independent of their order before
`shuffle` was called.
Params:
gen = random number engine to use
range = random-access range with length whose elements are to be shuffled
n = number of elements of `r` to shuffle (counting from the beginning);
must be less than `r.length`
Complexity: O(n)
+/
void shuffle(Range, G)(ref G gen, Range range, size_t n)
if (isSaturatedRandomEngine!G && isRandomAccessRange!Range && hasLength!Range)
{
import std.algorithm.mutation : swapAt;
assert(n <= range.length, "n must be <= range.length for shuffle.");
for (; n; n--, range.popFront)
range.swapAt(0, gen.randIndex(range.length));
}
///
version(mir_random_test) unittest
{
import mir.ndslice.allocation: slice;
import mir.ndslice.topology: iota;
import mir.ndslice.sorting;
auto gen = Random(unpredictableSeed);
auto a = iota(10).slice;
gen.shuffle(a, 4);
sort(a);
assert(a == iota(10));
}
|
D
|
/*******************************************************************************
copyright: Copyright (c) 2007 Juan Jose Comellas. All rights reserved
license: BSD style: $(LICENSE)
author: Juan Jose Comellas <juanjo@comellas.com.ar>
Converted to use core.sync by Sean Kelly <sean@f4.ca>
*******************************************************************************/
module semaphore;
private import core.sync.Semaphore;
private import core.sync.Mutex;
private import core.Exception;
private import core.Exception;
private import core.Thread;
private import io.Console;
private import io.stream.Lines;
private import text.convert.Integer;
private import sys.Process;
debug (semaphore)
{
private import util.log.Log;
private import util.log.ConsoleAppender;
private import util.log.DateLayout;
}
const char[] SemaphoreName = "TestProcessSemaphore";
/**
* Example program for the core.sync.Barrier module.
*/
int main(char[][] args)
{
if (args.length == 1)
{
debug (semaphore)
{
Logger log = Log.getLogger("semaphore");
log.addAppender(new ConsoleAppender(new DateLayout()));
log.info("Semaphore test");
}
testSemaphore();
testProcessSemaphore(args[0]);
return 0;
}
else
{
return testSecondProcessSemaphore();
}
}
/**
* Test for single-process (multi-threaded) semaphores.
*/
void testSemaphore()
{
const uint MaxThreadCount = 10;
// Semaphore used in the tests. Start it "locked" (i.e., its initial
// count is 0).
Semaphore sem = new Semaphore(MaxThreadCount - 1);
Mutex mutex = new Mutex();
uint count = 0;
bool passed = false;
void semaphoreTestThread()
{
debug (semaphore)
{
Logger log = Log.getLogger("semaphore.single." ~ Thread.getThis().name());
log.trace("Starting thread");
}
try
{
uint threadNumber;
// 'count' is a resource shared by multiple threads, so we must
// acquire the mutex before modifying it.
synchronized (mutex)
{
// debug (semaphore)
// log.trace("Acquired mutex");
threadNumber = ++count;
// debug (semaphore)
// log.trace("Releasing mutex");
}
// We wait for all the threads to finish counting.
if (threadNumber < MaxThreadCount)
{
sem.wait();
debug (semaphore)
log.trace("Acquired semaphore");
while (true)
{
synchronized (mutex)
{
if (count >= MaxThreadCount + 1)
break;
}
Thread.yield();
}
debug (semaphore)
log.trace("Releasing semaphore");
sem.notify();
}
else
{
passed = !sem.tryWait();
if (passed)
{
debug (semaphore)
log.trace("Tried to acquire the semaphore too many times and failed: OK");
}
else
{
debug (semaphore)
log.error("Tried to acquire the semaphore too may times and succeeded: FAILED");
debug (semaphore)
log.trace("Releasing semaphore");
sem.notify();
}
synchronized (mutex)
{
count++;
}
}
}
catch (SyncException e)
{
Cerr("Sync exception caught in Semaphore test thread " ~ Thread.getThis().name ~
":\n" ~ e.toString()).newline;
}
catch (Exception e)
{
Cerr("Unexpected exception caught in Semaphore test thread " ~ Thread.getThis().name ~
":\n" ~ e.toString()).newline;
}
}
debug (semaphore)
{
Logger log = Log.getLogger("semaphore.single");
}
ThreadGroup group = new ThreadGroup();
Thread thread;
char[10] tmp;
for (uint i = 0; i < MaxThreadCount; ++i)
{
thread = new Thread(&semaphoreTestThread);
thread.name = "thread-" ~ text.convert.Integer.format(tmp, i);
group.add(thread);
debug (semaphore)
log.trace("Created thread " ~ thread.name);
thread.start();
}
debug (semaphore)
log.trace("Waiting for threads to finish");
group.joinAll();
if (passed)
{
debug (semaphore)
log.info("The Semaphore test was successful");
}
else
{
debug (semaphore)
{
log.error("The Semaphore is not working properly: it allowed "
"to be acquired more than it should have done");
assert(false);
}
else
{
assert(false, "The Semaphore is not working properly: it allowed "
"to be acquired more than it should have done");
}
}
}
/**
* Test for multi-process semaphores: this test works by creating a copy of
* this process that tries to acquire the ProcessSemaphore that was created
* in this function. If everything works as expected, the attempt should fail,
* as the count of the semaphore is set to 1.
*/
void testProcessSemaphore(char[] programName)
{
/+
bool success = false;
debug (semaphore)
{
Logger log = Log.getLogger("semaphore.multi");
Logger childLog = Log.getLogger("semaphore.multi.child");
log.info("ProcessSemaphore test");
}
try
{
scope ProcessSemaphore sem = new ProcessSemaphore(SemaphoreName, 1);
Process proc = new Process(programName, "2");
debug (semaphore)
log.trace("Created ProcessSemaphore('" ~ SemaphoreName ~ "')'");
sem.wait();
debug (semaphore)
log.trace("Acquired semaphore in main process");
debug (semaphore)
log.trace("Executing child test process: " ~ proc.toString());
proc.execute();
debug (semaphore)
{
foreach (line; new Lines!(char)(proc.stdout))
{
childLog.trace(line);
}
}
foreach (line; new Lines!(char)(proc.stderr))
{
Cerr(line).newline;
}
debug (semaphore)
log.trace("Waiting for child process to finish");
auto result = proc.wait();
success = (result.reason == Process.Result.Exit && result.status == 2);
debug (semaphore)
log.trace("Releasing semaphore in main process");
sem.notify();
}
catch (SyncException e)
{
Cerr("Sync exception caught in ProcessSemaphore main test process:\n" ~ e.toString()).newline;
}
catch (ProcessException e)
{
Cerr("Process exception caught in ProcessSemaphore main test process:\n" ~ e.toString()).newline;
}
catch (Exception e)
{
Cerr("Unexpected exception caught in ProcessSemaphore main test process:\n" ~ e.toString()).newline;
}
if (success)
{
debug (semaphore)
log.info("The ProcessSemaphore test was successful");
}
else
{
debug (semaphore)
{
log.error("The multi-process semaphore is not working");
assert(false);
}
else
{
assert(false, "The multi-process semaphore is not working");
}
}
+/
}
/**
* Test for multi-process semaphores (second process).
*/
int testSecondProcessSemaphore()
{
int rc = 0;
/+
debug (semaphore)
{
Cout("Starting child process\n");
}
try
{
scope ProcessSemaphore sem = new ProcessSemaphore(SemaphoreName);
bool success;
success = !sem.tryAcquire();
if (success)
{
debug (semaphore)
Cout("Tried to acquire semaphore in child process and failed: OK\n");
rc = 2;
}
else
{
debug (semaphore)
{
Cout("Acquired semaphore in child process: this should not have happened\n");
Cout("Releasing semaphore in child process\n");
}
sem.notify();
rc = 1;
}
}
catch (SyncException e)
{
Cerr("Sync exception caught in ProcessSemaphore child test process:\n" ~ e.toString()).newline;
}
catch (ProcessException e)
{
Cerr("Process exception caught in ProcessSemaphore child test process:\n" ~ e.toString()).newline;
}
catch (Exception e)
{
Cerr("Unexpected exception caught in ProcessSemaphore child test process:\n" ~ e.toString()).newline;
}
debug (semaphore)
Cout("Leaving child process\n");
+/
return rc;
}
|
D
|
instance DIA_DEXTER_EXIT(C_INFO)
{
npc = bdt_1060_dexter;
nr = 999;
condition = dia_dexter_exit_condition;
information = dia_dexter_exit_info;
permanent = TRUE;
description = DIALOG_ENDE;
};
func int dia_dexter_exit_condition()
{
return TRUE;
};
func void dia_dexter_exit_info()
{
AI_StopProcessInfos(self);
};
instance DIA_DEXTER_HALLO(C_INFO)
{
npc = bdt_1060_dexter;
nr = 1;
condition = dia_dexter_hallo_condition;
information = dia_dexter_hallo_info;
permanent = FALSE;
important = TRUE;
};
func int dia_dexter_hallo_condition()
{
if(KNOWS_DEXTER == TRUE)
{
return TRUE;
};
};
func void dia_dexter_hallo_info()
{
AI_Output(self,other,"DIA_Dexter_Hallo_09_00"); //Podívejme, koho tady máme. Velký zastánce práva. Fajn, hrdino, copak tu pohledáváme?
AI_Output(other,self,"DIA_Dexter_Hallo_15_01"); //Hledám pár odpovědí.
if(RANGER_SCKNOWSDEXTER == TRUE)
{
AI_Output(self,other,"DIA_Addon_Dexter_Hallo_09_00"); //Nečekal jsem, že sem vlezeš dobrovolně.
AI_Output(other,self,"DIA_Addon_Dexter_Hallo_15_01"); //Co to má znamenat?
AI_Output(self,other,"DIA_Addon_Dexter_Hallo_09_02"); //To zanemená, že jsem vypsal odměnu na tvou hlavu. Ještě jsi nevyděl ty plakáty?
AI_Output(self,other,"DIA_Addon_Dexter_Hallo_09_03"); //Je na nich TVŮJ obličej. Ano ... jsi hledaný muž. Nevíš o tom?
}
else
{
AI_Output(other,self,"DIA_Dexter_Hallo_15_02"); //NĚKDO dal do oběhu papíry s mojí tváří. NĚKDO mi řekl, žes to byl ty.
AI_Output(self,other,"DIA_Dexter_Hallo_09_03"); //NĚKDO moc mluvil.
AI_Output(self,other,"DIA_Addon_Dexter_Hallo_09_04"); //Máš ale pravdu. Stáhl jsem je. A co se nestalo? Přišel jsi sám.
MIS_STECKBRIEFE = LOG_SUCCESS;
b_giveplayerxp(XP_AMBIENT);
};
AI_Output(other,self,"DIA_Addon_Dexter_Hallo_15_05"); //Co ode mě chceš?
AI_Output(self,other,"DIA_Addon_Dexter_Hallo_09_06"); //Já? Nic. Ale můj šéf tě chce šíleně vidět mrtvého.
AI_Output(self,other,"DIA_Addon_Dexter_Hallo_09_07"); //To je to, proč jsem tě měl najít a přinést mu tvoji hlavu.
};
instance DIA_DEXTER_GLAUBE(C_INFO)
{
npc = bdt_1060_dexter;
nr = 5;
condition = dia_dexter_glaube_condition;
information = dia_dexter_glaube_info;
permanent = FALSE;
description = "Nevěřím ti ani slovo.";
};
func int dia_dexter_glaube_condition()
{
if(KNOWS_DEXTER == TRUE)
{
return TRUE;
};
};
func void dia_dexter_glaube_info()
{
AI_Output(other,self,"DIA_Dexter_Glaube_15_00"); //Nevěřím ti ani slovo.
AI_Output(self,other,"DIA_Dexter_Glaube_09_01"); //Hele, je to pravda. Přísahám na hrob svý matky!
};
instance DIA_ADDON_DEXTER_PATRICK(C_INFO)
{
npc = bdt_1060_dexter;
nr = 2;
condition = dia_addon_dexter_patrick_condition;
information = dia_addon_dexter_patrick_info;
description = "Byl tady viděn žoldák jménem Patrick.";
};
func int dia_addon_dexter_patrick_condition()
{
if((MIS_ADDON_CORD_LOOK4PATRICK == LOG_RUNNING) && (KNOWS_DEXTER == TRUE))
{
return TRUE;
};
};
func void dia_addon_dexter_patrick_info()
{
AI_Output(other,self,"DIA_Addon_Dexter_Patrick_15_00"); //Byl tady viděn žoldák jménem Patrick.
AI_Output(self,other,"DIA_Addon_Dexter_Patrick_09_01"); //Patrik? Eh? Nikdy jsem o něm neslyšel.
AI_Output(self,other,"DIA_Addon_Dexter_Patrick_09_02"); //Pamatuju se na žoldáka, který byl zvyklý si to někdy rozdat s mými lidmi.
AI_Output(self,other,"DIA_Addon_Dexter_Patrick_09_03"); //(nápadně lže) Ačkoli jsem ho poslední dobou neviděl.
AI_Output(self,other,"DIA_Addon_Dexter_Patrick_09_04"); //(zlomyslně) Možná ho chlapci pověsili. Těžko říct.
Log_CreateTopic(TOPIC_ADDON_MISSINGPEOPLE,LOG_MISSION);
Log_SetTopicStatus(TOPIC_ADDON_MISSINGPEOPLE,LOG_RUNNING);
b_logentry(TOPIC_ADDON_MISSINGPEOPLE,"Dexter tvrdí, že o žoldákovi Patrickovi nic neví.");
DEXTER_KNOWSPATRICK = TRUE;
b_giveplayerxp(XP_ADDON_DEXTER_KNOWSPATRICK);
};
instance DIA_ADDON_DEXTER_GREG(C_INFO)
{
npc = bdt_1060_dexter;
nr = 5;
condition = dia_addon_dexter_greg_condition;
information = dia_addon_dexter_greg_info;
description = "Je tady nějaký chlap se záplatou na oku. Hledá TĚ.";
};
func int dia_addon_dexter_greg_condition()
{
if((SC_KNOWSGREGSSEARCHSDEXTER == TRUE) && (KNOWS_DEXTER == TRUE))
{
return TRUE;
};
};
func void dia_addon_dexter_greg_info()
{
AI_Output(other,self,"DIA_Addon_Dexter_Greg_15_00"); //Je tady nějaký chlap se záplatou na oku. Hledá TĚ.
AI_Output(self,other,"DIA_Addon_Dexter_Greg_09_01"); //Vypadá to, že mě všichni hledají. Nestarám se o to.
AI_Output(self,other,"DIA_Addon_Dexter_Greg_09_02"); //Jestli ten chap něco potřebuje, má přijít sem.
b_giveplayerxp(XP_AMBIENT);
};
instance DIA_ADDON_DEXTER_MISSINGPEOPLE(C_INFO)
{
npc = bdt_1060_dexter;
nr = 2;
condition = dia_addon_dexter_missingpeople_condition;
information = dia_addon_dexter_missingpeople_info;
description = "Bylo mi řečeno, že unášíš lidi z Khorinisu.";
};
func int dia_addon_dexter_missingpeople_condition()
{
if((SC_KNOWSDEXTERASKIDNAPPER == TRUE) && (KNOWS_DEXTER == TRUE))
{
return TRUE;
};
};
func void dia_addon_dexter_missingpeople_info()
{
AI_Output(other,self,"DIA_Addon_Dexter_missingPeople_15_00"); //Bylo mi řečeno, že unášíš lidi z Khorinisu.
AI_Output(self,other,"DIA_Addon_Dexter_missingPeople_09_01"); //Takže jsi to nakonec zjistil. Dobrá práce, gratuluji.
AI_Output(self,other,"DIA_Addon_Dexter_missingPeople_09_02"); //Myslím, že budu muset své stopy zahlazovat lépe.
Info_ClearChoices(dia_addon_dexter_missingpeople);
Info_AddChoice(dia_addon_dexter_missingpeople,"Kdo ti dal ten příkaz?",dia_addon_dexter_missingpeople_wer);
Info_AddChoice(dia_addon_dexter_missingpeople,"Kde ti lidé končí? Tady okolo dolů?",dia_addon_dexter_missingpeople_wo);
};
func void dia_addon_dexter_missingpeople_wo()
{
AI_Output(other,self,"DIA_Addon_Dexter_missingPeople_Wo_15_00"); //Kde ti lidé končí? Tady okolo dolů?
AI_Output(self,other,"DIA_Addon_Dexter_missingPeople_Wo_09_01"); //(směje se) Skončí daleko. Za horami na severo-východě a z tvého dosahu.
AI_Output(self,other,"DIA_Addon_Dexter_missingPeople_Wo_09_02"); //Mohl bych ti ukázat, kde přesně, ale nevím proč bych měl.
};
func void dia_addon_dexter_missingpeople_wer()
{
AI_Output(other,self,"DIA_Addon_Dexter_missingPeople_wer_15_00"); //Kdo ti dal ten příkaz?
AI_Output(self,other,"DIA_Addon_Dexter_missingPeople_wer_09_01"); //Můj šéf. Nebezpečný člověk. Ty ho znáš. Je to Raven, jeden z trestaneckých rudných baronů, ze Starého tábora v Hornickém údolí.
AI_Output(self,other,"DIA_Addon_Dexter_missingPeople_wer_09_02"); //Potřebuje je pro svůj plán. To je vše, co potřebuješ vědět.
Info_AddChoice(dia_addon_dexter_missingpeople,"Raven nebezpečný? No ...",dia_addon_dexter_missingpeople_raven);
Info_AddChoice(dia_addon_dexter_missingpeople,"Rudný baron tady v Khorinisu?",dia_addon_dexter_missingpeople_raventot);
};
func void dia_addon_dexter_missingpeople_raven()
{
AI_Output(other,self,"DIA_Addon_Dexter_missingPeople_Raven_15_00"); //Raven nebezpečný? No ...
AI_Output(self,other,"DIA_Addon_Dexter_missingPeople_Raven_09_01"); //(popuzený) CO si myslíš, že víš? Neznáš ho tak jako já.
AI_Output(self,other,"DIA_Addon_Dexter_missingPeople_Raven_09_02"); //(rozrušený) Byl to blb, ale teď ...
AI_Output(self,other,"DIA_Addon_Dexter_missingPeople_Raven_09_03"); //Od té doby, co padla bariéra, se změnil. Jeho tvář je zatažená černým stínem.
AI_Output(self,other,"DIA_Addon_Dexter_missingPeople_Raven_09_04"); //(vystrašený) Jeho pohled tebou pronikne, jako dráp dravce, když mu budeš hledět do očí moc dlouho.
AI_Output(self,other,"DIA_Addon_Dexter_missingPeople_Raven_09_05"); //Můžu ti jen poradit, abys opustil Khorinis co nejrychleji, dokud máš ještě čas, protože za chvíli už bude příliš pozdě.
AI_Output(self,other,"DIA_Addon_Dexter_missingPeople_Raven_09_06"); //(sklíčeně) Tady tě nic nečeká, jenom jistá smrt.
Log_CreateTopic(TOPIC_ADDON_WHOSTOLEPEOPLE,LOG_MISSION);
Log_SetTopicStatus(TOPIC_ADDON_WHOSTOLEPEOPLE,LOG_RUNNING);
b_logentry(TOPIC_ADDON_WHOSTOLEPEOPLE,"Dexter má šéfa. Jmenuje se Raven. Raven je trestanecký rudný baron. Nakonec to vypadá, že Raven je ten, kdo stojí za těmi únosy. Všechno co potřebuju je důkaz.");
Info_ClearChoices(dia_addon_dexter_missingpeople);
};
func void dia_addon_dexter_missingpeople_raventot()
{
AI_Output(other,self,"DIA_Addon_Dexter_missingPeople_RavenTot_15_00"); //Rudný baron tady v Khorinisu?
AI_Output(self,other,"DIA_Addon_Dexter_missingPeople_RavenTot_09_01"); //Už není rudný baron. Teď má své vlastní plány, a Khorinis brzy zjistí dost.
};
instance DIA_ADDON_DEXTER_BOSS(C_INFO)
{
npc = bdt_1060_dexter;
nr = 3;
condition = dia_addon_dexter_boss_condition;
information = dia_addon_dexter_boss_info;
description = "Tvůj šéf? Kdo to může být?";
};
func int dia_addon_dexter_boss_condition()
{
if((KNOWS_DEXTER == TRUE) && (SC_KNOWSDEXTERASKIDNAPPER == FALSE))
{
return TRUE;
};
};
func void dia_addon_dexter_boss_info()
{
AI_Output(other,self,"DIA_Addon_Dexter_Boss_15_00"); //Tvůj šéf? Kdo to může být?
AI_Output(self,other,"DIA_Addon_Dexter_Boss_09_01"); //(směje se) Rád bys to věděl, co? Ano, umím si to představit.
AI_Output(self,other,"DIA_Addon_Dexter_Boss_09_02"); //(vážně) Nemůžu uvažovat o dvojím řešení, tak proč bych ti to měl říkat.
};
instance DIA_DEXTER_VOR(C_INFO)
{
npc = bdt_1060_dexter;
nr = 5;
condition = dia_dexter_vor_condition;
information = dia_dexter_vor_info;
permanent = FALSE;
description = "A co máš teď v úmyslu? Zabít mě?";
};
func int dia_dexter_vor_condition()
{
if(Npc_KnowsInfo(other,dia_addon_dexter_missingpeople))
{
return TRUE;
};
};
func void dia_dexter_vor_info()
{
AI_Output(other,self,"DIA_Dexter_Vor_15_00"); //A co máš teď v úmyslu? Zabít mě?
AI_Output(self,other,"DIA_Dexter_Vor_09_01"); //Jo. Ale tys nás odtamtud všechny dostal. Proto ti taky dám ještě jednu šanci. Zmizni, vypař se, udělej se neviditelným. Jdi a už se mi nikdy nepřipleť do cesty.
AI_Output(other,self,"DIA_Addon_Dexter_Vor_15_00"); //Musím zjistit, kde jsou zajatí lidé.
AI_Output(self,other,"DIA_Addon_Dexter_Vor_09_01"); //(směje se) Jo. Můžeš to zkusit ze mě vytřískat.
AI_Output(self,other,"DIA_Addon_Dexter_Vor_09_02"); //(výhružně) Bude lepší, když odejdeš.
AI_Output(self,other,"DIA_Dexter_Vor_09_02"); //Když tě tu ještě někdy uvidím, bez rozpaků tě zabiju.
DEXTER_NOMORESMALLTALK = TRUE;
AI_StopProcessInfos(self);
};
instance DIA_DEXTER_KILL(C_INFO)
{
npc = bdt_1060_dexter;
nr = 2;
condition = dia_dexter_kill_condition;
information = dia_dexter_kill_info;
permanent = FALSE;
important = TRUE;
};
func int dia_dexter_kill_condition()
{
if(Npc_IsInState(self,zs_talk) && ((DEXTER_NOMORESMALLTALK == TRUE) || (KNOWS_DEXTER == FALSE)))
{
return TRUE;
};
};
func void dia_dexter_kill_info()
{
if(KNOWS_DEXTER == TRUE)
{
AI_Output(self,other,"DIA_Addon_Dexter_Add_09_02"); //(útočně) Když je to tak, jak si přeješ ...
}
else
{
AI_Output(self,other,"DIA_Dexter_Kill_09_01"); //Ach jo, chlape. Udělal bys líp, kdyby ses tu neukazoval. Jsi ve špatnou chvíli na špatnym místě.
};
MIS_STECKBRIEFE = LOG_OBSOLETE;
b_checklog();
b_greg_comestodexter();
Info_ClearChoices(dia_dexter_kill);
Info_AddChoice(dia_dexter_kill,DIALOG_ENDE,dia_dexter_kill_ende);
};
func void dia_dexter_kill_ende()
{
var C_ITEM itm;
AI_StopProcessInfos(self);
b_attack(self,other,AR_SUDDENENEMYINFERNO,1);
itm = Npc_GetEquippedArmor(greg_nw);
if(Hlp_IsItem(itm,itar_pir_h_addon) == FALSE)
{
AI_EquipArmor(greg_nw,itar_pir_h_addon);
};
};
instance DIA_DEXTER_KOPF(C_INFO)
{
npc = bdt_1060_dexter;
nr = 5;
condition = dia_dexter_kopf_condition;
information = dia_dexter_kopf_info;
permanent = FALSE;
description = "Chceš moji hlavu? Pojď si pro ni!";
};
func int dia_dexter_kopf_condition()
{
if(Npc_KnowsInfo(other,dia_dexter_hallo))
{
return TRUE;
};
};
func void dia_dexter_kopf_info()
{
AI_Output(other,self,"DIA_Addon_Dexter_Add_15_00"); //Chceš moji hlavu? Pojď si pro ni!
AI_Output(self,other,"DIA_Addon_Dexter_Add_09_01"); //(útočně) Jak si přeješ.
dia_dexter_kill_ende();
};
instance DIA_DEXTER_PICKPOCKET(C_INFO)
{
npc = bdt_1060_dexter;
nr = 900;
condition = dia_dexter_pickpocket_condition;
information = dia_dexter_pickpocket_info;
permanent = TRUE;
description = PICKPOCKET_100;
};
func int dia_dexter_pickpocket_condition()
{
return c_beklauen(96,370);
};
func void dia_dexter_pickpocket_info()
{
Info_ClearChoices(dia_dexter_pickpocket);
Info_AddChoice(dia_dexter_pickpocket,DIALOG_BACK,dia_dexter_pickpocket_back);
Info_AddChoice(dia_dexter_pickpocket,DIALOG_PICKPOCKET,dia_dexter_pickpocket_doit);
};
func void dia_dexter_pickpocket_doit()
{
b_beklauen();
Info_ClearChoices(dia_dexter_pickpocket);
};
func void dia_dexter_pickpocket_back()
{
Info_ClearChoices(dia_dexter_pickpocket);
};
|
D
|
/+
+ Copyright (c) Charles Petzold, 1998.
+ Ported to the D Programming Language by Andrej Mitrovic, 2011.
+/
module SysMets4;
import core.runtime;
import std.algorithm : max, min;
import std.string;
import std.conv;
import std.utf : count, toUTFz;
auto toUTF16z(S)(S s)
{
return toUTFz!(const(wchar)*)(s);
}
pragma(lib, "gdi32.lib");
import win32.windef;
import win32.winuser;
import win32.wingdi;
struct SysMetrics
{
int index;
string label;
string desc;
}
enum sysMetrics =
[
SysMetrics(SM_CXSCREEN, "SM_CXSCREEN", "Screen width in pixels"),
SysMetrics(SM_CYSCREEN, "SM_CYSCREEN", "Screen height in pixels"),
SysMetrics(SM_CXVSCROLL, "SM_CXVSCROLL", "Vertical scroll width"),
SysMetrics(SM_CYHSCROLL, "SM_CYHSCROLL", "Horizontal scroll height"),
SysMetrics(SM_CYCAPTION, "SM_CYCAPTION", "Caption bar height"),
SysMetrics(SM_CXBORDER, "SM_CXBORDER", "Window border width"),
SysMetrics(SM_CYBORDER, "SM_CYBORDER", "Window border height"),
SysMetrics(SM_CXFIXEDFRAME, "SM_CXFIXEDFRAME", "Dialog window frame width"),
SysMetrics(SM_CYFIXEDFRAME, "SM_CYFIXEDFRAME", "Dialog window frame height"),
SysMetrics(SM_CYVTHUMB, "SM_CYVTHUMB", "Vertical scroll thumb height"),
SysMetrics(SM_CXHTHUMB, "SM_CXHTHUMB", "Horizontal scroll thumb width"),
SysMetrics(SM_CXICON, "SM_CXICON", "Icon width"),
SysMetrics(SM_CYICON, "SM_CYICON", "Icon height"),
SysMetrics(SM_CXCURSOR, "SM_CXCURSOR", "Cursor width"),
SysMetrics(SM_CYCURSOR, "SM_CYCURSOR", "Cursor height"),
SysMetrics(SM_CYMENU, "SM_CYMENU", "Menu bar height"),
SysMetrics(SM_CXFULLSCREEN, "SM_CXFULLSCREEN", "Full screen client area width"),
SysMetrics(SM_CYFULLSCREEN, "SM_CYFULLSCREEN", "Full screen client area height"),
SysMetrics(SM_CYKANJIWINDOW, "SM_CYKANJIWINDOW", "Kanji window height"),
SysMetrics(SM_MOUSEPRESENT, "SM_MOUSEPRESENT", "Mouse present flag"),
SysMetrics(SM_CYVSCROLL, "SM_CYVSCROLL", "Vertical scroll arrow height"),
SysMetrics(SM_CXHSCROLL, "SM_CXHSCROLL", "Horizontal scroll arrow width"),
SysMetrics(SM_DEBUG, "SM_DEBUG", "Debug version flag"),
SysMetrics(SM_SWAPBUTTON, "SM_SWAPBUTTON", "Mouse buttons swapped flag"),
SysMetrics(SM_CXMIN, "SM_CXMIN", "Minimum window width"),
SysMetrics(SM_CYMIN, "SM_CYMIN", "Minimum window height"),
SysMetrics(SM_CXSIZE, "SM_CXSIZE", "Min/Max/Close button width"),
SysMetrics(SM_CYSIZE, "SM_CYSIZE", "Min/Max/Close button height"),
SysMetrics(SM_CXSIZEFRAME, "SM_CXSIZEFRAME", "Window sizing frame width"),
SysMetrics(SM_CYSIZEFRAME, "SM_CYSIZEFRAME", "Window sizing frame height"),
SysMetrics(SM_CXMINTRACK, "SM_CXMINTRACK", "Minimum window tracking width"),
SysMetrics(SM_CYMINTRACK, "SM_CYMINTRACK", "Minimum window tracking height"),
SysMetrics(SM_CXDOUBLECLK, "SM_CXDOUBLECLK", "Double click x tolerance"),
SysMetrics(SM_CYDOUBLECLK, "SM_CYDOUBLECLK", "Double click y tolerance"),
SysMetrics(SM_CXICONSPACING, "SM_CXICONSPACING", "Horizontal icon spacing"),
SysMetrics(SM_CYICONSPACING, "SM_CYICONSPACING", "Vertical icon spacing"),
SysMetrics(SM_MENUDROPALIGNMENT, "SM_MENUDROPALIGNMENT", "Left or right menu drop"),
SysMetrics(SM_PENWINDOWS, "SM_PENWINDOWS", "Pen extensions installed"),
SysMetrics(SM_DBCSENABLED, "SM_DBCSENABLED", "Double-Byte Char Set enabled"),
SysMetrics(SM_CMOUSEBUTTONS, "SM_CMOUSEBUTTONS", "Number of mouse buttons"),
SysMetrics(SM_SECURE, "SM_SECURE", "Security present flag"),
SysMetrics(SM_CXEDGE, "SM_CXEDGE", "3-D border width"),
SysMetrics(SM_CYEDGE, "SM_CYEDGE", "3-D border height"),
SysMetrics(SM_CXMINSPACING, "SM_CXMINSPACING", "Minimized window spacing width"),
SysMetrics(SM_CYMINSPACING, "SM_CYMINSPACING", "Minimized window spacing height"),
SysMetrics(SM_CXSMICON, "SM_CXSMICON", "Small icon width"),
SysMetrics(SM_CYSMICON, "SM_CYSMICON", "Small icon height"),
SysMetrics(SM_CYSMCAPTION, "SM_CYSMCAPTION", "Small caption height"),
SysMetrics(SM_CXSMSIZE, "SM_CXSMSIZE", "Small caption button width"),
SysMetrics(SM_CYSMSIZE, "SM_CYSMSIZE", "Small caption button height"),
SysMetrics(SM_CXMENUSIZE, "SM_CXMENUSIZE", "Menu bar button width"),
SysMetrics(SM_CYMENUSIZE, "SM_CYMENUSIZE", "Menu bar button height"),
SysMetrics(SM_ARRANGE, "SM_ARRANGE", "How minimized windows arranged"),
SysMetrics(SM_CXMINIMIZED, "SM_CXMINIMIZED", "Minimized window width"),
SysMetrics(SM_CYMINIMIZED, "SM_CYMINIMIZED", "Minimized window height"),
SysMetrics(SM_CXMAXTRACK, "SM_CXMAXTRACK", "Maximum draggable width"),
SysMetrics(SM_CYMAXTRACK, "SM_CYMAXTRACK", "Maximum draggable height"),
SysMetrics(SM_CXMAXIMIZED, "SM_CXMAXIMIZED", "Width of maximized window"),
SysMetrics(SM_CYMAXIMIZED, "SM_CYMAXIMIZED", "Height of maximized window"),
SysMetrics(SM_NETWORK, "SM_NETWORK", "Network present flag"),
SysMetrics(SM_CLEANBOOT, "SM_CLEANBOOT", "How system was booted"),
SysMetrics(SM_CXDRAG, "SM_CXDRAG", "Avoid drag x tolerance"),
SysMetrics(SM_CYDRAG, "SM_CYDRAG", "Avoid drag y tolerance"),
SysMetrics(SM_SHOWSOUNDS, "SM_SHOWSOUNDS", "Present sounds visually"),
SysMetrics(SM_CXMENUCHECK, "SM_CXMENUCHECK", "Menu check-mark width"),
SysMetrics(SM_CYMENUCHECK, "SM_CYMENUCHECK", "Menu check-mark hight"),
SysMetrics(SM_SLOWMACHINE, "SM_SLOWMACHINE", "Slow processor flag"),
SysMetrics(SM_MIDEASTENABLED, "SM_MIDEASTENABLED", "Hebrew and Arabic enabled flag"),
SysMetrics(SM_MOUSEWHEELPRESENT, "SM_MOUSEWHEELPRESENT", "Mouse wheel present flag"),
SysMetrics(SM_XVIRTUALSCREEN, "SM_XVIRTUALSCREEN", "Virtual screen x origin"),
SysMetrics(SM_YVIRTUALSCREEN, "SM_YVIRTUALSCREEN", "Virtual screen y origin"),
SysMetrics(SM_CXVIRTUALSCREEN, "SM_CXVIRTUALSCREEN", "Virtual screen width"),
SysMetrics(SM_CYVIRTUALSCREEN, "SM_CYVIRTUALSCREEN", "Virtual screen height"),
SysMetrics(SM_CMONITORS, "SM_CMONITORS", "Number of monitors"),
SysMetrics(SM_SAMEDISPLAYFORMAT, "SM_SAMEDISPLAYFORMAT", "Same color format flag")
];
extern(Windows)
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
{
int result;
void exceptionHandler(Throwable e) { throw e; }
try
{
Runtime.initialize(&exceptionHandler);
result = myWinMain(hInstance, hPrevInstance, lpCmdLine, iCmdShow);
Runtime.terminate(&exceptionHandler);
}
catch(Throwable o)
{
MessageBox(null, o.toString().toUTF16z, "Error", MB_OK | MB_ICONEXCLAMATION);
result = 0;
}
return result;
}
int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
{
string appName = "SysMets4";
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style = CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc = &WndProc;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
wndclass.hInstance = hInstance;
wndclass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndclass.hbrBackground = cast(HBRUSH) GetStockObject(WHITE_BRUSH);
wndclass.lpszMenuName = NULL;
wndclass.lpszClassName = appName.toUTF16z;
if (!RegisterClass(&wndclass))
{
MessageBox(NULL, "This program requires Windows NT!", appName.toUTF16z, MB_ICONERROR);
return 0;
}
hwnd = CreateWindow(appName.toUTF16z, // window class name
"Get System Metrics No. 4", // window caption
WS_OVERLAPPEDWINDOW | WS_VSCROLL |
WS_HSCROLL, // window style
CW_USEDEFAULT, // initial x position
CW_USEDEFAULT, // initial y position
CW_USEDEFAULT, // initial x size
CW_USEDEFAULT, // initial y size
NULL, // parent window handle
NULL, // window menu handle
hInstance, // program instance handle
NULL); // creation parameters
ShowWindow(hwnd, iCmdShow);
UpdateWindow(hwnd);
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
extern(Windows)
LRESULT WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
static int cxChar, cxCaps, cyChar, cxClient, cyClient, iMaxWidth;
HDC hdc;
int x, y, iVertPos, iHorzPos, iPaintStart, iPaintEnd;
PAINTSTRUCT ps;
SCROLLINFO si;
TEXTMETRIC tm;
switch (message)
{
case WM_CREATE:
{
hdc = GetDC(hwnd);
scope(exit)
ReleaseDC(hwnd, hdc);
GetTextMetrics(hdc, &tm);
cxChar = tm.tmAveCharWidth;
cxCaps =(tm.tmPitchAndFamily & 1 ? 3 : 2) * cxChar / 2;
cyChar = tm.tmHeight + tm.tmExternalLeading;
// Save the width of the three columns
iMaxWidth = 40 * cxChar + 22 * cxCaps;
return 0;
}
case WM_SIZE:
{
cxClient = LOWORD(lParam);
cyClient = HIWORD(lParam);
// Set vertical scroll bar range and page size
si.fMask = SIF_RANGE | SIF_PAGE;
si.nMin = 0;
si.nMax = sysMetrics.length - 1; // actual max thumb position will be nMax - nPage
si.nPage = cyClient / cyChar; // how many scroll units there are in the client-area
// cyClient = height, cyChar = font height
SetScrollInfo(hwnd, SB_VERT, &si, TRUE);
// Set horizontal scroll bar range and page size
si.fMask = SIF_RANGE | SIF_PAGE;
si.nMin = 0;
si.nMax = 2 + iMaxWidth / cxChar;
si.nPage = cxClient / cxChar;
SetScrollInfo(hwnd, SB_HORZ, &si, TRUE);
return 0;
}
case WM_VSCROLL:
{
// Get all the vertical scroll bar information
si.fMask = SIF_ALL;
GetScrollInfo(hwnd, SB_VERT, &si);
// Save the position for comparison
iVertPos = si.nPos;
switch (LOWORD(wParam))
{
case SB_TOP:
si.nPos = si.nMin;
break;
case SB_BOTTOM:
si.nPos = si.nMax;
break;
case SB_LINEUP:
si.nPos -= 1;
break;
case SB_LINEDOWN:
si.nPos += 1;
break;
case SB_PAGEUP:
si.nPos -= si.nPage;
break;
case SB_PAGEDOWN:
si.nPos += si.nPage;
break;
case SB_THUMBTRACK:
si.nPos = si.nTrackPos; // track position immediately
break;
default:
break;
}
// Set the position and then retrieve it. Due to adjustments
// by Windows it may not be the same as the value set.
si.fMask = SIF_POS;
SetScrollInfo(hwnd, SB_VERT, &si, TRUE);
GetScrollInfo(hwnd, SB_VERT, &si);
// If the position has changed, scroll the window and update it
if (si.nPos != iVertPos)
{
ScrollWindow(hwnd, 0, cyChar *(iVertPos - si.nPos), NULL, NULL);
UpdateWindow(hwnd);
}
return 0;
}
case WM_HSCROLL:
{
// Get all the horizontal scroll bar information
si.fMask = SIF_ALL;
// Save the position for comparison
GetScrollInfo(hwnd, SB_HORZ, &si);
iHorzPos = si.nPos;
switch (LOWORD(wParam))
{
case SB_LINELEFT:
si.nPos -= 1;
break;
case SB_LINERIGHT:
si.nPos += 1;
break;
case SB_PAGELEFT:
si.nPos -= si.nPage;
break;
case SB_PAGERIGHT:
si.nPos += si.nPage;
break;
case SB_THUMBPOSITION:
si.nPos = si.nTrackPos; // user released thumb to new position
break;
default:
break;
}
// Set the position and then retrieve it. Due to adjustments
// by Windows it may not be the same as the value set.
si.fMask = SIF_POS;
SetScrollInfo(hwnd, SB_HORZ, &si, TRUE);
GetScrollInfo(hwnd, SB_HORZ, &si); // this will do bounds checking and retrieve(?)
// If the position has changed, scroll the window
if (si.nPos != iHorzPos)
{
ScrollWindow(hwnd, cxChar *(iHorzPos - si.nPos), 0, NULL, NULL);
}
return 0;
}
case WM_KEYDOWN:
{
switch (wParam)
{
case VK_HOME:
SendMessage(hwnd, WM_VSCROLL, SB_TOP, 0);
break;
case VK_END:
SendMessage(hwnd, WM_VSCROLL, SB_BOTTOM, 0);
break;
case VK_PRIOR:
SendMessage(hwnd, WM_VSCROLL, SB_PAGEUP, 0);
break;
case VK_NEXT:
SendMessage(hwnd, WM_VSCROLL, SB_PAGEDOWN, 0);
break;
case VK_UP:
SendMessage(hwnd, WM_VSCROLL, SB_LINEUP, 0);
break;
case VK_DOWN:
SendMessage(hwnd, WM_VSCROLL, SB_LINEDOWN, 0);
break;
case VK_LEFT:
SendMessage(hwnd, WM_HSCROLL, SB_LINEUP, 0);
break;
case VK_RIGHT:
SendMessage(hwnd, WM_HSCROLL, SB_LINEDOWN, 0);
break;
default:
break;
}
return 0;
}
case WM_PAINT:
{
hdc = BeginPaint(hwnd, &ps);
scope(exit) EndPaint(hwnd, &ps);
// Get vertical scroll bar position
si.fMask = SIF_POS;
GetScrollInfo(hwnd, SB_VERT, &si);
iVertPos = si.nPos;
// Get horizontal scroll bar position
GetScrollInfo(hwnd, SB_HORZ, &si);
iHorzPos = si.nPos;
// Find painting limits(optimization)
iPaintStart = max(0, iVertPos + ps.rcPaint.top / cyChar);
iPaintEnd = min(sysMetrics.length - 1, iVertPos + ps.rcPaint.bottom / cyChar);
auto index = iPaintStart;
foreach(metric; sysMetrics[iPaintStart .. iPaintEnd + 1])
{
x = cxChar *(1 - iHorzPos);
y = cyChar *(index - iVertPos);
TextOut(hdc, x, y, metric.label.toUTF16z, metric.label.count);
TextOut(hdc, x + 22 * cxCaps, y, metric.desc.toUTF16z, metric.desc.count);
SetTextAlign(hdc, TA_RIGHT | TA_TOP);
string value = to!string(GetSystemMetrics(metric.index));
TextOut(hdc, x + 22 * cxCaps + 40 * cxChar, y, value.toUTF16z, value.count);
SetTextAlign(hdc, TA_LEFT | TA_TOP);
index++;
}
return 0;
}
case WM_DESTROY:
PostQuitMessage(0);
return 0;
default:
}
return DefWindowProc(hwnd, message, wParam, lParam);
}
|
D
|
///* Licensed under the Apache License, Version 2.0 (the "License");
// * you may not use this file except in compliance with the License.
// * You may obtain a copy of the License at
// *
// * http://www.apache.org/licenses/LICENSE-2.0
// *
// * Unless required by applicable law or agreed to in writing, software
// * distributed under the License is distributed on an "AS IS" BASIS,
// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// * See the License for the specific language governing permissions and
// * limitations under the License.
// */
//
//module flow.idm.engine.impl.persistence.entity.data.impl.MybatisGroupDataManager;
//import hunt.collection.List;
//import hunt.collection.Map;
//
//import flow.idm.api.Group;
//import flow.idm.engine.IdmEngineConfiguration;
//import flow.idm.engine.impl.GroupQueryImpl;
//import flow.idm.engine.impl.persistence.entity.GroupEntity;
//import flow.idm.engine.impl.persistence.entity.GroupEntityImpl;
//import flow.idm.engine.impl.persistence.entity.data.AbstractIdmDataManager;
//import flow.idm.engine.impl.persistence.entity.data.GroupDataManager;
//import hunt.entity;
//import hunt.Exceptions;
//import flow.common.AbstractEngineConfiguration;
///**
// * @author Joram Barrez
// */
//
//class MybatisGroupDataManager : EntityRepository!( GroupEntityImpl , string) , GroupDataManager {
////class MybatisGroupDataManager extends AbstractIdmDataManager<GroupEntity> implements GroupDataManager {
//
// public IdmEngineConfiguration idmEngineConfiguration;
//
// this(IdmEngineConfiguration idmEngineConfiguration) {
// //super(idmEngineConfiguration);
// this.idmEngineConfiguration = idmEngineConfiguration;
// super(entityManagerFactory.currentEntityManager());
// }
//
// //
// //class<? extends GroupEntity> getManagedEntityClass() {
// // return GroupEntityImpl.class;
// //}
//
//
// public GroupEntity create() {
// return new GroupEntityImpl();
// }
//
//
//
// public List!Group findGroupByQueryCriteria(GroupQueryImpl query) {
// implementationMissing(false);
// return false;
// //return getDbSqlSession().selectList("selectGroupByQueryCriteria", query, getManagedEntityClass());
// }
//
//
// public long findGroupCountByQueryCriteria(GroupQueryImpl query) {
// implementationMissing(false);
// return 0;
// // return (Long) getDbSqlSession().selectOne("selectGroupCountByQueryCriteria", query);
// }
//
//
//
// public List!Group findGroupsByUser(String userId) {
// implementationMissing(false);
// return null;
// // return getDbSqlSession().selectList("selectGroupsByUserId", userId);
// }
//
//
//
// public List!Group findGroupsByPrivilegeId(String privilegeId) {
// implementationMissing(false);
// return null;
// // return getDbSqlSession().selectList("selectGroupsWithPrivilegeId", privilegeId);
// }
//
//
//
// public List!Group findGroupsByNativeQuery(Map!(string, Object) parameterMap) {
// implementationMissing(false);
// return null;
// //return getDbSqlSession().selectListWithRawParameter("selectGroupByNativeQuery", parameterMap);
// }
//
//
// public long findGroupCountByNativeQuery(Map!(string, Object) parameterMap) {
// implementationMissing(false);
// return 0;
// //return (Long) getDbSqlSession().selectOne("selectGroupCountByNativeQuery", parameterMap);
// }
//
//}
|
D
|
version(none)
{
void dummy()
{
}
}
|
D
|
a slight indication
evidence that helps to solve a problem
roll into a ball
|
D
|
module rest.iapiv1;
import vibe.d;
/++
Interface definition for JSON REST API.
+/
interface IApiV1
{
/+
POST /api/v1/run
{
source: "..."
}
Returns: output of compiled D program with success
flag.
{
output: "Program Output",
success: true/false
}
+/
struct RunOutput
{
string output;
bool success;
}
@method(HTTPMethod.POST)
@path("/api/v1/run")
RunOutput run(string source);
/+
GET /api/v1/source/CHAPTER/SECTION
Returns: source code (or empty if none) for the given
chapter and section. Also returns changed source code
if user switched between sections.
{
sourceCode: "..."
}
+/
struct SourceOutput
{
string sourceCode;
}
@method(HTTPMethod.GET)
@path("/api/v1/source/:chapter/:section")
SourceOutput getSource(string _chapter, int _section);
}
|
D
|
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.build/Chunk/Response+Chunk.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Async/Response+Async.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Method/Method.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Messages/Message.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/ResponseRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/BodyRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Messages/Message+CustomStringConvertible.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Middleware/Middleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/Response.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Middleware/Middleware+Chaining.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Method/Method+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/Response+Chunk.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/Body+Chunk.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/ChunkStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Version/Version.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/URI+Foundation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Response+Foundation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Client+Foundation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Request+Foundation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Responder/Responder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Responder/AsyncResponder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/AsyncServerWorker.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/CHTTPParser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ResponseParser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/RequestParser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/Server.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/TCPServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/TLSServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/BasicServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/AsyncServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/Serializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/ResponseSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/RequestSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ParserError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/ServerError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/SerializerError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/Body+Bytes.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Headers/Headers.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ParseResults.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Status/Status.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/Response+Redirect.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Client/HTTP+Client.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Client/Client.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Request/Request.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/ThreadsafeArray.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/Body.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.build/Response+Chunk~partial.swiftmodule : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Async/Response+Async.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Method/Method.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Messages/Message.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/ResponseRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/BodyRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Messages/Message+CustomStringConvertible.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Middleware/Middleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/Response.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Middleware/Middleware+Chaining.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Method/Method+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/Response+Chunk.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/Body+Chunk.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/ChunkStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Version/Version.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/URI+Foundation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Response+Foundation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Client+Foundation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Request+Foundation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Responder/Responder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Responder/AsyncResponder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/AsyncServerWorker.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/CHTTPParser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ResponseParser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/RequestParser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/Server.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/TCPServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/TLSServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/BasicServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/AsyncServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/Serializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/ResponseSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/RequestSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ParserError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/ServerError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/SerializerError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/Body+Bytes.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Headers/Headers.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ParseResults.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Status/Status.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/Response+Redirect.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Client/HTTP+Client.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Client/Client.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Request/Request.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/ThreadsafeArray.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/Body.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.build/Response+Chunk~partial.swiftdoc : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Async/Response+Async.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Method/Method.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Messages/Message.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/ResponseRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/BodyRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Messages/Message+CustomStringConvertible.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Middleware/Middleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/Response.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Middleware/Middleware+Chaining.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Method/Method+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/Response+Chunk.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/Body+Chunk.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Chunk/ChunkStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Version/Version.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/URI+Foundation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Response+Foundation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Client+Foundation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/FoundationClient/Request+Foundation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Responder/Responder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Responder/AsyncResponder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/AsyncServerWorker.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/CHTTPParser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ResponseParser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/RequestParser.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/Server.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/TCPServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/TLSServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/BasicServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/AsyncServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/Serializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/ResponseSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/RequestSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ParserError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/ServerError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Serializer/SerializerError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/Body+Bytes.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Headers/Headers.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Parser/ParseResults.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Status/Status.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Response/Response+Redirect.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Client/HTTP+Client.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Client/Client.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Request/Request.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Server/ThreadsafeArray.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Body/Body.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
|
D
|
instance XBS_7510_RATFORD(Npc_Default)
{
name[0] = "Рэтфорд";
guild = GIL_OUT;
id = 7510;
voice = 7;
flags = 0;
npcType = npctype_main;
B_SetAttributesToChapter(self,3);
level = 1;
fight_tactic = FAI_HUMAN_STRONG;
EquipItem(self,ItMw_ShortSword5);
EquipItem(self,ItRw_Sld_Bow);
CreateInvItems(self,ItRw_Arrow,10);
B_CreateAmbientInv(self);
B_SetNpcVisual(self,MALE,"Hum_Head_Fighter",Face_L_Ratford,BodyTex_L,ItAr_Sld_L);
Mdl_SetModelFatness(self,1);
Mdl_ApplyOverlayMds(self,"Humans_Relaxed.mds");
B_GiveNpcTalents(self);
B_SetFightSkills(self,60);
daily_routine = rtn_start_7510;
};
func void rtn_start_7510()
{
TA_Sit_Campfire(8,0,23,0,"WP_COAST_FOREST_04");
TA_Sit_Campfire(23,0,8,0,"WP_COAST_FOREST_04");
};
func void rtn_Base_7510()
{
TA_Stand_Guarding(8,0,23,0,"WP_COAST_BASE_RATFORD");
TA_Stand_Drinking(23,0,8,0,"WP_COAST_BASE_DRAX");
};
func void Rtn_DracarBoard_7510()
{
TA_Study_WP(8,0,23,0,"DRAKAR_SHIP_01");
TA_Study_WP(23,0,8,0,"DRAKAR_SHIP_01");
};
|
D
|
///////////////////////////////////////////////////////////////////////
// Info B_DIA_Addon_Myxir_TeachRequest
///////////////////////////////////////////////////////////////////////
func void B_DIA_Addon_Myxir_TeachRequest ()
{
AI_Output (other, self, "DIA_Addon_Myxir_TeachRequest_15_00"); //Naucz mnie tego dziwnego języka.
};
func void B_DIA_Addon_Myxir_TeachL1 ()
{
AI_Output (self, other, "DIA_Addon_Myxir_TeachL1_12_00"); //Zacznijmy od czegoś prostego. Nauczę cię języka wieśniaków.
AI_Output (self, other, "DIA_Addon_Myxir_TeachL1_12_01"); //Teksty pisane w języku wieśniaków traktują zwykle o sprawach przyziemnych: pracy, miłości, zaopatrzeniu czy żywności.
AI_Output (self, other, "DIA_Addon_Myxir_TeachL1_12_02"); //Język ten był powszechnie wykorzystywany w mieście. Tak więc będziesz w stanie zrozumieć większość tekstów, które tam znajdziesz.
};
func void B_DIA_Addon_Myxir_TeachL2 ()
{
AI_Output (self, other, "DIA_Addon_Myxir_TeachL2_12_00"); //Znasz już język wieśniaków. Język wojowników jest nieco trudniejszy.
AI_Output (self, other, "DIA_Addon_Myxir_TeachL2_12_01"); //Teksty pisane w języku wojowników dotyczą zwykle wojny i broni. Nauczysz się wielu przydatnych rzeczy.
};
func void B_DIA_Addon_Myxir_TeachL3 ()
{
AI_Output (self, other, "DIA_Addon_Myxir_TeachL3_12_00"); //Język kapłanów jest bardzo trudny do zrozumienia, ale chętnie przekażę ci jego zasady.
AI_Output (self, other, "DIA_Addon_Myxir_TeachL3_12_01"); //W języku kapłanów spisane są wszystkie święte pisma objaśniające historię i magię budowniczych.
AI_Output (self, other, "DIA_Addon_Myxir_TeachL3_12_02"); //Każdy z tych tekstów to prawdziwy skarb, o ile ktoś zrozumie ich znaczenie.
};
func void B_DIA_Addon_Myxir_TeachNoMore ()
{
AI_Output (self, other,"DIA_Addon_Myxir_TeachNoMore_12_00"); //Nie mogę ci na razie pokazać niczego więcej. Opanowałeś język budowniczych.
};
func void B_DIA_Addon_Myxir_Teach_LANGUAGE_X ()
{
AI_Output (self, other, "DIA_Addon_Myxir_Teach_LANGUAGE_X_12_00"); //Idź i sprawdź swoją nową wiedzę. Przekonasz się, że pisma budowniczych nie stanowią już dla ciebie zagadki.
};
|
D
|
import imageformats;
import game;
import colors;
class Graphics {
private Snake snake;
private Fruit fruit;
this(Snake snake, Fruit fruit) {
this.snake = snake;
this.fruit = fruit;
}
void draw() {
IFImage img = read_image("background.png", 0);
foreach (coordinate; snake.getParts()) {
setPixel(img, coordinate.x, coordinate.y, Colors.snake);
}
setPixel(img, fruit.location.x, fruit.location.y, Colors.fruit);
write_png("out.png", img.w, img.h, img.pixels);
}
}
void setPixel(IFImage img, int x, int y, RGB color) {
if (x >= img.w || y >= img.h) {
throw new OutOfBoundsException("Coordinates are out of bounds.");
}
int location = ((y * img.w) + x) * 3;
img.pixels[location] = color.red;
img.pixels[location + 1] = color.green;
img.pixels[location + 2] = color.blue;
return;
}
class OutOfBoundsException : Exception
{
this(string msg, string file = __FILE__, size_t line = __LINE__) {
super(msg, file, line);
}
}
|
D
|
module ppl.ast.expr.LiteralString;
import ppl.internal;
///
/// string ::= prefix '"' text '"'
/// prefix ::= nothing | "r" | "f" | "rf" | "fr"
///
/// All string literals are utf8 (logical length may be different to physical length)
///
/// r - regex string with no escapes eg. r"\bregex\w"
/// f - formatted string
///
/**
* LiteralString
*/
class LiteralString : Expression {
protected:
LLVMValueRef _llvmValue;
LiteralString _original;
public:
enum Encoding { UNKNOWN, UTF8, REGEX }
Type type;
string value;
Encoding enc = Encoding.UNKNOWN;
LLVMValueRef llvmValue() {
if(_original) return _original._llvmValue;
return _llvmValue;
}
void llvmValue(LLVMValueRef v) {
_llvmValue = v;
}
this() {
type = Pointer.of(new BasicType(Type.BYTE), 1);
enc = Encoding.UNKNOWN;
}
LiteralString copy() {
auto c = new LiteralString;
c.line = line;
c.column = column;
c.nid = nid;
c.type = type;
c.value = value;
c.enc = enc;
c._original = _original ? _original : this;
return c;
}
/// ASTNode
override bool isResolved() { return type.isKnown(); }
override NodeID id() const { return NodeID.LITERAL_STRING; }
override Type getType() { return type; }
/// Expression
override int priority() const {
return 15;
}
override CT comptime() {
// todo - this probably should be comptime since we know what it is at compile time
return CT.NO;
}
///
/// Fixme. These counts are probably wrong.
///
int calculateLength() {
final switch(enc) with(Encoding) {
case UNKNOWN: assert(false);
case UTF8: return value.length.as!int;
case REGEX: return value.length.as!int;
}
}
override string toString() {
string e = enc==Encoding.REGEX ? "r" : "";
return "String: %s\"%s\" (type=%s)".format(e, value, type);
}
}
|
D
|
/* Written by Richard Levitte (richard@levitte.org) for the OpenSSL
* project 2001.
*/
/* ====================================================================
* Copyright (c) 2001 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
*
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* openssl-core@openssl.org.
*
* 5. Products derived from this software may not be called "OpenSSL"
* nor may "OpenSSL" appear in their names without prior written
* permission of the OpenSSL Project.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
*
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* ====================================================================
*
* This product includes cryptographic software written by Eric Young
* (eay@cryptsoft.com). This product includes software written by Tim
* Hudson (tjh@cryptsoft.com).
*
*/
module deimos.openssl.ui;
import deimos.openssl._d_util;
version(OPENSSL_NO_DEPRECATED) {} else {
public import deimos.openssl.crypto;
}
public import deimos.openssl.safestack;
public import deimos.openssl.types;
extern (C):
nothrow:
/* Declared already in types.h */
/* typedef ui_st UI; */
/* typedef ui_method_st UI_METHOD; */
/* All the following functions return -1 or NULL on error and in some cases
(UI_process()) -2 if interrupted or in some other way cancelled.
When everything is fine, they return 0, a positive value or a non-NULL
pointer, all depending on their purpose. */
/* Creators and destructor. */
UI* UI_new();
UI* UI_new_method(const(UI_METHOD)* method);
void UI_free(UI* ui);
/* The following functions are used to add strings to be printed and prompt
strings to prompt for data. The names are UI_{add,dup}_<function>_string
and UI_{add,dup}_input_boolean.
UI_{add,dup}_<function>_string have the following meanings:
add add a text or prompt string. The pointers given to these
functions are used verbatim, no copying is done.
dup make a copy of the text or prompt string, then add the copy
to the collection of strings in the user interface.
<function>
The function is a name for the functionality that the given
string shall be used for. It can be one of:
input use the string as data prompt.
verify use the string as verification prompt. This
is used to verify a previous input.
info use the string for informational output.
error use the string for error output.
Honestly, there's currently no difference between info and error for the
moment.
UI_{add,dup}_input_boolean have the same semantics for "add" and "dup",
and are typically used when one wants to prompt for a yes/no response.
All of the functions in this group take a UI and a prompt string.
The string input and verify addition functions also take a flag argument,
a buffer for the result to end up with, a minimum input size and a maximum
input size (the result buffer MUST be large enough to be able to contain
the maximum number of characters). Additionally, the verify addition
functions takes another buffer to compare the result against.
The boolean input functions take an action description string (which should
be safe to ignore if the expected user action is obvious, for example with
a dialog box with an OK button and a Cancel button), a string of acceptable
characters to mean OK and to mean Cancel. The two last strings are checked
to make sure they don't have common characters. Additionally, the same
flag argument as for the string input is taken, as well as a result buffer.
The result buffer is required to be at least one byte long. Depending on
the answer, the first character from the OK or the Cancel character strings
will be stored in the first byte of the result buffer. No NUL will be
added, so the result is* not* a string.
On success, the all return an index of the added information. That index
is usefull when retrieving results with UI_get0_result(). */
int UI_add_input_string(UI* ui, const(char)* prompt, int flags,
char* result_buf, int minsize, int maxsize);
int UI_dup_input_string(UI* ui, const(char)* prompt, int flags,
char* result_buf, int minsize, int maxsize);
int UI_add_verify_string(UI* ui, const(char)* prompt, int flags,
char* result_buf, int minsize, int maxsize, const(char)* test_buf);
int UI_dup_verify_string(UI* ui, const(char)* prompt, int flags,
char* result_buf, int minsize, int maxsize, const(char)* test_buf);
int UI_add_input_boolean(UI* ui, const(char)* prompt, const(char)* action_desc,
const(char)* ok_chars, const(char)* cancel_chars,
int flags, char* result_buf);
int UI_dup_input_boolean(UI* ui, const(char)* prompt, const(char)* action_desc,
const(char)* ok_chars, const(char)* cancel_chars,
int flags, char* result_buf);
int UI_add_info_string(UI* ui, const(char)* text);
int UI_dup_info_string(UI* ui, const(char)* text);
int UI_add_error_string(UI* ui, const(char)* text);
int UI_dup_error_string(UI* ui, const(char)* text);
/* These are the possible flags. They can be or'ed together. */
/* Use to have echoing of input */
enum UI_INPUT_FLAG_ECHO = 0x01;
/* Use a default password. Where that password is found is completely
up to the application, it might for example be in the user data set
with UI_add_user_data(). It is not recommended to have more than
one input in each UI being marked with this flag, or the application
might get confused. */
enum UI_INPUT_FLAG_DEFAULT_PWD = 0x02;
/* The user of these routines may want to define flags of their own. The core
UI won't look at those, but will pass them on to the method routines. They
must use higher bits so they don't get confused with the UI bits above.
UI_INPUT_FLAG_USER_BASE tells which is the lowest bit to use. A good
example of use is this:
enum MY_UI_FLAG1 = (0x01 << UI_INPUT_FLAG_USER_BASE);
*/
enum UI_INPUT_FLAG_USER_BASE = 16;
/* The following function helps cona prompt. object_desc is a
textual short description of the object, for example "pass phrase",
and object_name is the name of the object (might be a card name or
a file name.
The returned string shall always be allocated on the heap with
OPENSSL_malloc(), and need to be free'd with OPENSSL_free().
If the ui_method doesn't contain a pointer to a user-defined prompt
constructor, a default string is built, looking like this:
"Enter {object_desc} for {object_name}:"
So, if object_desc has the value "pass phrase" and object_name has
the value "foo.key", the resulting string is:
"Enter pass phrase for foo.key:"
*/
char* UI_construct_prompt(UI* ui_method,
const(char)* object_desc, const(char)* object_name);
/* The following function is used to store a pointer to user-specific data.
Any previous such pointer will be returned and replaced.
For callback purposes, this function makes a lot more sense than using
ex_data, since the latter requires that different parts of OpenSSL or
applications share the same ex_data index.
Note that the UI_OpenSSL() method completely ignores the user data.
Other methods may not, however. */
void* UI_add_user_data(UI* ui, void* user_data);
/* We need a user data retrieving function as well. */
void* UI_get0_user_data(UI* ui);
/* Return the result associated with a prompt given with the index i. */
const(char)* UI_get0_result(UI* ui, int i);
/* When all strings have been added, process the whole thing. */
int UI_process(UI* ui);
/* Give a user interface parametrised control commands. This can be used to
send down an integer, a data pointer or a function pointer, as well as
be used to get information from a UI. */
int UI_ctrl(UI* ui, int cmd, c_long i, void* p, ExternC!(void function()) f);
/* The commands */
/* Use UI_CONTROL_PRINT_ERRORS with the value 1 to have UI_process print the
OpenSSL error stack before printing any info or added error messages and
before any prompting. */
enum UI_CTRL_PRINT_ERRORS = 1;
/* Check if a UI_process() is possible to do again with the same instance of
a user interface. This makes UI_ctrl() return 1 if it is redoable, and 0
if not. */
enum UI_CTRL_IS_REDOABLE = 2;
/* Some methods may use extra data */
auto UI_set_app_data()(UI* s,void* arg) { return UI_set_ex_data(s,0,arg); }
auto UI_get_app_data()(UI* s) { return UI_get_ex_data(s,0); }
static if (OPENSSL_VERSION_BEFORE(1, 1, 0))
{
int UI_get_ex_new_index(c_long argl, void* argp, CRYPTO_EX_new* new_func,
CRYPTO_EX_dup* dup_func, CRYPTO_EX_free* free_func);
}
else
{
auto UI_get_ex_new_index () (c_long l, void* p, CRYPTO_EX_new* newf,
CRYPTO_EX_dup* dupf, CRYPTO_EX_free* freef)
{
return CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_UI, l, p, newf, dupf, freef);
}
}
int UI_set_ex_data(UI* r,int idx,void* arg);
void* UI_get_ex_data(UI* r, int idx);
/* Use specific methods instead of the built-in one */
void UI_set_default_method(const(UI_METHOD)* meth);
const(UI_METHOD)* UI_get_default_method();
const(UI_METHOD)* UI_get_method(UI* ui);
const(UI_METHOD)* UI_set_method(UI* ui, const(UI_METHOD)* meth);
/* The method with all the built-in thingies */
UI_METHOD* UI_OpenSSL();
/* ---------- For method writers ---------- */
/* A method contains a number of functions that implement the low level
of the User Interface. The functions are:
an opener This function starts a session, maybe by opening
a channel to a tty, or by opening a window.
a writer This function is called to write a given string,
maybe to the tty, maybe as a field label in a
window.
a flusher This function is called to flush everything that
has been output so far. It can be used to actually
display a dialog box after it has been built.
a reader This function is called to read a given prompt,
maybe from the tty, maybe from a field in a
window. Note that it's called wth all string
structures, not only the prompt ones, so it must
check such things itself.
a closer This function closes the session, maybe by closing
the channel to the tty, or closing the window.
All these functions are expected to return:
0 on error.
1 on success.
-1 on out-of-band events, for example if some prompting has
been canceled (by pressing Ctrl-C, for example). This is
only checked when returned by the flusher or the reader.
The way this is used, the opener is first called, then the writer for all
strings, then the flusher, then the reader for all strings and finally the
closer. Note that if you want to prompt from a terminal or other command
line interface, the best is to have the reader also write the prompts
instead of having the writer do it. If you want to prompt from a dialog
box, the writer can be used to build up the contents of the box, and the
flusher to actually display the box and run the event loop until all data
has been given, after which the reader only grabs the given data and puts
them back into the UI strings.
All method functions take a UI as argument. Additionally, the writer and
the reader take a UI_STRING.
*/
/* The UI_STRING type is the data structure that contains all the needed info
about a string or a prompt, including test data for a verification prompt.
*/
struct ui_string_st;
alias ui_string_st UI_STRING;
/+mixin DECLARE_STACK_OF!(UI_STRING);+/
/* The different types of strings that are currently supported.
This is only needed by method authors. */
enum UI_string_types
{
UIT_NONE=0,
UIT_PROMPT, /* Prompt for a string */
UIT_VERIFY, /* Prompt for a string and verify */
UIT_BOOLEAN, /* Prompt for a yes/no response */
UIT_INFO, /* Send info to the user */
UIT_ERROR /* Send an error message to the user */
};
/* Create and manipulate methods */
UI_METHOD* UI_create_method(char* name);
void UI_destroy_method(UI_METHOD* ui_method);
int UI_method_set_opener(UI_METHOD* method, ExternC!(int function(UI* ui)) opener);
int UI_method_set_writer(UI_METHOD* method, ExternC!(int function(UI* ui, UI_STRING* uis)) writer);
int UI_method_set_flusher(UI_METHOD* method, ExternC!(int function(UI* ui)) flusher);
int UI_method_set_reader(UI_METHOD* method, ExternC!(int function(UI* ui, UI_STRING* uis)) reader);
int UI_method_set_closer(UI_METHOD* method, ExternC!(int function(UI* ui)) closer);
int UI_method_set_prompt_constructor(UI_METHOD* method, ExternC!(char* function(UI* ui, const(char)* object_desc, const(char)* object_name)) prompt_constructor);
ExternC!(int function(UI*)) UI_method_get_opener(UI_METHOD* method);
ExternC!(int function(UI*,UI_STRING*)) UI_method_get_writer(UI_METHOD* method);
ExternC!(int function(UI*)) UI_method_get_flusher(UI_METHOD* method);
ExternC!(int function(UI*,UI_STRING*)) UI_method_get_reader(UI_METHOD* method);
ExternC!(int function(UI*)) UI_method_get_closer(UI_METHOD* method);
ExternC!(char* function(UI*, const(char)*, const(char)*)) UI_method_get_prompt_constructor(UI_METHOD* method);
/* The following functions are helpers for method writers to access relevant
data from a UI_STRING. */
/* Return type of the UI_STRING */
UI_string_types UI_get_string_type(UI_STRING* uis);
/* Return input flags of the UI_STRING */
int UI_get_input_flags(UI_STRING* uis);
/* Return the actual string to output (the prompt, info or error) */
const(char)* UI_get0_output_string(UI_STRING* uis);
/* Return the optional action string to output (the boolean promtp instruction) */
const(char)* UI_get0_action_string(UI_STRING* uis);
/* Return the result of a prompt */
const(char)* UI_get0_result_string(UI_STRING* uis);
/* Return the string to test the result against. Only useful with verifies. */
const(char)* UI_get0_test_string(UI_STRING* uis);
/* Return the required minimum size of the result */
int UI_get_result_minsize(UI_STRING* uis);
/* Return the required maximum size of the result */
int UI_get_result_maxsize(UI_STRING* uis);
/* Set the result of a UI_STRING. */
int UI_set_result(UI* ui, UI_STRING* uis, const(char)* result);
/* A couple of popular utility functions */
int UI_UTIL_read_pw_string(char* buf,int length,const(char)* prompt,int verify);
int UI_UTIL_read_pw(char* buf,char* buff,int size,const(char)* prompt,int verify);
/* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes
* made after this point may be overwritten when the script is next run.
*/
void ERR_load_UI_strings();
/* Error codes for the UI functions. */
/* Function codes. */
enum UI_F_GENERAL_ALLOCATE_BOOLEAN = 108;
enum UI_F_GENERAL_ALLOCATE_PROMPT = 109;
enum UI_F_GENERAL_ALLOCATE_STRING = 100;
enum UI_F_UI_CTRL = 111;
enum UI_F_UI_DUP_ERROR_STRING = 101;
enum UI_F_UI_DUP_INFO_STRING = 102;
enum UI_F_UI_DUP_INPUT_BOOLEAN = 110;
enum UI_F_UI_DUP_INPUT_STRING = 103;
enum UI_F_UI_DUP_VERIFY_STRING = 106;
enum UI_F_UI_GET0_RESULT = 107;
enum UI_F_UI_NEW_METHOD = 104;
enum UI_F_UI_SET_RESULT = 105;
/* Reason codes. */
enum UI_R_COMMON_OK_AND_CANCEL_CHARACTERS = 104;
enum UI_R_INDEX_TOO_LARGE = 102;
enum UI_R_INDEX_TOO_SMALL = 103;
enum UI_R_NO_RESULT_BUFFER = 105;
enum UI_R_RESULT_TOO_LARGE = 100;
enum UI_R_RESULT_TOO_SMALL = 101;
enum UI_R_UNKNOWN_CONTROL_COMMAND = 106;
|
D
|
/*
** Lua - An Extensible Extension Language
** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
** See Copyright Notice at the end of this file
*/
module lib.lua.lua;
import lib.lua.luaconf;
extern (C):
const LUA_VERSION = "Lua 5.1";
const LUA_RELEASE = "Lua 5.1.4";
const LUA_VERSION_NUM = 501;
const LUA_COPYRIGHT = "Copyright (C) 1994-2008 Lua.org, PUC-Rio";
const LUA_AUTHORS = "R. Ierusalimschy, L. H. de Figueiredo & W. Celes";
/* mark for precompiled code (`<esc>Lua') */
const LUA_SIGNATURE = "\033Lua";
/* option for multiple returns in `lua_pcall' and `lua_call' */
const LUA_MULTRET = (-1);
/*
** pseudo-indices
*/
const LUA_REGISTRYINDEX = (-10000);
const LUA_ENVIRONINDEX = (-10001);
const LUA_GLOBALSINDEX = (-10002);
int lua_upvalueindex(int i) { return (LUA_GLOBALSINDEX-(i)); }
/* thread status; 0 is OK */
const LUA_YIELD = 1;
const LUA_ERRRUN = 2;
const LUA_ERRSYNTAX = 3;
const LUA_ERRMEM = 4;
const LUA_ERRERR = 5;
alias void lua_State;
alias int function(lua_State *L) lua_CFunction;
/*
** functions that read/write blocks when loading/dumping Lua chunks
*/
alias char *function(lua_State *L, void *ud, size_t *sz) lua_Reader;
alias int function(lua_State *L, void* p, size_t sz, void* ud) lua_Writer;
/*
** prototype for memory-allocation functions
*/
alias void *function(void *ud, void *ptr, size_t osize, size_t nsize) lua_Alloc;
/*
** basic types
*/
const LUA_TNONE = (-1);
const LUA_TNIL = 0;
const LUA_TBOOLEAN = 1;
const LUA_TLIGHTUSERDATA = 2;
const LUA_TNUMBER = 3;
const LUA_TSTRING = 4;
const LUA_TTABLE = 5;
const LUA_TFUNCTION = 6;
const LUA_TUSERDATA = 7;
const LUA_TTHREAD = 8;
/* minimum Lua stack available to a C function */
const LUA_MINSTACK = 20;
/* type of numbers in Lua */
alias LUA_NUMBER lua_Number;
/* type for integer functions */
alias LUA_INTEGER lua_Integer;
/*
** state manipulation
*/
lua_State* lua_newstate(lua_Alloc f, void *ud);
void lua_close(lua_State *L);
lua_State* lua_newthread(lua_State *L);
lua_CFunction lua_atpanic(lua_State *L, lua_CFunction panicf);
/*
** basic stack manipulation
*/
int lua_gettop(lua_State *L);
void lua_settop(lua_State *L, int idx);
void lua_pushvalue(lua_State *L, int idx);
void lua_remove(lua_State *L, int idx);
void lua_insert(lua_State *L, int idx);
void lua_replace(lua_State *L, int idx);
int lua_checkstack(lua_State *L, int sz);
void lua_xmove(lua_State *from, lua_State *to, int n);
/*
** access functions (stack -> C)
*/
int lua_isnumber(lua_State *L, int idx);
int lua_isstring(lua_State *L, int idx);
int lua_iscfunction(lua_State *L, int idx);
int lua_isuserdata(lua_State *L, int idx);
int lua_type(lua_State *L, int idx);
char* lua_typename(lua_State *L, int tp);
int lua_equal(lua_State *L, int idx1, int idx2);
int lua_rawequal(lua_State *L, int idx1, int idx2);
int lua_lessthan(lua_State *L, int idx1, int idx2);
lua_Number lua_tonumber(lua_State *L, int idx);
lua_Integer lua_tointeger(lua_State *L, int idx);
int lua_toboolean(lua_State *L, int idx);
char* lua_tolstring(lua_State *L, int idx, size_t *len);
size_t lua_objlen(lua_State *L, int idx);
lua_CFunction lua_tocfunction(lua_State *L, int idx);
void* lua_touserdata(lua_State *L, int idx);
lua_State* lua_tothread(lua_State *L, int idx);
void* lua_topointer(lua_State *L, int idx);
/*
** push functions (C -> stack)
*/
void lua_pushnil(lua_State *L);
void lua_pushnumber(lua_State *L, lua_Number n);
void lua_pushinteger(lua_State *L, lua_Integer n);
void lua_pushlstring(lua_State *L, char *s, size_t l);
void lua_pushstring(lua_State *L, char *s);
//char* lua_pushvfstring(lua_State *L, char *fmt, va_list argp);
//char* lua_pushfstring(lua_State *L, char *fmt, ...);
void lua_pushcclosure(lua_State *L, lua_CFunction fn, int n);
void lua_pushboolean(lua_State *L, int b);
void lua_pushlightuserdata(lua_State *L, void *p);
int lua_pushthread(lua_State *L);
/*
** get functions (Lua -> stack)
*/
void lua_gettable(lua_State *L, int idx);
void lua_getfield(lua_State *L, int idx, char *k);
void lua_rawget(lua_State *L, int idx);
void lua_rawgeti(lua_State *L, int idx, int n);
void lua_createtable(lua_State *L, int narr, int nrec);
void* lua_newuserdata(lua_State *L, size_t sz);
int lua_getmetatable(lua_State *L, int objindex);
void lua_getfenv(lua_State *L, int idx);
/*
** set functions (stack -> Lua)
*/
void lua_settable(lua_State *L, int idx);
void lua_setfield(lua_State *L, int idx, char *k);
void lua_rawset(lua_State *L, int idx);
void lua_rawseti(lua_State *L, int idx, int n);
int lua_setmetatable(lua_State *L, int objindex);
int lua_setfenv(lua_State *L, int idx);
/*
** `load' and `call' functions (load and run Lua code)
*/
void lua_call(lua_State *L, int nargs, int nresults);
int lua_pcall(lua_State *L, int nargs, int nresults, int errfunc);
int lua_cpcall(lua_State *L, lua_CFunction func, void *ud);
int lua_load(lua_State *L, lua_Reader reader, void *dt, char *chunkname);
int lua_dump(lua_State *L, lua_Writer writer, void *data);
/*
** coroutine functions
*/
int lua_yield(lua_State *L, int nresults);
int lua_resume(lua_State *L, int narg);
int lua_status(lua_State *L);
/*
** garbage-collection function and options
*/
const LUA_GCSTOP = 0;
const LUA_GCRESTART = 1;
const LUA_GCCOLLECT = 2;
const LUA_GCCOUNT = 3;
const LUA_GCCOUNTB = 4;
const LUA_GCSTEP = 5;
const LUA_GCSETPAUSE = 6;
const LUA_GCSETSTEPMUL = 7;
int lua_gc(lua_State *L, int what, int data);
/*
** miscellaneous functions
*/
int lua_error(lua_State *L);
int lua_next(lua_State *L, int idx);
void lua_concat(lua_State *L, int n);
lua_Alloc lua_getallocf(lua_State *L, void **ud);
void lua_setallocf(lua_State *L, lua_Alloc f, void *ud);
/*
** ===============================================================
** some useful macros
** ===============================================================
*/
void lua_pop(lua_State* L, int n) { lua_settop(L, -(n)-1); }
void lua_newtable(lua_State* L) { lua_createtable(L, 0, 0); }
void lua_register(lua_State* L, char* n, lua_CFunction f) { lua_pushcfunction(L, f); lua_setglobal(L, n); }
void lua_pushcfunction(lua_State* L, lua_CFunction f) { lua_pushcclosure(L, f, 0); }
size_t lua_strlen(lua_State* L, int i) { return lua_objlen(L, i); }
bool lua_isfunction(lua_State* L, int n) { return lua_type(L, n) == LUA_TFUNCTION; }
bool lua_istable(lua_State* L, int n) { return lua_type(L, n) == LUA_TTABLE; }
bool lua_islightuserdata(lua_State* L, int n) { return lua_type(L, n) == LUA_TLIGHTUSERDATA; }
bool lua_isnil(lua_State* L, int n) { return lua_type(L, n) == LUA_TNIL; }
bool lua_isboolean(lua_State* L, int n) { return lua_type(L, n) == LUA_TBOOLEAN; }
bool lua_isthread(lua_State* L, int n) { return lua_type(L, n) == LUA_TTHREAD; }
bool lua_isnone(lua_State* L, int n) { return lua_type(L, n) == LUA_TNONE; }
bool lua_isnoneornil(lua_State* L, int n) { return lua_type(L, n) <= 0; }
void lua_pushliteral(lua_State* L, string s) { lua_pushlstring(L, (s ~ "\0").ptr, s.length); }
void lua_setglobal(lua_State* L, char* s) { lua_setfield(L, LUA_GLOBALSINDEX, s); }
void lua_getglobal(lua_State* L, char* s) { lua_getfield(L, LUA_GLOBALSINDEX, s); }
char* lua_tostring(lua_State* L, int i) { return lua_tolstring(L, i, null); }
/*
** compatibility macros and functions
*/
/+
const lua_open() luaL_newstate()
const lua_getregistry(L) lua_pushvalue(L, LUA_REGISTRYINDEX)
const lua_getgccount(L) lua_gc(L, LUA_GCCOUNT, 0)
const lua_Chunkreader lua_Reader
const lua_Chunkwriter lua_Writer
/* hack */
void lua_setlevel (lua_State *from, lua_State *to);
+/
/*
** {======================================================================
** Debug API
** =======================================================================
*/
/*
** Event codes
*/
const LUA_HOOKCALL = 0;
const LUA_HOOKRET = 1;
const LUA_HOOKLINE = 2;
const LUA_HOOKCOUNT = 3;
const LUA_HOOKTAILRET = 4;
/*
** Event masks
*/
const LUA_MASKCALL = (1 << LUA_HOOKCALL);
const LUA_MASKRET = (1 << LUA_HOOKRET);
const LUA_MASKLINE = (1 << LUA_HOOKLINE);
const LUA_MASKCOUNT = (1 << LUA_HOOKCOUNT);
/* Functions to be called by the debuger in specific events */
alias void function(lua_State *L, lua_Debug *ar) lua_Hook;
int lua_getstack(lua_State *L, int level, lua_Debug *ar);
int lua_getinfo(lua_State *L, char *what, lua_Debug *ar);
char* lua_getlocal(lua_State *L, lua_Debug *ar, int n);
char* lua_setlocal(lua_State *L, lua_Debug *ar, int n);
char* lua_getupvalue(lua_State *L, int funcindex, int n);
char* lua_setupvalue(lua_State *L, int funcindex, int n);
int lua_sethook(lua_State *L, lua_Hook func, int mask, int count);
lua_Hook lua_gethook(lua_State *L);
int lua_gethookmask(lua_State *L);
int lua_gethookcount(lua_State *L);
struct lua_Debug {
int event;
const char *name; /* (n) */
const char *namewhat; /* (n) `global', `local', `field', `method' */
const char *what; /* (S) `Lua', `C', `main', `tail' */
const char *source; /* (S) */
int currentline; /* (l) */
int nups; /* (u) number of upvalues */
int linedefined; /* (S) */
int lastlinedefined; /* (S) */
char short_src[LUA_IDSIZE]; /* (S) */
/* private part */
int i_ci; /* active function */
};
/* }====================================================================== */
extern (D):
string licenseText = `
Copyright (C) 1994-2008 Lua.org, PUC-Rio. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
`;
import license;
static this()
{
licenseArray ~= licenseText;
}
|
D
|
fill quickly beyond capacity
fill or cover completely, usually with water
|
D
|
//****************************
// EVT_MONASTERY_SECRETLIBRARY_FUNC (Funktion, die bei öffnen der Geheimtür zur geheimen Bibliothek ausgeführt wird. normalerweise Kapitel 5)
//****************************
func void EVT_MONASTERY_SECRETLIBRARY_S1 ()
{
if (SecretLibraryIsOpen == FALSE)
{
B_GivePlayerXP (XP_OpenSecretLibrary);
SecretLibraryIsOpen = TRUE;
//Bibliothek
//**********
//vorgelegener Dungeon
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_01"); //Joly: keine Ratten, Skeletons drehen sonst ab!!!!!!!!!!
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_02");
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_04");
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_25");
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_27");
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_17");
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_15");
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_16");
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_03");
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_06");
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_08");
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_14");
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_11");
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_12");
Wld_InsertNpc (Skeleton, "FP_ROAM_NW_KDF_LIBRARY_10");
Wld_InsertNpc (SecretLibrarySkeleton, "FP_ROAM_NW_KDF_LIBRARY_29");
};
PrintScreen ("", -1, -1, FONT_Screen, 0);
};
|
D
|
/**
* Copyright © 2017 - 2019 Sergei Iurevich Filippov, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Neural network and related things.
*/
module neural.network;
// Standard D modules
import std.algorithm : all, each, swap;
import std.exception : enforce;
import std.json : JSONValue;
import std.math : isFinite;
import std.string : format;
// CUDA modules
import cuda.cudaruntimeapi;
import cuda.curand;
import cuda.cublas;
// DNN modules
import common;
import math;
import neural.layer;
immutable uint biasLength = 1; /// Number of bias weights per neuron.
immutable float biasWeight = 1.0; /// Weight of every bias connection.
version (unittest)
{
import std.algorithm : equal;
import std.json : parseJSON, toJSON;
import std.math : approxEqual;
private RandomPool randomPool;
static this()
{
randomPool = RandomPool(curandRngType_t.PSEUDO_DEFAULT, 0, 100_000);
}
static ~this()
{
randomPool.freeMem();
}
}
/**
* Random network generation parameters.
*/
struct NetworkParams
{
uint inputs; /// Number of network's inputs.
uint outputs; /// Number of network's outputs.
uint neurons; /// Number of neurons in every hidden layer.
uint layers; /// Number of hidden layers (excluding input and output layers).
float min = -1.0; /// Minimal generated weight.
float max = 1.0; /// Maximal generated weight.
invariant
{
assert (inputs >= 1);
assert (outputs >= 1);
assert (neurons >= 1);
assert (layers >= 2); // There must be at least input and output layers
assert (max >= min);
assert (isFinite(min));
assert (isFinite(max));
}
@property LayerParams inputParams() const @nogc nothrow pure @safe
{
LayerParams result = { min : this.min, max : this.max, inputs : this.inputs, neurons : this.neurons };
return result;
}
@property LayerParams hiddenParams() const @nogc nothrow pure @safe
{
LayerParams result = { min : this.min, max : this.max, inputs : this.neurons, neurons : this.neurons };
return result;
}
@property LayerParams outputParams() const @nogc nothrow pure @safe
{
LayerParams result = { min : this.min, max : this.max, inputs : this.neurons, neurons : this.outputs };
return result;
}
}
/**
* Simple feedforward neural network.
*/
struct Network
{
private Layer[] _layers; /// Layers of the network.
/**
* Returns: The total number of layers, including input and output layers.
*/
@property ulong depth() const @nogc nothrow pure @safe
{
return _layers.length;
}
/**
* Returns: The input (the first) layer.
*/
@property const(Layer) inputLayer() const @nogc nothrow
{
return _layers[0];
}
/**
* Returns: All hidden layers of the network.
*/
@property const(Layer[]) hiddenLayers() const @nogc nothrow pure @safe
{
return _layers[1 .. $-1];
}
/**
* Returns: The output (the last) layer.
*/
@property const(Layer) outputLayer() const @nogc nothrow
{
return _layers[$ - 1];
}
/**
* Returns: All network's layers.
*/
@property const(Layer[]) layers() const @nogc nothrow pure @safe
{
return _layers;
}
/**
* Returns: How many input values the network takes.
*/
@property uint inputs() const @nogc nothrow
{
return inputLayer.inputs;
}
/**
* Returns: How many output values the network returns.
*/
@property uint outputs() const @nogc nothrow
{
return outputLayer.neurons;
}
/**
* Returns: The number of neurons per a hidden layer.
*/
@property uint width() const @nogc nothrow
{
return inputLayer.neurons;
}
/**
* Constructs a random neural network acording to the given parameters.
*
* Params:
* params = Network parameters.
* pool = Pseudorandom number generator.
*/
this(in NetworkParams params, RandomPool pool)
in
{
assert (¶ms, "Neural network parameters are incorrect.");
}
body
{
scope(failure) freeMem();
_layers = nogcMalloc!Layer(params.layers);
_layers[0] = Layer(params.inputParams, pool);
_layers[$ - 1] = Layer(params.outputParams, pool);
_layers[1 .. $-1].each!((ref x) => x = Layer(params.hiddenParams, pool));
}
///
unittest
{
mixin(writeTest!__ctor);
auto pool = RandomPool(curandRngType_t.PSEUDO_DEFAULT, 0, 1000);
NetworkParams params = { layers : 4, inputs : 2, neurons : 3, outputs : 1 };
Network network = Network(params, pool);
scope(exit) network.freeMem();
with (network)
{
assert (depth == params.layers);
assert (width == params.neurons);
assert (inputLayer.inputs == params.inputs);
assert (inputLayer.neurons == params.neurons);
assert (outputLayer.inputs == params.neurons);
assert (outputLayer.neurons == params.outputs);
assert (hiddenLayers.all!(l => l.inputs == params.neurons));
assert (hiddenLayers.all!(l => l.neurons == params.neurons));
// Not that network should test layers, but need to check whether network creates all layers or not
assert (
_layers.all!(
l => l.weights.all!(
w => isFinite(w)))
);
assert (
_layers.all!(
l => l.weights.all!(
w => w.between(params.min, params.max)))
);
}
}
this(in JSONValue json)
{
scope(failure) freeMem();
auto JSONLayers = json["Layers"].array;
_layers = nogcMalloc!Layer(JSONLayers.length);
foreach(i, l; JSONLayers)
_layers[i] = Layer(l);
}
unittest
{
mixin(writeTest!__ctor);
immutable string str = `{
"Inputs": 3,
"Depth": 3,
"Width": 2,
"Outputs": 1,
"Layers": [
{
"Inputs": 3,
"Neurons": 2,
"Weights": [0, 1, 2, 3, 4, 5, 6, 7]
},
{
"Inputs": 2,
"Neurons": 2,
"Weights": [0, 1, 2, 3, 4, 5]
},
{
"Inputs": 2,
"Neurons": 1,
"Weights": [0, 1, 2]
}
]
}`;
JSONValue json = parseJSON(str);
auto network = Network(json);
scope(exit) network.freeMem();
with (network)
{
assert (inputs == 3);
assert (width == 2);
assert (depth == 3);
assert (outputs == 1);
}
}
JSONValue json() const
{
JSONValue result = [
"Inputs" : inputs,
"Depth" : depth,
"Outputs" : outputs,
"Width" : width
];
JSONValue[] layersJSON;
foreach(layer; layers)
layersJSON ~= layer.json();
result["Layers"] = layersJSON;
return result;
}
unittest
{
mixin(writeTest!json);
immutable string str = `{
"Inputs": 3,
"Depth": 3,
"Width": 2,
"Outputs": 1,
"Layers": [
{
"Inputs": 3,
"Neurons": 2,
"Weights": [0, 1, 2, 3, 4, 5, 6, 7]
},
{
"Inputs": 2,
"Neurons": 2,
"Weights": [0, 1, 2, 3, 4, 5]
},
{
"Inputs": 2,
"Neurons": 1,
"Weights": [0, 1, 2]
}
]
}`;
JSONValue json = parseJSON(str);
auto network = Network(json);
scope(exit) network.freeMem();
auto networkJSON = network.json;
assert (
networkJSON.toJSON ==
`{"Depth":3,"Inputs":3,"Layers":[{"Inputs":3,"Neurons":2,"Weights":[0,1,2,3,4,5,6,7]},{"Inputs":2,"Neurons":2,"Weights":[0,1,2,3,4,5]},{"Inputs":2,"Neurons":1,"Weights":[0,1,2]}],"Outputs":1,"Width":2}`
);
}
/**
* Free memory.
*
* For the reason how D works with structs memory freeing moved from destructor to
* the the distinct function. Either allocating structs on stack or in heap or both
* causes spontaneous destructors calls. Apparently structs are not intended
* to be used with dynamic memory, probably it should be implemented as a class.
*/
void freeMem() nothrow
{
_layers.each!(x => x.freeMem());
if (_layers.length)
nogcFree(_layers);
}
static void copy(in Network src, Network dst)
{
src._layers.each!((i, x) => Layer.copy(x, dst._layers[i]));
}
/**
* Activate the network.
*
* Claculates the result of feeding an input matrix to the network.
*
* Params:
* inputs = Input matrix of size m x k, where k is the number of neuron connections (incl. bias).
* outputs = Output matrix of size m x n, where n is the number of output neurons.
* cublasHandle = Cublas handle.
*/
void opCall(in Matrix inputs, Matrix outputs, cublasHandle_t cublasHandle) const
{
enforce(
inputs.cols == this.inputs,
"Inputs must have %d columns, got %d".format(this.inputs, inputs.cols)
);
auto inputsE = Matrix(inputs.rows, inputs.cols + biasLength); // Extended
scope(exit) inputsE.freeMem();
inputsE.colSlice(0, inputs.cols).values[0 .. $] = inputs.values[0 .. $];
cudaFill(inputsE.colSlice(inputsE.cols - biasLength, inputsE.cols), biasWeight);
auto prev = Matrix(inputs.rows, width + biasLength);
scope(exit) prev.freeMem();
auto next = Matrix(inputs.rows, width + biasLength);
scope(exit) next.freeMem();
cudaFill(prev.colSlice(prev.cols - biasLength, prev.cols), biasWeight);
cudaFill(next.colSlice(next.cols - biasLength, next.cols), biasWeight);
inputLayer()(inputsE, prev.colSlice(0, prev.cols - biasLength), cublasHandle);
foreach (l; hiddenLayers)
{
l(prev, next.colSlice(0, next.cols - biasLength), cublasHandle);
swap(prev, next);
}
outputLayer()(prev, outputs, cublasHandle, false);
}
///
unittest
{
// mixin(writeTest!opCall);
//
// immutable NetworkParams params = { inputs : 2, outputs : 1, neurons : 3, layers : 5 };
//
// immutable measures = 4;
//
// auto inputs = Matrix(measures, params.inputs);
// scope(exit) inputs.freeMem();
//
// auto outputs = Matrix(measures, params.outputs);
// scope(exit) outputs.freeMem();
//
// auto network = Network(params, randomPool);
// scope(exit) network.freeMem();
//
// inputs[0 .. $].each!"a = i + 1";
//
// // Reinitializing network with deterministic values for testing
// with (network)
// {
// _layers[0].weights.each!"a = 0.1 * (i + 1)";
// _layers[1].weights.each!"a = -0.1 * (i + 1)";
// _layers[2].weights.each!"a = 0.1 * (i + 1)";
// _layers[3].weights.each!"a = -0.1 * (i + 1)";
// _layers[4].weights.each!"a = i";
// }
//
// network(inputs, outputs, cublasHandle);
// cudaDeviceSynchronize();
//
// immutable float[] result = [4.497191, 4.500117, 4.501695, 4.502563];
// assert (equal!approxEqual(outputs, result));
}
/**
* Cross over parents to generate an offspring. The operation is performed in place.
*
* As the constructor allocates new memory for a new layer, to optimize performance and avoid memory reallocations
* this operation is performed in place assuming the calling struct is an offspring.
*
* Currently only BLX-α crossover is implemented and this is a default algorithm.
*
* From more details look $(LINK2 ../math/kernels.html#cudaBLXa,math.kernels.cudaBLXa).
*
* Params:
* x = The first parent.
* y = The second parent.
* a = Minimal crossover value.
* b = Maximal crossover value.
* alpha = α parameter of BLX-α crossover.
* pool = Pool of random bits. It is supposed to improve performance of a crossover as the cuRAND acheives maximum
* efficiency generating large quantities of numbers.
*/
void crossover(in Network x, in Network y, in float a, in float b, in float alpha, RandomPool pool)
in
{
assert (this.depth == x.depth);
assert (this.depth == y.depth);
assert (a <= b);
assert (alpha >= 0, "α parameter must be >= 0");
}
body
{
_layers.each!(
(i, ref l) => l.crossover(x._layers[i], y._layers[i], a, b, alpha, pool)
);
}
///
unittest
{
mixin(writeTest!crossover);
import std.algorithm : max, min;
import std.math : abs;
immutable NetworkParams params = {
inputs : 20,
outputs : 10,
neurons : 30,
layers : 10,
min : -1.0e3,
max : 1.0e3
};
auto pool = RandomPool(curandRngType_t.PSEUDO_DEFAULT, 0, 10000);
immutable alpha = 0.5;
auto parent1 = Network(params, pool);
scope(exit) parent1.freeMem();
auto parent2 = Network(params, pool);
scope(exit) parent2.freeMem();
auto offspring = Network(params, pool);
scope(exit) offspring.freeMem();
offspring.crossover(parent1, parent2, params.min, params.max, alpha, pool);
cudaDeviceSynchronize();
with (offspring)
{
assert (
_layers.all!(
l => l.weights.all!(
x => isFinite(x)))
);
foreach (i, l; _layers)
foreach (j, w; l.weights)
{
float diff = abs(parent1._layers[i].weights[j] - parent2._layers[i].weights[j]);
float _min = min(parent1._layers[i].weights[j], parent2._layers[i].weights[j]);
float _max = max(parent1._layers[i].weights[j], parent2._layers[i].weights[j]);
_min -= alpha * diff;
_max += alpha * diff;
_min = max(_min, params.min);
_max = min(_max, params.max);
assert (w >= _min && w <= _max);
}
}
}
}
|
D
|
import std.stdio;
import des.app;
import draw.window;
import des.util.logsys;
void main()
{
logger.info( "app start" );
auto app = new DesApp;
app.addWindow({ return new MainWindow( "diploma simulator", ivec2(800,600) ); });
while( app.isRunning ) app.step();
app.destroy();
logger.info( "app finish" );
}
|
D
|
//*********************************************************
// EXIT
//*********************************************************
instance DIA_700_Lee_Exit (C_INFO)
{
npc = Sld_700_Lee;
nr = 999;
condition = DIA_700_Lee_Exit_Condition;
information = DIA_700_Lee_Exit_Info;
important = 0;
permanent = 1;
description = DIALOG_ENDE;
};
FUNC int DIA_700_Lee_Exit_Condition()
{
return TRUE;
};
FUNC VOID DIA_700_Lee_Exit_Info()
{
B_StopProcessInfos (self);
};
//*********************************************************
// Greet
//*********************************************************
instance DIA_Lee_Hello(C_INFO)
{
npc = Sld_700_Lee;
nr = 1;
condition = DIA_Lee_Hello_Condition;
information = DIA_Lee_Hello_Info;
permanent = 0;
description = "Paskudnie to wygląda.";
};
FUNC int DIA_Lee_Hello_Condition()
{
return 1;
};
FUNC VOID DIA_Lee_Hello_Info()
{
AI_Output (other, self,"DIA_Lee_Hello_15_00"); //Paskudnie to wygląda.
AI_Output (self, other,"DIA_Lee_Hello_08_01"); //O czym Ty mówisz?
AI_Output (other, self,"DIA_Lee_Hello_15_02"); //O twojej ranie, przecież nie o mordzie tego wielkoluda w sali z klatkami.
AI_Output (self, other,"DIA_Lee_Hello_08_03"); //Masz szczęście, że w bitwie Orik dostał przez łeb i stępiał mu słuch.
AI_Output (self, other,"DIA_Lee_Hello_08_04"); //Co do rany to magowie uratowali mi tyłek, dlatego nadal tu jestem. Zawsze spłacam zaciągnięte długi.
};
//*********************************************************
instance DIA_Lee_Who(C_INFO)
{
npc = Sld_700_Lee;
nr = 2;
condition = DIA_Lee_Who_Condition;
information = DIA_Lee_Who_Info;
important = 0;
permanent = 0;
description = "Kim jesteś?";
};
FUNC int DIA_Lee_Who_Condition()
{
if (Npc_KnowsInfo(hero,DIA_Lee_Hello))
{
return 1;
};
};
FUNC VOID DIA_Lee_Who_Info()
{
AI_Output (other, self,"DIA_Lee_Who_15_00"); //Kim jesteś?
AI_Output (self, other,"DIA_Lee_Who_08_01"); //Kiedyś byłem generałem, teraz jestem najemnikiem. Możesz nazywać mnie Lee.
AI_Output (other, self,"DIA_Lee_Who_15_02"); //Ciekawa historia...
AI_Output (self, other,"DIA_Lee_Who_08_03"); //Raczej nudna, ale to nie Twoja sprawa.
B_StopProcessInfos(self);
};
//*********************************************************
instance DIA_Lee_Cord (C_INFO)
{
npc = Sld_700_Lee;
nr = 3;
condition = DIA_Lee_Cord_Condition;
information = DIA_Lee_Cord_Info;
important = 1;
description = "";
};
FUNC int DIA_Lee_Cord_Condition()
{
if (Npc_KnowsInfo(hero,DIA_Lee_Who))&&(Npc_KnowsInfo(hero,DIA_Cord_Question))
{
return 1;
};
};
FUNC VOID DIA_Lee_Cord_Info()
{
lee_offer = TRUE;
AI_Output (self, other,"DIA_Lee_Cord_08_01"); //Cord mówił, że spotkałeś Jarvisa. Dałbyś radę znowu go odnaleźć?
AI_Output (other, self,"DIA_Lee_Cord_15_02"); //Pewnie. A dlaczego pytasz?
AI_Output (self, other,"DIA_Lee_Cord_08_03"); //Muszę coś mu przekazać, a brakuje mi ludzi. Co Ty na to?
AI_Output (other, self,"DIA_Lee_Cord_15_04"); //Pod jednym warunkiem. Zapłacisz mi za poprzednią wiadomość od Jarvisa.
AI_Output (other, self,"DIA_Lee_Cord_15_05"); //Miałem otrzymać tyle rudy ile udźwignę, a Cord zwyczajnie mnie spławił.
AI_Output (self, other,"DIA_Lee_Cord_08_06"); //Zrobimy tak. Dam Ci teraz 1000 bryłek. Jeżeli zrobisz to o co Cię poproszę, otrzymasz drugie tyle i widoki na więcej.
AI_Output (self, other,"DIA_Lee_Cord_08_07"); //Co Ty na to?
Info_ClearChoices (DIA_Lee_Cord);
Info_AddChoice (DIA_Lee_Cord, "Rudy nigdy za wiele.", DIA_Lee_Cord_Yes);
Info_AddChoice (DIA_Lee_Cord, "Zastanowię się.", DIA_Lee_Cord_No);
};
// ---------------------------Yes----------------------------------------
FUNC VOID DIA_Lee_Cord_Yes()
{
lee_offer_condition = 1;
CreateInvItems (self,ItMiNugget,1000);//ruda
B_GiveInvItems (self, other, ItMiNugget, 1000);
AI_Output (other, self,"DIA_Lee_Cord_Yes_15_01"); //Rudy nigdy za wiele.
AI_Output (self, other,"DIA_Lee_Cord_Yes_08_02"); //Też tak mówię.
AI_Output (self, other,"DIA_Lee_Cord_Yes_08_03"); //Powiedz Jarvisowi, że potrzebujemy jeszcze jednego 'wzorca'. Będzie wiedział o co chodzi.
AI_Output (other, self,"DIA_Lee_Cord_Yes_15_04"); //Co to za wzorzec?
AI_Output (self, other,"DIA_Lee_Cord_Yes_08_05"); //Gdybym to zdradził, musiałbym Cię zabić.
AI_Output (self, other,"DIA_Lee_Cord_Yes_08_06"); //Ruszaj i pamiętaj, że im mniej wiesz, tym lepiej dla ciebie.
B_LogEntry(CH3_NON_Mercenary, "Dziwna sprawa z tymi najemnikami. Coś kombinują, ale na razie nic z nich nie wyciągnąłem. Mam znowu odnaleźć Jarvisa i przekazać mu, że najemnicy potrzebują jeszcze jednego wzorca. ");
B_StopProcessInfos(self);
};
// ---------------------------No----------------------------------------
FUNC VOID DIA_Lee_Cord_No()
{
AI_Output (other, self,"DIA_Lee_Cord_No_15_01"); //Zastanowię się.
AI_Output (self, other,"DIA_Lee_Cord_No_08_02"); //Skoro musisz.
B_StopProcessInfos(self);
};
instance DIA_Lee_Cord2 (C_INFO)
{
npc = Sld_700_Lee;
nr = 3;
condition = DIA_Lee_Cord2_Condition;
information = DIA_Lee_Cord_Yes;
description = "Zmieniłem zdanie.";
};
func int DIA_Lee_Cord2_Condition()
{
if (Npc_KnowsInfo(hero, DIA_Lee_Cord))&&(!lee_offer_condition)
{
return 1;
};
};
//*********************************************************
instance DIA_Lee_Trap(C_INFO)
{
npc = Sld_700_Lee;
nr = 4;
condition = DIA_Lee_Trap_Condition;
information = DIA_Lee_Trap_Info;
important = 0;
permanent = 0;
description = "Musimy porozmawiać.";
};
FUNC int DIA_Lee_Trap_Condition()
{
if (Npc_KnowsInfo(hero,DIA_Jarvis_LeeCamp))
{
return 1;
};
};
FUNC VOID DIA_Lee_Trap_Info()
{
AI_Output (other, self,"DIA_Lee_Trap_15_00"); //Musimy porozmawiać.
AI_Output (self, other,"DIA_Lee_Trap_08_01"); //Widziałem Jarvisa. Co się stało?
AI_Output (other, self,"DIA_Lee_Trap_15_02"); //Hrabia zdobył drugi kawałek ornamentu...
AI_Output (self, other,"DIA_Lee_Trap_08_03"); //Skąd... Jarvis! Zawsze miał za długi język, chyba powinienem mu go obciąć.
AI_Output (other, self,"DIA_Lee_Trap_15_04"); //Nic już nie zmieni faktu, że ja też jestem w to wplątany. Poza tym mam do porozmawiania z tym Hrabią. Powiedzmy, że to sprawy osobiste.
AI_Output (other, self,"DIA_Lee_Trap_15_05"); //O co chodzi z ornamentami?
AI_Output (self, other,"DIA_Lee_Trap_08_06"); //Dobra i tak już wiesz więcej, niż powinieneś.
AI_Output (self, other,"DIA_Lee_Trap_08_07"); //Byliśmy najemnikami na usługach magów wody. Kiedy strażnicy zaatakowali obóz, walczyliśmy do końca. Nie było łatwo...
AI_Output (self, other,"DIA_Lee_Trap_08_08"); //Dostałem przez żebra, reszta też nie wyglądała najlepiej. Strażników nadal przybywało. Musieli znaleźć tajne przejście przez góry.
AI_Output (self, other,"DIA_Lee_Trap_08_09"); //Magowie odprawili rytuał teleportacji. W ostatniej chwili widząc, że już po nas Saturas objął i nas zaklęciem.
AI_Output (self, other,"DIA_Lee_Trap_08_10"); //Uratował mi życie, a ja zawsze spłacam długi. Riordian poskładał nas do kupy.
AI_Output (other, self,"DIA_Lee_Trap_15_11"); //Ale co to ma wspólnego z ornamentami?
AI_Output (self, other,"DIA_Lee_Trap_08_12"); //Magowie wody wyniuchali jakiś sposób na wydostanie się z Kolonii.
AI_Output (self, other,"DIA_Lee_Trap_08_13"); //Odczytali piktogramy na ścianach świątyni. Saturas zdołał utworzyć mapę na podstawie zapisków na ścianach.
AI_Output (self, other,"DIA_Lee_Trap_08_14"); //Mapa wskazuje miejsca ukrycia czterech części ornamentu, którego potrzebują magowie.
AI_Output (self, other,"DIA_Lee_Trap_08_15"); //Saturas powiedział, że jeżeli pomożemy im odnaleźć kawałki ornamentu, to będziemy kwita.
AI_Output (self, other,"DIA_Lee_Trap_08_16"); //Dlatego pomagam magom. Kiedy tylko z nimi skończę, wracam do Nowego Obozu skopać dupy strażnikom i przywrócić wolność najemnikom.
AI_Output (self, other,"DIA_Lee_Trap_08_17"); //Potem wyniesiemy się z tej zapadłej dziury, bo mam do spłacenia jeszcze jeden dług...
AI_Output (other, self,"DIA_Lee_Trap_15_18"); //Nie chcę być ciekawski, ale co to za dług?
AI_Output (self, other,"DIA_Lee_Trap_08_19"); //To nie jest żadna tajemnica.
AI_Output (self, other,"DIA_Lee_Trap_08_20"); //Byłem kiedyś generałem i przyjacielem Rhobara.
AI_Output (self, other,"DIA_Lee_Trap_08_21"); //Magnatom nie spodobało się to, że zwykły żołnierz jest powiernikiem króla. Do tego za tym wojakiem stała cała armia Myrtany. Żołnierze poszliby za mną w ogień.
AI_Output (self, other,"DIA_Lee_Trap_08_22"); //Magnaci uknuli spisek, którego ofiarą padła żona Rhobara. Oczywiście zabito ją moim sztyletem.
AI_Output (self, other,"DIA_Lee_Trap_08_23"); //Proces był krótki. Rhobar ze względu na zasługi i przyjaźń zesłał mnie do Kolonii.
AI_Output (self, other,"DIA_Lee_Trap_08_24"); //Mam zamiar wrócić do Myrtany i odpłacić magnatom dobrym za nadobne.
AI_Output (other, self,"DIA_Lee_Trap_15_25"); //Życia upływa w strugach gówna, przyjacielu.
AI_Output (self, other,"DIA_Lee_Trap_08_26"); //Święte słowa.
AI_Output (self, other,"DIA_Lee_Trap_08_27"); //Wystarczy już tych pogawędek, wróć kiedy będziesz gotów na wyprawę po kolejny kawałek ornamentu.
AI_Output (other, self,"DIA_Lee_Trap_15_28"); //Ja?
AI_Output (self, other,"DIA_Lee_Trap_08_29"); //A kogo mam wysłać? Cord i Okyl są mi potrzebni tutaj. Sąsiedztwo trzęsawisk źle wpływa na nasze morale, a i magowie nie cieszą się z bliskości mieszkańców bagna...
AI_Output (self, other,"DIA_Lee_Trap_08_30"); //Jarvis już raz zawiódł, poza tym nie chcę narażać własnych ludzi...
AI_Output (other, self,"DIA_Lee_Trap_15_31"); //Przynajmniej jesteś szczery. Rozumiem, że moje życie jest nic nie warte?
AI_Output (self, other,"DIA_Lee_Trap_08_32"); //Źle mnie zrozumiałeś. Pokazałeś, że świetnie sobie radzisz w najtrudniejszych sytuacjach. Tylko ktoś taki poradzi sobie podczas poszukiwań.
AI_Output (self, other,"DIA_Lee_Trap_08_33"); //My zajmiemy się pilnowaniem pleców magów, kiedy Ty będziesz się uganiał za ornamentami.
AI_Output (self, other,"DIA_Lee_Trap_08_34"); //Wróć, jak się zdecydujesz. Aha i pamiętaj, że magowie dobrze płacą.
B_LogEntry(CH3_NON_Mercenary, "Lee opowiedział mi ciekawą historię. W każdym razie przywódca najemników ma dług względem magów, którego spłatą ma być właśnie pomoc w odnalezieniu ornamentów. Lee chce, żebym to ja poszukał pozostałych dwóch części ornamentu.");
};
//*********************************************************
instance DIA_Lee_Agree(C_INFO)
{
npc = Sld_700_Lee;
nr = 5;
condition = DIA_Lee_Agree_Condition;
information = DIA_Lee_Agree_Info;
important = 0;
permanent = 0;
description = "Dobra, jestem z wami.";
};
FUNC int DIA_Lee_Agree_Condition()
{
if (Npc_KnowsInfo(hero, DIA_Lee_Trap))
{
return 1;
};
};
FUNC VOID DIA_Lee_Agree_Info()
{
AI_Output (other, self,"DIA_Lee_Agree_15_00"); //Dobra, jestem z wami.
AI_Output (self, other,"DIA_Lee_Agree_08_01"); //Wiedziałem, że się zgodzisz. A tak między nami robisz to dla rudy?
AI_Output (other, self,"DIA_Lee_Agree_15_02"); //Nie tylko. Mam z Hrabią na pieńku.
AI_Output (self, other,"DIA_Lee_Agree_08_03"); //Rozumiem. Tylko nie pozwól, by emocje wzięły górę nad zdrowym rozsądkiem. Nie chcę wysłać Corda po Twoje zwłoki.
AI_Output (other, self,"DIA_Lee_Agree_15_04"); //Bez obaw, Lee. Mój gniew jest zimny jak lód. Hrabia dostanie to na co zasłużył.
AI_Output (self, other,"DIA_Lee_Agree_08_05"); //W porządku. Idź do Saturasa, powiedz, że ja Cię przysyłam. Dostaniesz mapę z lokalizacją kolejnego ornamentu.
AI_Output (self, other,"DIA_Lee_Agree_08_06"); //I uważaj na siebie.
AI_Output (other, self,"DIA_Lee_Agree_15_07"); //Jak zawsze. Bywaj.
B_LogEntry (CH3_NON_Ornament, "Zgodziłem się pomóc najemnikom w poszukiwaniu ornamentów dla magów. Muszę porozmawiać z Saturasem, dostanę od niego mapę z lokalizacją kolejnego ornamentu.");
};
//*********************************************************
instance DIA_Lee_LasOrn(C_INFO)
{
npc = Sld_700_Lee;
nr = 6;
condition = DIA_Lee_LasOrn_Condition;
information = DIA_Lee_LasOrn_Info;
important = 0;
permanent = 0;
description = "I szlag trafił kolejny ornament!";
};
FUNC int DIA_Lee_LasOrn_Condition()
{
if (Npc_KnowsInfo(hero,Info_Saturas_Konwer))
{
return 1;
};
};
FUNC VOID DIA_Lee_LasOrn_Info()
{
AI_Output (other, self,"DIA_Lee_LasOrn_15_00"); //Straciłem kolejny ornament!
AI_Output (self, other,"DIA_Lee_LasOrn_08_01"); //Co się stało?
AI_Output (other, self,"DIA_Lee_LasOrn_15_02"); //Hrabia znowu mnie uprzedził. Mam trzy dnia na odnalezienie pozostałych części, albo cały plan magów szlag trafi.
AI_Output (self, other,"DIA_Lee_LasOrn_08_03"); //Nie mamy wyboru. Musimy im pomóc. Co zamierzasz?
AI_Output (other, self,"DIA_Lee_LasOrn_15_04"); //Spróbuję odnaleźć te cholerne ornamenty. W końcu dałem ci słowo.
AI_Output (self, other,"DIA_Lee_LasOrn_08_05"); //Myślałem, ze robisz to dla rudy i dla zemsty na Hrabim?
AI_Output (other, self,"DIA_Lee_LasOrn_15_06"); //Przypominasz mi siebie samego, Lee. Sporo nas łączy, żaden z nas nie chciał zostać tym, kim jest teraz.
AI_Output (self, other,"DIA_Lee_LasOrn_08_07"); //Masz rację przyjacielu. Szkoda, że nie poznaliśmy się w lepszych czasach.
AI_Output (other, self,"DIA_Lee_LasOrn_15_08"); //Może kiedyś to nadrobimy...
AI_Output (self, other,"DIA_Lee_LasOrn_08_09"); //Wróć, jak skończy się ta heca z ornamentami. Do tego czasu będę już czuł się lepiej.
AI_Output (other, self,"DIA_Lee_LasOrn_15_10"); //Dobra. Bywaj.
AI_Output (self, other,"DIA_Lee_LasOrn_08_11"); //Uważaj na siebie.
B_LogEntry(CH3_NON_Mercenary, "Kiedy skończy się ta cała heca z ornamentami, mam porozmawiać z Lee.");
};
//*********************************************************
instance DIA_Lee_AfterRitual(C_INFO)
{
npc = Sld_700_Lee;
nr = 7;
condition = DIA_Lee_AfterRitual_Condition;
information = DIA_Lee_AfterRitual_Info;
important = 1;
permanent = 0;
description = "";
};
FUNC int DIA_Lee_AfterRitual_Condition()
{
if (Npc_KnowsInfo(hero,Info_Saturas_RytualFinished))&&(lee_free == TRUE)
{
return 1;
};
};
FUNC VOID DIA_Lee_AfterRitual_Info()
{
B_GiveXP(1250);
var C_NPC myxir; myxir = Hlp_GetNpc(KDW_601_Myxir);
var C_NPC merd; merd = Hlp_GetNpc(KDW_602_Merdarion);
var C_NPC nefar; nefar = Hlp_GetNpc(KDW_603_Nefarius);
var C_NPC cron; cron = Hlp_GetNpc(KDW_604_Cronos);
var C_NPC riod; riod = Hlp_GetNpc(KDW_605_Riordian);
var C_NPC jar; jar = Hlp_GetNpc(Sld_728_Jarvis);
var C_NPC orik; orik = Hlp_GetNpc(Sld_701_Orik);
var C_NPC cord; cord = Hlp_GetNpc(SLD_709_Cord);
AI_Output (self, other,"DIA_Lee_AfterRitual_08_01"); //Cholera to było niespodziewane!
AI_Output (other, self,"DIA_Lee_AfterRitual_15_02"); //Jak to się stało? Kto stał na warcie?
AI_Output (self, other,"DIA_Lee_AfterRitual_08_03"); //Jarvis. Zdaje się, że uciął sobie drzemkę. Poderżnęli mu gardło i pobiegli do Komnaty Portali.
AI_Output (self, other,"DIA_Lee_AfterRitual_08_04"); //Minęli Orika, ale ten patałach jest głuchy jak pień!
AI_Output (self, other,"DIA_Lee_AfterRitual_08_05"); //Cord akurat wracał z wychodka, kiedy wbiegali do środka. Krzyknął i rzuciliśmy się w pogoń...
if (Npc_IsDead(jar))
{
AI_Output (other, self,"DIA_Lee_AfterRitual_15_06"); //Szkoda Jarvisa. Ale magowie też ucierpieli.
};
if (Npc_IsDead(myxir))
{
AI_Output (other, self,"DIA_Lee_AfterRitual_15_07"); //Myxir już raczej się nie obudzi.
};
if (Npc_IsDead(merd))
{
AI_Output (other, self,"DIA_Lee_AfterRitual_15_08"); //Szkoda Merdariona, sporo mi pomógł.
};
if (Npc_IsDead(nefar))
{
AI_Output (other, self,"DIA_Lee_AfterRitual_15_09"); //Nefarius też poległ.
};
if (Npc_IsDead(cron))
{
AI_Output (other, self,"DIA_Lee_AfterRitual_15_10"); //Cronos jednak nie był taki twardy, jakiego zgrywał.
};
if (Npc_IsDead(riod))
{
AI_Output (other, self,"DIA_Lee_AfterRitual_15_11"); //Riordian... Jedyny mag, który okazał mi serce. Niech Adanos nad nim czuwa.
};
if (Npc_IsDead(orik))
{
AI_Output (other, self,"DIA_Lee_AfterRitual_15_12"); //Orik pewnie nawet nie usłyszał, co go zabiło.
};
if (Npc_IsDead(cord))
{
AI_Output (other, self,"DIA_Lee_AfterRitual_15_13"); //Nie sądziłem, że ktokolwiek zdoła pokonać Corda!
};
AI_Output (self, other,"DIA_Lee_AfterRitual_08_14"); //Tak, to był krwawy dzionek. Mam już dość tej cholernej Kolonii...
AI_Output (other, self,"DIA_Lee_AfterRitual_15_15"); //Saturas powiedział, że jesteście kwita, dług spłacony.
AI_Output (self, other,"DIA_Lee_AfterRitual_08_16"); //Czasami żałuję, że stawiam honor ponad zdrowy rozsądek... Gdyby nie mój upór Jarvis nadal by żył...
AI_Output (other, self,"DIA_Lee_AfterRitual_15_17"); //Nie zawsze mamy wpływ na to, co się wydarzy.
AI_Output (self, other,"DIA_Lee_AfterRitual_08_18"); //Tak wielu przyjaciół już pochowałem...
AI_Output (other, self,"DIA_Lee_AfterRitual_15_19"); //Oni umrą dopiero wtedy, kiedy zginie pamięć o ich czynach.
AI_Output (self, other,"DIA_Lee_AfterRitual_08_20"); //Masz rację! Kiedy tylko wrócę do Myrtany i wyrównam rachunki, kupię gdzieś kawałek ziemi i zostanę rolnikiem.
AI_Output (other, self,"DIA_Lee_AfterRitual_15_21"); //Tak, a ja zostanę rybakiem i będziemy co wieczór wspominać przy kuflu stare dobre czasy. Możemy też zapisać się do koła hafciarek, he, he.
AI_Output (self, other,"DIA_Lee_AfterRitual_08_22"); //Masz rację, też nie mogę sobie tego wyobrazić. Ech, czasami dobrze byłoby po prostu usiąść z przyjacielem przy antałku piwa i urżnąć się do nieprzytomności...
AI_Output (other, self,"DIA_Lee_AfterRitual_15_23"); //Jak tylko skończą się te brewerie z barierą to służę pomocą.
AI_Output (self, other,"DIA_Lee_AfterRitual_08_24"); //Trzymam Cię za słowo, Rick! Dobra, wracam do chłopaków.
Log_SetTopicStatus(CH3_NON_Mercenary, LOG_SUCCESS);
B_LogEntry(CH3_NON_Mercenary, "Lee spłacił dług względem magów z moim 'małym' udziałem. Cieszę się, że pomogłem najemnikom. Znalazłem też przyjaciela w byłym generale królewskiej armii. Dziwny jest ten świat...");
};
//*********************************************************
var int lee_agree;
var int tor_know;
instance DIA_Lee_RBL (C_INFO)
{
npc = Sld_700_Lee;
nr = 8;
condition = DIA_Lee_RBL_Condition;
information = DIA_Lee_RBL_Info;
important = 0;
permanent = 1;
description = "Jesteś potrzebny w Nowym Obozie!";
};
FUNC int DIA_Lee_RBL_Condition()
{
if (lee_back >=1)&&(lee_agree < 3)
{
return 1;
};
};
FUNC VOID DIA_Lee_RBL_Info()
{
AI_Output (other, self,"DIA_Lee_RBL_15_00"); //Jesteś potrzebny w Nowym Obozie!
AI_Output (self, other,"DIA_Lee_RBL_08_01"); //A co tam się dzieje?
if (Npc_KnowsInfo(hero,DIA_Torlof_Fight))&&(tor_know == FALSE)
{
tor_know = TRUE;
AI_Output (other, self,"DIA_Lee_RBL_15_02"); //Torlof ma spore problemy. Broni się ze swoimi ludźmi w kopalni, ale to długo nie potrwa.
lee_agree = lee_agree + 1;
B_LogEntry (CH4_NC_RBLBosses, "Powiedziałem Lee o Torlofie.");
};
if (lares_cooperate == TRUE)
{
lares_cooperate = 2;
AI_Output (other, self,"DIA_Lee_RBL_15_03"); //Lares ma już dość stania obok. Powiedz tylko słowo, a pola ryżowe spłyną krwią.
lee_agree = lee_agree + 1;
B_LogEntry (CH4_NC_RBLBosses, "Lee wie już o Laresie.");
};
if (wolf_cooperate == TRUE)
{
wolf_cooperate = false;
AI_Output (other, self,"DIA_Lee_RBL_15_04"); //Wilk jest gotów by na twój znak rozpętać piekło w Kotle.
lee_agree = lee_agree + 1;
B_LogEntry (CH4_NC_RBLBosses, "Przekazałem Lee pozdrowienia od Wilka.");
};
};
//*********************************************************
instance DIA_Lee_RBLBosses (C_INFO)
{
npc = Sld_700_Lee;
nr = 9;
condition = DIA_Lee_RBLBosses_Condition;
information = DIA_Lee_RBLBosses_Info;
important = 0;
permanent = 0;
description = "Co teraz zrobisz?";
};
FUNC int DIA_Lee_RBLBosses_Condition()
{
if (lee_back == 4)&&(lee_agree == 3)
{
return 1;
};
};
FUNC VOID DIA_Lee_RBLBosses_Info()
{
AI_Output (other, self,"DIA_Lee_RBLBosses_15_00"); //Co teraz zrobisz?
AI_Output (self, other,"DIA_Lee_RBLBosses_08_01"); //Muszę się zastanowić.
AI_Output (other, self,"DIA_Lee_RBLBosses_15_02"); //Nie ma na to czasu, tam umierają ludzie!
AI_DrawWeapon (self);
AI_Output (self, other,"DIA_Lee_RBLBosses_08_03"); //To moi ludzie! Wiem, co robię i nikt nie będzie wątpił w moją lojalność.
AI_Output (other, self,"DIA_Lee_RBLBosses_15_04"); //Na co chcesz czekać?!
AI_RemoveWeapon (self);
AI_Output (self, other,"DIA_Lee_RBLBosses_08_05"); //Nie jestem idiotą, nie pobiegnę do Nowego Obozu bez sprawdzenia, co tam się naprawdę dzieje.
AI_Output (other, self,"DIA_Lee_RBLBosses_15_06"); //Nie ufasz mi?
AI_Output (self, other,"DIA_Lee_RBLBosses_08_07"); //Ja nikomu nie ufam. Ale powiem Ci, kiedy będę gotów do walki o Nowy Obóz i moich ludzi.
if (!Npc_KnowsInfo(hero,DIA_Lee_Agree))
{
AI_Output (self, other,"DIA_Lee_RBLBosses_08_08"); //Poza tym muszę spłacić dług względem Magów Wody. Dopiero wtedy będę mógł wrócić do Nowego Obozu.
B_LogEntry (CH4_RBL_NCRebel, "Lee nie ruszy się, dopóki nie załatwi swoich spraw u Magów Wody. Może warto mu w tym pomóc?");
};
//AI_Output (other, self,"DIA_Lee_RBLBosses_15_09"); //Wrócę tu i oby nie było za późno.
Log_SetTopicStatus (CH4_NC_RBLBosses, LOG_SUCCESS);
B_LogEntry (CH4_NC_RBLBosses, "Lee na coś czeka, nie chce od razu ruszyć do ataku. No nic, pozałatwiam swoje sprawy i może wtedy sytuacja dojrzeje na tyle, że ruszymy do walki.");
B_LogEntry (CH4_RBL_NCRebel, "Lee chce najpierw sam sprawdzić, co się dzieje w Nowym Obozie. Zdaje się, że nic na to nie poradzę.");
};
instance DIA_Lee_RBLBosses1 (C_INFO)
{
npc = Sld_700_Lee;
nr = 9;
condition = DIA_Lee_RBLBosses1_Condition;
information = DIA_Lee_RBLBosses1_Info;
important = 1;
permanent = 0;
description = "Co teraz zrobisz?";
};
FUNC int DIA_Lee_RBLBosses1_Condition()
{
if (Npc_KnowsInfo(hero,DIA_Lee_AfterRitual) && Npc_KnowsInfo(hero,DIA_Leren_RitualEnd))
{
return 1;
};
};
FUNC VOID DIA_Lee_RBLBosses1_Info()
{
AI_Output (self, other,"DIA_Lee_RBLBosses1_08_00"); //Czas wracać na stare śmieci.
AI_Output (other, self,"DIA_Lee_RBLBosses1_15_01"); //Co zamierzasz?
AI_Output (self, other,"DIA_Lee_RBLBosses1_08_02"); //Wrócę do Nowego Obozu i wykopię skurwieli Gomeza aż do Myrtany!
B_NC_LeeBack();
};
//*********************************************************
instance DIA_Lee_RBLBegin (C_INFO)
{
npc = Sld_700_Lee;
nr = 10;
condition = DIA_Lee_RBLBegin_Condition;
information = DIA_Lee_RBLBegin_Info;
important = 1;
permanent = 0;
description = "";
};
FUNC int DIA_Lee_RBLBegin_Condition()
{
if (Npc_GetDistToWP(self, "NC_RICELORD_SIT") < 600)
{
return 1;
};
};
FUNC VOID DIA_Lee_RBLBegin_Info()
{
/************************
Ork Gorn ma być gdzieś w pobliżu Lee przez cały czas, przyda się dopiero później
**********************/
B_FullStop (hero);
//AI_GotoNpc(other,self);
AI_Output (self, other,"DIA_Lee_RBLBegin_08_01"); //Wróciłem, najwyższy czas, żeby upuścić krwi strażnikom.
AI_Output (other, self,"DIA_Lee_RBLBegin_15_02"); //Cieszy mnie to! Od czego zaczniemy?
AI_Output (self, other,"DIA_Lee_RBLBegin_08_03"); //My?
AI_Output (other, self,"DIA_Lee_RBLBegin_15_04"); //Chyba nie myślałeś, że nie wezmę udziału w takiej jatce? Poza tym strażnicy wywołują u mnie wzmożone parcie na stolec.
AI_Output (self, other,"DIA_Lee_RBLBegin_08_05"); //Nie pozwolę, żebyś nabawił się niestrawności. Dobrze wiedzieć, że mamy Cię u swego boku.
AI_Output (self, other,"DIA_Lee_RBLBegin_08_06"); //Porozmawiaj z Laresem, on dokładnie wprowadzi Cię w sytuację. Później podejmiemy decyzję od czego powinniśmy zacząć.
AI_Output (other, self,"DIA_Lee_RBLBegin_15_07"); //W porządku.
Log_SetTopicStatus (CH4_RBL_NCRebel, LOG_SUCCESS);
B_LogEntry (CH4_RBL_NCRebel, "No to zaczęła się zabawa. Czas wykopać strażników z Nowego Obozu!");
Log_CreateTopic(CH5_NO_Rebel, LOG_MISSION);
Log_SetTopicStatus(CH5_NO_Rebel, LOG_RUNNING);
B_LogEntry(CH5_NO_Rebel, "Walka o Nowy Obóz właśnie się rozpoczęła. Najważniejsze, że Lee jest z nami, najemnicy i szkodniki pójdą za generałem w żywy ogień. Muszę porozmawiać z Laresem i dowiedzieć się czegoś więcej o aktualnej sytuacji w obozie.");
};
//*********************************************************
instance DIA_Lee_RBLTasks (C_INFO)
{
npc = Sld_700_Lee;
nr = 11;
condition = DIA_Lee_RBLTasks_Condition;
information = DIA_Lee_RBLTasks_Info;
important = 0;
permanent = 0;
description = "Co zamierzasz?";
};
FUNC int DIA_Lee_RBLTasks_Condition()
{
if (Npc_KnowsInfo(hero,DIA_Lares_WhatNext))
{
return 1;
};
};
FUNC VOID DIA_Lee_RBLTasks_Info()
{
AI_Output (other, self,"DIA_Lee_RBLTasks_15_01"); //Co zamierzasz?
AI_Output (self, other,"DIA_Lee_RBLTasks_08_02"); //Przede wszystkim musimy połączyć siły i uderzyć na wroga jednocześnie z kilku stron.
AI_Output (other, self,"DIA_Lee_RBLTasks_15_03"); //Zamieniam się w słuch.
AI_Output (self, other,"DIA_Lee_RBLTasks_08_04"); //Musimy odciąć strażników oblegających Orle Gniazdo.
AI_Output (self, other,"DIA_Lee_RBLTasks_08_05"); //Trzeba przedrzeć się z niewielkim oddziałem i pomóc Torlofowi.
AI_Output (self, other,"DIA_Lee_RBLTasks_08_06"); //Ktoś musiałby też przemknąć się do Wilka i powiedzieć mu jak wygląda sytuacja.
AI_Output (self, other,"DIA_Lee_RBLTasks_08_07"); //Mam już dwóch dowódców, którzy zgłosili się na ochotnika. To Lares i Cord.
AI_Output (other, self,"DIA_Lee_RBLTasks_15_08"); //Nie musisz więc szukać trzeciego. Co mam zrobić?
AI_Output (self, other,"DIA_Lee_RBLTasks_08_09"); //Możesz pomóc Torlofowi, zakraść się do Wilka albo zamknąć oblężenie kasztelu.
AI_Output (self, other,"DIA_Lee_RBLTasks_08_10"); //Co wybierasz?
B_LogEntry (CH5_NO_Rebel, "Szykuje się niezła zabawa. Zostałem dowódcą trzeciego oddziału, sam muszę wybrać czym się zajmę.");
Info_ClearChoices (DIA_Lee_RBLTasks);
Info_AddChoice (DIA_Lee_RBLTasks, "Zrobię niespodziankę Wilkowi.", DIA_Lee_RBLTasks_Wolf);
Info_AddChoice (DIA_Lee_RBLTasks, "Pomogę Torlofowi, jestem mu to winien.", DIA_Lee_RBLTasks_Torlof);
Info_AddChoice (DIA_Lee_RBLTasks, "Z przyjemnością zajmę się Fletcherem.", DIA_Lee_RBLTasks_Siege);
};
// -------------------------------------------------------------------
FUNC VOID DIA_Lee_RBLTasks_Wolf()
{
task_choice = 1;
AI_Output (other, self,"DIA_Lee_RBLTasks_Wolf_15_01"); //Zrobię niespodziankę Wilkowi.
AI_Output (self, other,"DIA_Lee_RBLTasks_Wolf_08_02"); //Tylko uważaj, żeby Cię nie pomylił z jakimś strażnikiem.
AI_Output (self, other,"DIA_Lee_RBLTasks_Wolf_08_03"); //Najlepiej jakbyś podkradł się pod osłoną nocy. Po zmierzchu wartownicy nie są tak czujni jak za dnia. Wtedy ryżówka lepiej im smakuje.
AI_Output (self, other,"DIA_Lee_RBLTasks_Wolf_08_04"); //Powiedz Wilkowi, że sygnałem do ataku będzie krzyk harpii.
AI_Output (other, self,"DIA_Lee_RBLTasks_Wolf_15_05"); //W porządku. A pozostałe grupy?
AI_Output (self, other,"DIA_Lee_RBLTasks_Wolf_08_06"); //Cord uderzy na strażników w kopalni, Lares zamknie oblężenie strażników. Powodzenia.
/************************
Ork musisz tu pozmienia rutyny cordowi + kilku jego ludzi robią czystki w kopalni [w sumie najlepiej od razu uśmierć wszystkich strażników chyba, że chcesz żeby gracz widział walkę]
i laresowi + kilku jego ludzi [zamknięcie oblegających orle gniazdo strażników]
Tutaj Dick nie może wziąć ze sobą najemników ambientów. Zrób rutyny strażników oblegających wilka tak, żeby można było się zakraść pomiędzy nimi, ale tylko w nocy. Aha i jeżeli wykryją Dicka podczas skradania się to misja jest spalona a Dick ma zginąć. Tu nie ma możliwości ataku na hura, niech gracze używają mózgów po wybraniu tej opcji.
**************************/
B_LogEntry (CH5_NO_Wolf, "Wybrałem Wilka. Najlepiej będzie przekraść się przez barykady pod osłoną nocy. Cord uderzy na kopalnią, a Lares zajmie się Orlim Gniazdem.");
Log_SetTopicStatus (CH5_NO_Mine, LOG_FAILED);
Log_SetTopicStatus (CH5_NO_Guards, LOG_FAILED);
Info_ClearChoices (DIA_Lee_RBLTasks);
// Ork: Nie wiem, chyba tutaj rozpoczałbym muzykę do rebelii, to dość
// długi kawalek więc nie powinien przeszkadzać:
BOSSFIGHT_CURRENT = BOSSFIGHT_FGT3;
};
// -------------------------------------------------------------------
FUNC VOID DIA_Lee_RBLTasks_Torlof()
{
task_choice = 2;
AI_Output (other, self,"DIA_Lee_RBLTasks_Torlof_15_01"); //Pomogę Torlofowi, jestem mu to winien.
AI_Output (self, other,"DIA_Lee_RBLTasks_Torlof_08_02"); //Rozumiem. Najemnicy z kopalni bronią się już resztkami sił.
AI_Output (self, other,"DIA_Lee_RBLTasks_Torlof_08_03"); //Jeżeli się pospieszysz może się udać. Weź ze sobą kilku najemników.
AI_Output (other, self,"DIA_Lee_RBLTasks_Torlof_15_04"); //A pozostali?
AI_Output (self, other,"DIA_Lee_RBLTasks_Torlof_08_05"); //Cord zajmie się Orlim Gniazdem, a Lares skontaktuje się z Wilkiem. Powodzenia.
/************************
Ork musisz tu pozmienia rutyny cordowi + kilku jego ludzi zajmują pozycje za strażnikami, kilka trupów strażników nie zaszkodzi [w sumie najlepiej od razu uśmierć wszystkich strażników chyba, że chcesz żeby gracz widział walkę]
a Lares niech się pojawi u Wilka.
Dick może wziąć ze sobą kilku sposród kilkunastu najemników ambientów, którzy są teraz na poddoboziu [tam gdzie ryżowy książe miał chatę i okolice]
Zrób to tak, że kolesie mają ten sam dialog tylko jakaś zmienna ++ i może góra 4-5 najemników niech przyłączy się do Dicka
**************************/
B_LogEntry (CH5_NO_Mine, "Pomogę Torlofowi, jestem mu to winien. Muszę się pospieszyć. Lee pozwolił mi zabrać kilku najemników. W tym czasie Cord zajmie się Orlim Gniazdem a Lares skontaktuje się z Wilkiem.");
Log_SetTopicStatus (CH5_NO_Wolf, LOG_FAILED);
Log_SetTopicStatus (CH5_NO_Guards, LOG_FAILED);
Info_ClearChoices (DIA_Lee_RBLTasks);
};
// -------------------------------------------------------------------
FUNC VOID DIA_Lee_RBLTasks_Siege()
{
task_choice = 3;
AI_Output (other, self,"DIA_Lee_RBLTasks_Siege_15_01"); //Z przyjemnością zajmę się Fletcherem.
AI_Output (self, other,"DIA_Lee_RBLTasks_Siege_08_02"); //Fletcher ze sporą grupą strażników oblega Orle Gniazdo z Hrabią w środku.
AI_Output (self, other,"DIA_Lee_RBLTasks_Siege_08_03"); //Trzeba ich odciąć od Nowego Obozu i ewentualnych posiłków ze Starego Obozu.
AI_Output (self, other,"DIA_Lee_RBLTasks_Siege_08_04"); //Musisz zdobyć dwa przyczółki w pobliżu Orlego Gniazda i zostawić tam naszych ludzi.
AI_Output (self, other,"DIA_Lee_RBLTasks_Siege_08_05"); //Weź tylu najemników ilu zdołasz, dowódcy zajmą się posterunkami.
AI_Output (other, self,"DIA_Lee_RBLTasks_Siege_15_06"); //Dobrze, a co z resztą?
AI_Output (self, other,"DIA_Lee_RBLTasks_Siege_08_07"); //Cord zajmie się kopalnią, a Lares skontaktuje się z Wilkiem. Powodzenia.
/************************
Ork musisz tu pozmienia rutyny cordowi + kilku jego ludzi robią czystki w kopalni [w sumie najlepiej od razu uśmierć wszystkich strażników chyba, że chcesz żeby gracz widział walkę]
a Lares niech się pojawi u Wilka.
Z dickiem pójdzie 2 dowódców - każdy zagada do dicka, każdy z nich weźmie ze sobą 5 ambientów najemników, którzy są teraz na poddoboziu [tam gdzie ryżowy książe miał chatę i okolice]
**************************/
B_LogEntry(CH5_NO_Guards, "Wybrałem Fletchera, mam zdobyć dwa przyczułki w pobliżu Orlego Gniazda. Cord zajmie się kopalnią, a Lares skontaktuje się z Wilkiem. Mogę wziąć tylu najemników, ilu zdołam.");
Log_SetTopicStatus (CH5_NO_Mine, LOG_FAILED);
Log_SetTopicStatus (CH5_NO_Wolf, LOG_FAILED);
Info_ClearChoices (DIA_Lee_RBLTasks);
};
//***************quests****************
//*********************************************************
instance DIA_Lee_RBLWolf (C_INFO)
{
npc = Sld_700_Lee;
nr = 12;
condition = DIA_Lee_RBLWolf_Condition;
information = DIA_Lee_RBLWolf_Info;
important = 0;
permanent = 0;
description = "Już załatwione!";
};
FUNC int DIA_Lee_RBLWolf_Condition()
{
if (Npc_KnowsInfo(hero,DIA_Wolf_Sudden))||(Npc_KnowsInfo(hero,DIA_Torlof_Save))||(merc_done == 2)
{
return 1;
};
};
FUNC VOID DIA_Lee_RBLWolf_Info()
{
AI_Output (other, self,"DIA_Lee_RBLWolf_15_01"); //Już załatwione!
if (Npc_KnowsInfo(hero,DIA_Wolf_Sudden))
{
AI_Output (other, self,"DIA_Lee_RBLWolf_15_02"); //Rozmawiałem z Wilkiem.
AI_Output (self, other,"DIA_Lee_RBLWolf_08_03"); //Przekazałeś mu jaki jest sygnał do ataku?
AI_Output (other, self,"DIA_Lee_RBLWolf_15_04"); //Tak, cała sfora będzie czekać na krzyk harpii.
Log_SetTopicStatus (CH5_NO_Wolf, LOG_SUCCESS);
B_LogEntry (CH5_NO_Wolf, "Plan ataku powoli przybiera konkretny kształt. Lee był bardzo zadowolony. Oby tylko sfora Wilka cierpliwie czekała na sygnał.");
}
else if(Npc_KnowsInfo(hero,DIA_Torlof_Save))
{
AI_Output (other, self,"DIA_Lee_RBLWolf_15_05"); //Torlof nie może się już doczekać kiedy ostatecznie załatwimy strażników.
AI_Output (self, other,"DIA_Lee_RBLWolf_08_06"); //I dobrze, to już niedługo.
AI_Output (other, self,"DIA_Lee_RBLWolf_15_07"); //Kazał cię pozdrowić. Na razie zabezpieczy kopalnię i będzie czekał na rozkaz.
Log_SetTopicStatus (CH5_NO_Mine, LOG_SUCCESS);
B_LogEntry (CH5_NO_Mine, "Plan ataku powoli przybiera konkretny kształt. Lee był bardzo zadowolony. Torlof już wkrótce będzie mógł zatańczyć ze strażnikami.");
}
else if(merc_done == 2)
{
AI_Output (other, self,"DIA_Lee_RBLWolf_15_08"); //Dowódcy najemników są już z oddziałami na miejscu.
AI_Output (self, other,"DIA_Lee_RBLWolf_08_09"); //W takim razie Fletcher i Orle Gniazdo są odcięte - upiekliśmy dwie pieczenie przy jednym ogniu.
Log_SetTopicStatus (CH5_NO_Guards, LOG_SUCCESS);
B_LogEntry (CH5_NO_Guards, "Plan ataku powoli przybiera konkretny kształt. Lee był bardzo zadowolony. Oby tylko najemnicy wytrzymali na posterunkach do czasu ataku.");
};
AI_Output (self, other,"DIA_Lee_RBLWolf_08_10"); //To świetnie. Lares i Cord też wypełnili swoje zadania.
AI_Output (self, other,"DIA_Lee_RBLWolf_08_11"); //Ale coś jeszcze zostało do zrobienia.
AI_Output (other, self,"DIA_Lee_RBLWolf_15_12"); //Tak?
AI_Output (self, other,"DIA_Lee_RBLWolf_08_13"); //To niebezpieczne i ryzykowne zadanie, dlatego musisz sam zadecydować.
AI_Output (other, self,"DIA_Lee_RBLWolf_15_14"); //Mów do cholery o co chodzi!
AI_Output (self, other,"DIA_Lee_RBLWolf_08_15"); //Nie możemy popełnić tego samego błędu co poprzednio. Trzeba zlokalizować ukryte przejście i strzec go za wszelką cenę.
AI_Output (other, self,"DIA_Lee_RBLWolf_15_16"); //To nie powinno być takie trudne.
AI_Output (self, other,"DIA_Lee_RBLWolf_08_17"); //Obawiam się, że możesz się mylić.
AI_Output (self, other,"DIA_Lee_RBLWolf_08_18"); //Strażnicy regularnie organizują tam przerzuty broni i ludzi. Z tego co wiem, jest tam dobrze ukryty i strzeżony posterunek.
AI_Output (self, other,"DIA_Lee_RBLWolf_08_19"); //Niestety nikt dokładnie nie wie, gdzie jest samo przejście i gdzie znajduje się posterunek.
AI_Output (other, self,"DIA_Lee_RBLWolf_15_20"); //Hmm, rzeczywiście nie wygląda to różowo.
AI_Output (self, other,"DIA_Lee_RBLWolf_08_21"); //Więc jaka jest twoja decyzja?
B_LogEntry (CH5_NO_Rebel, "Niedługo uderzymy na strażników. Lee potrzebuje kogoś do zlokalizowania ukrytej przełęczy w górach.");
};
//*********************************************************
instance DIA_Lee_RBLOk (C_INFO)
{
npc = Sld_700_Lee;
nr = 13;
condition = DIA_Lee_RBLOk_Condition;
information = DIA_Lee_RBLOk_Info;
important = 0;
permanent = 0;
description = "Zrobię to.";
};
FUNC int DIA_Lee_RBLOk_Condition()
{
if (Npc_KnowsInfo(hero,DIA_Lee_RBLWolf))
{
return 1;
};
};
FUNC VOID DIA_Lee_RBLOk_Info()
{
AI_Output (other, self,"DIA_Lee_RBLOk_15_01"); //Zrobię to.
AI_Output (self, other,"DIA_Lee_RBLOk_08_02"); //Świetnie, musisz tam wyruszyć niezwłocznie.
AI_Output (self, other,"DIA_Lee_RBLOk_08_03"); //Przejścia szukaj w pobliżu kopalni, w każdym razie tam uderzyli najpierw.
AI_Output (self, other,"DIA_Lee_RBLOk_08_04"); //Aha i musisz pójść sam. Nie mogę oddać ci żadnego najemnika, dopóki nie odnajdziesz przejścia.
AI_Output (self, other,"DIA_Lee_RBLOk_08_05"); //Niech ci nie przyjdzie do głowy zgrywać bohatera. Jak tylko znajdziesz przejście i posterunek wróć, wyślę tam ludzi, którzy zajmą się resztą.
AI_Output (other, self,"DIA_Lee_RBLOk_15_06"); //Zobaczę, co da się zrobić.
Log_CreateTopic (CH5_NC_Passage, LOG_MISSION);
Log_SetTopicStatus (CH5_NC_Passage, LOG_RUNNING);
B_LogEntry (CH5_NC_Passage, "Przed atakiem na strażników Lee chce, żebym odnalazł przełęcz, przez którą wcześniej przedarli się strażnicy. Muszę odnaleźć przejście i ukryty tam posterunek, potem mam wrócić do Lee, on zajmie się resztą. Powinienem zacząć poszukiwania w pobliżu kopalni.");
//WP: STRAZNICA1-6
Wld_InsertNpc(EBR_4444_Stern, "STRAZNICA1");
Wld_InsertNpc(GRD_4446_Gardist , "STRAZNICA2");
Wld_InsertNpc(Grd_4445_Gardist, "STRAZNICA3");
};
/******************
Ork najlepiej byłoby zrobić triggera i kiedy dick znajdzie się 5m od wejście do przełęczy pojawi się komunikat, że właśnie znalazł ukryte przejście.
Drugi komunikat pojawi się kiedy dick zbliży się do posterunku. Aha do posterunku nie można się fizycznie dostać, niech gracze nie zabijają tych strażników, mają tylko wrócić do Lee i zameldować gdzie jest przejście i posterunek.
Jak odkryje przejście do zmienna passage_know ++ i jak odkryje posterunek to też ja w warunku dam passage_know == 2
*******************/
//*********************************************************
instance DIA_Lee_RBLFound (C_INFO)
{
npc = Sld_700_Lee;
nr = 14;
condition = DIA_Lee_RBLFound_Condition;
information = DIA_Lee_RBLFound_Info;
important = 0;
permanent = 0;
description = "Załatwione.";
};
FUNC int DIA_Lee_RBLFound_Condition()
{
var C_NPC Stern; Stern = Hlp_GetNpc(EBR_4444_Stern);
if (Npc_KnowsInfo(hero,DIA_Lee_RBLOk))&&(Npc_IsDead(Stern))
{
return 1;
};
};
FUNC VOID DIA_Lee_RBLFound_Info()
{
var C_NPC fl; fl = Hlp_GetNpc(GRD_255_Fletcher);
Npc_ExchangeRoutine(fl,"DIE");
AI_PlayAni(fl, "s_deadb");
AI_PlayAni(fl, "s_woundedb");
fl.attribute[ATR_HITPOINTS]-=fl.attribute[ATR_HITPOINTS]-5;
var C_NPC gr1; gr1 = Hlp_GetNpc(Grd_659_Gardist);
Npc_ExchangeRoutine(gr1,"NC1");
gr1.attribute[ATR_HITPOINTS]-=gr1.attribute[ATR_HITPOINTS];
var C_NPC gr2; gr2 = Hlp_GetNpc(Grd_626_Gardist);
Npc_ExchangeRoutine(gr2,"NC1");
gr2.attribute[ATR_HITPOINTS]-=gr2.attribute[ATR_HITPOINTS];
Log_SetTopicStatus (CH5_NC_Passage, LOG_SUCCESS);
B_LogEntry (CH5_NC_Passage, "Sprawa z przełęczą załatwiona. Lee wyśle tam najemników, tym razem strażnicy nas nie zaskoczą.");
AI_Output (other, self,"DIA_Lee_RBLFound_15_01"); //Załatwione.
AI_Output (self, other,"DIA_Lee_RBLFound_08_02"); //Odnalazłeś przejście?
AI_Output (other, self,"DIA_Lee_RBLFound_15_03"); //Strażnicę też (Rick wyjaśnia dokładną lokalizację)...
AI_Output (self, other,"DIA_Lee_RBLFound_08_04"); //Natychmiast wyślę tam najemników.
/************************************
Ork twoja działa. Zabicie skryptem strażników z tamtej strażnicy i wsadzenie tam najemników, także kilku w samym przejściu.
hide_clear ();
**********************************/
AI_Output (self, other,"DIA_Lee_RBLFound_08_05"); //Kiedy Cię nie było, wydarzyło się coś... nieoczekiwanego.
AI_Output (other, self,"DIA_Lee_RBLFound_15_06"); //Co tym razem?
AI_Output (self, other,"DIA_Lee_RBLFound_08_07"); //W Orlim Gnieździe rozgorzała walka. Nie wiemy dokładnie co się stało, ale było ostro.
AI_Output (self, other,"DIA_Lee_RBLFound_08_08"); //Fletcher i jego ludzie zamiast zaatakować chcieli uciekać, ale najemnicy zdrowo ich przetrzebili.
AI_Output (self, other,"DIA_Lee_RBLFound_08_09"); //Fletcher z niedobitkami strażników przebił się i bronią się teraz na grani w pobliżu tunelu prowadzącego do kopalni.
AI_Output (self, other,"DIA_Lee_RBLFound_08_10"); //Do Orlego Gniazda nadal nie możemy wejść. Najdziwniejsze jest to, że stołp wygląda na opustoszały. Trzeba coś wymyślić, żeby dowiedzieć się co się stało z Hrabią i jego ludźmi.
AI_Output (other, self,"DIA_Lee_RBLFound_15_11"); //Masz jakiś pomysł?
AI_Output (self, other,"DIA_Lee_RBLFound_08_12"); //Trzeba dorwać Fletchera, może on wie coś więcej.
AI_Output (self, other,"DIA_Lee_RBLFound_08_13"); //Szkoda jednak tracić dobrych ludzi. Grani łatwo się broni, kilku ludzi z łukami i kuszami bez problemów powstrzyma spory oddział. Znajdziesz tam Gorna i jego oddział, od niego dowiesz się więcej.
AI_Output (other, self,"DIA_Lee_RBLFound_15_14"); //Rozumiem, że wolisz wysłać i ewentualnie stracić tylko jednego szaleńca?
AI_Output (self, other,"DIA_Lee_RBLFound_08_15"); //Nie mam wyboru. Ale negocjacje nie wchodzą w rachubę.
AI_Output (self, other,"DIA_Lee_RBLFound_08_16"); //Potrzebujemy głowy Fletchera, tylko najpierw musisz wydusić z niego wszystko, co wie o Orlim Gnieździe i tym co się tam wydarzyło.
AI_Output (other, self,"DIA_Lee_RBLFound_15_17"); //A jak mam się tam dostać? Nie wdrapię się nawet na grań, bo podziurawią mnie bełtami.
AI_Output (self, other,"DIA_Lee_RBLFound_08_18"); //Spróbuj pójść w nocy, kto wie, może uda Ci się przemknąć w pobliżu strażników.
AI_Output (other, self,"DIA_Lee_RBLFound_15_19"); //Świetna rada... No dobra, spróbuję.
AI_Output (self, other,"DIA_Lee_RBLFound_08_20"); //Wiedziałem, że się skusisz. Czasami wydaje mi się, że... szukasz śmierci.
AI_Output (other, self,"DIA_Lee_RBLFound_15_21"); //To raczej ona szuka mnie. Na szczęście jak do tej pory, bezskutecznie.
AI_Output (self, other,"DIA_Lee_RBLFound_08_22"); //Powodzenia na szlaku, Rick.
/************************
Kolejny miąch. Zrób tak, żeby się wydawało, że pod murami gniazda rozegrała się zażarta walka, zabij większość ze strażników i z połowę najemników, ciał powinno być sporo.
Fletchera wyrutynuj na skarpę po prawej stronie jak się idzie do kopalni z nowego obozu, wchodzi się tam po tych dużych stopniach. W pobliżu skarpy niech się znajdzie kilku najemników, w tym gorn który dowodzi tą grupą.
Niespodzianka ma być taka, że wszyscy strażnicy nie żyją, a Fletcher ledwo zipie - zabij kilku strażników na tej grani a fletchera poważnie rań, ale z dołu ma tego nie być widać. Aha a pod granią na drodze do kopalni daj z kilka ciał najemników, że niby zaatakowali bez rezultatu.
fletcher_escape ();
**********************/
B_LogEntry (CH5_NO_Rebel, "Przejście jest już zabezpieczone przez najemników.");
Log_CreateTopic(CH5_NC_TheRock, LOG_MISSION);
Log_SetTopicStatus(CH5_NC_TheRock, LOG_RUNNING);
B_LogEntry(CH5_NC_TheRock, "Pod moją nieobecność coś się wydarzyło w Orlim Gnieździe. Nawet Fletcher tak się przeraził, że nie bacząc na nic przebił się przez najemników i z resztką strażników zaszył się na grani po drodze do kopalni. Muszę dowiedzieć się od Fletchera, ile tylko zdołam o tym, co się stało w stołpie i dlaczego kasztel wygląda na opuszczony. Lee zasugerował, że po rozmowie powinienem raz na zawsze pozbyć się Fletchera.");
var C_NPC gorn; gorn = Hlp_GetNpc(PC_Fighter);
Npc_ExchangeRoutine(gorn,"WATCH");
B_NC_Free();
};
//*********************************************************
instance DIA_Lee_Convoys (C_INFO)
{
npc = Sld_700_Lee;
nr = 20;
condition = DIA_Lee_Convoys_Condition;
information = DIA_Lee_Convoys_Info;
important = 1;
permanent = 0;
description = "";
};
FUNC int DIA_Lee_Convoys_Condition()
{
if (Npc_KnowsInfo(hero,DIA_Lee_RBLTasks))&&(Npc_GetDistToNpc(self,hero) < 600)
{
return 1;
};
};
FUNC VOID DIA_Lee_Convoys_Info()
{
AI_Output (self, other,"DIA_Lee_Convoys_08_01"); //Aha, jeszcze coś.
AI_Output (other, self,"DIA_Lee_Convoys_15_02"); //Tak?
AI_Output (self, other,"DIA_Lee_Convoys_08_03"); //Porozmawiaj z Cordem. Dorwaliśmy jednego ze strażników. Zanim wyzionął ducha zaczął coś krzyczeć o konwojach z bronią.
AI_Output (self, other,"DIA_Lee_Convoys_08_04"); //Cord miał się tym zająć, ale potrzebuje do pomocy kogoś z głową na karku.
AI_Output (other, self,"DIA_Lee_Convoys_15_05"); //Dobra, porozmawiam z Cordem.
B_LogEntry (CH5_NO_Rebel, "Cord potrzebuje pomocy z jakimiś konwojami. Warto z nim porozmawiać.");
Log_CreateTopic (CH5_NC_Convoys, LOG_MISSION);
Log_SetTopicStatus (CH5_NC_Convoys, LOG_RUNNING);
B_LogEntry (CH5_NC_Convoys, "Cord potrzebuje kogoś do pomocy w sprawie konwojów ze Starego Obozu. Powinienem z nim porozmawiać.");
};
//*********************************************************
instance DIA_Lee_TheRock (C_INFO)
{
npc = Sld_700_Lee;
nr = 15;
condition = DIA_Lee_TheRock_Condition;
information = DIA_Lee_TheRock_Info;
important = 0;
permanent = 0;
description = "Rozmawiałem z Fletcherem.";
};
FUNC int DIA_Lee_TheRock_Condition()
{
if (Npc_KnowsInfo(hero,DIA_Gorn_TheRockback))
{
return 1;
};
};
FUNC VOID DIA_Lee_TheRock_Info()
{
AI_Output (other, self,"DIA_Lee_TheRock_15_01"); //Rozmawiałem z Fletcherem.
AI_Output (self, other,"DIA_Lee_TheRock_08_02"); //Nie sądziłem, że dopadniesz go żywego. Powiedział coś ciekawego?
AI_Output (other, self,"DIA_Lee_TheRock_15_03"); //(Rick streszcza Lee to co usłyszał od Fletchera)
AI_Output (self, other,"DIA_Lee_TheRock_08_04"); //Cholera, nie dobrze. Myślałem, ze Hrabia i Kruk stoją po tej samej stronie barykady.
AI_Output (self, other,"DIA_Lee_TheRock_08_05"); //Kruk to najbardziej niebezpieczny z magnatów. Wbrew pozorom to jego trzeba się bać, nie Gomeza.
AI_Output (self, other,"DIA_Lee_TheRock_08_06"); //Musisz dalej w to brnąć. W międzyczasie znalazłem w skrzyni runę. Być może ci się przyda.
Create_and_give(TheRockTP, 1);
AI_Output (other, self,"DIA_Lee_TheRock_08_07"); //Dzięki. Teraz tylko teleportować się do Orlego Gniazda.
AI_Output (self, other,"DIA_Lee_TheRock_08_08"); //Sytuacja w obozie jest już stabilna, rozprawiliśmy się z resztą strażników.
/*************************
Ork idealna byłaby funkcja sprawdzająca czy któryś ze strażników z NO jeszcze żyje, jak tak to tutaj go skilluj
***************************/
AI_Output (self, other,"DIA_Lee_TheRock_08_09"); //Dowiedz się, co knuje Kruk i co wydarzyło się w Orlim Gnieździe. Nie możemy pod własnym nosem chować puszki Beliara.
AI_Output (other, self,"DIA_Lee_TheRock_15_10"); //Wrócę, jak dowiem się czegoś więcej.
//B_LogEntry (CH5_NC_TheRock, "Czas poszukać kufra Hrabiego w byłej siedzibie Magów Wody i sprawdzić co w nim znajdę.");
B_LogEntry(CH5_NC_TheRock, "Poinformowałem Lee, co się stało na grani, a on znalazł dla mnie runę do Orlego Gniazda. Czas spotkać się z Hrabią!");
B_ExchangeRoutine(grd_4010_hrabia,"start");
};
//*********************************************************
instance DIA_Lee_TheRockCompleated (C_INFO)
{
npc = Sld_700_Lee;
nr = 16;
condition = DIA_Lee_TheRockCompleated_Condition;
information = DIA_Lee_TheRockCompleated_Info;
important = 0;
permanent = 0;
description = "Byłem w Orlim Gnieździe.";
};
FUNC int DIA_Lee_TheRockCompleated_Condition()
{
if (Npc_KnowsInfo(hero,DIA_Lee_TheRock))&&(Npc_KnowsInfo(hero,DIA_Hrabia_TheRock))
{
return 1;
};
};
FUNC VOID DIA_Lee_TheRockCompleated_Info()
{
var C_NPC hr; hr = Hlp_GetNpc(GRD_4010_Hrabia);
AI_Output (other, self,"DIA_Lee_TheRockCompleated_15_01"); //Byłem w Orlim Gnieździe.
//AI_Output (self, other,"DIA_Lee_TheRockCompleated_08_02"); //Jak się tam dostałeś?
//AI_Output (other, self,"DIA_Lee_TheRockCompleated_15_03"); //W kufrze Hrabiego znalazłem runę teleportacyjną.
//AI_Output (self, other,"DIA_Lee_TheRockCompleated_08_04"); //Coś jeszcze?
AI_Output (self, other,"DIA_Lee_TheRockCompleated_08_04"); //Jak wygląda tam sytuacja?
AI_Output (other, self,"DIA_Lee_TheRockCompleated_15_05"); //Trupy strażników i demony. Zdaje się, że Kruk był tam przede mną i poszczuł strażników swoimi pupilkami.
AI_Output (self, other,"DIA_Lee_TheRockCompleated_08_06"); //A Hrabia?
if (Npc_IsDead(hr))
{
AI_Output (other, self,"DIA_Lee_TheRockCompleated_15_07"); //Martwy.
}
else
{
AI_Output (other, self,"DIA_Lee_TheRockCompleated_15_08"); //Dogadałem się z nim. Wspólnie dobierzemy się do Kruka.
AI_Output (self, other,"DIA_Lee_TheRockCompleated_08_09"); //Pewnie wiesz, co robisz, ale uważaj na niego, to szczwany lis.
};
AI_Output (other, self,"DIA_Lee_TheRockCompleated_15_10"); //Krata do Orlego Gniazda jest zablokowana, nikt stamtąd nie wyjdzie, ani tym bardziej nikt tam nie wejdzie.
AI_Output (self, other,"DIA_Lee_TheRockCompleated_08_11"); //Tym zajmiemy się później. Na razie postawię przed bramą kilku najemników.
/*******************
Ork daj tam 2 najemników, znaczy zmień rutyny jakimś 2 ambientom
******************/
AI_Output (self, other,"DIA_Lee_TheRockCompleated_08_12"); //Zrobiłeś więcej niż od Ciebie oczekiwałem.
AI_Output (other, self,"DIA_Lee_TheRockCompleated_15_13"); //Jak to wszystko się skończy, usiądziemy i schlejemy się w sztok. Oczywiście na twój rachunek.
AI_Output (self, other,"DIA_Lee_TheRockCompleated_08_14"); //Masz to jak w myrtańskim banku.
AI_Output (self, other,"DIA_Lee_TheRockCompleated_08_15"); //Aha, mam jeszcze jedną prośbę. Powiedz Saturasowi, że Nowy Obóz znowu jest bezpieczny. Jeżeli magowie chcą, mogą wrócić na stare śmieci.
AI_Output (other, self,"DIA_Lee_TheRockCompleated_15_16"); //W porządku, bywaj.
Log_SetTopicStatus(CH5_NC_TheRock, LOG_SUCCESS);
B_LogEntry (CH5_NC_TheRock, "Lee dowiedział się, co się wydarzyło w Orlim Gnieździe.");
B_LogEntry (CH5_NO_Rebel, "Orle Gniazdo jest już... zamknięte.");
/******************************
Ork idealnie byłoby choć częśćiowo odtworzyć porządek w NO sprzed ataku strażników. Niech chociaż główni NPCe wrócą do swoich startowych ruty.
*******************************/
//merc_start ();
};
//*********************************************************
instance DIA_Lee_ConvoysCompleated (C_INFO)
{
npc = Sld_700_Lee;
nr = 17;
condition = DIA_Lee_ConvoysCompleated_Condition;
information = DIA_Lee_ConvoysCompleated_Info;
important = 0;
permanent = 0;
description = "Pomogłem Cordowi z konwojami.";
};
FUNC int DIA_Lee_ConvoysCompleated_Condition()
{
if ((Npc_KnowsInfo(hero,DIA_Cord_ConvoyConvoyTrapEnd))||(Npc_KnowsInfo(hero,DIA_Cord_ConvoyTrapEnd1)))
&&(Npc_KnowsInfo(hero,DIA_Lee_Convoys))
{
return 1;
};
};
FUNC VOID DIA_Lee_ConvoysCompleated_Info()
{
AI_Output (other, self,"DIA_Lee_ConvoysCompleated_15_01"); //Pomogłem Cordowi z konwojami.
AI_Output (self, other,"DIA_Lee_ConvoysCompleated_08_02"); //Wiedziałem, że jesteś właściwą osobą do tego zadania.
AI_Output (self, other,"DIA_Lee_ConvoysCompleated_08_03"); //Cord na pewno odpowiednio docenił Twoje wysiłki.
AI_Output (other, self,"DIA_Lee_ConvoysCompleated_15_04"); //Można tak powiedzieć.
AI_Output (self, other,"DIA_Lee_ConvoysCompleated_08_05"); //Dobrze mieć Cię po swojej stronie, Rick.
B_LogEntry(CH5_NO_Rebel, "Sprawa Corda była bardziej złożona niż podejrzewałem, ale mam to już za sobą.");
};
//*********************************************************
instance DIA_Lee_MagsBack (C_INFO)
{
npc = Sld_700_Lee;
nr = 20;
condition = DIA_Lee_MagsBack_Condition;
information = DIA_Lee_MagsBack_Info;
important = 0;
permanent = 0;
description = "Rozmawiałem z Saturasem.";
};
FUNC int DIA_Lee_MagsBack_Condition()
{
if (Npc_KnowsInfo(hero,Info_Saturas_GoBackNC))
{
return 1;
};
};
FUNC VOID DIA_Lee_MagsBack_Info()
{
AI_Output (other, self,"DIA_Lee_MagsBack_15_01"); //Rozmawiałem z Saturasem.
AI_Output (self, other,"DIA_Lee_MagsBack_08_02"); //Wiem, też się z nim widziałem. Dobrze, że wszystko wróciło do starego porządku.
};
//*********************************************************
instance DIA_Lee_AllCompleated (C_INFO)
{
npc = Sld_700_Lee;
nr = 18;
condition = DIA_Lee_AllCompleated_Condition;
information = DIA_Lee_AllCompleated_Info;
important = 1;
permanent = 0;
description = ".";
};
FUNC int DIA_Lee_AllCompleated_Condition()
{
if (Npc_KnowsInfo(hero,DIA_Lee_ConvoysCompleated))&&(Npc_KnowsInfo(hero,DIA_Lee_TheRockCompleated))
{
return 1;
};
};
FUNC VOID DIA_Lee_AllCompleated_Info()
{
AI_Output (self, other,"DIA_Lee_AllCompleated_08_01"); //Zrobiłeś dla nas więcej niż śmiałem oczekiwać. Zaskakujesz mnie, piracie.
AI_Output (other, self,"DIA_Lee_AllCompleated_15_02"); //Sam się zaskakuję. Nigdy bym nie przypuszczał, że znajdę tu... przyjaciół.
AI_Output (self, other,"DIA_Lee_AllCompleated_08_03"); //Nic nie dzieje się bez powodu, Rick. Obyśmy dożyli lepszych czasów.
AI_Output (other, self,"DIA_Lee_AllCompleated_15_04"); //Nie mam zamiaru opowiadać swoich przygód wnukom, wystarczy, że sam mam koszmary.
AI_Output (self, other,"DIA_Lee_AllCompleated_08_05"); //Mimo wszystko warto coś po sobie zostawić, przyjacielu.
AI_Output (self, other,"DIA_Lee_AllCompleated_08_06"); //Człowiek umiera dwa razy...
AI_Output (self, other,"DIA_Lee_AllCompleated_08_07"); //Pierwszy raz, gdy przestanie bić serce.
AI_Output (self, other,"DIA_Lee_AllCompleated_08_08"); //Drugi raz, kiedy ginie pamięć o nim i jego czynach.
AI_Output (other, self,"DIA_Lee_AllCompleated_15_09"); //Zapamiętam to, Lee. Bywaj.
AI_Output (self, other,"DIA_Lee_AllCompleated_08_10"); //Do następnego razu, piracie.
Log_SetTopicStatus(CH5_NO_Rebel, LOG_SUCCESS);
B_LogEntry(CH5_NO_Rebel, "Nowy Obóz znowu jest wolny od strażników. Sporo mnie to kosztowało wysiłku, ale było warto.");
B_LogEntry (CH4_RBL_NCRebel, "W Nowym Obozie zapanował stary porządek. Czas porozmawiać z Cavalornem.");
B_Kapitelwechsel(6);
// Ork: Tutaj koniec? No chyba:
BOSSFIGHT_CURRENT = BOSSFIGHT_NONE;
};
//*********************************************************
instance DIA_Lee_Urt (C_INFO)
{
npc = Sld_700_Lee;
nr = 20;
condition = DIA_Lee_Urt_Condition;
information = DIA_Lee_Urt_Info;
important = 0;
permanent = 0;
description = "Znasz strażnika o imieniu Urt?";
};
FUNC int DIA_Lee_Urt_Condition()
{
if (Npc_KnowsInfo(hero, DIA_Cipher_Urt))
{
return 1;
};
};
FUNC VOID DIA_Lee_Urt_Info()
{
AI_Output (other, self,"DIA_Lee_Urt_15_01"); //Znasz strażnika o imieniu Urt?
AI_Output (self, other,"DIA_Lee_Urt_08_02"); //Nigdy o nim nie słyszałem.
AI_Output (other, self,"DIA_Lee_Urt_15_03"); //A imię... Urthos coś ci mówi?
AI_Output (self, other,"DIA_Lee_Urt_08_04"); //Hmm... Był kiedyś ktoś w królewskiej gwardii o takim imieniu.
AI_Output (self, other,"DIA_Lee_Urt_08_05"); //Z tego co pamiętam zdaje się, że był zamieszany w kradzież klejnotów koronnych.
AI_Output (self, other,"DIA_Lee_Urt_08_06"); //Król rozkazał stracić wszystkich, którzy brali udział w tym procederze. Tylko Urthos zdołał zbiec, to podobno on był przywódcą szajki.
AI_Output (self, other,"DIA_Lee_Urt_08_07"); //Dlaczego pytasz?
AI_Output (other, self,"DIA_Lee_Urt_15_08"); //Urt, jeden ze strażników, a zarazem rebeliant odpowiedzialny za stworzenie siatki dywersyjnej w Starym Obozie to właśnie Urthos.
AI_Output (self, other,"DIA_Lee_Urt_08_09"); //No proszę, jaki ten świat mały. W końcu trafił tam gdzie jego miejsce.
AI_Output (other, self,"DIA_Lee_Urt_15_10"); //Podejrzewam, że mógł nas zdradzić. Nie mam niezbitych dowodów, tylko poszlaki. Co o tym myślisz?
AI_Output (self, other,"DIA_Lee_Urt_08_11"); //Urthos to cwane bydlę. W gwardii dosłużył się porucznika. Był jednak zbyt zachłanny i to go zgubiło.
AI_Output (self, other,"DIA_Lee_Urt_08_12"); //Chociaż plan kradzieży obmyślił bardzo błyskotliwie... Na pewno nadaje się do sabotażu.
AI_Output (self, other,"DIA_Lee_Urt_08_13"); //Obawiam się jednak, że mógłby być z niego niezły materiał na zdrajcę. Dla niego liczy się tylko złoto, ruda i wszystko na czym mógłby zarobić.
AI_Output (other, self,"DIA_Lee_Urt_15_14"); //Zaufałbyś mu?
AI_Output (self, other,"DIA_Lee_Urt_08_15"); //Nigdy w życiu. Uważaj na niego, Rick.
AI_Output (other, self,"DIA_Lee_Urt_15_16"); //Dzięki, Lee. To właśnie chciałem usłyszeć.
B_LogEntry(CH6_RBL_Spy, "Lee potwierdził wersję Ciphera. Dodatkowo powiedział mi, że Urthosowi nie można zaufać. Muszę zdobyć niepodważalne dowody. Może znajdę jakiegoś żywego świadka?");
};
INSTANCE DIA_Lee_CanYouTeachMe (C_INFO)
{
npc = Sld_700_Lee;
condition = DIA_Lee_CanYouTeachMe_Condition;
information = DIA_Lee_CanYouTeachMe_Info;
permanent = 0;
important = 0;
description = "Możesz mnie czegoś nauczyć?";
};
FUNC INT DIA_Lee_CanYouTeachMe_Condition()
{
if (Npc_KnowsInfo (hero,DIA_Lee_Agree))
{
return 1;
};
};
FUNC VOID DIA_Lee_CanYouTeachMe_Info()
{
AI_Output (other, self, "DIA_Lee_CanYouTeachMe_15_01"); //Możesz mnie czegoś nauczyć?
AI_Output (self, other, "DIA_Lee_CanYouTeachMe_12_02"); //Wiem sporo o dwuręcznej broni, mogę podzielić się tą wiedzą.
Log_CreateTopic(GE_TeacherOR, LOG_NOTE);
B_LogEntry(GE_TeacherOR, "Lee nauczy mnie jak po mistrzowsku władać dwuręcznym orężem.");
};
INSTANCE DIA_Lee_CanYouTeachMe1 (C_INFO)
{
npc = Sld_700_Lee;
condition = DIA_Lee_CanYouTeachMe1_Condition;
information = DIA_Lee_CanYouTeachMe1_Info;
permanent = 0;
important = 0;
description = "Widziałeś kiedyś miecz runiczny?";
};
FUNC INT DIA_Lee_CanYouTeachMe1_Condition()
{
if (Npc_KnowsInfo (hero,DIA_Lee_Agree))
{
return 1;
};
};
FUNC VOID DIA_Lee_CanYouTeachMe1_Info()
{
AI_Output (other, self, "DIA_Lee_CanYouTeachMe1_15_01"); //Widziałeś kiedyś miecz runiczny?
AI_Output (self, other, "DIA_Lee_CanYouTeachMe1_12_02"); //Nie, ale słyszałem, że to potężna broń.
AI_Output (other, self, "DIA_Lee_CanYouTeachMe1_15_03"); //Wiesz jak nią władać?
AI_Output (self, other, "DIA_Lee_CanYouTeachMe1_12_04"); //Na twoje szczęśćie, tak.
AI_Output (self, other, "DIA_Lee_CanYouTeachMe1_12_05"); //Słuchaj uważnie, bo nie będę powtarzał...
Log_CreateTopic(GE_TeacherOR, LOG_NOTE);
B_LogEntry(GE_TeacherOR, "Lee nauczy mnie jak władać mieczem runicznym.");
};
|
D
|
# FIXED
evmomapl138_pmic.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/src/evmomapl138_pmic.c
evmomapl138_pmic.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/stdio.h
evmomapl138_pmic.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/_ti_config.h
evmomapl138_pmic.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/linkage.h
evmomapl138_pmic.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/stdarg.h
evmomapl138_pmic.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/_types.h
evmomapl138_pmic.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/cdefs.h
evmomapl138_pmic.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/machine/_types.h
evmomapl138_pmic.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138.h
evmomapl138_pmic.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/stdint.h
evmomapl138_pmic.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/_stdint40.h
evmomapl138_pmic.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/stdint.h
evmomapl138_pmic.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/machine/_stdint.h
evmomapl138_pmic.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/_stdint.h
evmomapl138_pmic.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_sysconfig.h
evmomapl138_pmic.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_psc.h
evmomapl138_pmic.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_pll.h
evmomapl138_pmic.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_gpio.h
evmomapl138_pmic.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_i2c.h
evmomapl138_pmic.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_pmic.h
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/src/evmomapl138_pmic.c:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/stdio.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/_ti_config.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/linkage.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/stdarg.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/_types.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/cdefs.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/machine/_types.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/stdint.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/_stdint40.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/stdint.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/machine/_stdint.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/_stdint.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_sysconfig.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_psc.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_pll.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_gpio.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_i2c.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_pmic.h:
|
D
|
/Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Fluent.build/Memory/MemoryDriver.swift.o : /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Database/Database.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Database/Driver.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Entity/Entity.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Memory/Memory+Filters.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Memory/Memory+Group.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Memory/Memory+Sort.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Memory/MemoryDriver.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Preparation/Database+Preparation.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Preparation/Migration.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Preparation/Preparation.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Preparation/PreparationError.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Action.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Comparison.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Filter.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Group.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Join.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Limit.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Query.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Scope.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Sort.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Relations/Children.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Relations/Parent.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Relations/RelationError.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Relations/Siblings.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Database+Schema.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Schema+Creator.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Schema+Field.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Schema+Modifier.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Schema.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/SQL+Query.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/SQL+Schema.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/SQL.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/SQLSerializer.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Utilities/Fluent+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/CLibreSSL.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Node.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/PathIndexable.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Polymorphic.swiftmodule
/Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Fluent.build/MemoryDriver~partial.swiftmodule : /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Database/Database.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Database/Driver.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Entity/Entity.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Memory/Memory+Filters.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Memory/Memory+Group.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Memory/Memory+Sort.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Memory/MemoryDriver.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Preparation/Database+Preparation.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Preparation/Migration.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Preparation/Preparation.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Preparation/PreparationError.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Action.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Comparison.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Filter.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Group.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Join.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Limit.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Query.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Scope.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Sort.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Relations/Children.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Relations/Parent.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Relations/RelationError.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Relations/Siblings.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Database+Schema.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Schema+Creator.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Schema+Field.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Schema+Modifier.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Schema.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/SQL+Query.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/SQL+Schema.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/SQL.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/SQLSerializer.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Utilities/Fluent+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/CLibreSSL.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Node.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/PathIndexable.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Polymorphic.swiftmodule
/Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Fluent.build/MemoryDriver~partial.swiftdoc : /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Database/Database.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Database/Driver.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Entity/Entity.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Memory/Memory+Filters.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Memory/Memory+Group.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Memory/Memory+Sort.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Memory/MemoryDriver.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Preparation/Database+Preparation.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Preparation/Migration.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Preparation/Preparation.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Preparation/PreparationError.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Action.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Comparison.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Filter.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Group.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Join.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Limit.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Query.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Scope.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Query/Sort.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Relations/Children.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Relations/Parent.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Relations/RelationError.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Relations/Siblings.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Database+Schema.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Schema+Creator.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Schema+Field.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Schema+Modifier.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Schema/Schema.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/SQL+Query.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/SQL+Schema.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/SQL.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/SQL/SQLSerializer.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Fluent-1.3.3/Sources/Fluent/Utilities/Fluent+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/CLibreSSL.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Node.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/PathIndexable.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Polymorphic.swiftmodule
|
D
|
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.build/Debuggable.swift.o : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Debugging/Debuggable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Debugging/SourceLocation.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Debugging/Demangler.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.build/Debuggable~partial.swiftmodule : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Debugging/Debuggable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Debugging/SourceLocation.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Debugging/Demangler.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.build/Debuggable~partial.swiftdoc : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Debugging/Debuggable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Debugging/SourceLocation.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Debugging/Demangler.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
cause to deteriorate due to the action of water, air, or an acid
become destroyed by water, air, or a corrosive such as an acid
|
D
|
an instance of change
an activity that varies from a norm or standard
a repetition of a musical theme in which it is modified or embellished
something a little different from others of the same type
an artifact that deviates from a norm or standard
the angle (at a particular location) between magnetic north and true north
the process of varying or being varied
(astronomy) any perturbation of the mean motion or orbit of a planet or satellite (especially a perturbation of the earth's moon)
(biology) an organism that has characteristics resulting from chromosomal alteration
(ballet) a solo dance or dance figure
the act of changing or altering something slightly but noticeably from the norm or standard
|
D
|
/Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/Build/Intermediates.noindex/MinimizableViewExample.build/Debug-iphonesimulator/MinimizableViewExample.build/Objects-normal/x86_64/AppDelegate.o : /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/ContentExample.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/CompactViewExample.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/SceneDelegate.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/AppDelegate.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/Buttons.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/BlurView.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/RootView.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/ListView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreLocation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UniformTypeIdentifiers.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CloudKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/Build/Products/Debug-iphonesimulator/MinimizableView.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/Build/Intermediates.noindex/MinimizableViewExample.build/Debug-iphonesimulator/MinimizableViewExample.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule : /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/ContentExample.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/CompactViewExample.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/SceneDelegate.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/AppDelegate.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/Buttons.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/BlurView.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/RootView.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/ListView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreLocation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UniformTypeIdentifiers.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CloudKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/Build/Products/Debug-iphonesimulator/MinimizableView.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/Build/Intermediates.noindex/MinimizableViewExample.build/Debug-iphonesimulator/MinimizableViewExample.build/Objects-normal/x86_64/AppDelegate~partial.swiftdoc : /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/ContentExample.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/CompactViewExample.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/SceneDelegate.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/AppDelegate.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/Buttons.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/BlurView.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/RootView.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/ListView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreLocation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UniformTypeIdentifiers.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CloudKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/Build/Products/Debug-iphonesimulator/MinimizableView.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/Build/Intermediates.noindex/MinimizableViewExample.build/Debug-iphonesimulator/MinimizableViewExample.build/Objects-normal/x86_64/AppDelegate~partial.swiftsourceinfo : /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/ContentExample.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/CompactViewExample.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/SceneDelegate.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/AppDelegate.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/Buttons.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/BlurView.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/RootView.swift /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/CustomModal/ListView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreLocation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UniformTypeIdentifiers.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CloudKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/Dominik/Documents/Programmieren/Libraries/MinimizableViewExample/Build/Products/Debug-iphonesimulator/MinimizableView.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
/home/helgardf/Documents/Programming/rust/rust_programming_language_exercises/common_collections/vectors_basics/target/release/deps/vectors_basics-13b2b4141fc52a4b: src/main.rs
/home/helgardf/Documents/Programming/rust/rust_programming_language_exercises/common_collections/vectors_basics/target/release/deps/vectors_basics-13b2b4141fc52a4b.d: src/main.rs
src/main.rs:
|
D
|
instance DIA_Addon_Lares_Patch(C_Info)
{
npc = VLK_449_Lares;
nr = 99;
condition = DIA_Addon_Lares_Patch_Condition;
information = DIA_Addon_Lares_Patch_Info;
description = "(Вернуть орнамент)";
};
func int DIA_Addon_Lares_Patch_Condition()
{
if(Npc_HasItems(self,ItMi_Ornament_Addon_Vatras) && (Kapitel >= 3))
{
return TRUE;
};
};
func void DIA_Addon_Lares_Patch_Info()
{
B_GiveInvItems(self,other,ItMi_Ornament_Addon_Vatras,1);
};
instance DIA_Lares_Kap1_EXIT(C_Info)
{
npc = VLK_449_Lares;
nr = 999;
condition = DIA_Lares_Kap1_EXIT_Condition;
information = DIA_Lares_Kap1_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Lares_Kap1_EXIT_Condition()
{
if(Kapitel == 1)
{
return TRUE;
};
};
func void DIA_Lares_Kap1_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Addon_Lares_HaltsMaul(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Addon_Lares_HaltsMaul_Condition;
information = DIA_Addon_Lares_HaltsMaul_Info;
important = TRUE;
permanent = TRUE;
};
func int DIA_Addon_Lares_HaltsMaul_Condition()
{
if((Lares_HaltsMaul == TRUE) && Npc_IsInState(self,ZS_Talk))
{
return TRUE;
};
};
func void DIA_Addon_Lares_HaltsMaul_Info()
{
AI_Output(self,other,"DIA_Addon_Lares_HaltsMaul_09_01"); //Увидимся позже, в гавани.
AI_StopProcessInfos(self);
};
instance DIA_Lares_PICKPOCKET(C_Info)
{
npc = VLK_449_Lares;
nr = 900;
condition = DIA_Lares_PICKPOCKET_Condition;
information = DIA_Lares_PICKPOCKET_Info;
permanent = TRUE;
description = PICKPOCKET_COMM;
};
func int DIA_Lares_PICKPOCKET_Condition()
{
return C_Beklauen(95,350);
};
func void DIA_Lares_PICKPOCKET_Info()
{
Info_ClearChoices(DIA_Lares_PICKPOCKET);
Info_AddChoice(DIA_Lares_PICKPOCKET,Dialog_Back,DIA_Lares_PICKPOCKET_BACK);
Info_AddChoice(DIA_Lares_PICKPOCKET,DIALOG_PICKPOCKET,DIA_Lares_PICKPOCKET_DoIt);
};
func void DIA_Lares_PICKPOCKET_DoIt()
{
B_Beklauen();
Info_ClearChoices(DIA_Lares_PICKPOCKET);
};
func void DIA_Lares_PICKPOCKET_BACK()
{
Info_ClearChoices(DIA_Lares_PICKPOCKET);
};
instance DIA_Lares_HALLO(C_Info)
{
npc = VLK_449_Lares;
nr = 2;
condition = DIA_Lares_HALLO_Condition;
information = DIA_Lares_HALLO_Info;
permanent = FALSE;
important = TRUE;
};
func int DIA_Lares_HALLO_Condition()
{
if((RangerMeetingRunning == 0) && (KAPITELORCATC == FALSE) && (Npc_CanSeeNpc(self,hero) == TRUE))
{
return TRUE;
};
};
func void DIA_Lares_HALLO_Info()
{
AI_Output(self,other,"DIA_Lares_HALLO_09_00"); //Я, должно быть, сошел с ума! Что ты делаешь здесь?
if((Mil_310_schonmalreingelassen == FALSE) && (Mil_333_schonmalreingelassen == FALSE) && (SkipMeet == TRUE))
{
B_GivePlayerXP(500);
ComeThrowSea = TRUE;
AI_Output(self,other,"DIA_Lares_HALLO_09_01"); //Ты что, ПРИПЛЫЛ сюда?!
AI_Output(self,other,"DIA_Lares_HALLO_09_02"); //Это единственный способ миновать стражу у городских ворот!
B_RaiseAttribute_Bonus(hero,ATR_DEXTERITY,1);
}
else if((Mil_310_schonmalreingelassen == FALSE) && (Mil_333_schonmalreingelassen == FALSE) && (SkipMeet == FALSE))
{
B_GivePlayerXP(300);
}
else
{
B_GivePlayerXP(100);
};
Info_ClearChoices(DIA_Lares_HALLO);
Info_AddChoice(DIA_Lares_HALLO,"Мы уже встречались раньше?",DIA_Lares_HALLO_NO);
Info_AddChoice(DIA_Lares_HALLO,"Эй, Ларес, старый пройдоха!",DIA_Lares_HALLO_YES);
};
func void DIA_Lares_HALLO_NO()
{
AI_Output(other,self,"DIA_Lares_HALLO_NO_15_00"); //Мы уже встречались раньше?
AI_Output(self,other,"DIA_Lares_HALLO_NO_09_01"); //Парень, ты что, не помнишь меня? Мы были вместе в Новом Лагере.
AI_Output(self,other,"DIA_Lares_HALLO_NO_09_02"); //Не говоря уже о шахте... Эй, мы знатно повеселились там. Ты помнишь Ли?
Info_ClearChoices(DIA_Lares_HALLO);
Info_AddChoice(DIA_Lares_HALLO,"Конечно же, я помню Ли!",DIA_Lares_HALLO_LEE);
Info_AddChoice(DIA_Lares_HALLO,"Ли?..",DIA_Lares_HALLO_NOIDEA);
};
func void DIA_Lares_HALLO_YES()
{
B_GivePlayerXP(50);
AI_Output(other,self,"DIA_Lares_HALLO_YES_15_00"); //Эй, Ларес, старый пройдоха! Как ты попал сюда?
AI_Output(self,other,"DIA_Lares_HALLO_YES_09_01"); //Я смог выбраться из Долины Рудников вместе с Ли и другими парнями.
AI_Output(self,other,"DIA_Lares_HALLO_YES_09_02"); //Ты ведь помнишь Ли?
Info_ClearChoices(DIA_Lares_HALLO);
Info_AddChoice(DIA_Lares_HALLO,"Конечно же, я помню Ли!",DIA_Lares_HALLO_LEE);
Info_AddChoice(DIA_Lares_HALLO,"Ли?..",DIA_Lares_HALLO_NOIDEA);
};
func void B_Lares_AboutLee()
{
AI_Output(self,other,"B_Lares_AboutLee_09_00"); //Я выбрался из колонии вместе с ним. Сразу после того, как Барьер был уничтожен.
AI_Output(self,other,"B_Lares_AboutLee_09_01"); //Он и его парни сейчас на ферме Онара.
AI_Output(self,other,"B_Lares_AboutLee_09_02"); //Он договорился с этим фермером. Ли с парнями защищает ферму, а Онар кормит их за это.
};
func void DIA_Lares_HALLO_LEE()
{
B_GivePlayerXP(50);
AI_Output(other,self,"DIA_Lares_HALLO_LEE_15_00"); //Конечно же, я помню Ли!
B_Lares_AboutLee();
Info_ClearChoices(DIA_Lares_HALLO);
};
func void DIA_Lares_HALLO_NOIDEA()
{
AI_Output(other,self,"DIA_Lares_HALLO_NOIDEA_15_00"); //Ли?..
AI_Output(self,other,"DIA_Lares_HALLO_NOIDEA_09_01"); //Тебе, похоже, многое пришлось пережить! Ли был предводителем наемником в Новом Лагере.
B_Lares_AboutLee();
Info_ClearChoices(DIA_Lares_HALLO);
};
instance DIA_Addon_Lares_Vatras(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = DIA_Addon_Lares_Vatras_Condition;
information = DIA_Addon_Lares_Vatras_Info;
description = "Меня послал Ватрас!";
};
func int DIA_Addon_Lares_Vatras_Condition()
{
if(Vatras_GehZuLares == TRUE)
{
return TRUE;
};
};
func void DIA_Addon_Lares_Vatras_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_Vatras_15_00"); //Меня послал Ватрас! Он сказал, что если мне понадобится помощь, я могу обратиться к тебе.
AI_Output(self,other,"DIA_Addon_Lares_Vatras_09_01"); //Итак, ты уже повидался с Ватрасом...(удивленно) Должно быть, ты произвел на него впечатление!
AI_Output(self,other,"DIA_Addon_Lares_Vatras_09_02"); //Иначе, он не назвал бы тебе мое имя. Особенно сейчас, когда повсюду пропадают люди.
AI_Output(self,other,"DIA_Addon_Lares_Vatras_09_03"); //Итак, что тебе нужно?
Lares_RangerHelp = TRUE;
if(GregLocation == Greg_Farm1)
{
B_StartOtherRoutine(BAU_974_Bauer,"GregInTaverne");
GregLocation = Greg_Taverne;
B_StartOtherRoutine(Greg_NW,"Taverne");
};
};
instance DIA_Addon_Lares_WhatAreYouGuys(C_Info)
{
npc = VLK_449_Lares;
nr = 6;
condition = DIA_Addon_Lares_WhatAreYouGuys_Condition;
information = DIA_Addon_Lares_WhatAreYouGuys_Info;
description = "Что у вас за дела с Ватрасом?";
};
func int DIA_Addon_Lares_WhatAreYouGuys_Condition()
{
if((Lares_RangerHelp == TRUE) && (SC_IsRanger == FALSE))
{
return TRUE;
};
};
func void DIA_Addon_Lares_WhatAreYouGuys_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_WhatAreYouGuys_15_00"); //Что у вас за дела с Ватрасом?
AI_Output(self,other,"DIA_Addon_Lares_WhatAreYouGuys_09_01"); //Я заключил с магами воды небольшое соглашение. Понимаешь?
AI_Output(other,self,"DIA_Addon_Lares_WhatAreYouGuys_15_02"); //Что за соглашение?
AI_Output(self,other,"DIA_Addon_Lares_WhatAreYouGuys_09_03"); //Мы на них работаем, а они заботятся о том, чтобы из-за нашего прошлого в колонии у нас не было проблем.
AI_Output(other,self,"DIA_Addon_Lares_WhatAreYouGuys_15_04"); //Ты говоришь о 'Кольце Воды'?
AI_Output(self,other,"DIA_Addon_Lares_WhatAreYouGuys_09_05"); //Ты слышал о нем?
AI_Output(other,self,"DIA_Addon_Lares_WhatAreYouGuys_15_06"); //Да, мне сказал Ватрас.
AI_Output(self,other,"DIA_Addon_Lares_WhatAreYouGuys_09_07"); //Что ж, ты сам ответил на свой вопрос.
Log_CreateTopic(TOPIC_Addon_RingOfWater,LOG_MISSION);
Log_SetTopicStatus(TOPIC_Addon_RingOfWater,LOG_Running);
B_LogEntry(TOPIC_Addon_RingOfWater,"Ларес принадлежит к 'Кольцу Воды'.");
};
instance DIA_Addon_Lares_Ranger(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Addon_Lares_Ranger_Condition;
information = DIA_Addon_Lares_Ranger_Info;
description = "Расскажи мне о 'Кольце Воды'.";
};
func int DIA_Addon_Lares_Ranger_Condition()
{
if(Npc_KnowsInfo(other,DIA_Addon_Lares_WhatAreYouGuys) && (SC_IsRanger == FALSE))
{
return TRUE;
};
};
func void DIA_Addon_Lares_Ranger_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_Ranger_15_00"); //Расскажи мне о 'Кольце Воды'.
AI_Output(self,other,"DIA_Addon_Lares_Ranger_09_01"); //'Кольцо' для Магов Воды - то же самое, что паладины для Магов Огня.
AI_Output(self,other,"DIA_Addon_Lares_Ranger_09_02"); //Но в отличие от паладинов, мы действуем тайно.
AI_Output(self,other,"DIA_Addon_Lares_Ranger_09_03"); //Кольцо - это могучее оружие в битвах с силами зла, угрожающими Хоринису.
AI_Output(self,other,"DIA_Addon_Lares_Ranger_09_04"); //Но сила Кольца основывается на том, что имена его членов хранятся в тайне.
AI_Output(self,other,"DIA_Addon_Lares_Ranger_09_05"); //Поэтому помалкивай об этом!
AI_Output(other,self,"DIA_Addon_Lares_Ranger_15_06"); //Конечно.
B_LogEntry(TOPIC_Addon_RingOfWater,"Члены общества Кольца для магов воды - все равно, что паладины для магов огня. Но братство действует тайно. Его члены не выдают себя, и никто не знает его истинную силу.");
};
instance DIA_Addon_Lares_WannaBeRanger(C_Info)
{
npc = VLK_449_Lares;
nr = 2;
condition = DIA_Addon_Lares_WannaBeRanger_Condition;
information = DIA_Addon_Lares_WannaBeRanger_Info;
description = "Я хочу присоединиться к Кольцу Воды...";
};
func int DIA_Addon_Lares_WannaBeRanger_Condition()
{
if(Npc_KnowsInfo(other,DIA_Addon_Lares_Ranger) && (SC_IsRanger == FALSE))
{
return TRUE;
};
};
func void DIA_Addon_Lares_WannaBeRanger_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_WannaBeRanger_15_00"); //Я хочу присоединиться к Кольцу Воды...
AI_Output(self,other,"DIA_Addon_Lares_WannaBeRanger_09_01"); //Я не против. Но решение о том, можешь ли ты вступить в наши ряды, должны принять маги.
B_LogEntry(TOPIC_Addon_RingOfWater,LogText_Addon_KDWRight);
Info_ClearChoices(DIA_Addon_Lares_WannaBeRanger);
Info_AddChoice(DIA_Addon_Lares_WannaBeRanger,"Понимаю.",DIA_Addon_Lares_WannaBeRanger_BACK);
Info_AddChoice(DIA_Addon_Lares_WannaBeRanger,"А что это значит - быть членом вашего общества?",DIA_Addon_Lares_WannaBeRanger_HowIsIt);
Info_AddChoice(DIA_Addon_Lares_WannaBeRanger,"Что ты сделал для того, чтобы произвести впечатление на магов воды?",DIA_Addon_Lares_WannaBeRanger_AboutYou);
};
func void DIA_Addon_Lares_WannaBeRanger_BACK()
{
AI_Output(other,self,"DIA_Addon_Lares_WannaBeRanger_BACK_15_00"); //Понимаю.
Info_ClearChoices(DIA_Addon_Lares_WannaBeRanger);
};
func void DIA_Addon_Lares_WannaBeRanger_AboutYou()
{
AI_Output(other,self,"DIA_Addon_Lares_WannaBeRanger_AboutYou_15_00"); //Что ты сделал для того, чтобы произвести впечатление на магов воды?
AI_Output(self,other,"DIA_Addon_Lares_WannaBeRanger_AboutYou_09_01"); //Я защищал их все то время, пока мы жили за Барьером.
AI_Output(self,other,"DIA_Addon_Lares_WannaBeRanger_AboutYou_09_02"); //(улыбается) И у них есть множество причин быть мне благодарными.
};
func void DIA_Addon_Lares_WannaBeRanger_HowIsIt()
{
AI_Output(other,self,"DIA_Addon_Lares_WannaBeRanger_HowIsIt_15_00"); //А что это значит - быть членом вашего общества?
AI_Output(self,other,"DIA_Addon_Lares_WannaBeRanger_HowIsIt_09_01"); //Мы не похожи на остальные сообщества Хориниса, к которым ты можешь присоединиться.
AI_Output(self,other,"DIA_Addon_Lares_WannaBeRanger_HowIsIt_09_02"); //Когда ты становишься одним из нас, мы не даем тебе поручения, выполнить которые ты не готов.
AI_Output(self,other,"DIA_Addon_Lares_WannaBeRanger_HowIsIt_09_03"); //Единственное, что требуется от тебя с самого начала - молчание.
AI_Output(self,other,"DIA_Addon_Lares_WannaBeRanger_HowIsIt_09_04"); //Мы действуем тайно и не хотим, чтобы посторонние знали о наших действиях.
AI_Output(self,other,"DIA_Addon_Lares_WannaBeRanger_HowIsIt_09_05"); //Мы будем наблюдать за тобой. Все остальное ты узнаешь со временем.
};
func void B_Lares_Geheimtreffen()
{
AI_Output(self,other,"DIA_Addon_Lares_RingBack_09_07"); //Скоро в таверне Орлана состоится собрание членов общества.
AI_Output(self,other,"DIA_Addon_Lares_RingBack_09_08"); //Приходи туда, и ты получишь свое снаряжение.
};
instance DIA_Addon_Lares_RingBack(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Addon_Lares_RingBack_Condition;
information = DIA_Addon_Lares_RingBack_Info;
description = "Я стал членом общества Кольца Воды.";
};
func int DIA_Addon_Lares_RingBack_Condition()
{
if((SC_IsRanger == TRUE) && (MIS_Addon_Lares_ComeToRangerMeeting != LOG_SUCCESS) && ((Npc_GetDistToWP(self,"NW_CITY_HABOUR_02_B") < 1000) || (Npc_GetDistToWP(self,"NW_CITY_HABOUR_TAVERN01_08") < 1000)))
{
return TRUE;
};
};
func void DIA_Addon_Lares_RingBack_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_RingBack_15_00"); //Я стал членом общества Кольца Воды.
if((Lares_GotRingBack == FALSE) && (SC_GotLaresRing == TRUE))
{
AI_Output(self,other,"DIA_Addon_Lares_RingBack_09_01"); //Прекрасно. Я могу получить обратно свое кольцо?
if(B_GiveInvItems(other,self,ItRi_Ranger_Lares_Addon,1))
{
AI_Output(other,self,"DIA_Addon_Lares_RingBack_15_02"); //Конечно, вот оно.
AI_Output(self,other,"DIA_Addon_Lares_RingBack_09_03"); //Надеюсь, тебе оно пригодилось. Я рад, что ты стал одним из нас.
Lares_GotRingBack = TRUE;
B_GivePlayerXP(XP_Ambient);
}
else
{
AI_Output(other,self,"DIA_Addon_Lares_RingBack_15_04"); //Хмм... оно у меня не с собой.
AI_Output(self,other,"DIA_Addon_Lares_RingBack_09_05"); //Постарайся вернуть его поскорее! Оно мне нужно.
};
};
AI_Output(self,other,"DIA_Addon_Lares_RingBack_09_06"); //Наверное, тебе хочется поскорее получить снаряжение? Слушай меня внимательно.
B_Lares_Geheimtreffen();
B_LogEntry(TOPIC_Addon_RingOfWater,"Ларес пригласил меня на тайную встречу Кольца Воды в таверне Орлана.");
MIS_Addon_Lares_ComeToRangerMeeting = LOG_Running;
};
instance DIA_Addon_Lares_RingBack2(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Addon_Lares_RingBack2_Condition;
information = DIA_Addon_Lares_RingBack2_Info;
description = "Вот твое кольцо.";
};
func int DIA_Addon_Lares_RingBack2_Condition()
{
if((SC_IsRanger == TRUE) && (Npc_HasItems(other,ItRi_Ranger_Lares_Addon) >= 1) && (Lares_GotRingBack == FALSE) && (SC_GotLaresRing == TRUE))
{
return TRUE;
};
};
func void DIA_Addon_Lares_RingBack2_Info()
{
B_GivePlayerXP(XP_Ambient);
AI_Output(other,self,"DIA_Addon_Lares_RingBack2_15_00"); //Вот твое аквамариновое кольцо.
B_GiveInvItems(other,self,ItRi_Ranger_Lares_Addon,1);
AI_Output(self,other,"DIA_Addon_Lares_RingBack2_09_01"); //Замечательно! Я боялся, что ты его потерял.
Lares_GotRingBack = TRUE;
};
instance DIA_Addon_Lares_Geduld(C_Info)
{
npc = VLK_449_Lares;
nr = 2;
condition = DIA_Addon_Lares_Geduld_Condition;
information = DIA_Addon_Lares_Geduld_Info;
important = TRUE;
permanent = TRUE;
};
func int DIA_Addon_Lares_Geduld_Condition()
{
if((RangerMeetingRunning == LOG_Running) && (Npc_GetDistToWP(self,"NW_TAVERNE_IN_RANGERMEETING_LARES") > 200) && Npc_IsInState(self,ZS_Talk))
{
return TRUE;
};
};
func void DIA_Addon_Lares_Geduld_Info()
{
AI_Output(self,other,"DIA_Addon_Lares_Geduld_09_01"); //Тебе придется немного подождать. Еще не все собрались.
AI_StopProcessInfos(self);
};
instance DIA_Addon_Lares_GetRangerArmor(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Addon_Lares_GetRangerArmor_Condition;
information = DIA_Addon_Lares_GetRangerArmor_Info;
important = TRUE;
};
func int DIA_Addon_Lares_GetRangerArmor_Condition()
{
if((MIS_Addon_Lares_ComeToRangerMeeting == LOG_Running) && (Npc_GetDistToWP(self,"NW_TAVERNE_IN_RANGERMEETING_LARES") < 200) && (RangerMeetingRunning == LOG_Running) && Npc_IsInState(self,ZS_Talk))
{
return TRUE;
};
};
func void DIA_Addon_Lares_GetRangerArmor_Info()
{
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_09_00"); //Итак, мой юный друг, мы собрались здесь, чтобы отпраздновать твое вступление в общество Кольца Воды.
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_09_01"); //Люди, которые сейчас здесь присутствуют, будут присматривать за тобой.
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_09_02"); //Конечно же, здесь не все члены общества, так что будь внимателен.
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_09_03"); //Нам будет известно как о твоих действиях на благо Кольца, так и обо всех проступках.
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_09_04"); //А теперь прими от братства эти доспехи.
CreateInvItem(hero,ITAR_RANGER_Addon);
AI_EquipArmor(hero,ITAR_RANGER_Addon);
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_09_05"); //Носи их с гордостью, но никогда не надевай их в городе или каком-либо другом населенном месте.
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_09_06"); //Помни, наши имена должны оставаться в тайне. Никто не должен знать, что мы является членами общества.
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_09_07"); //Болтать о 'Кольце Воды' запрещено. Это наше главное правило. Запомни его!
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_09_08"); //Вопросы есть?
JOINWATERRING = TRUE;
MIS_Addon_Lares_ComeToRangerMeeting = LOG_SUCCESS;
B_GivePlayerXP(XP_Ambient);
Info_ClearChoices(DIA_Addon_Lares_GetRangerArmor);
Info_AddChoice(DIA_Addon_Lares_GetRangerArmor,"Я должен идти.",DIA_Addon_Lares_GetRangerArmor_end);
Info_AddChoice(DIA_Addon_Lares_GetRangerArmor,"Как вы можете помочь мне?",DIA_Addon_Lares_GetRangerArmor_Learn);
Info_AddChoice(DIA_Addon_Lares_GetRangerArmor,"Что насчет оружия?",DIA_Addon_Lares_GetRangerArmor_weapons);
};
func void DIA_Addon_Lares_GetRangerArmor_weapons()
{
AI_Output(other,self,"DIA_Addon_Lares_GetRangerArmor_weapons_15_00"); //Что насчет оружия?
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_weapons_09_01"); //Традиционное оружие членов братства Кольца - боевой посох, однако каждый может использовать то оружие, которое ему нравится.
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_weapons_09_02"); //Вот один из наших посохов. Я так и не смог им овладеть, но может быть тебе он пригодится.
CreateInvItems(self,ItMw_RangerStaff_Addon,1);
B_GiveInvItems(self,other,ItMw_RangerStaff_Addon,1);
AI_Output(other,self,"DIA_Addon_Lares_GetRangerArmor_weapons_09_03"); //А как насчет доспеха получше?
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_weapons_09_04"); //Та кольчуга, которую я тебе дал, и так неплохо защитит тебя. Но если тебе требуется доспех получше...
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_weapons_09_05"); //В портовой части Хориниса ты сможешь найти еще одного члена нашего общества. Его зовут Карл.
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_weapons_09_06"); //Он кузнец. Может быть, ты уже встречался с ним раньше. Поговори с ним об этом. Возможно, он сможет тебе помочь в этом вопросе.
RANGERCARL = TRUE;
};
func void DIA_Addon_Lares_GetRangerArmor_end()
{
B_MakeRangerReadyToLeaveMeetingALL();
AI_Output(other,self,"DIA_Addon_Lares_GetRangerArmor_end_15_00"); //Я должен идти.
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_end_09_01"); //Прекрасно, мы не будем тебя задерживать.
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_end_09_02"); //Отправляйся к Ватрасу и попроси его дать тебе твое первое задание.
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_end_09_03"); //Братья! Пришло время вернуться к нашей работе.
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_end_09_04"); //Нападения бандитов все еще продолжаются. Мы должны ликвидировать эту угрозу.
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_end_09_05"); //Да сохранит Аданос равновесие нашего мира.
Lares_TakeFirstMissionFromVatras = TRUE;
Info_ClearChoices(DIA_Addon_Lares_GetRangerArmor);
Info_AddChoice(DIA_Addon_Lares_GetRangerArmor,Dialog_Ende,DIA_Addon_Lares_GetRangerArmor_weiter);
};
func void DIA_Addon_Lares_GetRangerArmor_weiter()
{
B_LogEntry(TOPIC_Addon_RingOfWater,"На тайной встрече в таверне Орлана мне вручили мою кольчугу. Теперь я должен отправиться к Ватрасу, чтобы он дал мне первое задание как члену 'Кольца'.");
AI_StopProcessInfos(self);
B_RangerMeetingParking();
};
func void DIA_Addon_Lares_GetRangerArmor_Learn()
{
AI_Output(other,self,"DIA_Addon_Lares_GetRangerArmor_Learn_15_00"); //Как вы можете помочь мне?
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_Learn_09_01"); //Я могу сделать тебя более ловким.
if(Npc_IsDead(Sld_805_Cord) == FALSE)
{
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_Learn_09_02"); //Если тебе нужно улучшить свое мастерство ближнего боя, поговори с Кордом. Он мастер клинка.
};
if(Npc_IsDead(BAU_961_Gaan) == FALSE)
{
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_Learn_09_03"); //Гаан научит тебя правильно разделывать животных.
};
if(Npc_IsDead(Mil_350_Addon_Martin) == FALSE)
{
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_Learn_09_04"); //Мартину есть что рассказать тебе о паладинах.
};
if(Npc_IsDead(BAU_4300_Addon_Cavalorn) == FALSE)
{
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_Learn_09_05"); //Кавалорн может научить тебя красться, сражаться одноручным оружием и стрелять из лука.
};
if(Npc_IsDead(BAU_970_Orlan) == FALSE)
{
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_Learn_09_06"); //У Орлана всегда найдется для тебя теплая комната и мягкая кровать.
};
AI_Output(self,other,"DIA_Addon_Lares_GetRangerArmor_Learn_09_07"); //А во всем, что касается магии, ты можешь положиться на Ватраса.
};
instance DIA_Addon_Lares_Teleportstation(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Addon_Lares_Teleportstation_Condition;
information = DIA_Addon_Lares_Teleportstation_Info;
description = "Тебе доводилось пользоваться телепортами?";
};
func int DIA_Addon_Lares_Teleportstation_Condition()
{
if((MIS_Addon_Lares_Ornament2Saturas == LOG_SUCCESS) && (SCUsed_TELEPORTER == TRUE) && (MIS_Lares_BringRangerToMe != 0))
{
return TRUE;
};
};
func void DIA_Addon_Lares_Teleportstation_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_Teleportstation_15_00"); //Тебе доводилось пользоваться телепортами?
AI_Output(self,other,"DIA_Addon_Lares_Teleportstation_09_01"); //Нет, но я о них слышал. Маги воды сами пока не уверены в их надежности.
AI_Output(other,self,"DIA_Addon_Lares_Teleportstation_15_02"); //Я уже проходил через телепорт.
AI_Output(self,other,"DIA_Addon_Lares_Teleportstation_09_03"); //Ну конечно! Ты же вообще ничего не боишься, не так ли?
AI_Output(self,other,"DIA_Addon_Lares_Teleportstation_09_04"); //Ну что ж, если тебе не страшно ими пользоваться, попроси трактирщика Орлана впустить тебя в его пещеру.
AI_Output(self,other,"DIA_Addon_Lares_Teleportstation_09_05"); //В ней спрятан один из телепортов магов воды. Пещера находится неподалеку от его таверны.
AI_Output(self,other,"DIA_Addon_Lares_Teleportstation_09_06"); //Выходи через восточные городские ворота и иди по дороге прямо. Не промахнешься.
B_LogEntry(TOPIC_Addon_TeleportsNW,"Ларес рассказал мне, что неподалеку от таверны Орлана спрятан телепорт.");
Orlan_Hint_Lares = TRUE;
};
instance DIA_Addon_Lares_Ornament(C_Info)
{
npc = VLK_449_Lares;
nr = 2;
condition = DIA_Addon_Lares_Ornament_Condition;
information = DIA_Addon_Lares_Ornament_Info;
description = "Ватрас просил передать тебе этот орнамент.";
};
func int DIA_Addon_Lares_Ornament_Condition()
{
if(Npc_HasItems(other,ItMi_Ornament_Addon_Vatras) && Npc_KnowsInfo(other,DIA_Addon_Lares_Vatras))
{
return TRUE;
};
};
func void DIA_Addon_Lares_Ornament_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_Ornament_15_00"); //Ватрас просил передать тебе этот орнамент. Он сказал, что его нужно отнести назад.
B_GiveInvItems(other,self,ItMi_Ornament_Addon_Vatras,1);
AI_Output(self,other,"DIA_Addon_Lares_Ornament_09_01"); //(вздыхает) Ну конечно! Как всегда, работа достается мне. Я так и знал.
AI_Output(self,other,"DIA_Addon_Lares_Ornament_09_02"); //Теперь мне придется тащиться через пол-острова, чтобы отдать эту штуковину магам воды.
};
instance DIA_Addon_Lares_OrnamentBringJob(C_Info)
{
npc = VLK_449_Lares;
nr = 2;
condition = DIA_Addon_Lares_OrnamentBringJob_Condition;
information = DIA_Addon_Lares_OrnamentBringJob_Info;
description = "Я могу отнести орнамент!";
};
func int DIA_Addon_Lares_OrnamentBringJob_Condition()
{
if(Npc_KnowsInfo(other,DIA_Addon_Lares_Ornament) && (MIS_Addon_Lares_Ornament2Saturas == 0))
{
return TRUE;
};
};
func void DIA_Addon_Lares_OrnamentBringJob_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_OrnamentBringJob_15_00"); //Я могу отнести орнамент!
AI_Output(self,other,"DIA_Addon_Lares_OrnamentBringJob_09_01"); //Хммм...(задумчиво) Нет, лучше я займусь этим сам. Впрочем, ты можешь пойти со мной.
AI_Output(self,other,"DIA_Addon_Lares_OrnamentBringJob_09_02"); //Но сейчас я не могу уйти. Я должен наблюдать за гаванью.
B_LogEntry(TOPIC_Addon_KDW,"Я передал Ларесу орнамент Ватраса. Он хочет отнести его магам воды и просит меня сопровождать его.");
MIS_Addon_Lares_Ornament2Saturas = LOG_Running;
};
instance DIA_Addon_Lares_YourMission(C_Info)
{
npc = VLK_449_Lares;
nr = 2;
condition = DIA_Addon_Lares_YourMission_Condition;
information = DIA_Addon_Lares_YourMission_Info;
permanent = TRUE;
description = "Чем именно ты занимаешься в порту?";
};
func int DIA_Addon_Lares_YourMission_Condition()
{
if(Npc_KnowsInfo(other,DIA_Addon_Lares_Ornament) && (MIS_Lares_BringRangerToMe == FALSE))
{
return TRUE;
};
};
func void DIA_Addon_Lares_YourMission_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_YourMission_15_00"); //Чем именно ты занимаешься в порту?
if(!Npc_KnowsInfo(other,DIA_Addon_Lares_WhatAreYouGuys))
{
AI_Output(self,other,"DIA_Addon_Lares_YourMission_09_01"); //Я не могу тебе сказать.
AI_Output(self,other,"DIA_Addon_Lares_YourMission_09_02"); //Ватрас меня убьет...
}
else
{
AI_Output(self,other,"DIA_Addon_Lares_YourMission_09_03"); //Я делаю то, что делаем мы все. Выполняю задание, которое дали мне маги воды.
AI_Output(self,other,"DIA_Addon_Lares_YourMission_09_04"); //Некоторые из пропавших людей были рыбаками. Они пропали вместе со своими лодками.
AI_Output(self,other,"DIA_Addon_Lares_YourMission_09_05"); //Поэтому я нахожусь здесь и наблюдаю за гаванью. Если что-то еще произойдет, я это замечу.
AI_Output(self,other,"DIA_Addon_Lares_YourMission_09_06"); //Но ты можешь мне помочь.
AI_Output(self,other,"DIA_Addon_Lares_YourMission_09_07"); //Я дам тебе свое аквамариновое кольцо. Оно показывает, что его обладатель принадлежит к Кольцу Воды.
CreateInvItems(self,ItRi_Ranger_Lares_Addon,1);
B_GiveInvItems(self,other,ItRi_Ranger_Lares_Addon,1);
SC_GotLaresRing = TRUE;
AI_Output(self,other,"DIA_Addon_Lares_YourMission_09_08"); //Если ты будешь носить мое кольцо, то членам братства будет ясно, что ты действуешь от моего имени.
AI_Output(self,other,"DIA_Addon_Lares_YourMission_09_09"); //Найди кого-нибудь, кто сменит меня, чтобы я смог отнести орнамент.
AI_Output(self,other,"DIA_Addon_Lares_YourMission_09_10"); //На рынке постоянно дежурит кто-нибудь из наших. Но я не знаю, чья сейчас смена.
AI_Output(self,other,"DIA_Addon_Lares_YourMission_09_11"); //Тебе лучше поговорить со всеми, кто там стоит. Когда наш человек увидит аквамариновое кольцо, он сам тебе откроется.
AI_Output(self,other,"DIA_Addon_Lares_YourMission_09_12"); //Скажи ему, что мне нужен кто-то, кто сменит меня в порту.
B_LogEntry(TOPIC_Addon_RingOfWater,"Ларес дал мне аквамариновое кольцо - тайный знак Кольца Воды. Если я буду его носить, другие члены Кольца Воды смогут мне открыться.");
Log_CreateTopic(TOPIC_Addon_BringRangerToLares,LOG_MISSION);
Log_SetTopicStatus(TOPIC_Addon_BringRangerToLares,LOG_Running);
B_LogEntry_Quiet(TOPIC_Addon_BringRangerToLares,"Ларес хочет покинуть гавань. Я должен пройтись по рынку, надев аквамариновое кольцо, и попробовать найти кого-то, кто займет место Лареса.");
MIS_Lares_BringRangerToMe = LOG_Running;
};
};
instance DIA_Addon_Lares_BaltramAbloese(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Addon_Lares_BaltramAbloese_Condition;
information = DIA_Addon_Lares_BaltramAbloese_Info;
description = "Я говорил с Бальтрамом.";
};
func int DIA_Addon_Lares_BaltramAbloese_Condition()
{
if((MIS_Lares_BringRangerToMe == LOG_Running) && (Baltram_Exchange4Lares == TRUE))
{
return TRUE;
};
};
func void DIA_Addon_Lares_BaltramAbloese_Info()
{
B_GivePlayerXP(XP_Ambient);
AI_Output(other,self,"DIA_Addon_Lares_BaltramAbloese_15_00"); //Я говорил с Бальтрамом. Он найдет тебе замену.
AI_Output(self,other,"DIA_Addon_Lares_BaltramAbloese_09_01"); //Очень хорошо! В таком случае, мы можем отправляться.
if(SC_IsRanger == FALSE)
{
AI_Output(self,other,"DIA_Addon_Lares_BaltramAbloese_09_02"); //Мое кольцо пока можешь оставить себе.
if(Npc_KnowsInfo(other,DIA_Addon_Lares_WannaBeRanger))
{
AI_Output(self,other,"DIA_Addon_Lares_BaltramAbloese_09_03"); //(улыбается) Думаю, оно тебе еще поможет.
}
else
{
AI_Output(self,other,"DIA_Addon_Lares_BaltramAbloese_09_04"); //(улыбается) Кто знает, может, ты решишь стать одним из нас...
};
};
Log_SetTopicStatus(TOPIC_Addon_BringRangerToLares,LOG_SUCCESS);
B_LogEntry(TOPIC_Addon_BringRangerToLares,"Я сообщил Ларесу, что нашел ему замену. Теперь он беспрепятственно может уйти со своего поста.");
MIS_Lares_BringRangerToMe = LOG_SUCCESS;
Lares_CanBringScToPlaces = TRUE;
};
var int Lares_PeopleMissing_PERM;
instance DIA_Addon_Lares_PeopleMissing(C_Info)
{
npc = VLK_449_Lares;
nr = 3;
condition = DIA_Addon_Lares_PeopleMissing_Condition;
information = DIA_Addon_Lares_PeopleMissing_Info;
permanent = TRUE;
description = "Насчет пропавших людей...";
};
func int DIA_Addon_Lares_PeopleMissing_Condition()
{
if((Lares_RangerHelp == TRUE) && (Lares_PeopleMissing_PERM == FALSE) && ((SC_IsRanger == FALSE) || (MissingPeopleReturnedHome == TRUE)))
{
return TRUE;
};
};
func void DIA_Addon_Lares_PeopleMissing_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_PeopleMissing_15_00"); //Насчет пропавших людей...
Info_ClearChoices(DIA_Addon_Lares_PeopleMissing);
Info_AddChoice(DIA_Addon_Lares_PeopleMissing,Dialog_Back,DIA_Addon_Lares_PeopleMissing_BACK);
if(MissingPeopleReturnedHome == TRUE)
{
Info_AddChoice(DIA_Addon_Lares_PeopleMissing,"Мне удалось спасти некоторых из похищенных людей.",DIA_Addon_Lares_PeopleMissing_SAVED);
}
else if((MIS_Lares_BringRangerToMe != 0) && (SCKnowsMissingPeopleAreInAddonWorld == TRUE) && (MissingPeopleReturnedHome == FALSE))
{
Info_AddChoice(DIA_Addon_Lares_PeopleMissing,"Я знаю, что случилось с пропавшими людьми!",DIA_Addon_Lares_PeopleMissing_Success);
}
else
{
Info_AddChoice(DIA_Addon_Lares_PeopleMissing,"Разве этим делом не должно заниматься ополчение?",DIA_Addon_Lares_PeopleMissing_MIL);
Info_AddChoice(DIA_Addon_Lares_PeopleMissing,"Расскажи мне, что тебе известно.",DIA_Addon_Lares_PeopleMissing_TellMe);
};
};
func void DIA_Addon_Lares_PeopleMissing_BACK()
{
Info_ClearChoices(DIA_Addon_Lares_PeopleMissing);
};
func void DIA_Addon_Lares_PeopleMissing_TellMe()
{
AI_Output(other,self,"DIA_Addon_Lares_PeopleMissing_TellMe_15_00"); //Расскажи мне, что тебе известно.
AI_Output(self,other,"DIA_Addon_Lares_PeopleMissing_TellMe_09_01"); //Первым пропал Вильям, один из городских рыбаков. В один прекрасный день он просто не вернулся из плаванья.
AI_Output(self,other,"DIA_Addon_Lares_PeopleMissing_TellMe_09_02"); //Сначала мы подумали, что его вместе с его лодкой просто сожрали морские чудовища.
AI_Output(self,other,"DIA_Addon_Lares_PeopleMissing_TellMe_09_03"); //Но через некоторое время начали пропадать другие люди, как горожане, так и жители предместий.
AI_Output(self,other,"DIA_Addon_Lares_PeopleMissing_TellMe_09_04"); //Найти пока никого не удалось. Похоже на то, что нам остается только ждать, пока кто-нибудь не наткнется на какую-нибудь улику.
if(SC_HearedAboutMissingPeople == FALSE)
{
Log_CreateTopic(TOPIC_Addon_WhoStolePeople,LOG_MISSION);
Log_SetTopicStatus(TOPIC_Addon_WhoStolePeople,LOG_Running);
B_LogEntry(TOPIC_Addon_WhoStolePeople,LogText_Addon_SCKnowsMisspeapl);
Log_CreateTopic(TOPIC_Addon_MissingPeople,LOG_MISSION);
Log_SetTopicStatus(TOPIC_Addon_MissingPeople,LOG_Running);
B_LogEntry_Quiet(TOPIC_Addon_MissingPeople,LogText_Addon_WilliamMissing);
SC_HearedAboutMissingPeople = TRUE;
};
};
func void DIA_Addon_Lares_PeopleMissing_MIL()
{
AI_Output(other,self,"DIA_Addon_Lares_PeopleMissing_MIL_15_00"); //Разве этим делом не должно заниматься ополчение?
AI_Output(self,other,"DIA_Addon_Lares_PeopleMissing_MIL_09_01"); //На мой взгляд, ополчение здесь довольно бесполезно.
AI_Output(self,other,"DIA_Addon_Lares_PeopleMissing_MIL_09_02"); //Люди пропадали безо всяких следов. Нет, ополчению здесь не справиться.
};
func void DIA_Addon_Lares_PeopleMissing_Success()
{
AI_Output(other,self,"DIA_Addon_Lares_PeopleMissing_Success_15_00"); //Я знаю, что случилось с пропавшими людьми!
AI_Output(self,other,"DIA_Addon_Lares_PeopleMissing_Success_09_01"); //(удивленно) Действительно?
AI_Output(other,self,"DIA_Addon_Lares_PeopleMissing_Success_15_02"); //Их похитил бывший рудный барон Ворон.
AI_Output(self,other,"DIA_Addon_Lares_PeopleMissing_Success_09_03"); //Ты уверен? В таком случае мы должны освободить их.
AI_Output(other,self,"DIA_Addon_Lares_PeopleMissing_Success_15_04"); //Я над этим работаю.
AI_Output(self,other,"DIA_Addon_Lares_PeopleMissing_Success_09_05"); //Очень хорошо. И не забывай, если тебе понадобится моя помощь...
AI_Output(other,self,"DIA_Addon_Lares_PeopleMissing_Success_15_06"); //...то я знаю, где тебя найти. Все понятно.
Lares_CanBringScToPlaces = TRUE;
Info_ClearChoices(DIA_Addon_Lares_PeopleMissing);
};
func void DIA_Addon_Lares_PeopleMissing_SAVED()
{
AI_Output(other,self,"DIA_Addon_Lares_PeopleMissing_SAVED_15_00"); //Мне удалось спасти некоторых из похищенных людей.
AI_Output(self,other,"DIA_Addon_Lares_PeopleMissing_SAVED_09_01"); //Я знал, что ты справишься. Теперь я наконец-то смогу заняться своими делами.
B_GivePlayerXP(XP_Ambient);
Lares_PeopleMissing_PERM = TRUE;
Lares_CanBringScToPlaces = TRUE;
Info_ClearChoices(DIA_Addon_Lares_PeopleMissing);
};
var int DIA_Addon_Lares_RangerHelp_gilde_OneTime_Waffe;
var int DIA_Addon_Lares_RangerHelp_gilde_OneTime_geld;
var int DIA_Addon_Lares_RangerHelp_gilde_OneTime_ruestung;
instance DIA_Addon_Lares_RangerHelp(C_Info)
{
npc = VLK_449_Lares;
nr = 2;
condition = DIA_Addon_Lares_RangerHelp_Condition;
information = DIA_Addon_Lares_RangerHelp_Info;
permanent = TRUE;
description = "Мне нужна твоя помощь.";
};
func int DIA_Addon_Lares_RangerHelp_Condition()
{
if(((Lares_RangerHelp == TRUE) && (DIA_Addon_Lares_RangerHelp_gilde_OneTime_Waffe == FALSE) && (DIA_Addon_Lares_RangerHelp_gilde_OneTime_geld == FALSE) && (DIA_Addon_Lares_RangerHelp_gilde_OneTime_ruestung == FALSE)) || Npc_IsInState(Moe,ZS_Attack))
{
return TRUE;
};
};
func void DIA_Addon_Lares_RangerHelp_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_RangerHelp_15_00"); //Мне нужна твоя помощь.
AI_Output(self,other,"DIA_Addon_Lares_RangerHelp_09_01"); //Что именно тебе нужно?
Info_ClearChoices(DIA_Addon_Lares_RangerHelp);
Info_AddChoice(DIA_Addon_Lares_RangerHelp,Dialog_Back,DIA_Addon_Lares_RangerHelp_nix);
if((DIA_Addon_Lares_RangerHelp_gilde_OneTime_Waffe == FALSE) && (Lares_RangerHelp == TRUE))
{
Info_AddChoice(DIA_Addon_Lares_RangerHelp,"Мне нужно лучшее оружие.",DIA_Addon_Lares_RangerHelp_waffe);
};
if((DIA_Addon_Lares_RangerHelp_gilde_OneTime_ruestung == FALSE) && (Lares_RangerHelp == TRUE))
{
Info_AddChoice(DIA_Addon_Lares_RangerHelp,"Как насчет лучшей брони?",DIA_Addon_Lares_RangerHelp_ruestung);
};
if((DIA_Addon_Lares_RangerHelp_gilde_OneTime_geld == FALSE) && (Lares_RangerHelp == TRUE))
{
Info_AddChoice(DIA_Addon_Lares_RangerHelp,"Мне нужны деньги.",DIA_Addon_Lares_RangerHelp_geld);
};
};
func void DIA_Addon_Lares_RangerHelp_ruestung()
{
AI_Output(other,self,"DIA_Addon_Lares_RangerHelp_ruestung_15_00"); //Как насчет лучшей брони?
AI_Output(self,other,"DIA_Addon_Lares_RangerHelp_ruestung_09_01"); //Броню продает Маттео. Но он сдерет с тебя за нее три шкуры.
AI_Output(self,other,"DIA_Addon_Lares_RangerHelp_ruestung_09_02"); //Но ты можешь получить доспехи бесплатно, если, конечно, ты не против того, чтобы немного нарушить закон...
AI_Output(other,self,"DIA_Addon_Lares_RangerHelp_ruestung_15_03"); //Что ты имеешь в виду?
AI_Output(self,other,"DIA_Addon_Lares_RangerHelp_ruestung_09_04"); //Рядом с домом Маттео есть небольшой открытый склад. Но все находящиеся там товары были конфискованы ополчением.
AI_Output(self,other,"DIA_Addon_Lares_RangerHelp_ruestung_09_05"); //Отправляйся на рынок и купи у Зуриса заклинание сна. Оно позволит тебе усыпить охранника.
AI_Output(self,other,"DIA_Addon_Lares_RangerHelp_ruestung_09_06"); //Уверен, что среди вещей Маттео ты найдешь себе достойную броню...
DIA_Addon_Lares_RangerHelp_gilde_OneTime_ruestung = TRUE;
};
func void DIA_Addon_Lares_RangerHelp_waffe()
{
AI_Output(other,self,"DIA_Addon_Lares_RangerHelp_waffe_15_00"); //Мне нужно лучшее оружие.
AI_Output(self,other,"DIA_Addon_Lares_RangerHelp_waffe_09_01"); //Боюсь, что тут я тебе помочь не могу. Почему бы тебе не сходить на рынок?
DIA_Addon_Lares_RangerHelp_gilde_OneTime_Waffe = TRUE;
};
func void DIA_Addon_Lares_RangerHelp_geld()
{
AI_Output(other,self,"DIA_Addon_Lares_RangerHelp_geld_15_00"); //Мне нужны деньги.
AI_Output(self,other,"DIA_Addon_Lares_RangerHelp_geld_09_01"); //А кому они не нужны? Извини, но я сам поиздержался. Впрочем, ростовщик Лемар кое-чем мне обязан.
AI_Output(self,other,"DIA_Addon_Lares_RangerHelp_geld_09_02"); //Отправляйся к нему и одолжи столько, сколько тебе нужно. Об остальном я позабочусь. Дом Лемара находится на границе порта и нижнего квартала города.
DIA_Addon_Lares_RangerHelp_gilde_OneTime_geld = TRUE;
RangerHelp_LehmarKohle = TRUE;
Info_ClearChoices(DIA_Addon_Lares_RangerHelp);
};
func void DIA_Addon_Lares_RangerHelp_nix()
{
Info_ClearChoices(DIA_Addon_Lares_RangerHelp);
};
instance DIA_Lares_Paladine(C_Info)
{
npc = VLK_449_Lares;
nr = 4;
condition = DIA_Lares_Paladine_Condition;
information = DIA_Lares_Paladine_Info;
permanent = FALSE;
description = "Мне во что бы то ни стало нужно поговорить с паладинами!";
};
func int DIA_Lares_Paladine_Condition()
{
if((other.guild == GIL_NONE) && (RangerHelp_gildeMIL == FALSE) && (RangerHelp_gildeSLD == FALSE) && (RangerHelp_gildeKDF == FALSE))
{
return TRUE;
};
};
func void DIA_Lares_Paladine_Info()
{
AI_Output(other,self,"DIA_Lares_Paladine_15_00"); //Мне во что бы то ни стало нужно поговорить с паладинами!
AI_Output(self,other,"DIA_Lares_Paladine_09_01"); //Что тебе нужно от НИХ?
AI_Output(other,self,"DIA_Lares_Paladine_15_02"); //У них есть амулет, Глаз Инноса. Я должен заполучить его.
AI_Output(self,other,"DIA_Lares_Paladine_09_03"); //И ты думаешь, они отдадут его тебе? Тебе никогда не попасть в верхний квартал города.
if(!Npc_KnowsInfo(other,DIA_Addon_Lares_Vatras))
{
AI_Output(other,self,"DIA_Lares_Paladine_15_04"); //Я что-нибудь придумаю.
AI_Output(self,other,"DIA_Lares_Paladine_09_05"); //Конечно, если ты сможешь снискать уважение горожан или станешь мальчиком на побегушках в ополчении...
};
};
instance DIA_Lares_WhyPalHere(C_Info)
{
npc = VLK_449_Lares;
nr = 4;
condition = DIA_Lares_WhyPalHere_Condition;
information = DIA_Lares_WhyPalHere_Info;
permanent = FALSE;
description = "Ты знаешь, зачем паладины прибыли сюда?";
};
func int DIA_Lares_WhyPalHere_Condition()
{
if(other.guild == GIL_NONE)
{
if(Npc_KnowsInfo(other,DIA_Lares_Paladine) || (RangerHelp_gildeMIL == TRUE) || (RangerHelp_gildeSLD == TRUE) || (RangerHelp_gildeKDF == TRUE))
{
return TRUE;
};
};
};
func void DIA_Lares_WhyPalHere_Info()
{
AI_Output(other,self,"DIA_Lares_WhyPalHere_15_00"); //Ты знаешь, зачем паладины прибыли сюда?
AI_Output(self,other,"DIA_Lares_WhyPalHere_09_01"); //Никто точно не знает этого... Большинство думает, что из-за орков, но мне кажется, причина совсем в другом.
AI_Output(self,other,"DIA_Lares_WhyPalHere_09_02"); //Скорее всего, это имеет отношение к старой колонии.
};
instance DIA_Addon_Lares_Gilde(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Addon_Lares_Gilde_Condition;
information = DIA_Addon_Lares_Gilde_Info;
permanent = TRUE;
description = "Ты можешь помочь мне присоединиться к одному из сообществ?";
};
func int DIA_Addon_Lares_Gilde_Condition()
{
if((Lares_RangerHelp == TRUE) && (other.guild == GIL_NONE) && (RangerHelp_gildeMIL == FALSE) && (RangerHelp_gildeSLD == FALSE) && (RangerHelp_gildeKDF == FALSE))
{
return TRUE;
};
};
func void DIA_Addon_Lares_Gilde_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_Gilde_15_00"); //Ватрас сказал, что ты можешь помочь мне присоединиться к одному из сообществ.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_09_01"); //(смеется) Что, устал быть человеком второго сорта?
AI_Output(self,other,"DIA_Addon_Lares_Gilde_09_02"); //Ладно, я все понимаю.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_09_03"); //Если ты хочешь присоединиться к Ли, я могу использовать свое влияние среди наемников.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_09_04"); //Уверен, что мы также сможем найти быстрый способ определить тебя в монастырь.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_09_05"); //Но проще всего, конечно, тебе будет вступить в ряды ополчения.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_09_06"); //Итак, что ты предпочитаешь?
Info_ClearChoices(DIA_Addon_Lares_Gilde);
Info_AddChoice(DIA_Addon_Lares_Gilde,"Я подумаю насчет этого...",DIA_Addon_Lares_Gilde_BACK);
Info_AddChoice(DIA_Addon_Lares_Gilde,"Магов огня.",DIA_Addon_Lares_Gilde_KDF);
Info_AddChoice(DIA_Addon_Lares_Gilde,"Наемников.",DIA_Addon_Lares_Gilde_SLD);
Info_AddChoice(DIA_Addon_Lares_Gilde,"Ополчение.",DIA_Addon_Lares_Gilde_MIL);
};
func void DIA_Addon_Lares_Gilde_BACK()
{
AI_Output(other,self,"DIA_Addon_Lares_Gilde_BACK_15_00"); //Мне нужно подумать...
Info_ClearChoices(DIA_Addon_Lares_Gilde);
};
func void DIA_Addon_Lares_Gilde_SLD()
{
AI_Output(other,self,"DIA_Addon_Lares_Gilde_SLD_15_00"); //Наемников.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_SLD_09_01"); //Я уверен, что Ли тебя примет.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_SLD_Add_09_01"); //Но сначала тебе придется пройти испытание.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_SLD_09_02"); //Отправляйся на ферму Онара и поговори с Кордом.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_SLD_Add_09_02"); //Он поможет тебе.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_SLD_09_03"); //Скажи ему, что ты 'под моим крылом'. Он тебя поймет.
RangerHelp_gildeSLD = TRUE;
Log_CreateTopic(TOPIC_Addon_RangerHelpSLD,LOG_MISSION);
Log_SetTopicStatus(TOPIC_Addon_RangerHelpSLD,LOG_Running);
B_LogEntry(TOPIC_Addon_RangerHelpSLD,"Ларес сказал, что наемник Корд может сделать мою жизнь среди наемников проще.");
SC_KnowsCordAsRangerFromLares = TRUE;
Info_ClearChoices(DIA_Addon_Lares_Gilde);
};
func void DIA_Addon_Lares_Gilde_MIL()
{
AI_Output(other,self,"DIA_Addon_Lares_Gilde_MIL_15_00"); //Ополчение.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_MIL_09_01"); //(весело) Я так понимаю, тебе это понравится. Следить за соблюдением законов, в то же время обчищая кошельки горожан.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_MIL_09_02"); //Паладины устроили в гавани склад своих запасов. Их интендант - мой хороший друг.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_MIL_09_03"); //Думаю, он сможет тебе помочь. Его зовут Мартин.
Log_CreateTopic(TOPIC_Addon_RangerHelpMIL,LOG_MISSION);
Log_SetTopicStatus(TOPIC_Addon_RangerHelpMIL,LOG_Running);
B_LogEntry(TOPIC_Addon_RangerHelpMIL,"Ларес говорит, что интендант Мартин может помочь мне быстро присоединиться к ополчению. Обычно Мартина можно найти в гавани, где он занимается припасами паладинов.");
RangerHelp_gildeMIL = TRUE;
Info_ClearChoices(DIA_Addon_Lares_Gilde);
};
func void DIA_Addon_Lares_Gilde_KDF()
{
AI_Output(other,self,"DIA_Addon_Lares_Gilde_KDF_15_00"); //Магов огня.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_KDF_09_01"); //(смеется) Уверен, Ватрас не предвидел твой выбор. Иначе он бы не послал тебя ко мне.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_KDF_09_02"); //Путь в послушники требует денег.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_KDF_09_03"); //Если ты не заплатишь, тебя просто не пустят в монастырь.
AI_Output(self,other,"DIA_Addon_Lares_Gilde_KDF_09_04"); //Единственный, кто может тут тебе помочь, - это сам Ватрас. Так что поговори с ним.
Log_CreateTopic(TOPIC_Addon_RangerHelpKDF,LOG_MISSION);
Log_SetTopicStatus(TOPIC_Addon_RangerHelpKDF,LOG_Running);
B_LogEntry(TOPIC_Addon_RangerHelpKDF,"Ларес сказал, что Ватрас знает легкий способ попасть в монастырь.");
RangerHelp_gildeKDF = TRUE;
Info_ClearChoices(DIA_Addon_Lares_Gilde);
};
var int Lares_WorkForLee;
var int Lares_WayToOnar;
instance DIA_Lares_AboutSld(C_Info)
{
npc = VLK_449_Lares;
nr = 10;
condition = DIA_Lares_AboutSld_Condition;
information = DIA_Lares_AboutSld_Info;
permanent = TRUE;
description = "Расскажи мне о Ли и наемниках.";
};
func int DIA_Lares_AboutSld_Condition()
{
if((other.guild == GIL_NONE) && (Lares_WayToOnar == FALSE))
{
return TRUE;
};
};
func void DIA_Lares_AboutSld_Info()
{
AI_Output(other,self,"DIA_ADDON_Lares_AboutSld_15_00"); //Расскажи мне о Ли и наемниках.
AI_Output(self,other,"DIA_ADDON_Lares_AboutSld_09_01"); //Что ты хочешь узнать?
Info_ClearChoices(DIA_Lares_AboutSld);
Info_AddChoice(DIA_Lares_AboutSld,Dialog_Back,DIA_Lares_AboutSld_BACK);
Info_AddChoice(DIA_Lares_AboutSld,"А почему ТЫ не с Ли и наемниками?",DIA_Lares_AboutSld_WhyNotYou);
Info_AddChoice(DIA_Lares_AboutSld,"Расскажи мне подробнее о наемниках.",DIA_Lares_AboutSld_Sld);
Info_AddChoice(DIA_Lares_AboutSld,"Как мне найти ферму Онара?",DIA_Lares_AboutSld_WayToOnar);
};
func void DIA_Lares_AboutSld_BACK()
{
Info_ClearChoices(DIA_Lares_AboutSld);
};
func void DIA_Lares_AboutSld_Sld()
{
AI_Output(other,self,"DIA_Lares_AboutSld_15_00"); //Расскажи мне подробнее о наемниках.
AI_Output(self,other,"DIA_Lares_AboutSld_09_01"); //Ну, если ты так же силен, как был в долине, то у тебя не должно возникнуть проблем с ними.
AI_Output(self,other,"DIA_Lares_AboutSld_09_02"); //Большинство из них настоящие головорезы, и если ты не сможешь дать им отпор, то далеко ты не продвинешься.
AI_Output(self,other,"DIA_Lares_AboutSld_09_03"); //(смеется) Если ты проявишь слабость, у тебя не будет шансов присоединиться к ним...
};
func void DIA_Lares_AboutSld_WhyNotYou()
{
AI_Output(other,self,"DIA_Lares_WhyInCity_15_00"); //А почему ТЫ не с Ли и наемниками?
AI_Output(self,other,"DIA_Lares_WhyInCity_09_01"); //Я с ними! Просто я сейчас не на ферме.
AI_Output(self,other,"DIA_Lares_WhyInCity_09_02"); //Можно сказать, я их аванпост в городе. Мы не хотим, чтобы корабль уплыл без нас.
Lares_WorkForLee = TRUE;
Info_AddChoice(DIA_Lares_AboutSld,"О каком корабле ты говоришь?",DIA_Lares_AboutSld_Schiff);
};
func void DIA_Lares_AboutSld_Schiff()
{
AI_Output(other,self,"DIA_Lares_Schiff_15_00"); //О каком корабле ты говоришь?
AI_Output(self,other,"DIA_Lares_Schiff_09_01"); //Он стоит в гавани порта, за утесами. Ли и часть его людей очень хотят убраться отсюда.
AI_Output(self,other,"DIA_Lares_Schiff_09_02"); //Но это может занять некоторое время...
AI_Output(other,self,"DIA_Lares_Schiff_15_03"); //Почему?
AI_Output(self,other,"DIA_Lares_Schiff_09_04"); //Тебе лучше спросить об этом Ли, если встретишь его... У него есть план.
};
func void DIA_Lares_AboutSld_WayToOnar()
{
AI_Output(other,self,"DIA_Lares_WegZumHof_15_00"); //Как мне найти ферму Онара?
AI_Output(self,other,"DIA_Addon_Lares_WegZumHof_09_00"); //Это довольно просто. Ты выходишь из города через восточные ворота, а затем следуешь по дороге на восток.
if(RealMode[2] == FALSE)
{
AI_Output(self,other,"DIA_Addon_Lares_WegZumHof_09_01"); //Если хочешь, я могу тебя проводить.
Lares_WayToOnar = TRUE;
};
};
instance DIA_Lares_GuildOfThieves(C_Info)
{
npc = VLK_449_Lares;
nr = 14;
condition = DIA_Lares_GuildOfThieves_Condition;
information = DIA_Lares_GuildOfThieves_Info;
permanent = FALSE;
description = "Ты знаешь что-нибудь о городской гильдии воров?";
};
func int DIA_Lares_GuildOfThieves_Condition()
{
if(MIS_Andre_GuildOfThieves == LOG_Running)
{
return TRUE;
};
};
func void DIA_Lares_GuildOfThieves_Info()
{
AI_Output(other,self,"DIA_Lares_GuildOfThieves_15_00"); //Ты знаешь что-нибудь о городской гильдии воров?
AI_Output(self,other,"DIA_Lares_GuildOfThieves_09_01"); //Ну и вопросы ты задаешь...
AI_Output(self,other,"DIA_Lares_GuildOfThieves_09_02"); //Конечно, здесь есть гильдия воров. Как и в любом большом городе.
AI_Output(self,other,"DIA_Lares_GuildOfThieves_09_03"); //И каждый более-менее стоящий вор, вероятно, как-то связан с ними.
};
instance DIA_Lares_WhereGuildOfThieves(C_Info)
{
npc = VLK_449_Lares;
nr = 15;
condition = DIA_Lares_WhereGuildOfThieves_Condition;
information = DIA_Lares_WhereGuildOfThieves_Info;
permanent = FALSE;
description = "Ты знаешь, где мне найти гильдию воров?";
};
func int DIA_Lares_WhereGuildOfThieves_Condition()
{
if(Npc_KnowsInfo(other,DIA_Lares_GuildOfThieves) && (DG_gefunden == FALSE))
{
return TRUE;
};
};
func void DIA_Lares_WhereGuildOfThieves_Info()
{
AI_Output(other,self,"DIA_Lares_WhereGuildOfThieves_15_00"); //Ты знаешь, где мне найти гильдию воров?
AI_Output(self,other,"DIA_Lares_WhereGuildOfThieves_09_01"); //(смеется) Не обижайся, но даже если бы знал, не сказал бы.
AI_Output(self,other,"DIA_Lares_WhereGuildOfThieves_09_02"); //Эти люди обычно ОЧЕНЬ жестко реагируют на такие вещи.
AI_Output(self,other,"DIA_Lares_WhereGuildOfThieves_09_03"); //Если ты собираешься связаться с ними, тебе нужно быть поосторожнее.
};
instance DIA_Lares_GotKey(C_Info)
{
npc = VLK_449_Lares;
nr = 16;
condition = DIA_Lares_GotKey_Condition;
information = DIA_Lares_GotKey_Info;
permanent = FALSE;
description = "Я нашел здесь этот ключ. Он весь изъеден морской водой...";
};
func int DIA_Lares_GotKey_Condition()
{
if(Npc_KnowsInfo(other,DIA_Lares_WhereGuildOfThieves) && Npc_HasItems(other,ItKe_ZhiefGuildKey_MIS) && (DG_gefunden == FALSE))
{
return TRUE;
};
};
func void DIA_Lares_GotKey_Info()
{
AI_Output(other,self,"DIA_Lares_GotKey_15_00"); //Я нашел здесь этот ключ. Он весь изъеден морской водой...
AI_Output(self,other,"DIA_Lares_GotKey_09_01"); //И?
AI_Output(other,self,"DIA_Lares_GotKey_15_02"); //Я думаю, он приведет меня к логову воровской гильдии...
AI_Output(self,other,"DIA_Lares_GotKey_09_03"); //Ну, это может быть ключ от канализации.
};
instance DIA_Lares_Kanalisation(C_Info)
{
npc = VLK_449_Lares;
nr = 17;
condition = DIA_Lares_Kanalisation_Condition;
information = DIA_Lares_Kanalisation_Info;
permanent = FALSE;
description = "Где мне найти канализацию?";
};
func int DIA_Lares_Kanalisation_Condition()
{
if(Npc_KnowsInfo(other,DIA_Lares_GotKey) && (DG_gefunden == FALSE))
{
return TRUE;
};
};
func void DIA_Lares_Kanalisation_Info()
{
AI_Output(other,self,"DIA_Lares_Kanalisation_15_00"); //Где мне найти канализацию?
AI_Output(self,other,"DIA_Lares_Kanalisation_09_01"); //Насколько я знаю... канализации обычно выходят в океан.
};
instance DIA_Lares_OtherGuild(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = DIA_Lares_OtherGuild_Condition;
information = DIA_Lares_OtherGuild_Info;
permanent = FALSE;
important = TRUE;
};
func int DIA_Lares_OtherGuild_Condition()
{
if(Npc_IsInState(self,ZS_Talk) && (other.guild != GIL_NONE) && (SC_IsRanger == FALSE))
{
return TRUE;
};
};
func void DIA_Lares_OtherGuild_Info()
{
if((other.guild == GIL_MIL) || (other.guild == GIL_PAL))
{
if(other.guild == GIL_MIL)
{
AI_Output(self,other,"DIA_Lares_OtherGuild_09_00"); //Теперь ты в ополчении!
AI_Output(self,other,"DIA_Lares_OtherGuild_09_01"); //(смеется) Со смеху помереть можно - бывший каторжник в ополчении...
}
else
{
AI_Output(self,other,"DIA_Lares_OtherGuild_09_02"); //Так теперь ты один из паладинов короля!
};
AI_Output(self,other,"DIA_Lares_OtherGuild_09_03"); //(лукаво) Только ты мог провернуть такое...
if(Lares_WorkForLee == TRUE)
{
AI_Output(self,other,"DIA_Lares_OtherGuild_09_04"); //(озабоченно) Ты ведь никому не расскажешь, что я работаю на Ли, правда?
AI_Output(other,self,"DIA_Lares_OtherGuild_15_05"); //Ты же знаешь меня...
};
}
else if((other.guild == GIL_KDF) || (other.guild == GIL_NOV))
{
AI_Output(self,other,"DIA_Lares_OtherGuild_09_06"); //Я не понимаю этого. Ты ушел в монастырь? Как это случилось?
AI_Output(other,self,"DIA_Lares_OtherGuild_15_07"); //Так вышло.
AI_Output(self,other,"DIA_Lares_OtherGuild_09_08"); //Могу себе представить.
}
else if((other.guild == GIL_SLD) || (other.guild == GIL_DJG))
{
AI_Output(self,other,"DIA_Addon_Lares_OtherGuild_09_00"); //Я слышал, тебя приняли к наемникам Ли.
AI_Output(self,other,"DIA_Lares_OtherGuild_09_10"); //Поздравляю!
}
else if((other.guild == GIL_NDW) || (other.guild == GIL_KDW))
{
AI_Output(self,other,"DIA_Addon_Lares_OtherGuild_09_11"); //Ты встал на путь магов Воды. Что ж, этот выбор я абсолютно приветствую!
AI_Output(self,other,"DIA_Lares_OtherGuild_09_12"); //Поздравляю.
}
else if((other.guild == GIL_NDM) || (other.guild == GIL_KDM))
{
AI_Output(self,other,"DIA_Addon_Lares_OtherGuild_09_12"); //(с опаской) Ты встал на путь темных магов?
AI_Output(self,other,"DIA_Lares_OtherGuild_09_13"); //Иногда я не понимаю, что творится в твоем сознании - когда ты делаешь подобные вещи.
}
else if((other.guild == GIL_SEK) || (other.guild == GIL_TPL) || (other.guild == GIL_GUR))
{
AI_Output(self,other,"DIA_Addon_Lares_OtherGuild_09_13"); //Ты опять последовал путем Братства! Неужели эта вера так сильна в тебе?
AI_Output(self,other,"DIA_Lares_OtherGuild_09_14"); //Что же - это твой выбор, и не мне его осуждать.
};
};
instance DIA_Addon_Lares_Forest(C_Info)
{
npc = VLK_449_Lares;
nr = 9;
condition = DIA_Addon_Lares_Forest_Condition;
information = DIA_Addon_Lares_Forest_Info;
description = "Ты можешь проводить меня через восточный лес?";
};
func int DIA_Addon_Lares_Forest_Condition()
{
if((MIS_Addon_Nefarius_BringMissingOrnaments == LOG_Running) && (RealMode[2] == FALSE))
{
return TRUE;
};
};
func void DIA_Addon_Lares_Forest_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_RangerHelp_Forest_15_00"); //Ты можешь проводить меня через восточный лес?
AI_Output(self,other,"DIA_Addon_Lares_RangerHelp_Forest_09_01"); //Конечно. Но что тебе там нужно?
AI_Output(other,self,"DIA_Addon_Lares_RangerHelp_Forest_15_02"); //Нефариус поручил мне найти недостающие орнаменты.
AI_Output(other,self,"DIA_Addon_Lares_RangerHelp_Forest_15_03"); //Одно из указанных им мест находится как раз в этом лесу.
AI_Output(self,other,"DIA_Addon_Lares_RangerHelp_Forest_09_04"); //Понимаю. Пока тебе идти туда одному было бы слишком опасно.
AI_Output(self,other,"DIA_Addon_Lares_RangerHelp_Forest_09_05"); //Хорошо. Когда ты будешь готов отправляться, скажи.
RangerHelp_OrnamentForest = TRUE;
};
instance DIA_Lares_GoNow(C_Info)
{
npc = VLK_449_Lares;
nr = 10;
condition = DIA_Lares_GoNow_Condition;
information = DIA_Lares_GoNow_Info;
permanent = TRUE;
description = "Хорошо, пошли.";
};
func int DIA_Lares_GoNow_Condition()
{
if((LaresGuideForest == TRUE) && (LaresGuideMage == TRUE) && (LaresGuideOnar == TRUE))
{
return FALSE;
};
if(((Lares_WayToOnar == TRUE) || (MIS_Addon_Lares_Ornament2Saturas == LOG_Running) || (RangerHelp_OrnamentForest == TRUE)) && ((LaresGuide_ZumPortal == 0) || (LaresGuide_ZumPortal == 8)) && ((LaresGuide_ZuOnar == FALSE) || (LaresGuide_ZuOnar == LOG_SUCCESS)) && ((LaresGuide_OrnamentForest == 0) || (LaresGuide_OrnamentForest == 3)) && (Kapitel < 3))
{
return TRUE;
};
};
func void DIA_Lares_GoNow_Info()
{
AI_Output(other,self,"DIA_Lares_GoNow_15_00"); //Хорошо, пошли.
if(Lares_CanBringScToPlaces == FALSE)
{
AI_Output(self,other,"DIA_Addon_Lares_GoNow_09_03"); //Я не могу уйти отсюда, пока мы не узнаем больше о пропавших людях или пока меня кто-нибудь не сменит.
}
else if(MIS_Addon_Lares_ComeToRangerMeeting == LOG_Running)
{
B_Lares_Geheimtreffen();
}
else
{
AI_Output(self,other,"DIA_Addon_Lares_GoNow_09_04"); //Куда?
Info_ClearChoices(DIA_Lares_GoNow);
Info_AddChoice(DIA_Lares_GoNow,Dialog_Back,DIA_Lares_GoNow_warte);
if((Lares_WayToOnar == TRUE) && (LaresGuide_ZuOnar != LOG_SUCCESS))
{
Info_AddChoice(DIA_Lares_GoNow,"На ферму Онара.",DIA_Lares_GoNow_Onar);
};
if((MIS_Addon_Lares_Ornament2Saturas == LOG_Running) && (Lares_Angekommen == FALSE))
{
Info_AddChoice(DIA_Lares_GoNow,"Давай вернем орнамент Ватраса.",DIA_Lares_GoNow_Maya);
};
if((ORNAMENT_SWITCHED_FOREST == FALSE) && (LaresGuide_OrnamentForest == 0) && (RangerHelp_OrnamentForest == TRUE))
{
Info_AddChoice(DIA_Lares_GoNow,"В лес на востоке.",DIA_Lares_GoNow_Forest);
};
};
};
func void DIA_Lares_GoNow_Maya()
{
AI_Output(other,self,"DIA_Addon_Lares_GoNow_Maya_15_00"); //Давай вернем орнамент Ватраса.
AI_Output(self,other,"DIA_Lares_GoNow_09_01"); //Пошли... Иди за мной.
LaresGuide_ZumPortal = TRUE;
Lares_Guide = Wld_GetDay();
self.aivar[AIV_PARTYMEMBER] = TRUE;
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"GUIDEPORTALTEMPEL1");
if(Npc_KnowsInfo(other,DIA_Moe_Hallo) == FALSE)
{
Npc_SetRefuseTalk(Moe,30);
};
};
func void DIA_Lares_GoNow_Onar()
{
AI_Output(other,self,"DIA_Addon_Lares_GoNow_Onar_15_00"); //На ферму Онара.
AI_Output(self,other,"DIA_Lares_GoNow_09_01"); //Пошли... Иди за мной.
LaresGuide_ZuOnar = TRUE;
Lares_Guide = Wld_GetDay();
self.aivar[AIV_PARTYMEMBER] = TRUE;
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"GUIDE");
if(Npc_KnowsInfo(other,DIA_Moe_Hallo) == FALSE)
{
Npc_SetRefuseTalk(Moe,30);
};
};
func void DIA_Lares_GoNow_Forest()
{
AI_Output(other,self,"DIA_Addon_Lares_GoNow_Forest_15_00"); //В лес на востоке.
AI_Output(self,other,"DIA_Lares_GoNow_09_01"); //Пошли... Иди за мной.
LaresGuide_OrnamentForest = TRUE;
Lares_Guide = Wld_GetDay();
self.aivar[AIV_PARTYMEMBER] = TRUE;
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"GUIDEMEDIUMWALD1");
if(Npc_KnowsInfo(other,DIA_Moe_Hallo) == FALSE)
{
Npc_SetRefuseTalk(Moe,30);
};
};
func void DIA_Lares_GoNow_warte()
{
Info_ClearChoices(DIA_Lares_GoNow);
};
instance DIA_Lares_GUIDE(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = DIA_Lares_GUIDE_Condition;
information = DIA_Lares_GUIDE_Info;
permanent = FALSE;
important = TRUE;
};
func int DIA_Lares_GUIDE_Condition()
{
if((LaresGuide_ZuOnar == TRUE) && Hlp_StrCmp(Npc_GetNearestWP(self),"NW_TAVERNE_BIGFARM_05"))
{
return TRUE;
};
};
func void DIA_Lares_GUIDE_Info()
{
if(Lares_Guide > (Wld_GetDay() - 2))
{
AI_Output(self,other,"DIA_Lares_GUIDE_09_00"); //Пришли.
}
else
{
AI_Output(self,other,"DIA_Lares_GUIDE_09_01"); //Вот ты где. А я уж начал думать, что тебя загрызли волки.
};
AI_Output(self,other,"DIA_Lares_GUIDE_09_02"); //Что ж, оставшуюся часть пути ты сможешь пройти сам. А мне нужно возвращаться в город...
AI_Output(self,other,"DIA_Lares_GUIDE_09_03"); //Просто пойдешь по этой дороге. Но помни - сумей постоять за себя, не нарушай закон и все будет в порядке.
self.aivar[AIV_PARTYMEMBER] = FALSE;
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"START");
LaresGuide_ZuOnar = LOG_SUCCESS;
LaresGuideOnar = TRUE;
};
instance DIA_Addon_Lares_ArrivedPortalInter1(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = DIA_Addon_Lares_ArrivedPortalInter1_Condition;
information = DIA_Addon_Lares_ArrivedPortalInter1_Info;
important = TRUE;
};
func int DIA_Addon_Lares_ArrivedPortalInter1_Condition()
{
if((MIS_Addon_Lares_Ornament2Saturas == LOG_Running) && Hlp_StrCmp(Npc_GetNearestWP(self),"NW_CITY_TO_FOREST_11") && (LaresGuide_ZumPortal == 1))
{
return TRUE;
};
};
func void DIA_Addon_Lares_ArrivedPortalInter1_Info()
{
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter1_09_00"); //Теперь, когда мы покинули город и нас не могут подслушать, я хочу тебе кое-что рассказать.
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter1_09_01"); //Орнамент, который ты мне отдал, нужно отнести Сатурасу. Ты же помнишь Сатураса, не так ли?
LaresGuide_ZumPortal = 2;
Info_ClearChoices(DIA_Addon_Lares_ArrivedPortalInter1);
Info_AddChoice(DIA_Addon_Lares_ArrivedPortalInter1,"Конечно.",DIA_Addon_Lares_ArrivedPortalInter1_ja);
Info_AddChoice(DIA_Addon_Lares_ArrivedPortalInter1,"Сатурас? Кто это такой?",DIA_Addon_Lares_ArrivedPortalInter1_wer);
};
func void DIA_Addon_Lares_ArrivedPortalInter1_teil2()
{
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter1_teil2_09_00"); //Мы, ребята из бывшего Нового Лагеря, сохранили хорошие отношения с магами воды.
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter1_teil2_09_01"); //Даже Ли готов защищать магов воды от любой опасности, если только это будет в его силах.
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter1_teil2_09_02"); //Чтобы поддерживать связь с магами, я практически постоянно нахожусь в городе, работая вместе с Ватрасом.
B_MakeRangerReadyForMeeting(self);
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter1_teil2_09_03"); //А такие доспехи выдают маги воды каждому из нас. Члены общества Кольца Воды носили такую броню еще до войны с орками.
if(Cavalorn_RangerHint == TRUE)
{
AI_Output(other,self,"DIA_Addon_Lares_ArrivedPortalInter1_teil2_15_04"); //А как ко всему этому относится Кавалорн? Насколько я знаю, в Новом Лагере он ничем таким не занимался.
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter1_teil2_09_05"); //Ты прав. Но наше сообщество растет, и даже я не знаю, сколько членов оно сейчас насчитывает.
};
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter1_teil2_09_06"); //Но нам нужно идти. Когда мы отойдем подальше от города, мы сможем поговорить еще.
Info_ClearChoices(DIA_Addon_Lares_ArrivedPortalInter1);
};
func void DIA_Addon_Lares_ArrivedPortalInter1_wer()
{
AI_Output(other,self,"DIA_Addon_Lares_ArrivedPortalInter1_wer_15_00"); //Сатурас? Кто это такой?
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter1_wer_09_01"); //Он был главным у магов воды в Новом Лагере в Долине Рудников, когда Барьер еще не был разрушен.
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter1_wer_09_02"); //Мы с Ли тогда заключили с магами воды союз.
DIA_Addon_Lares_ArrivedPortalInter1_teil2();
};
func void DIA_Addon_Lares_ArrivedPortalInter1_ja()
{
B_GivePlayerXP(50);
AI_Output(other,self,"DIA_Addon_Lares_ArrivedPortalInter1_ja_15_00"); //Конечно! Он был высшим магом воды в Новом Лагере.
DIA_Addon_Lares_ArrivedPortalInter1_teil2();
};
instance DIA_Addon_Lares_ArrivedPortalInterWeiter(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Addon_Lares_ArrivedPortalInterWeiter_Condition;
information = DIA_Addon_Lares_ArrivedPortalInterWeiter_Info;
important = TRUE;
};
func int DIA_Addon_Lares_ArrivedPortalInterWeiter_Condition()
{
if((MIS_Addon_Lares_Ornament2Saturas == LOG_Running) && Hlp_StrCmp(Npc_GetNearestWP(self),"NW_TAVERN_TO_FOREST_02") && (LaresGuide_ZumPortal == 2))
{
return TRUE;
};
};
func void DIA_Addon_Lares_ArrivedPortalInterWeiter_Info()
{
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInterWeiter_09_00"); //В чем дело? Почему ты задерживаешься?
LaresGuide_ZumPortal = 3;
};
instance DIA_Addon_Lares_ArrivedPortalInterWeiter2(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Addon_Lares_ArrivedPortalInterWeiter2_Condition;
information = DIA_Addon_Lares_ArrivedPortalInterWeiter2_Info;
important = TRUE;
};
func int DIA_Addon_Lares_ArrivedPortalInterWeiter2_Condition()
{
if((MIS_Addon_Lares_Ornament2Saturas == LOG_Running) && Hlp_StrCmp(Npc_GetNearestWP(self),"NW_TAVERNE_TROLLAREA_14") && (LaresGuide_ZumPortal == 3))
{
return TRUE;
};
};
func void DIA_Addon_Lares_ArrivedPortalInterWeiter2_Info()
{
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInterWeiter2_09_00"); //Не отвлекай меня.
LaresGuide_ZumPortal = 4;
};
instance DIA_Addon_Lares_ArrivedPortalInter2(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = DIA_Addon_Lares_ArrivedPortalInter2_Condition;
information = DIA_Addon_Lares_ArrivedPortalInter2_Info;
important = TRUE;
};
func int DIA_Addon_Lares_ArrivedPortalInter2_Condition()
{
if((MIS_Addon_Lares_Ornament2Saturas == LOG_Running) && Hlp_StrCmp(Npc_GetNearestWP(self),"NW_TROLLAREA_PATH_58") && (LaresGuide_ZumPortal == 4))
{
return TRUE;
};
};
func void DIA_Addon_Lares_ArrivedPortalInter2_Info()
{
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter2_09_00"); //Маги воды полностью погружены в работу. Они уже несколько недель раскапывают какие-то руины на северо-востоке. Никто не знает, что они пытаются там найти.
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter2_09_01"); //Все началось с землетрясений, таких, какие бывали в худшие дни Барьера.
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter2_09_02"); //Из-под земли появились ужасные каменные создания, убивающие каждого, кто подходил к ним ближе, чем на тридцать метров.
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter2_09_03"); //Маги воды взяли ситуацию в свои руки и уничтожили монстров. А теперь они проводят раскопки, пытаясь найти объяснение этим странным событиям.
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInter2_09_04"); //Но ты скоро сам все увидишь.
LaresGuide_ZumPortal = 5;
B_LogEntry(TOPIC_Addon_KDW,"Ларес рассказал мне о раскопках магов воды. Маги занимаются расследованием необычных событий, происходящих в последнее время - странных землетрясений и появления из-под земли загадочных каменных существ.");
};
instance DIA_Addon_Lares_ArrivedPortalInterWeiter3(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Addon_Lares_ArrivedPortalInterWeiter3_Condition;
information = DIA_Addon_Lares_ArrivedPortalInterWeiter3_Info;
important = TRUE;
};
func int DIA_Addon_Lares_ArrivedPortalInterWeiter3_Condition()
{
if((MIS_Addon_Lares_Ornament2Saturas == LOG_Running) && (Npc_GetDistToWP(self,"NW_TROLLAREA_PATH_47") < 200) && (LaresGuide_ZumPortal == 5))
{
return TRUE;
};
};
func void DIA_Addon_Lares_ArrivedPortalInterWeiter3_Info()
{
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInterWeiter3_09_00"); //Ты идешь дальше?
LaresGuide_ZumPortal = 6;
};
instance DIA_Addon_Lares_ArrivedPortalInterWeiter4(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Addon_Lares_ArrivedPortalInterWeiter4_Condition;
information = DIA_Addon_Lares_ArrivedPortalInterWeiter4_Info;
important = TRUE;
};
func int DIA_Addon_Lares_ArrivedPortalInterWeiter4_Condition()
{
if((MIS_Addon_Lares_Ornament2Saturas == LOG_Running) && Hlp_StrCmp(Npc_GetNearestWP(self),"NW_TROLLAREA_RUINS_02") && (LaresGuide_ZumPortal == 6))
{
return TRUE;
};
};
func void DIA_Addon_Lares_ArrivedPortalInterWeiter4_Info()
{
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortalInterWeiter4_09_00"); //Очень хорошо. Здесь может быть опасно.
LaresGuide_ZumPortal = 7;
};
instance DIA_Addon_Lares_ArrivedPortal(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = DIA_Addon_Lares_ArrivedPortal_Condition;
information = DIA_Addon_Lares_ArrivedPortal_Info;
important = TRUE;
};
func int DIA_Addon_Lares_ArrivedPortal_Condition()
{
if((MIS_Addon_Lares_Ornament2Saturas == LOG_Running) && Hlp_StrCmp(Npc_GetNearestWP(self),"NW_TROLLAREA_RUINS_41") && (LaresGuide_ZumPortal == 7))
{
return TRUE;
};
};
func void DIA_Addon_Lares_ArrivedPortal_Info()
{
B_MakeRangerReadyToLeaveMeeting(self);
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortal_09_00"); //Мы на месте.
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortal_09_01"); //Возьми орнамент. Маги воды должны быть где-то внизу. Отнеси орнамент им
B_GiveInvItems(self,other,ItMi_Ornament_Addon_Vatras,1);
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortal_09_02"); //Если внизу ты встретишь каких-нибудь диких зверей, с которыми не сможешь справиться, беги к Сатурасу.
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortal_09_03"); //Он с ними разберется. Ну а мне нужно возвращаться.
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortal_09_04"); //Да, и еще одно. Не стоит бродить по округе с этим орнаментом. Сразу же отправляйся к Сатурасу.
AI_Output(self,other,"DIA_Addon_Lares_ArrivedPortal_09_05"); //До встречи.
B_LogEntry(TOPIC_Addon_KDW,"Ларес дал мне этот орнамент. Он хочет, чтобы я передал его магу воды Сатурасу.");
LaresGuide_ZumPortal = 8;
Lares_Angekommen = TRUE;
LaresGuideMage = TRUE;
self.aivar[AIV_PARTYMEMBER] = FALSE;
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"START");
};
instance DIA_Addon_Lares_Albern(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = DIA_Addon_Lares_Albern_Condition;
information = DIA_Addon_Lares_Albern_Info;
important = TRUE;
};
func int DIA_Addon_Lares_Albern_Condition()
{
if((Lares_Angekommen == TRUE) && (Npc_GetDistToWP(self,"NW_TROLLAREA_RUINS_41") > 1000) && (MIS_Addon_Lares_Ornament2Saturas != LOG_SUCCESS))
{
return TRUE;
};
};
func void DIA_Addon_Lares_Albern_Info()
{
AI_Output(self,other,"DIA_Addon_Lares_Albern_09_00"); //(строго) Прекрати паясничать! Немедленно отнеси орнамент Сатурасу!
AI_StopProcessInfos(self);
};
instance DIA_Addon_Lares_GOFORESTPRE(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = DIA_Addon_Lares_GOFORESTPRE_Condition;
information = DIA_Addon_Lares_GOFORESTPRE_Info;
important = TRUE;
};
func int DIA_Addon_Lares_GOFORESTPRE_Condition()
{
if(Hlp_StrCmp(Npc_GetNearestWP(self),"NW_CITY_TO_FARM2_04") && (LaresGuide_OrnamentForest == 1))
{
return TRUE;
};
};
func void DIA_Addon_Lares_GOFORESTPRE_ja()
{
B_MakeRangerReadyForMeeting(self);
AI_Output(other,self,"DIA_Addon_Lares_GOFORESTPRE_ja_15_00"); //Да.
AI_Output(self,other,"DIA_Addon_Lares_GOFORESTPRE_ja_09_01"); //Прекрасно, друг мой. В таком случае, следуй за мной. Здесь может быть небезопасно.
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"GUIDEMEDIUMWALD2");
LaresGuide_OrnamentForest = 2;
};
func void DIA_Addon_Lares_GOFORESTPRE_nein()
{
AI_Output(other,self,"DIA_Addon_Lares_GOFORESTPRE_nein_15_00"); //Нет, можешь идти.
AI_Output(self,other,"DIA_Addon_Lares_GOFORESTPRE_nein_09_01"); //Я так понимаю, проблема решилась сама собой? Ладно, увидимся позже.
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"Start");
LaresGuide_OrnamentForest = 3;
};
func void DIA_Addon_Lares_GOFORESTPRE_Info()
{
if(ORNAMENT_SWITCHED_FOREST == TRUE)
{
AI_Output(self,other,"DIA_Addon_Lares_GOFORESTPRE_09_00"); //Ты все еще хочешь пойти со мной в лес?
}
else
{
AI_Output(self,other,"DIA_Addon_Lares_GOFORESTPRE_09_01"); //Ты уже подумал о походе в лес? Ты действительно хочешь туда направиться?
};
Info_ClearChoices(DIA_Addon_Lares_GOFORESTPRE);
Info_AddChoice(DIA_Addon_Lares_GOFORESTPRE,"Нет, можешь идти.",DIA_Addon_Lares_GOFORESTPRE_nein);
Info_AddChoice(DIA_Addon_Lares_GOFORESTPRE,"Да.",DIA_Addon_Lares_GOFORESTPRE_ja);
};
instance DIA_Addon_Lares_GOFOREST(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = DIA_Addon_Lares_GOFOREST_Condition;
information = DIA_Addon_Lares_GOFOREST_Info;
important = TRUE;
permanent = TRUE;
};
func int DIA_Addon_Lares_GOFOREST_Condition()
{
if(Hlp_StrCmp(Npc_GetNearestWP(self),"NW_FOREST_PATH_62") && (LaresGuide_OrnamentForest == 2) && Npc_IsDead(Stoneguardian_Ornament))
{
if((ORNAMENT_SWITCHED_FOREST == FALSE) && Npc_IsInState(self,ZS_Talk))
{
return TRUE;
};
if(ORNAMENT_SWITCHED_FOREST == TRUE)
{
return TRUE;
};
};
};
func void DIA_Addon_Lares_GOFOREST_Info()
{
if(ORNAMENT_SWITCHED_FOREST == TRUE)
{
B_MakeRangerReadyToLeaveMeeting(self);
AI_Output(self,other,"DIA_Addon_Lares_GOFOREST_09_00"); //Ну вот. Дальше ты дойдешь сам. А я отправляюсь обратно.
AI_StopProcessInfos(self);
self.aivar[AIV_PARTYMEMBER] = FALSE;
Npc_ExchangeRoutine(self,"START");
LaresGuide_OrnamentForest = 3;
LaresGuideForest = TRUE;
Wld_InsertNpc(orc_8519_warrior,"NW_FOREST_PATH_38");
Wld_InsertNpc(orc_8520_warrior,"NW_TROLLAREA_RITUALFOREST_09");
}
else
{
AI_Output(self,other,"DIA_Addon_Lares_GOFOREST_09_01"); //Поторопись! Я не хочу оставаться здесь дольше, чем необходимо.
AI_StopProcessInfos(self);
};
};
instance DIA_Addon_Lares_PortalInterWEITER(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = DIA_Addon_Lares_PortalInterWEITER_Condition;
information = DIA_Addon_Lares_PortalInterWEITER_Info;
permanent = TRUE;
description = "Двигаемся дальше.";
};
func int DIA_Addon_Lares_PortalInterWEITER_Condition()
{
if((LaresGuide_ZumPortal != 0) && (LaresGuide_ZumPortal != 8))
{
return TRUE;
};
};
func void DIA_Addon_Lares_PortalInterWEITER_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_PortalInterWEITER_15_02"); //Двигаемся дальше.
AI_Output(self,other,"DIA_Addon_Lares_PortalInterWEITER_09_04"); //Держись ко мне поближе.
AI_StopProcessInfos(self);
if(LaresGuide_ZumPortal == 2)
{
Npc_ExchangeRoutine(self,"GUIDEPORTALTEMPEL2");
}
else if(LaresGuide_ZumPortal == 3)
{
Npc_ExchangeRoutine(self,"GUIDEPORTALTEMPEL3");
}
else if(LaresGuide_ZumPortal == 4)
{
Npc_ExchangeRoutine(self,"GUIDEPORTALTEMPEL4");
}
else if(LaresGuide_ZumPortal == 5)
{
Npc_ExchangeRoutine(self,"GUIDEPORTALTEMPEL5");
}
else if(LaresGuide_ZumPortal == 6)
{
Npc_ExchangeRoutine(self,"GUIDEPORTALTEMPEL6");
}
else if(LaresGuide_ZumPortal == 7)
{
Npc_ExchangeRoutine(self,"GUIDEPORTALTEMPELEND");
};
};
instance DIA_Lares_DEX(C_Info)
{
npc = VLK_449_Lares;
nr = 20;
condition = DIA_Lares_DEX_Condition;
information = DIA_Lares_DEX_Info;
permanent = FALSE;
description = "Ты можешь научить меня чему-нибудь?";
};
func int DIA_Lares_DEX_Condition()
{
return TRUE;
};
func void DIA_Lares_DEX_Info()
{
AI_Output(other,self,"DIA_Lares_DEX_15_00"); //Ты можешь научить меня чему-нибудь?
AI_Output(self,other,"DIA_Addon_Lares_DEX_Add_09_01"); //Конечно. Я могу помочь тебе стать более сильным и ловким.
Lares_TeachDEX = TRUE;
Log_CreateTopic(TOPIC_CityTeacher,LOG_NOTE);
B_LogEntry(TOPIC_CityTeacher,"Ларес может помочь мне повысить мою ловкость и силу.");
};
var int Lares_MerkeDEX;
var int Lares_MerkeSTR;
instance DIA_Lares_TEACH(C_Info)
{
npc = VLK_449_Lares;
nr = 20;
condition = DIA_Lares_TEACH_Condition;
information = DIA_Lares_TEACH_Info;
permanent = TRUE;
description = "Тренируй меня.";
};
func int DIA_Lares_TEACH_Condition()
{
if(Lares_TeachDEX == TRUE)
{
return TRUE;
};
};
func void DIA_Lares_TEACH_Info()
{
AI_Output(other,self,"DIA_Addon_Lares_Teach_15_00"); //Тренируй меня.
Lares_MerkeDEX = other.attribute[ATR_DEXTERITY];
Lares_MerkeSTR = other.attribute[ATR_STRENGTH];
Info_ClearChoices(DIA_Lares_TEACH);
Info_AddChoice(DIA_Lares_TEACH,Dialog_Back,DIA_Lares_TEACH_BACK);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnDEX1,B_GetLearnCostAttribute(other,ATR_DEXTERITY)),DIA_Lares_TEACH_1);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnDEX5,B_GetLearnCostAttribute(other,ATR_DEXTERITY) * 5),DIA_Lares_TEACH_5);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnSTR1,B_GetLearnCostAttribute(other,ATR_STRENGTH)),DIA_Lares_TEACHSTR_1);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnSTR5,B_GetLearnCostAttribute(other,ATR_STRENGTH) * 5),DIA_Lares_TEACHSTR_5);
};
func void DIA_Lares_TEACH_BACK()
{
if(other.attribute[ATR_DEXTERITY] > Lares_MerkeDEX)
{
AI_Output(self,other,"DIA_Lares_TEACH_BACK_09_00"); //Ты уже стал более ловким.
};
if(other.attribute[ATR_STRENGTH] > Lares_MerkeSTR)
{
AI_Output(self,other,"DIA_Addon_Lares_TEACH_BACK_Add_09_00"); //(оценивающе) Очень хорошо. Ты стал сильнее.
};
Info_ClearChoices(DIA_Lares_TEACH);
};
func void DIA_Lares_TEACH_1()
{
B_TeachAttributePoints(self,other,ATR_DEXTERITY,1,T_MED);
Info_ClearChoices(DIA_Lares_TEACH);
Info_AddChoice(DIA_Lares_TEACH,Dialog_Back,DIA_Lares_TEACH_BACK);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnDEX1,B_GetLearnCostAttribute(other,ATR_DEXTERITY)),DIA_Lares_TEACH_1);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnDEX5,B_GetLearnCostAttribute(other,ATR_DEXTERITY) * 5),DIA_Lares_TEACH_5);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnSTR1,B_GetLearnCostAttribute(other,ATR_STRENGTH)),DIA_Lares_TEACHSTR_1);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnSTR5,B_GetLearnCostAttribute(other,ATR_STRENGTH) * 5),DIA_Lares_TEACHSTR_5);
};
func void DIA_Lares_TEACH_5()
{
B_TeachAttributePoints(self,other,ATR_DEXTERITY,5,T_MED);
Info_ClearChoices(DIA_Lares_TEACH);
Info_AddChoice(DIA_Lares_TEACH,Dialog_Back,DIA_Lares_TEACH_BACK);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnDEX1,B_GetLearnCostAttribute(other,ATR_DEXTERITY)),DIA_Lares_TEACH_1);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnDEX5,B_GetLearnCostAttribute(other,ATR_DEXTERITY) * 5),DIA_Lares_TEACH_5);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnSTR1,B_GetLearnCostAttribute(other,ATR_STRENGTH)),DIA_Lares_TEACHSTR_1);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnSTR5,B_GetLearnCostAttribute(other,ATR_STRENGTH) * 5),DIA_Lares_TEACHSTR_5);
};
func void DIA_Lares_TEACHSTR_1()
{
B_TeachAttributePoints(self,other,ATR_STRENGTH,1,T_LOW);
Info_ClearChoices(DIA_Lares_TEACH);
Info_AddChoice(DIA_Lares_TEACH,Dialog_Back,DIA_Lares_TEACH_BACK);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnDEX1,B_GetLearnCostAttribute(other,ATR_DEXTERITY)),DIA_Lares_TEACH_1);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnDEX5,B_GetLearnCostAttribute(other,ATR_DEXTERITY) * 5),DIA_Lares_TEACH_5);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnSTR1,B_GetLearnCostAttribute(other,ATR_STRENGTH)),DIA_Lares_TEACHSTR_1);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnSTR5,B_GetLearnCostAttribute(other,ATR_STRENGTH) * 5),DIA_Lares_TEACHSTR_5);
};
func void DIA_Lares_TEACHSTR_5()
{
B_TeachAttributePoints(self,other,ATR_STRENGTH,5,T_LOW);
Info_ClearChoices(DIA_Lares_TEACH);
Info_AddChoice(DIA_Lares_TEACH,Dialog_Back,DIA_Lares_TEACH_BACK);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnDEX1,B_GetLearnCostAttribute(other,ATR_DEXTERITY)),DIA_Lares_TEACH_1);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnDEX5,B_GetLearnCostAttribute(other,ATR_DEXTERITY) * 5),DIA_Lares_TEACH_5);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnSTR1,B_GetLearnCostAttribute(other,ATR_STRENGTH)),DIA_Lares_TEACHSTR_1);
Info_AddChoice(DIA_Lares_TEACH,b_buildlearnstringforskills(PRINT_LearnSTR5,B_GetLearnCostAttribute(other,ATR_STRENGTH) * 5),DIA_Lares_TEACHSTR_5);
};
instance DIA_Lares_Kap2_EXIT(C_Info)
{
npc = VLK_449_Lares;
nr = 999;
condition = DIA_Lares_Kap2_EXIT_Condition;
information = DIA_Lares_Kap2_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Lares_Kap2_EXIT_Condition()
{
if(Kapitel == 2)
{
return TRUE;
};
};
func void DIA_Lares_Kap2_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Lares_Kap3_EXIT(C_Info)
{
npc = VLK_449_Lares;
nr = 999;
condition = DIA_Lares_Kap3_EXIT_Condition;
information = DIA_Lares_Kap3_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Lares_Kap3_EXIT_Condition()
{
if(Kapitel == 3)
{
return TRUE;
};
};
func void DIA_Lares_Kap3_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Lares_AnyNews(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Lares_AnyNews_Condition;
information = DIA_Lares_AnyNews_Info;
permanent = TRUE;
description = "Есть новости?";
};
func int DIA_Lares_AnyNews_Condition()
{
if(Kapitel == 3)
{
return TRUE;
};
};
func void DIA_Lares_AnyNews_Info()
{
AI_Output(other,self,"DIA_Lares_AnyNews_15_00"); //Есть новости?
if(MIS_RescueBennet == LOG_SUCCESS)
{
AI_Output(self,other,"DIA_Lares_AnyNews_09_01"); //Основные новости связаны с тобой. Беннета отпустили, и он возвращается на ферму.
AI_Output(self,other,"DIA_Lares_AnyNews_09_02"); //Иди к нему, я думаю, он хочет отблагодарить тебя лично.
}
else
{
AI_Output(self,other,"DIA_Lares_AnyNews_09_03"); //Можно сказать и так. Паладины арестовали Беннета, нашего кузнеца.
if(MIS_RescueBennet == LOG_Running)
{
AI_Output(other,self,"DIA_Lares_AnyNews_15_04"); //Я слышал. Нечистое это дело.
AI_Output(self,other,"DIA_Lares_AnyNews_09_05"); //Ну, ты сам все понимаешь.
}
else
{
AI_Output(other,self,"DIA_Lares_AnyNews_15_06"); //Как это случилось?
AI_Output(self,other,"DIA_Lares_AnyNews_09_07"); //Беннет пришел в город за покупками. Но вернуться ему было не суждено.
AI_Output(self,other,"DIA_Lares_AnyNews_09_08"); //Если хочешь узнать больше, расспроси Ходжеса, он был в городе вместе с Беннетом.
MIS_RescueBennet = LOG_Running;
};
};
};
instance DIA_Lares_NewsAboutBennet(C_Info)
{
npc = VLK_449_Lares;
nr = 6;
condition = DIA_Lares_NewsAboutBennet_Condition;
information = DIA_Lares_NewsAboutBennet_Info;
permanent = FALSE;
description = "Есть новости о Беннете?";
};
func int DIA_Lares_NewsAboutBennet_Condition()
{
if(MIS_RescueBennet == LOG_Running)
{
return TRUE;
};
};
func void DIA_Lares_NewsAboutBennet_Info()
{
AI_Output(other,self,"DIA_Lares_NewsAboutBennet_15_00"); //Есть новости о Беннете?
AI_Output(self,other,"DIA_Lares_NewsAboutBennet_09_01"); //Его увели в казармы и бросили там за решетку.
AI_Output(other,self,"DIA_Lares_NewsAboutBennet_15_02"); //Как нам вызволить его оттуда?
AI_Output(self,other,"DIA_Lares_NewsAboutBennet_09_03"); //Пока у меня нет никаких идей. Я не могу пробраться в его камеру и поговорить с ним.
AI_Output(self,other,"DIA_Lares_NewsAboutBennet_09_04"); //Все, что мне остается - это держать ушки на макушке, может, мне удастся что-то узнать.
};
instance DIA_Lares_Kap4_EXIT(C_Info)
{
npc = VLK_449_Lares;
nr = 999;
condition = DIA_Lares_Kap4_EXIT_Condition;
information = DIA_Lares_Kap4_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Lares_Kap4_EXIT_Condition()
{
if(Kapitel == 4)
{
return TRUE;
};
};
func void DIA_Lares_Kap4_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Lares_Kap4_PERM(C_Info)
{
npc = VLK_449_Lares;
nr = 6;
condition = DIA_Lares_Kap4_PERM_Condition;
information = DIA_Lares_Kap4_PERM_Info;
permanent = TRUE;
description = "Почему ты не охотишься на драконов?";
};
func int DIA_Lares_Kap4_PERM_Condition()
{
if(Kapitel == 4)
{
return TRUE;
};
};
func void DIA_Lares_Kap4_PERM_Info()
{
AI_Output(other,self,"DIA_Lares_Kap4_PERM_15_00"); //Почему ты не охотишься на драконов?
AI_Output(self,other,"DIA_Lares_Kap4_PERM_09_01"); //Это не по мне. Пусть этим занимаются другие.
AI_Output(self,other,"DIA_Lares_Kap4_PERM_09_02"); //Нет уж, спасибо. Чистый морской воздух - это все, что мне сейчас нужно.
};
instance DIA_Lares_Kap5_EXIT(C_Info)
{
npc = VLK_449_Lares;
nr = 999;
condition = DIA_Lares_Kap5_EXIT_Condition;
information = DIA_Lares_Kap5_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Lares_Kap5_EXIT_Condition()
{
if(Kapitel >= 5)
{
return TRUE;
};
};
func void DIA_Lares_Kap5_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Lares_KnowWhereEnemy(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Lares_KnowWhereEnemy_Condition;
information = DIA_Lares_KnowWhereEnemy_Info;
permanent = TRUE;
description = "Ты не хочешь покинуть этот остров?";
};
func int DIA_Lares_KnowWhereEnemy_Condition()
{
if((MIS_SCKnowsWayToIrdorath == TRUE) && (Lares_IsOnBoard == FALSE) && (CAPITANORDERDIAWAY == FALSE) && (SCGotCaptain == TRUE))
{
return TRUE;
};
};
func void DIA_Lares_KnowWhereEnemy_Info()
{
AI_Output(other,self,"DIA_Lares_KnowWhereEnemy_15_00"); //Ты не хочешь покинуть этот остров?
AI_Output(self,other,"DIA_Lares_KnowWhereEnemy_09_01"); //Это самое большое мое желание. А что ты задумал?
AI_Output(other,self,"DIA_Lares_KnowWhereEnemy_15_02"); //Я выяснил, где скрывается повелитель драконов. Он на острове, недалеко отсюда.
AI_Output(other,self,"DIA_Lares_KnowWhereEnemy_15_03"); //Я собираюсь избавиться от него раз и навсегда.
AI_Output(self,other,"DIA_Lares_KnowWhereEnemy_09_04"); //Звучит заманчиво. Если я тебе нужен, ты можешь на меня рассчитывать.
AI_Output(self,other,"DIA_Lares_KnowWhereEnemy_09_05"); //Тебе не нужен учитель ловкости или боя одноручным оружием в твоем путешествии?
if(Crewmember_Count >= Max_Crew)
{
AI_Output(other,self,"DIA_Lares_KnowWhereEnemy_15_06"); //Корабль уже полон, но я вернусь к тебе, если что-то изменится.
}
else
{
Info_ClearChoices(DIA_Lares_KnowWhereEnemy);
Info_AddChoice(DIA_Lares_KnowWhereEnemy,"Ты не нужен мне.",DIA_Lares_KnowWhereEnemy_No);
Info_AddChoice(DIA_Lares_KnowWhereEnemy,"Я знал, что могу положиться на тебя.",DIA_Lares_KnowWhereEnemy_Yes);
};
};
func void DIA_Lares_KnowWhereEnemy_Yes()
{
AI_Output(other,self,"DIA_Lares_KnowWhereEnemy_Yes_15_00"); //Я знал, что могу положиться на тебя.
AI_Output(other,self,"DIA_Lares_KnowWhereEnemy_Yes_15_01"); //Встретимся у корабля.
AI_Output(self,other,"DIA_Lares_KnowWhereEnemy_Yes_09_02"); //Ты человек действия - это мне нравится. Увидимся позже.
Lares_IsOnBoard = LOG_SUCCESS;
Crewmember_Count = Crewmember_Count + 1;
if(MIS_ReadyforChapter6 == TRUE)
{
Npc_ExchangeRoutine(self,"SHIP");
}
else
{
Npc_ExchangeRoutine(self,"WAITFORSHIP");
};
CreateInvItems(self,itar_sld_M,1);
AI_EquipArmor(self,itar_sld_M);
Info_ClearChoices(DIA_Lares_KnowWhereEnemy);
};
func void DIA_Lares_KnowWhereEnemy_No()
{
AI_Output(other,self,"DIA_Lares_KnowWhereEnemy_No_15_00"); //Я ценю твое предложение, но вынужден отказать тебе.
AI_Output(self,other,"DIA_Lares_KnowWhereEnemy_No_09_01"); //Ты должен понять, что ты хочешь. Если захочешь вернуться к этому вопросу, ты знаешь, где меня найти.
if(hero.guild == GIL_DJG)
{
Lares_IsOnBoard = LOG_OBSOLETE;
}
else
{
Lares_IsOnBoard = LOG_FAILED;
};
Info_ClearChoices(DIA_Lares_KnowWhereEnemy);
};
instance DIA_Lares_LeaveMyShip(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Lares_LeaveMyShip_Condition;
information = DIA_Lares_LeaveMyShip_Info;
permanent = TRUE;
description = "Будет лучше, если ты не поплывешь со мной.";
};
func int DIA_Lares_LeaveMyShip_Condition()
{
if((Lares_IsOnBoard == LOG_SUCCESS) && (MIS_ReadyforChapter6 == FALSE))
{
return TRUE;
};
};
func void DIA_Lares_LeaveMyShip_Info()
{
AI_Output(other,self,"DIA_Lares_LeaveMyShip_15_00"); //Будет лучше, если ты не поплывешь со мной.
AI_Output(self,other,"DIA_Lares_LeaveMyShip_09_01"); //Как знаешь, но в будущем думай, что ты обещаешь и кому.
if(hero.guild == GIL_DJG)
{
Lares_IsOnBoard = LOG_OBSOLETE;
}
else
{
Lares_IsOnBoard = LOG_FAILED;
};
Crewmember_Count = Crewmember_Count - 1;
Npc_ExchangeRoutine(self,"ShipOff");
};
instance DIA_Lares_StillNeedYou(C_Info)
{
npc = VLK_449_Lares;
nr = 5;
condition = DIA_Lares_StillNeedYou_Condition;
information = DIA_Lares_StillNeedYou_Info;
permanent = TRUE;
description = "Ты все еще заинтересован в месте на корабле?";
};
func int DIA_Lares_StillNeedYou_Condition()
{
if(((Lares_IsOnBoard == LOG_OBSOLETE) || (Lares_IsOnBoard == LOG_FAILED)) && (Crewmember_Count < Max_Crew) && (CAPITANORDERDIAWAY == FALSE))
{
return TRUE;
};
};
func void DIA_Lares_StillNeedYou_Info()
{
AI_Output(other,self,"DIA_Lares_StillNeedYou_15_00"); //Ты все еще заинтересован в месте на корабле?
if(Lares_IsOnBoard == LOG_OBSOLETE)
{
AI_Output(self,other,"DIA_Lares_StillNeedYou_09_01"); //Обычно я не позволяю людям так обращаться со мной, но так как ты - один из нас, на этот раз я тебя прощу.
AI_Output(self,other,"DIA_Lares_StillNeedYou_09_02"); //Встретимся на корабле.
Lares_IsOnBoard = LOG_SUCCESS;
Crewmember_Count = Crewmember_Count + 1;
if(MIS_ReadyforChapter6 == TRUE)
{
Npc_ExchangeRoutine(self,"SHIP");
}
else
{
Npc_ExchangeRoutine(self,"WAITFORSHIP");
};
}
else
{
AI_Output(self,other,"DIA_Lares_StillNeedYou_09_03"); //Не обижайся, но я думаю, ты был прав.
AI_Output(self,other,"DIA_Lares_StillNeedYou_09_04"); //Мне лучше остаться здесь.
AI_StopProcessInfos(self);
};
};
instance DIA_ADDON_LARES_NW_KAPITELORCATTACK(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = dia_addon_lares_nw_kapitelorcattack_condition;
information = dia_addon_lares_nw_kapitelorcattack_info;
permanent = FALSE;
description = "Как тебе вся эта ситуация?";
};
func int dia_addon_lares_nw_kapitelorcattack_condition()
{
if((MIS_HELPCREW == LOG_Running) && (MOVECREWTOHOME == FALSE) && (LARESBACKNW == TRUE) && (LEEBATTLETHROUGTH == FALSE))
{
return TRUE;
};
};
func void dia_addon_lares_nw_kapitelorcattack_info()
{
AI_Output(other,self,"DIA_Addon_Lares_NW_KapitelOrcAttack_01_00"); //Как тебе вся эта ситуация?
AI_Output(self,other,"DIA_Addon_Lares_NW_KapitelOrcAttack_01_01"); //По этому поводу мне сказать особо нечего...(печально) Да и что тут вообще можно сказать, когда и так все ясно?
AI_Output(self,other,"DIA_Addon_Lares_NW_KapitelOrcAttack_01_02"); //Думаю, и дураку было понятно, что вскоре орки пожалуют и сюда. Это был лишь только вопрос времени!
AI_Output(other,self,"DIA_Addon_Lares_NW_KapitelOrcAttack_01_03"); //И будем делать?
if(LEEBACKNW == TRUE)
{
AI_Output(self,other,"DIA_Addon_Lares_NW_KapitelOrcAttack_01_04"); //Думаю, что об этом тебе лучше спросить Ли. Как он решит, так и будет.
AI_Output(other,self,"DIA_Addon_Lares_NW_KapitelOrcAttack_01_05"); //Ладно, поговорю.
AI_StopProcessInfos(self);
}
else
{
AI_Output(self,other,"DIA_Addon_Lares_NW_KapitelOrcAttack_01_06"); //Не знаю. Для начала надо немного подумать... как можно улизнуть из этой ловушки.
AI_Output(self,other,"DIA_Addon_Lares_NW_KapitelOrcAttack_01_07"); //А если уж ничего так и не придумаю, то, видимо, придется прорываться отсюда с боем. Другого выхода нет!
Info_ClearChoices(dia_addon_lares_nw_kapitelorcattack);
if(Npc_HasItems(other,ItMi_TeleportFarm) >= 1)
{
Info_AddChoice(dia_addon_lares_nw_kapitelorcattack,"У меня с собой есть руна телепортации на ферму Онара.",dia_addon_lares_nw_kapitelorcattack_farm);
};
Info_AddChoice(dia_addon_lares_nw_kapitelorcattack,"Ладно, не буду тебя отговаривать.",dia_addon_lares_nw_kapitelorcattack_nogiverune);
};
};
func void dia_addon_lares_nw_kapitelorcattack_farm()
{
B_GivePlayerXP(200);
AI_Output(other,self,"DIA_Addon_Lares_NW_KapitelOrcAttack_Farm_01_01"); //Подожди! У меня с собой есть руна телепортации на ферму Онара.
AI_Output(other,self,"DIA_Addon_Lares_NW_KapitelOrcAttack_Farm_01_02"); //Можешь ею воспользоваться.
AI_Output(self,other,"DIA_Addon_Lares_NW_KapitelOrcAttack_Farm_01_03"); //Руна?! Хммм...(задумчиво) Ну, даже не знаю, надо подумать - а стоит ли?
AI_Output(other,self,"DIA_Addon_Lares_NW_KapitelOrcAttack_Farm_01_05"); //Твоя идея пробиваться с боем через город, доверху набитый орками - это чистое безумие.
AI_Output(other,self,"DIA_Addon_Lares_NW_KapitelOrcAttack_Farm_01_06"); //Эти твари из тебя фарш сделают! И ты это знаешь не хуже меня.
AI_Output(self,other,"DIA_Addon_Lares_NW_KapitelOrcAttack_Farm_01_09"); //Ладно, давай ее сюда.
AI_Output(other,self,"DIA_Addon_Lares_NW_KapitelOrcAttack_Farm_01_10"); //Вот, держи.
B_GiveInvItems(other,self,ItMi_TeleportFarm,1);
Npc_RemoveInvItems(self,ItMi_TeleportFarm,1);
AI_Output(self,other,"DIA_Addon_Lares_NW_KapitelOrcAttack_Farm_01_11"); //Эх! Надеюсь, после нее меня не будет опять неделю мутить, как после бутылки старого шнапса.
LARESNOBATTLETHROUGTH = TRUE;
B_LogEntry(TOPIC_HELPCREW,"Я отдал Ларесу руну телепортации на ферму Онара. Теперь я спокоен за его судьбу.");
PERMCOUNTBACKNW = PERMCOUNTBACKNW + 1;
b_countbackcrew();
AI_StopProcessInfos(self);
};
func void dia_addon_lares_nw_kapitelorcattack_nogiverune()
{
B_GivePlayerXP(50);
AI_Output(other,self,"DIA_Addon_Lares_NW_KapitelOrcAttack_NoGiveRune_01_01"); //Ладно, не буду тебя отговаривать.
B_LogEntry(TOPIC_HELPCREW,"Ларес будет пробиваться с боем из захваченного города. Возможно, ему повезет и он сможет выбраться сухим из воды.");
LARESBATTLETHROUGTH = TRUE;
PERMCOUNTBACKNW = PERMCOUNTBACKNW + 1;
b_countbackcrew();
AI_StopProcessInfos(self);
};
instance DIA_VLK_449_LARES_FUCKOFF(C_Info)
{
npc = VLK_449_Lares;
nr = 2;
condition = dia_vlk_449_lares_fuckoff_condition;
information = dia_vlk_449_lares_fuckoff_info;
permanent = TRUE;
important = TRUE;
};
func int dia_vlk_449_lares_fuckoff_condition()
{
if(Npc_IsInState(self,ZS_Talk) && (LARESCAPTURED == TRUE) && (HORINISISFREE == FALSE))
{
return TRUE;
};
};
func void dia_vlk_449_lares_fuckoff_info()
{
B_Say(self,other,"$NOTNOW");
AI_StopProcessInfos(self);
Npc_SetRefuseTalk(self,300);
};
instance DIA_VLK_449_LARES_YOURFREE(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = dia_vlk_449_lares_yourfree_condition;
information = dia_vlk_449_lares_yourfree_info;
permanent = FALSE;
important = TRUE;
};
func int dia_vlk_449_lares_yourfree_condition()
{
if(Npc_IsInState(self,ZS_Talk) && (LARESCAPTURED == TRUE) && (HORINISISFREE == TRUE) && (CAPTUREDMANSISFREE == FALSE))
{
return TRUE;
};
};
func void dia_vlk_449_lares_yourfree_info()
{
AI_Output(self,other,"DIA_VLK_449_Lares_YourFree_01_08"); //Чего тебе еще надо?
AI_Output(other,self,"DIA_VLK_449_Lares_YourFree_01_00"); //Просто хочу сказать, что ты свободен.
AI_Output(self,other,"DIA_VLK_449_Lares_YourFree_01_01"); //Хммм...(удивленно) Ты что, перебил всех орков в городе?
AI_Output(other,self,"DIA_VLK_449_Lares_YourFree_01_02"); //Да, именно так.
if(COUNTCAPTURED > 1)
{
AI_Output(self,other,"DIA_VLK_449_Lares_YourFree_01_03"); //Что же, отлично приятель! А то мы уж думали, что нам всем пришел конец.
AI_Output(self,other,"DIA_VLK_449_Lares_YourFree_01_04"); //Только открой сначала решетки, чтобы мы смогли выйти отсюда.
}
else
{
AI_Output(self,other,"DIA_VLK_449_Lares_YourFree_01_05"); //Что же, отлично приятель! А то я уж думал, что мне пришел конец.
AI_Output(self,other,"DIA_VLK_449_Lares_YourFree_01_06"); //Только открой сначала решетку, чтобы я смог выйти отсюда.
};
CAPTUREDMANSISFREE = TRUE;
AI_StopProcessInfos(self);
};
instance DIA_VLK_449_LARES_OPENGATENOW(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = dia_vlk_449_lares_opengatenow_condition;
information = dia_vlk_449_lares_opengatenow_info;
permanent = TRUE;
important = TRUE;
};
func int dia_vlk_449_lares_opengatenow_condition()
{
if(Npc_IsInState(self,ZS_Talk) && (LARESCAPTURED == TRUE) && (HORINISISFREE == TRUE) && (CAPTUREDMANSISFREE == TRUE) && (LARESISFREE == FALSE))
{
return TRUE;
};
};
func void dia_vlk_449_lares_opengatenow_info()
{
AI_Output(self,other,"DIA_VLK_449_Lares_OpenGateNow_01_00"); //Ты выпустишь меня отсюда наконец-то?! (непонимающе) Или мне еще ждать этого целую вечность?
AI_StopProcessInfos(self);
};
instance DIA_VLK_449_LARES_GOONORKSHUNT(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = dia_vlk_449_lares_goonorkshunt_condition;
information = dia_vlk_449_lares_goonorkshunt_info;
permanent = FALSE;
description = "Не хочешь прогуляться по округе?";
};
func int dia_vlk_449_lares_goonorkshunt_condition()
{
if((HAGENGIVEHELP == TRUE) && (LARESCAPTURED == FALSE) && (ALLGREATVICTORY == FALSE) && (ALLDISMISSFROMHUNT == FALSE) && (LARESTOBIGLAND == FALSE))
{
return TRUE;
};
};
func void dia_vlk_449_lares_goonorkshunt_info()
{
B_GivePlayerXP(100);
AI_Output(other,self,"DIA_VLK_449_Lares_GoOnOrksHunt_01_00"); //Не хочешь прогуляться по округе?
AI_Output(self,other,"DIA_VLK_449_Lares_GoOnOrksHunt_01_01"); //Хммм...(лукаво) А ты, видимо, что-то задумал?
AI_Output(other,self,"DIA_VLK_449_Lares_GoOnOrksHunt_01_02"); //Просто хочу прикончить парочку орков.
AI_Output(self,other,"DIA_VLK_449_Lares_GoOnOrksHunt_01_03"); //Ладно, приятель. Тогда я с тобой.
LARESJOINMEHUNT = TRUE;
};
instance DIA_VLK_449_LARES_FOLLOWME(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = dia_vlk_449_lares_followme_condition;
information = dia_vlk_449_lares_followme_info;
permanent = TRUE;
description = "Иди за мной!";
};
func int dia_vlk_449_lares_followme_condition()
{
if((LARESJOINMEHUNT == TRUE) && (self.aivar[AIV_PARTYMEMBER] == FALSE) && (ALLDISMISSFROMHUNT == FALSE) && (LARESTOBIGLAND == FALSE))
{
return TRUE;
};
};
func void dia_vlk_449_lares_followme_info()
{
AI_Output(other,self,"DIA_VLK_449_Lares_FollowMe_01_00"); //Иди за мной!
AI_Output(self,other,"DIA_VLK_449_Lares_FollowMe_01_01"); //Конечно.
Npc_ExchangeRoutine(self,"Follow");
self.aivar[AIV_PARTYMEMBER] = TRUE;
AI_StopProcessInfos(self);
};
instance DIA_VLK_449_LARES_STOPHERE(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = dia_vlk_449_lares_stophere_condition;
information = dia_vlk_449_lares_stophere_info;
permanent = TRUE;
description = "Жди тут!";
};
func int dia_vlk_449_lares_stophere_condition()
{
if((LARESJOINMEHUNT == TRUE) && (self.aivar[AIV_PARTYMEMBER] == TRUE) && (ALLDISMISSFROMHUNT == FALSE) && (LARESTOBIGLAND == FALSE))
{
return TRUE;
};
};
func void dia_vlk_449_lares_stophere_info()
{
AI_Output(other,self,"DIA_VLK_449_Lares_StopHere_01_00"); //Жди тут!
AI_Output(self,other,"DIA_VLK_449_Lares_StopHere_01_01"); //Ладно, приятель. Ты знаешь, где меня найти!
Npc_ExchangeRoutine(self,"OrcAtcNW");
self.aivar[AIV_PARTYMEMBER] = FALSE;
AI_StopProcessInfos(self);
};
instance DIA_VLK_449_LARES_TRAVELONBIGLAND(C_Info)
{
npc = VLK_449_Lares;
nr = 1;
condition = dia_vlk_449_lares_travelonbigland_condition;
information = dia_vlk_449_lares_travelonbigland_info;
permanent = FALSE;
description = "Как тебе идея прогуляться на материк?";
};
func int dia_vlk_449_lares_travelonbigland_condition()
{
if(WHOTRAVELONBIGLAND == TRUE)
{
return TRUE;
};
};
func void dia_vlk_449_lares_travelonbigland_info()
{
B_GivePlayerXP(200);
AI_Output(other,self,"DIA_VLK_449_Lares_TravelOnBigLand_01_00"); //Как тебе идея попасть на материк?
AI_Output(self,other,"DIA_VLK_449_Lares_TravelOnBigLand_01_01"); //Она мне по душе. Я найду, чем там заняться!
AI_Output(other,self,"DIA_VLK_449_Lares_TravelOnBigLand_01_02"); //Ладно! Тогда мы скоро отплываем.
AI_Output(self,other,"DIA_VLK_449_Lares_TravelOnBigLand_01_03"); //Хорошо, я поспешу.
COUNTTRAVELONBIGLAND = COUNTTRAVELONBIGLAND + 1;
LARESTOBIGLAND = TRUE;
B_LogEntry(TOPIC_SALETOBIGLAND,"Ларес тоже поплывет вместе со мной. Такие люди, как он, всегда найдут чем заняться на материке!");
Npc_ExchangeRoutine(self,"SHIP");
AI_StopProcessInfos(self);
};
|
D
|
/Users/hauyadav/Learn/nysample/NYTSample/Build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/ServerTrustPolicy.o : /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/MultipartFormData.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Timeline.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Alamofire.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Response.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/TaskDelegate.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/SessionDelegate.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/ParameterEncoding.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Validation.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/ResponseSerialization.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/SessionManager.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/AFError.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Notifications.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Result.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Request.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/hauyadav/Learn/nysample/NYTSample/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/hauyadav/Learn/nysample/NYTSample/Build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/hauyadav/Learn/nysample/NYTSample/Build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/ServerTrustPolicy~partial.swiftmodule : /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/MultipartFormData.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Timeline.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Alamofire.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Response.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/TaskDelegate.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/SessionDelegate.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/ParameterEncoding.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Validation.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/ResponseSerialization.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/SessionManager.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/AFError.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Notifications.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Result.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Request.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/hauyadav/Learn/nysample/NYTSample/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/hauyadav/Learn/nysample/NYTSample/Build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/hauyadav/Learn/nysample/NYTSample/Build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/ServerTrustPolicy~partial.swiftdoc : /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/MultipartFormData.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Timeline.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Alamofire.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Response.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/TaskDelegate.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/SessionDelegate.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/ParameterEncoding.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Validation.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/ResponseSerialization.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/SessionManager.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/AFError.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Notifications.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Result.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/Request.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/hauyadav/Learn/nysample/NYTSample/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/hauyadav/Learn/nysample/NYTSample/Build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
instance Mod_7588_OUT_Wilderer_NW (Npc_Default)
{
//-------- primary data --------
name = "Wilderer";
Npctype = NPCTYPE_MAIN;
guild = GIL_STRF;
level = 16;
voice = 0;
id = 7588;
aivar[AIV_Partymember] = TRUE;
//-------- abilities --------
B_SetAttributesToChapter (self, 4);
EquipItem (self, ItMw_GrobesKurzschwert);
//-------- visuals --------
// animations
Mdl_SetVisual (self,"HUMANS.MDS");
Mdl_ApplyOverlayMds (self,"Humans_Militia.mds");
// body mesh, head mesh, hairmesh, face-tex, hair-tex, skin
Mdl_SetVisualBody (self,"hum_body_Naked0",1, 1,"Hum_Head_Pony", 47, 1,ITAR_SLD_H);
Mdl_SetModelFatness (self, 0);
fight_tactic = FAI_HUMAN_STRONG;
//-------- Talente --------
B_SetFightSkills (self, 75);
//-------- inventory --------
//-------------Daily Routine-------------
daily_routine = Rtn_start_7588;
};
FUNC VOID Rtn_start_7588 () //Vor Ezhaufen
{
TA_Stand_ArmsCrossed (23,00,07,00,"NW_TROLLAREA_PATH_13");
TA_Stand_ArmsCrossed (07,00,23,00,"NW_TROLLAREA_PATH_13");
};
|
D
|
dist/miwikit_pic18f46j50_24j40_SleepRFD/production/doprnt.d dist/miwikit_pic18f46j50_24j40_SleepRFD/production/doprnt.p1: C:/Program\ Files\ (x86)/Microchip/xc8/v1.38/sources/common/doprnt.c
|
D
|
/Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/SQLite.build/SQL/SQLiteAlterTableBuilder.swift.o : /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Row/SQLiteData.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteGeneric.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Utilities/Deprecated.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteBind.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/SQLiteStorage.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteCreateTable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteTable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteAlterTable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteDataTypeStaticRepresentable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteQueryExpressionRepresentable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Row/SQLiteDataConvertible.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Row/SQLiteDataType.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/SQLiteDatabase.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/DatabaseIdentifier+SQLite.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteBoolLiteral.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteDefaultLiteral.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Row/SQLiteColumn.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteCollation.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/SQLiteConnection.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteFunction.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteAlterTableBuilder.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Codable/SQLiteDataDecoder.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Codable/SQLiteRowDecoder.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Codable/SQLiteDataEncoder.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Utilities/SQLiteError.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Utilities/Exports.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/SQLiteStatement.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteDropIndex.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLitePrimaryKey.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/SQL.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/cpp_magic.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/ifaddrs-android.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIODarwin/include/CNIODarwin.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/CNIOLinux.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio-zlib-support.git-1048424751408724151/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/SQLite.build/SQLiteAlterTableBuilder~partial.swiftmodule : /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Row/SQLiteData.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteGeneric.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Utilities/Deprecated.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteBind.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/SQLiteStorage.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteCreateTable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteTable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteAlterTable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteDataTypeStaticRepresentable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteQueryExpressionRepresentable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Row/SQLiteDataConvertible.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Row/SQLiteDataType.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/SQLiteDatabase.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/DatabaseIdentifier+SQLite.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteBoolLiteral.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteDefaultLiteral.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Row/SQLiteColumn.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteCollation.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/SQLiteConnection.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteFunction.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteAlterTableBuilder.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Codable/SQLiteDataDecoder.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Codable/SQLiteRowDecoder.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Codable/SQLiteDataEncoder.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Utilities/SQLiteError.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Utilities/Exports.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/SQLiteStatement.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteDropIndex.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLitePrimaryKey.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/SQL.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/cpp_magic.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/ifaddrs-android.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIODarwin/include/CNIODarwin.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/CNIOLinux.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio-zlib-support.git-1048424751408724151/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/SQLite.build/SQLiteAlterTableBuilder~partial.swiftdoc : /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Row/SQLiteData.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteGeneric.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Utilities/Deprecated.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteBind.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/SQLiteStorage.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteCreateTable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteTable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteAlterTable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteDataTypeStaticRepresentable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteQueryExpressionRepresentable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Row/SQLiteDataConvertible.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Row/SQLiteDataType.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/SQLiteDatabase.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/DatabaseIdentifier+SQLite.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteBoolLiteral.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteDefaultLiteral.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Row/SQLiteColumn.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteCollation.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/SQLiteConnection.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteFunction.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteAlterTableBuilder.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Codable/SQLiteDataDecoder.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Codable/SQLiteRowDecoder.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Codable/SQLiteDataEncoder.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Utilities/SQLiteError.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Utilities/Exports.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/Database/SQLiteStatement.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteDropIndex.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLitePrimaryKey.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/sqlite.git--4835314149664712121/Sources/SQLite/SQL/SQLiteQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/SQL.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/cpp_magic.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/ifaddrs-android.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIODarwin/include/CNIODarwin.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/CNIOLinux.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio-zlib-support.git-1048424751408724151/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
/Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/FluentProvider.build/Droplet/Droplet+Prepare.swift.o : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Node+Row+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Droplet/Droplet+Storage.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Cache.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Updateable/Request+Updateable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Updateable/Updateable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Filterable/Query+Filterable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Filterable/Filterable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Droplet/Droplet+Prepare.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Prepare.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/SQLite+Config.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Filterable/FilterableKey+String.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Model.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Pagination.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Droplet/Config+Preparation.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Droplet/Config+Driver.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Exports.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Updateable/UpdateableKey.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Filterable/FilterableKey.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Vapor.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Fluent.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/FluentProvider.build/Droplet+Prepare~partial.swiftmodule : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Node+Row+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Droplet/Droplet+Storage.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Cache.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Updateable/Request+Updateable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Updateable/Updateable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Filterable/Query+Filterable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Filterable/Filterable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Droplet/Droplet+Prepare.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Prepare.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/SQLite+Config.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Filterable/FilterableKey+String.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Model.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Pagination.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Droplet/Config+Preparation.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Droplet/Config+Driver.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Exports.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Updateable/UpdateableKey.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Filterable/FilterableKey.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Vapor.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Fluent.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/FluentProvider.build/Droplet+Prepare~partial.swiftdoc : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Node+Row+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Droplet/Droplet+Storage.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Cache.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Updateable/Request+Updateable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Updateable/Updateable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Filterable/Query+Filterable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Filterable/Filterable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Droplet/Droplet+Prepare.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Prepare.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/SQLite+Config.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Filterable/FilterableKey+String.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Model.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Pagination.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Droplet/Config+Preparation.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Droplet/Config+Driver.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Exports.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Updateable/UpdateableKey.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/fluent-provider.git-1502561075136423204/Sources/FluentProvider/Filterable/FilterableKey.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Vapor.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Fluent.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
|
D
|
/Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Intermediates.noindex/PRMacControls.build/Debug/PRMacControls.build/Objects-normal/x86_64/sourcetable.o : /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myControlDoc.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfield.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/web/webService.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTable.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/sourcetable.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myOutline.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldTelephone.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldAdresse.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldDate.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldDecimal.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/selectorsProtocol.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myControl.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/mytoolbarItem.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTabviewitem.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldNum.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/cmyButton.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myCombo.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/web/downloadManager.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/preferenceManager.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/baseController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/documentPopoverController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/popoverController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/editController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/listController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/user.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/listeControles.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/dates.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/alertes.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/strings.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/nums.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/enumerations.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/keyboardKeys.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldInt.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/baseView.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/myView.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/myWindow.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myBox.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myCustomCheckbox.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myCheckbox.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Products/Debug/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/XPC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/AppKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Products/Debug/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/PRMacControls.h /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Products/Debug/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Intermediates.noindex/PRMacControls.build/Debug/PRMacControls.build/unextended-module.modulemap /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Products/Debug/Alamofire/Alamofire.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Intermediates.noindex/PRMacControls.build/Debug/PRMacControls.build/Objects-normal/x86_64/sourcetable~partial.swiftmodule : /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myControlDoc.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfield.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/web/webService.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTable.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/sourcetable.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myOutline.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldTelephone.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldAdresse.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldDate.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldDecimal.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/selectorsProtocol.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myControl.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/mytoolbarItem.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTabviewitem.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldNum.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/cmyButton.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myCombo.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/web/downloadManager.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/preferenceManager.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/baseController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/documentPopoverController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/popoverController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/editController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/listController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/user.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/listeControles.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/dates.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/alertes.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/strings.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/nums.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/enumerations.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/keyboardKeys.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldInt.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/baseView.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/myView.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/myWindow.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myBox.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myCustomCheckbox.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myCheckbox.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Products/Debug/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/XPC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/AppKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Products/Debug/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/PRMacControls.h /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Products/Debug/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Intermediates.noindex/PRMacControls.build/Debug/PRMacControls.build/unextended-module.modulemap /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Products/Debug/Alamofire/Alamofire.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Intermediates.noindex/PRMacControls.build/Debug/PRMacControls.build/Objects-normal/x86_64/sourcetable~partial.swiftdoc : /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myControlDoc.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfield.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/web/webService.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTable.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/sourcetable.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myOutline.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldTelephone.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldAdresse.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldDate.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldDecimal.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/selectorsProtocol.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myControl.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/mytoolbarItem.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTabviewitem.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldNum.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/cmyButton.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myCombo.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/web/downloadManager.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/preferenceManager.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/baseController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/documentPopoverController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/popoverController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/editController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/listController.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/user.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/listeControles.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/dates.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/alertes.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/strings.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/nums.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/enumerations.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/misc/keyboardKeys.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myTextfieldInt.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/baseView.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/myView.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/windows/myWindow.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myBox.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myCustomCheckbox.swift /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/controles/myCheckbox.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Products/Debug/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/XPC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/AppKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Products/Debug/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/patricerapaport/Desktop/swift/PRMacControls/PRMacControls/PRMacControls.h /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Products/Debug/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Intermediates.noindex/PRMacControls.build/Debug/PRMacControls.build/unextended-module.modulemap /Users/patricerapaport/Desktop/swift/PRMacControls/Build/Intermediates.noindex/SwiftMigration/PRMacControls/Products/Debug/Alamofire/Alamofire.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
// Vicfred
// https://atcoder.jp/contests/abc056/tasks/arc070_a
// simulation, greedy
import std.stdio;
void main() {
const int maxn = 10^^5;
int X;
readf("%s\n", &X);
long[] dist = new long[maxn + 5];
for(int i = 1; i < maxn; i++)
dist[i] = dist[i - 1] + i;
for(int i = 0; i < maxn; i++)
if(dist[i] >= X) {
i.writeln;
return;
}
}
|
D
|
instance Mod_1563_SFB_Schuerfer_MT (Npc_Default)
{
//-------- primary data --------
name = NAME_Schuerfer;
npctype = Npctype_mt_schuerfer;
guild = GIL_mil;
level = 6;
flags = 0;
voice = 5;
id = 1563;
//-------- abilities --------
attribute[ATR_STRENGTH] = 30;
attribute[ATR_DEXTERITY] = 10;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX] = 112;
attribute[ATR_HITPOINTS] = 112;
//-------- visuals --------
// animations
Mdl_SetVisual (self,"HUMANS.MDS");
Mdl_ApplyOverlayMds (self,"Humans_Tired.mds");
// body mesh, head mesh, hairmesh, face-tex, hair-tex, skin
Mdl_SetVisualBody (self,"hum_body_Naked0",3,1,"Hum_Head_Fighter", 43, 1,SFB_ARMOR_L);
Mdl_SetModelFatness(self,0);
fight_tactic = FAI_HUMAN_COWARD;
//-------- Talente --------
//-------- inventory --------
//-------------Daily Routine-------------
daily_routine = Rtn_FMCstart_1563;
};
FUNC VOID Rtn_FMCstart_1563 ()
{
TA_Sit_Bench (01,00,13,00, "FMC_HUT01_OUT");
TA_Sit_Bench (13,00,01,00, "FMC_HUT01_OUT");
};
|
D
|
module wiz.cpu.gameboy;
import wiz.lib;
import wiz.cpu.lib;
private
{
enum ArgumentType
{
None,
Immediate,
Indirection,
IndirectionInc,
IndirectionDec,
PositiveIndex,
NegativeIndex,
BitIndex,
Swap,
A,
B,
C,
D,
E,
F,
H,
L,
AF,
BC,
DE,
HL,
SP,
Carry,
Zero,
Interrupt,
}
class Argument
{
ArgumentType type;
ast.Expression immediate;
Argument base;
this(ArgumentType type)
{
this.type = type;
}
this(ArgumentType type, ast.Expression immediate)
{
this(type);
this.immediate = immediate;
}
this(ArgumentType type, Argument base)
{
this(type);
this.base = base;
}
this(ArgumentType type, ast.Expression immediate, Argument base)
{
this(type);
this.immediate = immediate;
this.base = base;
}
}
class Builtin : sym.Definition
{
ArgumentType type;
this(ArgumentType type)
{
super(new ast.BuiltinDecl());
this.type = type;
}
}
Argument buildIndirection(compile.Program program, ast.Expression root)
{
if(auto attr = cast(ast.Attribute) root)
{
auto def = compile.resolveAttribute(program, attr);
if(auto builtin = cast(Builtin) def)
{
return new Argument(ArgumentType.Indirection, new Argument(builtin.type));
}
}
else if(auto prefix = cast(ast.Prefix) root)
{
if(prefix.type == parse.Prefix.Indirection)
{
error("double-indirection is not supported on the gameboy", prefix.location);
return null;
}
}
else if(auto postfix = cast(ast.Postfix) root)
{
ArgumentType argumentType;
final switch(postfix.type)
{
case parse.Postfix.Inc: argumentType = ArgumentType.IndirectionInc; break;
case parse.Postfix.Dec: argumentType = ArgumentType.IndirectionDec; break;
}
if(auto attr = cast(ast.Attribute) postfix.operand)
{
auto def = compile.resolveAttribute(program, attr);
if(auto builtin = cast(Builtin) def)
{
if(builtin.type == ArgumentType.HL)
{
return new Argument(argumentType, new Argument(builtin.type));
}
}
}
error(
"operator " ~ parse.getPostfixName(postfix.type)
~ " on indirected operand is not supported (only '[hl"
~ parse.getPostfixName(postfix.type) ~ "]' is valid)",
postfix.location
);
return null;
}
else if(auto infix = cast(ast.Infix) root)
{
Builtin registerLeft;
Builtin registerRight;
if(infix.type == parse.Infix.Colon)
{
if(auto attr = cast(ast.Attribute) infix.right)
{
auto def = compile.resolveAttribute(program, attr);
if(auto builtin = cast(Builtin) def)
{
if(auto prefix = cast(ast.Prefix) infix.left)
{
if(prefix.type == parse.Infix.Sub)
{
return new Argument(ArgumentType.NegativeIndex, prefix.operand, new Argument(builtin.type));
}
}
return new Argument(ArgumentType.PositiveIndex, infix.left, new Argument(builtin.type));
}
}
error(
"index operator ':' must have register as a right-hand term",
infix.location
);
return null;
}
}
return new Argument(ArgumentType.Indirection, new Argument(ArgumentType.Immediate, root));
}
Argument buildArgument(compile.Program program, ast.Expression root)
{
uint v;
if(auto attr = cast(ast.Attribute) root)
{
auto def = compile.resolveAttribute(program, attr);
if(auto builtin = cast(Builtin) def)
{
return new Argument(builtin.type);
}
}
else if(auto prefix = cast(ast.Prefix) root)
{
if(prefix.type == parse.Token.LBracket)
{
return buildIndirection(program, prefix.operand);
}
if(prefix.type == parse.Token.Swap)
{
return new Argument(ArgumentType.Swap, buildArgument(program, prefix.operand));
}
}
else if(auto infix = cast(ast.Infix) root)
{
if(infix.type == parse.Token.At)
{
if(auto attr = cast(ast.Attribute) infix.left)
{
auto def = compile.resolveAttribute(program, attr);
if(auto builtin = cast(Builtin) def)
{
return new Argument(ArgumentType.BitIndex, infix.right, new Argument(builtin.type));
}
}
}
}
return new Argument(ArgumentType.Immediate, root);
}
}
class GameboyPlatform : Platform
{
BuiltinTable builtins()
{
return [
"a": new Builtin(ArgumentType.A),
"b": new Builtin(ArgumentType.B),
"c": new Builtin(ArgumentType.C),
"d": new Builtin(ArgumentType.D),
"e": new Builtin(ArgumentType.E),
"f": new Builtin(ArgumentType.F),
"h": new Builtin(ArgumentType.H),
"l": new Builtin(ArgumentType.L),
"af": new Builtin(ArgumentType.AF),
"bc": new Builtin(ArgumentType.BC),
"de": new Builtin(ArgumentType.DE),
"hl": new Builtin(ArgumentType.HL),
"sp": new Builtin(ArgumentType.SP),
"carry": new Builtin(ArgumentType.Carry),
"zero": new Builtin(ArgumentType.Zero),
"interrupt": new Builtin(ArgumentType.Interrupt),
];
}
ubyte[] generateCommand(compile.Program program, ast.Command stmt)
{
switch(stmt.type)
{
case parse.Keyword.Push:
auto argument = buildArgument(program, stmt.argument);
switch(argument.type)
{
case ArgumentType.AF: return [0xF5];
case ArgumentType.BC: return [0xC5];
case ArgumentType.DE: return [0xD5];
case ArgumentType.HL: return [0xE5];
default: return [];
}
default:
return [];
}
}
ubyte[] generateJump(compile.Program program, ast.Jump stmt)
{
ubyte[] getJumpCode(uint address, ArgumentType type = ArgumentType.None, bool negated = false)
{
ubyte opcode;
switch(type)
{
case ArgumentType.Zero: opcode = negated ? 0xC2 : 0xCA; break;
case ArgumentType.Carry: opcode = negated ? 0xD2 : 0xDA; break;
case ArgumentType.None: opcode = 0xC3; break;
default:
assert(0);
}
return [opcode, address & 0xFF, (address >> 8) & 0xFF];
}
ubyte[] getCallCode(uint address, ArgumentType type = ArgumentType.None, bool negated = false)
{
ubyte opcode;
switch(type)
{
case ArgumentType.Zero: opcode = negated ? 0xC4 : 0xCC; break;
case ArgumentType.Carry: opcode = negated ? 0xD4 : 0xDC; break;
case ArgumentType.None: opcode = 0xCD; break;
default:
assert(0);
}
return [opcode, address & 0xFF, (address >> 8) & 0xFF];
}
ubyte[] getReturnCode(ArgumentType type = ArgumentType.None, bool negated = false)
{
switch(type)
{
case ArgumentType.Zero: return [negated ? 0xC0 : 0xC8];
case ArgumentType.Carry: return [negated ? 0xD0 : 0xD8];
case ArgumentType.None: return [0xC9];
default:
assert(0);
}
}
switch(stmt.type)
{
case parse.Keyword.Goto:
auto argument = buildArgument(program, stmt.destination);
switch(argument.type)
{
case ArgumentType.Immediate:
uint address;
if(!compile.foldConstExpr(program, argument.immediate, address))
{
// For now, sub a placeholder expression.
// At a later pass, we will ensure that the address is resolvable.
address = 0xFACE;
}
if(stmt.condition is null)
{
return getJumpCode(address);
}
else
{
auto cond = stmt.condition;
if(cond.attr is null)
{
final switch(cond.branch)
{
case parse.Branch.Equal:
return getJumpCode(address, ArgumentType.Zero, cond.negated);
case parse.Branch.NotEqual:
return getJumpCode(address, ArgumentType.Zero, !cond.negated);
case parse.Branch.Less:
return getJumpCode(address, ArgumentType.Carry, !cond.negated);
case parse.Branch.GreaterEqual:
return getJumpCode(address, ArgumentType.Carry, cond.negated);
case parse.Branch.Greater:
case parse.Branch.LessEqual:
error(
"comparision '" ~ parse.getBranchName(cond.branch)
~ "' unsupported in 'when' clause of 'goto'", cond.location
);
return [];
}
}
else
{
auto attr = cond.attr;
auto def = compile.resolveAttribute(program, attr);
if(auto builtin = cast(Builtin) def)
{
switch(builtin.type)
{
case ArgumentType.Carry:
case ArgumentType.Zero:
return getJumpCode(address, builtin.type, cond.negated);
default:
}
}
error(
"unrecognized condition '" ~ attr.fullName()
~ "' used in 'when' clause of 'goto'", cond.location
);
return [];
}
}
case ArgumentType.HL:
if(stmt.condition is null)
{
return [0xE9];
}
else
{
error("'goto hl' does not support 'when' clause", stmt.condition.location);
return [];
}
default:
error("unsupported argument to 'goto'", stmt.condition.location);
return [];
}
case parse.Keyword.Call:
auto argument = buildArgument(program, stmt.destination);
switch(argument.type)
{
case ArgumentType.Immediate:
uint address;
if(!compile.foldConstExpr(program, argument.immediate, address))
{
// For now, sub a placeholder expression.
// At a later pass, we will ensure that the address is resolvable.
address = 0xFACE;
}
if(stmt.condition is null)
{
return getCallCode(address);
}
else
{
auto cond = stmt.condition;
if(cond.attr is null)
{
final switch(cond.branch)
{
case parse.Branch.Equal:
return getCallCode(address, ArgumentType.Zero, cond.negated);
case parse.Branch.NotEqual:
return getCallCode(address, ArgumentType.Zero, !cond.negated);
case parse.Branch.Less:
return getCallCode(address, ArgumentType.Carry, !cond.negated);
case parse.Branch.GreaterEqual:
return getCallCode(address, ArgumentType.Carry, cond.negated);
case parse.Branch.Greater:
case parse.Branch.LessEqual:
error(
"comparision '" ~ parse.getBranchName(cond.branch)
~ "' unsupported in 'when' clause of 'call'", cond.location
);
return [];
}
}
else
{
auto attr = cond.attr;
auto def = compile.resolveAttribute(program, attr);
if(auto builtin = cast(Builtin) def)
{
switch(builtin.type)
{
case ArgumentType.Carry:
case ArgumentType.Zero:
return getCallCode(address, builtin.type, cond.negated);
default:
}
}
error(
"unrecognized condition '" ~ attr.fullName()
~ "' used in 'when' clause of 'call'", cond.location
);
return [];
}
}
default:
error("unsupported argument to 'call'", stmt.condition.location);
return [];
}
case parse.Keyword.Return:
if(stmt.condition is null)
{
return getReturnCode();
}
else
{
auto cond = stmt.condition;
if(cond.attr is null)
{
final switch(cond.branch)
{
case parse.Branch.Equal:
return getReturnCode(ArgumentType.Zero, cond.negated);
case parse.Branch.NotEqual:
return getReturnCode(ArgumentType.Zero, !cond.negated);
case parse.Branch.Less:
return getReturnCode(ArgumentType.Carry, !cond.negated);
case parse.Branch.GreaterEqual:
return getReturnCode(ArgumentType.Carry, cond.negated);
case parse.Branch.Greater:
case parse.Branch.LessEqual:
error(
"comparision '" ~ parse.getBranchName(cond.branch)
~ "' unsupported in 'when' clause of 'return'", cond.location
);
return [];
}
}
else
{
auto attr = cond.attr;
auto def = compile.resolveAttribute(program, attr);
if(auto builtin = cast(Builtin) def)
{
switch(builtin.type)
{
case ArgumentType.Carry:
case ArgumentType.Zero:
return getReturnCode(builtin.type, cond.negated);
default:
}
}
error(
"unrecognized condition '" ~ attr.fullName()
~ "' used in 'when' clause of 'return'", cond.location
);
return [];
}
}
case parse.Keyword.Resume:
return [0xD9];
case parse.Keyword.Break:
return [];
case parse.Keyword.Continue:
return [];
case parse.Keyword.While:
return [];
case parse.Keyword.Until:
return [];
case parse.Keyword.Abort:
return [0x40];
case parse.Keyword.Sleep:
return [0x76];
case parse.Keyword.Suspend:
return [0x10, 0x00];
case parse.Keyword.Nop:
return [0x00];
default:
return [];
}
}
ubyte[] generateAssignment(compile.Program program, ast.Assignment stmt)
{
auto dest = buildArgument(program, stmt.dest);
if(stmt.src is null)
{
final switch(stmt.postfix)
{
case parse.Postfix.Inc:
// 'inc dest'
switch(dest.type)
{
case ArgumentType.B: return [0x04];
case ArgumentType.C: return [0x0C];
case ArgumentType.D: return [0x14];
case ArgumentType.E: return [0x1C];
case ArgumentType.H: return [0x24];
case ArgumentType.L: return [0x2C];
case ArgumentType.Indirection:
if(dest.base.base.type == ArgumentType.HL)
{
return [0x34];
}
else
{
error("'++' on indirected operand is not supported (only '[hl]++' is valid)", stmt.dest.location);
return [];
}
case ArgumentType.A: return [0x3C];
case ArgumentType.BC: return [0x03];
case ArgumentType.DE: return [0x13];
case ArgumentType.HL: return [0x23];
case ArgumentType.SP: return [0x33];
default:
error("unsupported operand of '++'", stmt.dest.location);
return [];
}
case parse.Postfix.Dec:
// 'dec dest'
switch(dest.type)
{
case ArgumentType.B: return [0x05];
case ArgumentType.C: return [0x0D];
case ArgumentType.D: return [0x15];
case ArgumentType.E: return [0x1D];
case ArgumentType.H: return [0x25];
case ArgumentType.L: return [0x2D];
case ArgumentType.Indirection:
if(dest.base.base.type == ArgumentType.HL)
{
return [0x35];
}
else
{
error("'--' on indirected operand is not supported (only '[hl]--' is valid)", stmt.dest.location);
return [];
}
case ArgumentType.A: return [0x3D];
case ArgumentType.BC: return [0x0B];
case ArgumentType.DE: return [0x1B];
case ArgumentType.HL: return [0x2B];
case ArgumentType.SP: return [0x3B];
default:
error("unsupported operand of '--'", stmt.dest.location);
return [];
}
}
}
else
{
if(stmt.intermediary)
{
auto intermediary = buildArgument(program, stmt.intermediary);
return // 'x = y via z' -> 'z = y; x = z'
generateCalculation(program, stmt, intermediary, stmt.src)
~ generateLoad(program, stmt, dest, stmt.intermediary);
}
else
{
return generateCalculation(program, stmt, dest, stmt.src);
}
}
return [];
}
ubyte[] generateCalculation(compile.Program program, ast.Assignment stmt, Argument dest, ast.Expression src)
{
ubyte[] code = generateLoad(program, stmt, dest, src);
if(dest is null)
{
return [];
}
// TODO: This code will be gigantic.
// a:
// + (add), - (sub), +# (adc), -# (sbc),
// & (and), | (or), ^ (xor),
// <<< (sla), <<- (sla), >>> (srl) >>- (sra)
// <<< (rla), <<<# (rlca), >>> (rra), >>># (rrca).
// r / [hl]:
// <<< (sla), <<- (sla), >>> (srl) >>- (sra)
// <<< (rl), <<<# (rlc), >>> (rr), >>># (rrc).
// carry:
// ^ (ccf)
return code;
}
ubyte[] generateLoad(compile.Program program, ast.Assignment stmt, Argument dest, ast.Expression src)
{
// TODO: fold constant left-hand of expressions.
// TODO: giant fucking assignment compatibility instruction lookup table.
if(dest is null)
{
return [];
}
final switch(dest.type)
{
case ArgumentType.A:
// 'a = <>a' -> 'swap a'
// 'a = ~a' -> 'cpl a'
// 'a = r' -> 'ld a, r'
// 'a = n' -> 'ld a, n'
// 'a = [hl]' -> 'ld a, [hl]'
// 'a = [bc]' -> 'ld a, [bc]'
// 'a = [de]' -> 'ld a, [de]'
// 'a = [n]' -> 'ld a, [n]'
// 'a = [0xFFnn]' -> 'ldh a, [nn]'
// 'a = [0xFF00:c]' -> 'ldh a, [c]'
// 'a = [hl++]' -> 'ld a, [hl+]'
// 'a = [hl--]' -> 'ld a, [hl-]'
return [];
case ArgumentType.B:
// 'b = <>b' -> 'swap b'
// 'b = r' -> 'ld b, r'
// 'b = n' -> 'ld b, n'
// 'b = [hl]' -> 'ld b, [hl]'
return [];
case ArgumentType.C:
// 'c = <>c' -> 'swap c'
// 'c = r' -> 'ld c, r'
// 'c = n' -> 'ld c, n'
// 'c = [hl]' -> 'ld c, [hl]'
return [];
case ArgumentType.D:
// 'd = <>d' -> 'swap d'
// 'd = r' -> 'ld d, r'
// 'd = n' -> 'ld d, n'
// 'd = [hl]' -> 'ld d, [hl]'
return [];
case ArgumentType.E:
// 'e = <>e' -> 'swap e'
// 'e = r' -> 'ld e, r'
// 'e = n' -> 'ld e, n'
// 'e = [hl]' -> 'ld e, [hl]'
return [];
case ArgumentType.H:
// 'h = <>h' -> 'swap h'
// 'h = r' -> 'ld h, r'
// 'h = n' -> 'ld h, n'
// 'h = [hl]' -> 'ld h, [hl]'
return [];
case ArgumentType.L:
// 'l = <>l' -> 'swap l'
// 'l = r' -> 'ld l, r'
// 'l = n' -> 'ld l, n'
// 'l = [hl]' -> 'ld l, [hl]'
return [];
case ArgumentType.Indirection:
switch(dest.base.type)
{
case ArgumentType.Immediate:
// '[n] = a' -> 'ld [n], a'
// '[0xFFnn] = a' -> 'ldh [nn], a'
error("Invalid assignment to indirected expression.", stmt.location);
return [];
case ArgumentType.BC:
// '[bc] = a' -> 'ld [bc], a'
if(auto load = buildArgument(program, src))
{
if(load.type == ArgumentType.A)
{
return [0x02];
}
}
error("Invalid initializer in '[bc] = ...'", stmt.location);
return [];
case ArgumentType.DE:
// '[de] = a' -> 'ld [de], a'
if(auto load = buildArgument(program, src))
{
if(load.type == ArgumentType.A)
{
return [0x12];
}
}
error("Invalid initializer in '[de] = ...'", stmt.location);
return [];
case ArgumentType.HL:
bool swap = false;
if(auto load = buildArgument(program, src))
{
// '[hl] = <>v' -> 'hl = v; hl = <>hl'
if(load.type == ArgumentType.Swap)
{
load = load.base;
swap = true;
}
// '[hl] = [hl]'
if(load.type == dest.type && load.base.type == dest.base.type)
{
return swap ? [0x36] : [];
}
// '[hl] = a' -> 'ld [hl], a'
if(load.type == ArgumentType.A)
{
return swap ? [0x36, 0x77] : [0x77];
}
}
error("Invalid initializer in '[hl] = " ~ (swap ? "<> " : "") ~ "...'", stmt.location);
return [];
default:
error("Invalid assignment to indirected expression.", stmt.location);
return [];
}
case ArgumentType.AF:
// 'af = pop' -> 'pop af'
return [];
case ArgumentType.BC:
// 'bc = n' -> 'ld bc, n'
// 'bc = pop' -> 'pop bc'
return [];
case ArgumentType.DE:
// 'de = n' -> 'ld de, n'
// 'de = pop' -> 'pop de'
return [];
case ArgumentType.HL:
// 'hl = n' -> 'ld hl, n'
// 'hl = sp' -> 'ld hl, sp + k'
// 'hl = pop' -> 'pop hl'
return [];
case ArgumentType.SP:
// 'sp = hl' -> 'ld sp, hl'
return [];
case ArgumentType.IndirectionInc:
// '[hl++] = a' -> 'ld [hl+], a'
return [];
case ArgumentType.IndirectionDec:
// '[hl--] = a' -> 'ld [hl-], a'
return [];
case ArgumentType.PositiveIndex:
// '[FF00:c]' -> 'ldh [c], a'
return [];
case ArgumentType.NegativeIndex:
error("Negative indexing is not supported.", stmt.location);
return [];
case ArgumentType.BitIndex:
// 'r@i = 0' -> 'res r, i'
// 'r@i = 1' -> 'set r, i'
return [];
case ArgumentType.Interrupt:
// 'interrupt = 0' -> 'di'
// 'interrupt = 1' -> 'ei'
return [];
case ArgumentType.Immediate:
error("assignment '=' to immediate constant is invalid.", stmt.location);
return [];
case ArgumentType.Swap:
error("assignment '=' to swap expression '<>' is invalid.", stmt.location);
return [];
case ArgumentType.F:
error("assignment '=' to 'f' register is invalid.", stmt.location);
return [];
case ArgumentType.Zero:
error("assignment '=' to 'zero' flag is invalid.", stmt.location);
return [];
case ArgumentType.Carry:
// 'carry = 1' -> 'scf'
// 'carry = carry ^ 1' -> 'ccf'
// 'carry = 0' -> 'scf; ccf'
error("assignment '=' to 'carry' flag is invalid.", stmt.location);
return [];
case ArgumentType.None:
return [];
}
}
ubyte[] generateComparison(compile.Program program, ast.Comparison stmt)
{
auto left = buildArgument(program, stmt.left);
auto right = stmt.right ? buildArgument(program, stmt.right) : null;
switch(left.type)
{
case ArgumentType.A:
if(right is null)
{
// 'compare a' -> 'or a'
return [0xB7];
}
else
{
// 'compare a to expr' -> 'cp a, expr'
switch(right.type)
{
case ArgumentType.Immediate:
uint value;
if(!compile.foldConstExpr(program, right.immediate, value))
{
// For now, sub a placeholder expression.
// At a later pass, we will ensure that the address is resolvable.
value = 0xFACE;
}
return [0xFE, value & 0xFF];
case ArgumentType.B: return [0xB8];
case ArgumentType.C: return [0xB9];
case ArgumentType.D: return [0xBA];
case ArgumentType.E: return [0xBB];
case ArgumentType.H: return [0xBC];
case ArgumentType.L: return [0xBD];
case ArgumentType.Indirection:
if(left.base.base.type == ArgumentType.HL)
{
return [0xBE];
}
else
{
error("indirected operand in 'to' is not supported (only 'compare a to [hl]' is valid)", stmt.right.location);
return [];
}
case ArgumentType.A: return [0xBF];
default:
error("unsupported operand in 'to' clause of 'compare a to ...'", stmt.right.location);
return [];
}
}
case ArgumentType.BitIndex:
// 'compare r@i' -> 'bit r, i'
if(right is null)
{
uint index;
if(!compile.foldConstExpr(program, left.immediate, index))
{
return [];
}
else
{
if(index > 7)
{
error("right-hand side of '@' must be in the range 0..7.", left.immediate.location);
}
ubyte r;
switch(left.base.type)
{
case ArgumentType.B: r = 0x0; break;
case ArgumentType.C: r = 0x1; break;
case ArgumentType.D: r = 0x2; break;
case ArgumentType.E: r = 0x3; break;
case ArgumentType.H: r = 0x4; break;
case ArgumentType.L: r = 0x5; break;
case ArgumentType.Indirection:
if(left.base.base.type == ArgumentType.HL)
{
r = 0x6;
}
else
{
error("indirected operand on left-hand side of '@' is not supported (only '[hl] @ ...' is valid)", stmt.right.location);
return [];
}
break;
case ArgumentType.A: r = 0x7; break;
default:
return [];
}
return [0xCB, (0x40 + (0x08 * index) + r) & 0xFF];
}
}
else
{
error("'to' clause is unsupported for 'compare ... @ ...'", stmt.right.location);
return [];
}
default:
return [];
}
}
}
|
D
|
/***********************************\
FRAMEFUNCTIONS
\***********************************/
//========================================
// [intern] PM-Klasse
//========================================
class FFItem {
var int fncID;
var int next;
var int delay;
var int cycles;
var int data;
var int hasData;
};
instance FFItem@(FFItem);
func void FFItem_Archiver(var FFItem this) {
PM_SaveFuncPtr("loop", this.fncID);
if(this.next) { PM_SaveInt("next", this.next); };
if(this.delay) { PM_SaveInt("delay", this.delay); };
if(this.cycles != -1) {
PM_SaveInt("cycles", this.cycles);
};
if (this.hasData) { PM_SaveInt("data", this.data); };
};
func void FFItem_Unarchiver(var FFItem this) {
this.fncID = PM_LoadFuncPtr("loop");
if(PM_Exists("next")) { this.next = PM_Load("next"); };
if(PM_Exists("delay")) { this.delay = PM_Load("delay"); };
if(PM_Exists("cycles")) {
this.cycles = PM_Load("cycles");
}
else {
this.cycles = -1;
};
if (PM_Exists("data")) {
this.data = PM_Load("data");
this.hasData = 1;
};
};
var int _FF_Symbol;
//========================================
// Funktion hinzufügen
//========================================
func void FF_ApplyExtData(var func function, var int delay, var int cycles, var int data) {
var int hndl; hndl = new(FFItem@);
var FFItem itm; itm = get(hndl);
itm.fncID = MEM_GetFuncPtr(function);
itm.cycles = cycles;
itm.delay = delay;
itm.next = Timer() + itm.delay;
itm.data = data;
itm.hasData = 1;
};
func void FF_ApplyExt(var func function, var int delay, var int cycles) {
var int hndl; hndl = new(FFItem@);
var FFItem itm; itm = get(hndl);
itm.fncID = MEM_GetFuncPtr(function);
itm.cycles = cycles;
itm.delay = delay;
itm.next = Timer() + itm.delay;
};
//========================================
// Funktion prüfen
//========================================
func int FF_Active(var func function) {
_FF_Symbol = MEM_GetFuncPtr(function);
foreachHndl(FFItem@, _FF_Active);
return !_FF_Symbol;
};
func int _FF_Active(var int hndl) {
if(MEM_ReadInt(getPtr(hndl)) != _FF_Symbol) {
return continue;
};
_FF_Symbol = 0;
return break;
};
//========================================
// Funktion hinzufügen (vereinfacht)
//========================================
func void FF_Apply(var func function) {
FF_ApplyExt(function, 0, -1);
};
//========================================
// Funktion einmalig hinzufügen
//========================================
func void FF_ApplyOnceExt(var func function, var int delay, var int cycles) {
if(FF_Active(function)) {
return;
};
FF_ApplyExt(function, delay, cycles);
};
//========================================
// Funktion einmalig hinzufügen (vereinfacht)
//========================================
func void FF_ApplyOnce(var func function) {
FF_ApplyOnceExt(function, 0, -1);
};
//========================================
// Funktion entfernen
//========================================
func void FF_Remove(var func function) {
_FF_Symbol = MEM_GetFuncPtr(function);
foreachHndl(FFItem@, _FF_RemoveL);
};
func int _FF_RemoveL(var int hndl) {
if(MEM_ReadInt(getPtr(hndl)) != _FF_Symbol) {
return continue;
};
delete(hndl);
return break;
};
//========================================
// [intern] Enginehook
//========================================
func void _FF_Hook() {
if(!Hlp_IsValidNpc(hero)) { return; };
MEM_PushIntParam(FFItem@);
MEM_GetFuncID(FrameFunctions);
MEM_StackPos.position = foreachHndl_ptr;
};
func int FrameFunctions(var int hndl) {
var FFItem itm; itm = get(hndl);
var int t; t = Timer();
MEM_Label(0);
if(t >= itm.next) {
if (itm.hasData) {
itm.data;
};
MEM_CallByPtr(itm.fncID);
if(itm.cycles != -1) {
itm.cycles -= 1;
if(itm.cycles <= 0) {
delete(hndl);
return rContinue;
};
};
if(itm.delay) {
itm.next += itm.delay;
MEM_Goto(0);
};
};
return rContinue;
};
/***********************************\
The following code has been supplied by
Frank-95 (https://forum.worldofplayers.de/forum/members/148085-Frank-95)
\***********************************/
//========================================
// Remove FF with the specified data
//========================================
var int _FF_Data;
func int _FF_RemoveLData(var int hndl)
{
if(MEM_ReadInt(getPtr(hndl)) != _FF_Symbol)
{
return continue;
};
var FFItem itm; itm = get(hndl);
if(itm.data != _FF_Data)
{
return continue;
}
else
{
delete(hndl);
return break;
};
};
func void FF_RemoveData(var func function, var int data)
{
_FF_Data = data;
_FF_Symbol = MEM_GetFuncPtr(function);
foreachHndl(FFItem@, _FF_RemoveLData);
};
//=======================================================
// Check whether FF with the specified data is active
//=======================================================
func int _FF_ActiveData(var int hndl)
{
if(MEM_ReadInt(getPtr(hndl)) != _FF_Symbol)
{
return continue;
};
var FFItem itm; itm = get(hndl);
if(itm.data != _FF_Data)
{
return continue;
}
else
{
_FF_Symbol = 0;
return break;
};
};
func int FF_ActiveData(var func function, var int data)
{
_FF_Data = data;
_FF_Symbol = MEM_GetFuncPtr(function);
foreachHndl(FFItem@, _FF_ActiveData);
return !_FF_Symbol;
};
//========================================
// More FFdata functions
//========================================
func void FF_ApplyData(var func function, var int data)
{
FF_ApplyExtData(function, 0, -1, data);
};
func void FF_ApplyOnceExtData(var func function, var int delay, var int cycles, var int data)
{
if(FF_ActiveData(function,data))
{
return;
};
FF_ApplyExtData(function, delay, cycles, data);
};
func void FF_ApplyOnceData(var func function, var int data)
{
FF_ApplyOnceExtData(function, 0, -1, data);
};
|
D
|
// Author: Ivan Kazmenko (gassa@mail.ru)
module runner;
import std.algorithm;
import std.conv;
import std.exception;
import std.range;
import std.stdio;
import std.string;
import language;
import parser;
class Runner
{
struct Var
{
long value;
bool isConst;
this (long value_, bool isConst_ = false)
{
value = value_;
isConst = isConst_;
}
@disable this (this);
}
struct Array
{
long [] contents;
bool isConst;
this (long [] contents_, bool isConst_ = false)
{
contents = contents_;
isConst = isConst_;
}
@disable this (this);
}
struct Context
{
Statement parent;
int pos;
Statement [] block;
Var [string] vars;
Array [string] arrays;
}
RunnerControl control;
int id;
Context [] state;
int delay;
this (Args...) (RunnerControl control_, int id_,
FunctionBlock p, Args args)
{
control = control_;
id = id_;
state = [Context (p, -1)];
delay = 0;
int argNum = 0;
static foreach (cur; args)
{
if (argNum >= p.parameterList.length)
{
throw new Exception ("not enough parameters");
}
static if (is (typeof (cur) : long))
{
state.back.vars[p.parameterList[argNum]] =
Var (cur, true);
}
else static if (is (typeof (cur) : long []))
{
state.back.arrays[p.parameterList[argNum]] =
Array (cur, true);
}
else
{
static assert (false);
}
argNum += 1;
}
}
long * varAddress (string name, bool canCreate = false)
{
foreach_reverse (ref cur; state)
{
if (name in cur.vars)
{
if (cur.vars[name].isConst)
{
throw new Exception ("array " ~ name ~
" is constant");
}
return &(cur.vars[name].value);
}
}
if (!canCreate)
{
throw new Exception ("no such variable: " ~ name);
}
state.back.vars[name] = Var (0);
return &(state.back.vars[name].value);
}
long * arrayAddress (string name, long index)
{
foreach_reverse (ref cur; state)
{
if (name in cur.arrays)
{
if (cur.arrays[name].isConst)
{
throw new Exception ("array " ~ name ~
" is constant");
}
if (index < 0 ||
cur.arrays[name].contents.length <= index)
{
throw new Exception ("array " ~ name ~
": no index " ~ index.text);
}
return &(cur.arrays[name]
.contents[index.to !(size_t)]);
}
}
throw new Exception ("no such array: " ~ name);
}
long varValue (string name)
{
foreach_reverse (ref cur; state)
{
if (name in cur.vars)
{
return cur.vars[name].value;
}
}
throw new Exception ("no such variable: " ~ name);
}
long arrayValue (string name, long index)
{
foreach_reverse (ref cur; state)
{
if (name in cur.arrays)
{
if (index < 0 ||
cur.arrays[name].contents.length <= index)
{
throw new Exception ("array " ~ name ~
": no index " ~ index.text);
}
return cur.arrays[name]
.contents[index.to !(size_t)];
}
}
throw new Exception ("no such array: " ~ name);
}
long evalCall (CallExpression call)
{
auto values = call.argumentList
.map !(e => evalExpression (e)).array;
if (call.name == "send")
{
if (values.length < 1)
{
throw new Exception
("send: no first argument");
}
if (values[0] < 0 || control.num <= values[0])
{
throw new Exception ("send: first argument " ~
values[0].text ~ " not in [0.." ~
control.num.text ~ ")");
}
control.queues[id][values[0].to !(size_t)] ~=
values[1..$];
return 0;
}
if (call.name == "receive")
{
throw new Exception ("can only assign with receive");
}
if (call.name == "array")
{
throw new Exception ("can only assign with array");
}
if (call.name == "print")
{
writefln ("%(%s %)", values);
return 0;
}
assert (false);
}
long evalExpression (Expression e)
body
{
auto cur0 = cast (BinaryOpExpression) (e);
if (cur0 !is null) with (cur0)
{
auto leftValue = evalExpression (left);
auto rightValue = evalExpression (right);
final switch (type)
{
case Type.add: return leftValue + rightValue;
case Type.subtract: return leftValue - rightValue;
case Type.multiply: return leftValue * rightValue;
case Type.divide: return leftValue / rightValue;
case Type.modulo: return leftValue % rightValue;
case Type.xor: return leftValue ^ rightValue;
case Type.and: return leftValue & rightValue;
case Type.or: return leftValue | rightValue;
case Type.greater: return leftValue > rightValue;
case Type.greaterEqual: return leftValue >= rightValue;
case Type.less: return leftValue < rightValue;
case Type.lessEqual: return leftValue <= rightValue;
case Type.equal: return leftValue == rightValue;
case Type.notEqual: return leftValue != rightValue;
case Type.sar: return leftValue >> rightValue;
case Type.shr: return (cast (ulong)
(leftValue)) >> rightValue;
case Type.shl: return leftValue << rightValue;
}
}
auto cur1 = cast (UnaryOpExpression) (e);
if (cur1 !is null) with (cur1)
{
auto value = evalExpression (expr);
final switch (type)
{
case Type.plus: return +value;
case Type.minus: return -value;
case Type.not: return !value;
case Type.complement: return ~value;
}
}
auto cur2 = cast (VarExpression) (e);
if (cur2 !is null) with (cur2)
{
if (index is null)
{
return varValue (name);
}
else
{
auto indexValue = evalExpression (index);
return arrayValue (name, indexValue);
}
}
auto cur3 = cast (ConstExpression) (e);
if (cur3 !is null) with (cur3)
{
return value;
}
auto cur4 = cast (CallExpression) (e);
if (cur4 !is null) with (cur4)
{
return evalCall (cur4);
}
assert (false);
}
long * getAddr (VarExpression dest, bool canCreate)
{
long * res;
if (dest.index is null)
{
res = varAddress (dest.name, canCreate);
}
else
{
auto indexValue = evalExpression (dest.index);
res = arrayAddress (dest.name, indexValue);
}
return res;
}
void doAssign (AssignStatement cur, long * addr, long value)
{
with (cur) final switch (type)
{
case Type.assign: *(addr) = value; break;
case Type.assignAdd: *(addr) += value; break;
case Type.assignSubtract: *(addr) -= value; break;
case Type.assignMultiply: *(addr) *= value; break;
case Type.assignDivide: *(addr) /= value; break;
case Type.assignModulo: *(addr) %= value; break;
case Type.assignXor: *(addr) ^= value; break;
case Type.assignAnd: *(addr) &= value; break;
case Type.assignOr: *(addr) |= value; break;
case Type.assignSar: *(addr) >>= value; break;
case Type.assignShr: *(cast (ulong *) (addr)) >>= value;
break;
case Type.assignShl: *(addr) <<= value; break;
}
}
void runStatementReceive (AssignStatement cur, CallExpression call)
{
auto values = call.argumentList
.map !(e => evalExpression (e)).array;
if (values.length < 1)
{
throw new Exception
("receive: no first argument");
}
if (values[0] < 0 || control.num <= values[0])
{
throw new Exception ("receive: " ~
"first argument " ~
values[0].text ~ " not in [0.." ~
control.num.text ~ ")");
}
if (values.length > 1)
{
throw new Exception
("receive: more than one argument");
}
auto otherId = values[0].to !(size_t);
if (control.queues[otherId][id].empty)
{
state.back.pos -= 1;
delay = 1;
return;
}
auto addr = getAddr (cur.dest, true);
doAssign (cur, addr, control.queues[otherId][id].front);
control.queues[otherId][id].popFront ();
control.queues[otherId][id].assumeSafeAppend ();
}
void runStatementArray (AssignStatement cur, CallExpression call)
{
auto values = call.argumentList
.map !(e => evalExpression (e)).array;
if (values.length < 1)
{
throw new Exception
("array: no first argument");
}
if (values[0] < 0)
{
throw new Exception ("array: " ~
"first argument is " ~ values[0].text);
}
if (values.length > 1)
{
throw new Exception
("array: more than one argument");
}
if (cur.dest.index !is null)
{
throw new Exception
("array: destination can not have index");
}
state.back.arrays[cur.dest.name] =
Array (new long [values[0].to !(size_t)]);
}
void runStatement (Statement s)
{
auto cur0 = cast (AssignStatement) (s);
if (cur0 !is null) with (cur0)
{
// special syntax for receive and array
auto expr0 = cast (CallExpression) (expr);
if (expr0 !is null && expr0.name == "receive")
{
runStatementReceive (cur0, expr0);
return;
}
if (type == Type.assign &&
expr0 !is null && expr0.name == "array")
{
runStatementArray (cur0, expr0);
return;
}
auto value = evalExpression (expr);
auto addr = getAddr (dest, type == Type.assign);
doAssign (cur0, addr, value);
delay = complexity;
return;
}
auto cur1 = cast (CallStatement) (s);
if (cur1 !is null) with (cur1)
{
evalCall (call);
delay = complexity;
return;
}
state ~= Context (s, -1);
}
bool step ()
{
if (delay > 0)
{
delay -= 1;
return true;
}
if (state.empty)
{
return false;
}
with (state.back)
{
auto cur0 = cast (FunctionBlock) (parent);
if (cur0 !is null) with (cur0)
{
if (pos < 0)
{
pos += 1;
block = statementList;
delay = complexity;
}
else if (pos >= block.length)
{
state.popBack ();
}
else
{
pos += 1;
runStatement (block[pos - 1]);
}
return true;
}
auto cur1 = cast (IfBlock) (parent);
if (cur1 !is null) with (cur1)
{
if (pos < 0)
{
auto value = evalExpression (cond);
block = value ?
statementListTrue :
statementListFalse;
pos += 1;
delay = complexity;
}
else if (pos >= block.length)
{
state.popBack ();
}
else
{
pos += 1;
runStatement (block[pos - 1]);
}
return true;
}
auto cur2 = cast (WhileBlock) (parent);
if (cur2 !is null) with (cur2)
{
if (pos >= block.length)
{
pos = -1;
}
if (pos < 0)
{
auto value = evalExpression (cond);
delay = complexity;
if (value)
{
block = statementList;
pos += 1;
}
else
{
state.popBack ();
}
}
else
{
pos += 1;
runStatement (block[pos - 1]);
}
return true;
}
auto cur3 = cast (ForBlock) (parent);
if (cur3 !is null) with (cur3)
{
if (pos < 0)
{
block = statementList;
auto startValue =
evalExpression (start);
auto finishValue =
evalExpression (finish);
vars[name] = Var (startValue);
delay = complexity;
delay += 3;
if (vars[name].value < finishValue)
{
pos += 1;
}
else
{
state.popBack ();
}
}
else if (pos >= block.length)
{
auto finishValue =
evalExpression (finish);
vars[name].value += 1;
delay += 7;
if (vars[name].value < finishValue)
{
pos = 0;
}
else
{
state.popBack ();
}
}
else
{
pos += 1;
runStatement (block[pos - 1]);
}
return true;
}
assert (false);
}
}
}
class RunnerControl
{
Runner [] runners;
long [] [] [] queues;
@property int num () const
{
return runners.length.to !(int);
}
this (Args...) (int num_, FunctionBlock p, Args args)
{
runners = new Runner [num_];
foreach (i, ref r; runners)
{
r = new Runner (this, i.to !(int), p,
i.to !(int), num_, args);
}
queues = new long [] [] [] (num_, num_);
}
bool step ()
{
bool isRunning = false;
foreach (ref r; runners)
{
isRunning |= r.step ();
}
return isRunning;
}
}
|
D
|
/*
* Copyright (c) 2004-2009 Derelict Developers
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the names 'Derelict', 'DerelictGL', nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
module derelict.opengl.extension.nv.fragment_program4;
private
{
import derelict.opengl.gl;
import derelict.util.wrapper;
}
private bool enabled = false;
struct NVFragmentProgram4
{
static bool load(char[] extString)
{
if(extString.findStr("GL_NV_fragment_program4") == -1)
return false;
enabled = true;
return true;
}
static bool isEnabled()
{
return enabled;
}
}
version(DerelictGL_NoExtensionLoaders)
{
}
else
{
static this()
{
DerelictGL.registerExtensionLoader(&NVFragmentProgram4.load);
}
}
|
D
|
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module flow.bpmn.model.Pool;
import flow.bpmn.model.BaseElement;
/**
* @author Tijs Rademakers
*/
class Pool : BaseElement {
alias setValues = BaseElement.setValues;
protected string name;
protected string processRef;
protected bool executable = true;
public string getName() {
return name;
}
public void setName(string name) {
this.name = name;
}
public string getProcessRef() {
return processRef;
}
public void setProcessRef(string processRef) {
this.processRef = processRef;
}
public bool isExecutable() {
return this.executable;
}
public void setExecutable(bool executable) {
this.executable = executable;
}
override
public Pool clone() {
Pool clone = new Pool();
clone.setValues(this);
return clone;
}
public void setValues(Pool otherElement) {
super.setValues(otherElement);
setName(otherElement.getName());
setProcessRef(otherElement.getProcessRef());
setExecutable(otherElement.isExecutable());
}
}
|
D
|
; Copyright (C) 2008 The Android Open Source Project
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
.source TTestInterface.java
.interface public dot.junit.opcodes.invoke_super_range.d.TTestInterface
.method public abstract test()V
.end method
; =====================================
.source TTestInterfaceImpl.java
.class public dot.junit.opcodes.invoke_super_range.d.TTestInterfaceImpl
.super java/lang/Object
.implements dot.junit.opcodes.invoke_super_range.d.TTestInterface
.method public <init>()V
.limit regs 2
invoke-direct {v1}, java/lang/Object/<init>()V
return-void
.end method
.method public test()V
return-void
.end method
; =====================================
.source T_invoke_super_range_24.java
.class public dot.junit.opcodes.invoke_super_range.d.T_invoke_super_range_24
.super dot/junit/opcodes/invoke_super_range/d/TTestInterfaceImpl
.method public <init>()V
.limit regs 2
invoke-direct {v1}, dot/junit/opcodes/invoke_super_range/d/TTestInterfaceImpl/<init>()V
return-void
.end method
.method public run()V
.limit regs 8
invoke-super/range {v7}, dot/junit/opcodes/invoke_super_range/d/TTestInterface/test()V
return-void
.end method
|
D
|
import org.eclipse.swt.widgets.Display;
import phase3.color.ColorManager;
import phase3.gui.MainShell;
void main () {
Display display = new Display;
ColorManager colorManager = new ColorManager(display.getCurrent());
MainShell shell = new MainShell(display, colorManager);
while (!shell.isDisposed) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
colorManager.disposeColors();
display.dispose();
}
|
D
|
module game.commands;
import
std.conv,
std.traits,
std.file,
std.algorithm,
ws.exception,
ws.log,
ws.string,
ws.decode,
ws.io,
ws.gui.input;
alias void delegate(string) Command;
class Commands {
Command[string] commands;
this(){
add("commands", {
foreach(name; sort(commands.keys))
writeln(name);
});
}
void add(T...)(string name, void delegate(T) fn){
commands[name] = (string arg){
try {
static if(T.length == 1){
static if(is(T[0] == bool))
fn(arg == "1" || arg == "true");
else
fn(to!T(arg));
}else static if(T.length == 0) {
float val = 1;
if(arg.length)
val = to!float(arg);
if(val > 0)
fn();
} else
static assert(0, T.length);
}catch(ConvException e)
Log.warning("Cannot run %s with %s: %s".format(name, arg, e));
};
}
void run()(string name){
run(name, "");
}
void run(T)(string name, T arg){
if(name in commands)
commands[name](to!string(arg));
else
Log.warning("Command %s does not exist".format(name));
}
}
|
D
|
/home/christopher/Documents/GitHub/adventofcode2020/read-url/target/debug/build/html5ever-83ac12ab347b8bcb/build_script_build-83ac12ab347b8bcb: /home/christopher/.cargo/registry/src/github.com-1ecc6299db9ec823/html5ever-0.25.1/build.rs /home/christopher/.cargo/registry/src/github.com-1ecc6299db9ec823/html5ever-0.25.1/macros/match_token.rs
/home/christopher/Documents/GitHub/adventofcode2020/read-url/target/debug/build/html5ever-83ac12ab347b8bcb/build_script_build-83ac12ab347b8bcb.d: /home/christopher/.cargo/registry/src/github.com-1ecc6299db9ec823/html5ever-0.25.1/build.rs /home/christopher/.cargo/registry/src/github.com-1ecc6299db9ec823/html5ever-0.25.1/macros/match_token.rs
/home/christopher/.cargo/registry/src/github.com-1ecc6299db9ec823/html5ever-0.25.1/build.rs:
/home/christopher/.cargo/registry/src/github.com-1ecc6299db9ec823/html5ever-0.25.1/macros/match_token.rs:
|
D
|
module gsl.bindings.histogram2d;
// Opaque structures for now
extern(C) struct gsl_histogram2d {
size_t nx, ny;
double* xrange;
double* yrange;
double* bin;
};
extern(C) struct gsl_histogram2d_pdf {
size_t nx, ny;
double* xrange;
double* yrange;
double* sum;
};
extern(C) {
/* histogram/gsl_histogram2d.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
gsl_histogram2d * gsl_histogram2d_alloc (const size_t nx, const size_t ny);
gsl_histogram2d * gsl_histogram2d_calloc (const size_t nx, const size_t ny);
gsl_histogram2d * gsl_histogram2d_calloc_uniform (const size_t nx, const size_t ny,
const double xmin, const double xmax,
const double ymin, const double ymax);
void gsl_histogram2d_free (gsl_histogram2d * h);
int gsl_histogram2d_increment (gsl_histogram2d * h, double x, double y);
int gsl_histogram2d_accumulate (gsl_histogram2d * h,
double x, double y, double weight);
int gsl_histogram2d_find (const gsl_histogram2d * h,
const double x, const double y, size_t * i, size_t * j);
double gsl_histogram2d_get (const gsl_histogram2d * h, const size_t i, const size_t j);
int gsl_histogram2d_get_xrange (const gsl_histogram2d * h, const size_t i,
double * xlower, double * xupper);
int gsl_histogram2d_get_yrange (const gsl_histogram2d * h, const size_t j,
double * ylower, double * yupper);
double gsl_histogram2d_xmax (const gsl_histogram2d * h);
double gsl_histogram2d_xmin (const gsl_histogram2d * h);
size_t gsl_histogram2d_nx (const gsl_histogram2d * h);
double gsl_histogram2d_ymax (const gsl_histogram2d * h);
double gsl_histogram2d_ymin (const gsl_histogram2d * h);
size_t gsl_histogram2d_ny (const gsl_histogram2d * h);
void gsl_histogram2d_reset (gsl_histogram2d * h);
gsl_histogram2d *
gsl_histogram2d_calloc_range(size_t nx, size_t ny,
double *xrange, double *yrange);
int
gsl_histogram2d_set_ranges_uniform (gsl_histogram2d * h,
double xmin, double xmax,
double ymin, double ymax);
int
gsl_histogram2d_set_ranges (gsl_histogram2d * h,
const double* xrange, size_t xsize,
const double* yrange, size_t ysize);
int
gsl_histogram2d_memcpy(gsl_histogram2d *dest, const gsl_histogram2d *source);
gsl_histogram2d *
gsl_histogram2d_clone(const gsl_histogram2d * source);
double
gsl_histogram2d_max_val(const gsl_histogram2d *h);
void
gsl_histogram2d_max_bin (const gsl_histogram2d *h, size_t *i, size_t *j);
double
gsl_histogram2d_min_val(const gsl_histogram2d *h);
void
gsl_histogram2d_min_bin (const gsl_histogram2d *h, size_t *i, size_t *j);
double
gsl_histogram2d_xmean (const gsl_histogram2d * h);
double
gsl_histogram2d_ymean (const gsl_histogram2d * h);
double
gsl_histogram2d_xsigma (const gsl_histogram2d * h);
double
gsl_histogram2d_ysigma (const gsl_histogram2d * h);
double
gsl_histogram2d_cov (const gsl_histogram2d * h);
double
gsl_histogram2d_sum (const gsl_histogram2d *h);
int
gsl_histogram2d_equal_bins_p(const gsl_histogram2d *h1,
const gsl_histogram2d *h2) ;
int
gsl_histogram2d_add(gsl_histogram2d *h1, const gsl_histogram2d *h2);
int
gsl_histogram2d_sub(gsl_histogram2d *h1, const gsl_histogram2d *h2);
int
gsl_histogram2d_mul(gsl_histogram2d *h1, const gsl_histogram2d *h2);
int
gsl_histogram2d_div(gsl_histogram2d *h1, const gsl_histogram2d *h2);
int
gsl_histogram2d_scale(gsl_histogram2d *h, double scale);
int
gsl_histogram2d_shift(gsl_histogram2d *h, double shift);
gsl_histogram2d_pdf * gsl_histogram2d_pdf_alloc (const size_t nx, const size_t ny);
int gsl_histogram2d_pdf_init (gsl_histogram2d_pdf * p, const gsl_histogram2d * h);
void gsl_histogram2d_pdf_free (gsl_histogram2d_pdf * p);
int gsl_histogram2d_pdf_sample (const gsl_histogram2d_pdf * p,
double r1, double r2,
double * x, double * y);
}
|
D
|
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1984-1998 by Symantec
* Copyright (C) 2000-2020 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/backend/out.d, backend/out.d)
*/
module drc.backend.dout;
version (SPP) { } else
{
import cidrus;
import drc.backend.cc;
import drc.backend.cdef;
import drc.backend.cgcv;
import drc.backend.code;
import drc.backend.code_x86;
import drc.backend.cv4;
import drc.backend.dt;
import drc.backend.dlist;
import drc.backend.mem;
import drc.backend.el;
import drc.backend.exh;
import drc.backend.глоб2;
import drc.backend.goh;
import drc.backend.obj;
import drc.backend.oper;
import drc.backend.outbuf;
import drc.backend.rtlsym;
import drc.backend.ty;
import drc.backend.тип;
version (SCPP)
{
import cpp;
import msgs2;
import parser;
}
version (HTOD)
{
import cpp;
import msgs2;
import parser;
}
version (Windows)
{
extern (C)
{
цел stricmp(сим*, сим*) ;
цел memicmp(ук, ук, т_мера) ;
}
}
/*extern (C++):*/
проц dt_writeToObj(Obj objmod, dt_t *dt, цел seg, ref targ_т_мера смещение);
// Determine if this Symbol is stored in a COMDAT
бул symbol_iscomdat2(Symbol* s)
{
version (Dinrus)
{
return s.Sclass == SCcomdat ||
config.flags2 & CFG2comdat && s.Sclass == SCinline ||
config.flags4 & CFG4allcomdat && s.Sclass == SCglobal;
}
else
{
return s.Sclass == SCcomdat ||
config.flags2 & CFG2comdat && s.Sclass == SCinline ||
config.flags4 & CFG4allcomdat && (s.Sclass == SCglobal || s.Sclass == SCstatic);
}
}
version (SCPP)
{
/**********************************
* We put out an external definition.
*/
проц out_extdef(Symbol *s)
{
pstate.STflags |= PFLextdef;
if (//config.flags2 & CFG2phgen ||
(config.flags2 & (CFG2phauto | CFG2phautoy) &&
!(pstate.STflags & (PFLhxwrote | PFLhxdone)))
)
synerr(EM_data_in_pch,prettyident(s)); // данные or code in precompiled header
}
/********************************
* Put out code segment имя record.
*/
проц outcsegname(сим *csegname)
{
Obj.codeseg(csegname,0);
}
}
version (HTOD)
{
проц outcsegname(сим *csegname) { }
}
/***********************************
* Output function thunk.
*/
extern (C) проц outthunk(Symbol *sthunk,Symbol *sfunc,бцел p,tym_t thisty,
targ_т_мера d,цел i,targ_т_мера d2)
{
version (HTOD) { } else
{
sthunk.Sseg = cseg;
cod3_thunk(sthunk,sfunc,p,thisty,cast(бцел)d,i,cast(бцел)d2);
sthunk.Sfunc.Fflags &= ~Fpending;
sthunk.Sfunc.Fflags |= Foutput; /* mark it as having been output */
}
}
/***************************
* Write out statically allocated данные.
* Input:
* s symbol to be initialized
*/
проц outdata(Symbol *s)
{
version (HTOD)
{
return;
}
цел seg;
targ_т_мера смещение;
цел flags;
const цел codeseg = cseg;
symbol_debug(s);
debug
debugy && printf("outdata('%s')\n",s.Sident.ptr);
//printf("outdata('%s', ty=x%x)\n",s.Sident.ptr,s.Stype.Tty);
//symbol_print(s);
// Data segment variables are always live on exit from a function
s.Sflags |= SFLlivexit;
dt_t *dtstart = s.Sdt;
s.Sdt = null; // it will be free'd
targ_т_мера datasize = 0;
tym_t ty = s.ty();
version (SCPP)
{
if (eecontext.EEcompile)
{ s.Sfl = (s.ty() & mTYfar) ? FLfardata : FLextern;
s.Sseg = UNKNOWN;
goto Lret; // don't output any данные
}
}
if (ty & mTYexport && config.wflags & WFexpdef && s.Sclass != SCstatic)
objmod.export_symbol(s,0); // export данные definition
for (dt_t *dt = dtstart; dt; dt = dt.DTnext)
{
//printf("\tdt = %p, dt = %d\n",dt,dt.dt);
switch (dt.dt)
{ case DT_abytes:
{ // Put out the данные for the ткст, and
// резервируй a spot for a pointer to that ткст
datasize += size(dt.Dty); // резервируй spot for pointer to ткст
if (tybasic(dt.Dty) == TYcptr)
{ dt.DTseg = codeseg;
dt.DTabytes += Offset(codeseg);
goto L1;
}
else if (tybasic(dt.Dty) == TYfptr &&
dt.DTnbytes > config.threshold)
{
version (SCPP)
{
{
targ_т_мера foffset;
dt.DTseg = objmod.fardata(s.Sident.ptr,dt.DTnbytes,&foffset);
dt.DTabytes += foffset;
}
}
L1:
objmod.write_bytes(SegData[dt.DTseg],dt.DTnbytes,dt.DTpbytes);
break;
}
else
{
dt.DTabytes += objmod.data_readonly(cast(сим*)dt.DTpbytes,dt.DTnbytes,&dt.DTseg);
}
break;
}
case DT_ibytes:
datasize += dt.DTn;
break;
case DT_nbytes:
//printf("DT_nbytes %d\n", dt.DTnbytes);
datasize += dt.DTnbytes;
break;
case DT_azeros:
/* A block of zeros
*/
//printf("DT_azeros %d\n", dt.DTazeros);
datasize += dt.DTazeros;
if (dt == dtstart && !dt.DTnext && s.Sclass != SCcomdat &&
(s.Sseg == UNKNOWN || s.Sseg <= UDATA))
{ /* first and only, so put in BSS segment
*/
switch (ty & mTYLINK)
{
version (SCPP)
{
case mTYfar: // if far данные
s.Sseg = objmod.fardata(s.Sident.ptr,datasize,&s.Soffset);
s.Sfl = FLfardata;
break;
}
case mTYcs:
s.Sseg = codeseg;
Offset(codeseg) = _align(datasize,Offset(codeseg));
s.Soffset = Offset(codeseg);
Offset(codeseg) += datasize;
s.Sfl = FLcsdata;
break;
case mTYthreadData:
assert(config.objfmt == OBJ_MACH && I64);
goto case;
case mTYthread:
{ seg_data *pseg = objmod.tlsseg_bss();
s.Sseg = pseg.SDseg;
objmod.data_start(s, datasize, pseg.SDseg);
if (config.objfmt == OBJ_OMF)
pseg.SDoffset += datasize;
else
objmod.lidata(pseg.SDseg, pseg.SDoffset, datasize);
s.Sfl = FLtlsdata;
break;
}
default:
s.Sseg = UDATA;
objmod.data_start(s,datasize,UDATA);
objmod.lidata(s.Sseg,s.Soffset,datasize);
s.Sfl = FLudata; // uninitialized данные
break;
}
assert(s.Sseg && s.Sseg != UNKNOWN);
if (s.Sclass == SCglobal || (s.Sclass == SCstatic && config.objfmt != OBJ_OMF)) // if a pubdef to be done
objmod.pubdefsize(s.Sseg,s,s.Soffset,datasize); // do the definition
searchfixlist(s);
if (config.fulltypes &&
!(s.Sclass == SCstatic && funcsym_p)) // not local static
cv_outsym(s);
version (SCPP)
{
out_extdef(s);
}
goto Lret;
}
break;
case DT_common:
assert(!dt.DTnext);
outcommon(s,dt.DTazeros);
goto Lret;
case DT_xoff:
{ Symbol *sb = dt.DTsym;
if (tyfunc(sb.ty()))
{
version (SCPP)
{
nwc_mustwrite(sb);
}
}
else if (sb.Sdt) // if инициализатор for symbol
{ if (!s.Sseg) s.Sseg = DATA;
outdata(sb); // пиши out данные for symbol
}
}
goto case;
case DT_coff:
datasize += size(dt.Dty);
break;
default:
debug
printf("dt = %p, dt = %d\n",dt,dt.dt);
assert(0);
}
}
if (s.Sclass == SCcomdat) // if initialized common block
{
seg = objmod.comdatsize(s, datasize);
switch (ty & mTYLINK)
{
case mTYfar: // if far данные
s.Sfl = FLfardata;
break;
case mTYcs:
s.Sfl = FLcsdata;
break;
case mTYnear:
case 0:
s.Sfl = FLdata; // initialized данные
break;
case mTYthread:
s.Sfl = FLtlsdata;
break;
default:
assert(0);
}
}
else
{
switch (ty & mTYLINK)
{
version (SCPP)
{
case mTYfar: // if far данные
seg = objmod.fardata(s.Sident.ptr,datasize,&s.Soffset);
s.Sfl = FLfardata;
break;
}
case mTYcs:
seg = codeseg;
Offset(codeseg) = _align(datasize,Offset(codeseg));
s.Soffset = Offset(codeseg);
s.Sfl = FLcsdata;
break;
case mTYthreadData:
{
assert(config.objfmt == OBJ_MACH && I64);
seg_data *pseg = objmod.tlsseg_data();
s.Sseg = pseg.SDseg;
objmod.data_start(s, datasize, s.Sseg);
seg = pseg.SDseg;
s.Sfl = FLtlsdata;
break;
}
case mTYthread:
{
seg_data *pseg = objmod.tlsseg();
s.Sseg = pseg.SDseg;
objmod.data_start(s, datasize, s.Sseg);
seg = pseg.SDseg;
s.Sfl = FLtlsdata;
break;
}
case mTYnear:
case 0:
if (
s.Sseg == 0 ||
s.Sseg == UNKNOWN)
s.Sseg = DATA;
seg = objmod.data_start(s,datasize,DATA);
s.Sfl = FLdata; // initialized данные
break;
default:
assert(0);
}
}
if (s.Sseg == UNKNOWN && (config.objfmt == OBJ_ELF || config.objfmt == OBJ_MACH))
s.Sseg = seg;
else if (config.objfmt == OBJ_OMF)
s.Sseg = seg;
else
seg = s.Sseg;
if (s.Sclass == SCglobal || (s.Sclass == SCstatic && config.objfmt != OBJ_OMF))
objmod.pubdefsize(seg,s,s.Soffset,datasize); /* do the definition */
assert(s.Sseg != UNKNOWN);
if (config.fulltypes &&
!(s.Sclass == SCstatic && funcsym_p)) // not local static
cv_outsym(s);
searchfixlist(s);
/* Go back through list, now that we know its size, and send out */
/* the данные. */
смещение = s.Soffset;
dt_writeToObj(objmod, dtstart, seg, смещение);
Offset(seg) = смещение;
version (SCPP)
{
out_extdef(s);
}
Lret:
dt_free(dtstart);
}
/********************************************
* Write dt to Object файл.
* Параметры:
* objmod = reference to объект файл
* dt = данные to пиши
* seg = segment to пиши it to
* смещение = starting смещение in segment - will get updated to reflect ending смещение
*/
проц dt_writeToObj(Obj objmod, dt_t *dt, цел seg, ref targ_т_мера смещение)
{
for (; dt; dt = dt.DTnext)
{
switch (dt.dt)
{
case DT_abytes:
{
цел flags;
if (tyreg(dt.Dty))
flags = CFoff;
else
flags = CFoff | CFseg;
if (I64)
flags |= CFoffset64;
if (tybasic(dt.Dty) == TYcptr)
objmod.reftocodeseg(seg,смещение,dt.DTabytes);
else
{
static if (TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_DRAGONFLYBSD || TARGET_SOLARIS)
{
objmod.reftodatseg(seg,смещение,dt.DTabytes,dt.DTseg,flags);
}
else
{
if (dt.DTseg == DATA)
objmod.reftodatseg(seg,смещение,dt.DTabytes,DATA,flags);
else
{
version (Dinrus)
{
if (dt.DTseg == CDATA)
objmod.reftodatseg(seg,смещение,dt.DTabytes,CDATA,flags);
else
objmod.reftofarseg(seg,смещение,dt.DTabytes,dt.DTseg,flags);
}
else
{
objmod.reftofarseg(seg,смещение,dt.DTabytes,dt.DTseg,flags);
}
}
}
}
смещение += size(dt.Dty);
break;
}
case DT_ibytes:
objmod.bytes(seg,смещение,dt.DTn,dt.DTdata.ptr);
смещение += dt.DTn;
break;
case DT_nbytes:
objmod.bytes(seg,смещение,dt.DTnbytes,dt.DTpbytes);
смещение += dt.DTnbytes;
break;
case DT_azeros:
//printf("objmod.lidata(seg = %d, смещение = %d, azeros = %d)\n", seg, смещение, dt.DTazeros);
SegData[seg].SDoffset = смещение;
objmod.lidata(seg,смещение,dt.DTazeros);
смещение = SegData[seg].SDoffset;
break;
case DT_xoff:
{
Symbol *sb = dt.DTsym; // get external symbol pointer
targ_т_мера a = dt.DToffset; // смещение from it
цел flags;
if (tyreg(dt.Dty))
flags = CFoff;
else
flags = CFoff | CFseg;
if (I64 && tysize(dt.Dty) == 8)
flags |= CFoffset64;
смещение += objmod.reftoident(seg,смещение,sb,a,flags);
break;
}
case DT_coff:
objmod.reftocodeseg(seg,смещение,dt.DToffset);
смещение += _tysize[TYint];
break;
default:
//printf("dt = %p, dt = %d\n",dt,dt.dt);
assert(0);
}
}
}
/******************************
* Output n bytes of a common block, n > 0.
*/
проц outcommon(Symbol *s,targ_т_мера n)
{
//printf("outcommon('%s',%d)\n",s.Sident.ptr,n);
if (n != 0)
{
assert(s.Sclass == SCglobal);
if (s.ty() & mTYcs) // if store in code segment
{
/* COMDEFs not supported in code segment
* so put them out as initialized 0s
*/
auto dtb = DtBuilder(0);
dtb.nzeros(cast(бцел)n);
s.Sdt = dtb.finish();
outdata(s);
version (SCPP)
{
out_extdef(s);
}
}
else if (s.ty() & mTYthread) // if store in thread local segment
{
if (config.objfmt == OBJ_ELF)
{
s.Sclass = SCcomdef;
objmod.common_block(s, 0, n, 1);
}
else
{
/* COMDEFs not supported in tls segment
* so put them out as COMDATs with initialized 0s
*/
s.Sclass = SCcomdat;
auto dtb = DtBuilder(0);
dtb.nzeros(cast(бцел)n);
s.Sdt = dtb.finish();
outdata(s);
version (SCPP)
{
if (config.objfmt == OBJ_OMF)
out_extdef(s);
}
}
}
else
{
s.Sclass = SCcomdef;
if (config.objfmt == OBJ_OMF)
{
s.Sxtrnnum = objmod.common_block(s,(s.ty() & mTYfar) == 0,n,1);
if (s.ty() & mTYfar)
s.Sfl = FLfardata;
else
s.Sfl = FLextern;
s.Sseg = UNKNOWN;
pstate.STflags |= PFLcomdef;
version (SCPP)
{
ph_comdef(s); // notify PH that a COMDEF went out
}
}
else
objmod.common_block(s, 0, n, 1);
}
if (config.fulltypes)
cv_outsym(s);
}
}
/*************************************
* Mark a Symbol as going into a читай-only segment.
*/
проц out_readonly(Symbol *s)
{
if (config.objfmt == OBJ_ELF || config.objfmt == OBJ_MACH)
{
/* Cannot have pointers in CDATA when compiling PIC code, because
* they require dynamic relocations of the читай-only segment.
* Instead use the .данные.rel.ro section.
* https://issues.dlang.org/show_bug.cgi?ид=11171
*/
if (config.flags3 & CFG3pic && dtpointers(s.Sdt))
s.Sseg = CDATAREL;
else
s.Sseg = CDATA;
}
else
{
s.Sseg = CDATA;
}
}
/*************************************
* Write out a readonly ткст literal in an implementation-defined
* manner.
* Параметры:
* str = pointer to ткст данные (need not have terminating 0)
* len = number of characters in ткст
* sz = size of each character (1, 2 or 4)
* Возвращает: a Symbol pointing to it.
*/
Symbol *out_string_literal(ткст0 str, бцел len, бцел sz)
{
tym_t ty = TYchar;
if (sz == 2)
ty = TYchar16;
else if (sz == 4)
ty = TYdchar;
Symbol *s = symbol_generate(SCstatic,type_static_array(len, tstypes[ty]));
switch (config.objfmt)
{
case OBJ_ELF:
case OBJ_MACH:
s.Sseg = objmod.string_literal_segment(sz);
break;
case OBJ_MSCOFF:
case OBJ_OMF: // goes into COMDATs, handled elsewhere
default:
assert(0);
}
/* If there are any embedded zeros, this can't go in the special ткст segments
* which assume that 0 is the end of the ткст.
*/
switch (sz)
{
case 1:
if (memchr(str, 0, len))
s.Sseg = CDATA;
break;
case 2:
for (цел i = 0; i < len; ++i)
{
ushort* p = cast(ushort*)str;
if (p[i] == 0)
{
s.Sseg = CDATA;
break;
}
}
break;
case 4:
for (цел i = 0; i < len; ++i)
{
бцел* p = cast(бцел*)str;
if (p[i] == 0)
{
s.Sseg = CDATA;
break;
}
}
break;
default:
assert(0);
}
auto dtb = DtBuilder(0);
dtb.члобайт(cast(бцел)(len * sz), str);
dtb.nzeros(cast(бцел)sz); // include terminating 0
s.Sdt = dtb.finish();
s.Sfl = FLdata;
s.Salignment = sz;
outdata(s);
return s;
}
/******************************
* Walk Выражение tree, converting it from a PARSER tree to
* a code generator tree.
*/
/*private*/ проц outelem(elem *e, ref бул addressOfParam)
{
Symbol *s;
tym_t tym;
elem *e1;
version (SCPP)
{
тип *t;
}
again:
assert(e);
elem_debug(e);
debug
{
if (OTbinary(e.Eoper))
assert(e.EV.E1 && e.EV.E2);
// else if (OTunary(e.Eoper))
// assert(e.EV.E1 && !e.EV.E2);
}
version (SCPP)
{
t = e.ET;
assert(t);
type_debug(t);
tym = t.Tty;
switch (tybasic(tym))
{
case TYstruct:
t.Tcount++;
break;
case TYarray:
t.Tcount++;
break;
case TYбул:
case TYwchar_t:
case TYchar16:
case TYmemptr:
case TYvtshape:
case TYnullptr:
tym = tym_conv(t);
e.ET = null;
break;
case TYenum:
tym = tym_conv(t.Tnext);
e.ET = null;
break;
default:
e.ET = null;
break;
}
e.Nflags = 0;
e.Ety = tym;
}
switch (e.Eoper)
{
default:
Lop:
debug
{
//if (!EOP(e)) printf("e.Eoper = x%x\n",e.Eoper);
}
if (OTbinary(e.Eoper))
{ outelem(e.EV.E1, addressOfParam);
e = e.EV.E2;
}
else if (OTunary(e.Eoper))
{
e = e.EV.E1;
}
else
break;
version (SCPP)
{
type_free(t);
}
goto again; /* iterate instead of recurse */
case OPaddr:
e1 = e.EV.E1;
if (e1.Eoper == OPvar)
{ // Fold into an OPrelconst
version (SCPP)
{
el_copy(e,e1);
e.ET = t;
}
else
{
tym = e.Ety;
el_copy(e,e1);
e.Ety = tym;
}
e.Eoper = OPrelconst;
el_free(e1);
goto again;
}
goto Lop;
case OPrelconst:
case OPvar:
L6:
s = e.EV.Vsym;
assert(s);
symbol_debug(s);
switch (s.Sclass)
{
case SCregpar:
case SCparameter:
case SCshadowreg:
if (e.Eoper == OPrelconst)
{
if (I16)
addressOfParam = да; // taking addr of param list
else
s.Sflags &= ~(SFLunambig | GTregcand);
}
break;
case SCstatic:
case SClocstat:
case SCextern:
case SCglobal:
case SCcomdat:
case SCcomdef:
case SCpseudo:
case SCinline:
case SCsinline:
case SCeinline:
s.Sflags |= SFLlivexit;
goto case;
case SCauto:
case SCregister:
case SCfastpar:
case SCbprel:
if (e.Eoper == OPrelconst)
{
s.Sflags &= ~(SFLunambig | GTregcand);
}
else if (s.ty() & mTYfar)
e.Ety |= mTYfar;
break;
version (SCPP)
{
case SCmember:
err_noinstance(s.Sscope,s);
goto L5;
case SCstruct:
cpperr(EM_no_instance,s.Sident.ptr); // no instance of class
L5:
e.Eoper = OPconst;
e.Ety = TYint;
return;
case SCfuncalias:
e.EV.Vsym = s.Sfunc.Falias;
goto L6;
case SCstack:
break;
case SCfunctempl:
cpperr(EM_no_template_instance, s.Sident.ptr);
break;
default:
symbol_print(s);
WRclass(cast(SC) s.Sclass);
assert(0);
}
else
{
default:
break;
}
}
version (SCPP)
{
if (tyfunc(s.ty()))
{
nwc_mustwrite(s); /* must пиши out function */
}
else if (s.Sdt) /* if инициализатор for symbol */
outdata(s); // пиши out данные for symbol
if (config.flags3 & CFG3pic)
{
objmod.gotref(s);
}
}
break;
case OPstring:
case OPconst:
case OPstrthis:
break;
case OPsizeof:
version (SCPP)
{
e.Eoper = OPconst;
e.EV.Vlong = type_size(e.EV.Vsym.Stype);
break;
}
else
{
assert(0);
}
version (SCPP)
{
case OPstreq:
case OPstrpar:
case OPstrctor:
type_size(e.EV.E1.ET);
goto Lop;
case OPasm:
break;
case OPctor:
nwc_mustwrite(e.EV.Edtor);
goto case;
case OPdtor:
// Don't put 'this' pointers in registers if we need
// them for EH stack cleanup.
e1 = e.EV.E1;
elem_debug(e1);
if (e1.Eoper == OPadd)
e1 = e1.EV.E1;
if (e1.Eoper == OPvar)
e1.EV.Vsym.Sflags &= ~GTregcand;
goto Lop;
case OPmark:
break;
}
}
version (SCPP)
{
type_free(t);
}
}
/*************************************
* Determine register candidates.
*/
проц out_regcand(symtab_t *psymtab)
{
//printf("out_regcand()\n");
const бул ifunc = (tybasic(funcsym_p.ty()) == TYifunc);
for (SYMIDX si = 0; si < psymtab.top; si++)
{ Symbol *s = psymtab.tab[si];
symbol_debug(s);
//assert(sytab[s.Sclass] & SCSS); // only stack variables
s.Ssymnum = si; // Ssymnum trashed by cpp_inlineexpand
if (!(s.ty() & (mTYvolatile | mTYshared)) &&
!(ifunc && (s.Sclass == SCparameter || s.Sclass == SCregpar)) &&
s.Sclass != SCstatic)
s.Sflags |= (GTregcand | SFLunambig); // assume register candidate
else
s.Sflags &= ~(GTregcand | SFLunambig);
}
бул addressOfParam = нет; // haven't taken addr of param yet
for (block *b = startblock; b; b = b.Bnext)
{
if (b.Belem)
out_regcand_walk(b.Belem, addressOfParam);
// Any assembler blocks make everything ambiguous
if (b.BC == BCasm)
for (SYMIDX si = 0; si < psymtab.top; si++)
psymtab.tab[si].Sflags &= ~(SFLunambig | GTregcand);
}
// If we took the address of one параметр, assume we took the
// address of all non-register parameters.
if (addressOfParam) // if took address of a параметр
{
for (SYMIDX si = 0; si < psymtab.top; si++)
if (psymtab.tab[si].Sclass == SCparameter || psymtab.tab[si].Sclass == SCshadowreg)
psymtab.tab[si].Sflags &= ~(SFLunambig | GTregcand);
}
}
private проц out_regcand_walk(elem *e, ref бул addressOfParam)
{
while (1)
{ elem_debug(e);
if (OTbinary(e.Eoper))
{ if (e.Eoper == OPstreq)
{ if (e.EV.E1.Eoper == OPvar)
{
Symbol *s = e.EV.E1.EV.Vsym;
s.Sflags &= ~(SFLunambig | GTregcand);
}
if (e.EV.E2.Eoper == OPvar)
{
Symbol *s = e.EV.E2.EV.Vsym;
s.Sflags &= ~(SFLunambig | GTregcand);
}
}
out_regcand_walk(e.EV.E1, addressOfParam);
e = e.EV.E2;
}
else if (OTunary(e.Eoper))
{
// Don't put 'this' pointers in registers if we need
// them for EH stack cleanup.
if (e.Eoper == OPctor)
{ elem *e1 = e.EV.E1;
if (e1.Eoper == OPadd)
e1 = e1.EV.E1;
if (e1.Eoper == OPvar)
e1.EV.Vsym.Sflags &= ~GTregcand;
}
e = e.EV.E1;
}
else
{ if (e.Eoper == OPrelconst)
{
Symbol *s = e.EV.Vsym;
assert(s);
symbol_debug(s);
switch (s.Sclass)
{
case SCregpar:
case SCparameter:
case SCshadowreg:
if (I16)
addressOfParam = да; // taking addr of param list
else
s.Sflags &= ~(SFLunambig | GTregcand);
break;
case SCauto:
case SCregister:
case SCfastpar:
case SCbprel:
s.Sflags &= ~(SFLunambig | GTregcand);
break;
default:
break;
}
}
else if (e.Eoper == OPvar)
{
if (e.EV.Voffset)
{ if (!(e.EV.Voffset == 1 && tybyte(e.Ety)) &&
!(e.EV.Voffset == REGSIZE && tysize(e.Ety) == REGSIZE))
{
e.EV.Vsym.Sflags &= ~GTregcand;
}
}
}
break;
}
}
}
/**************************
* Optimize function,
* generate code for it,
* and пиши it out.
*/
проц writefunc(Symbol *sfunc)
{
version (HTOD)
{
return;
}
else version (SCPP)
{
writefunc2(sfunc);
}
else
{
cstate.CSpsymtab = &globsym;
writefunc2(sfunc);
cstate.CSpsymtab = null;
}
}
private проц writefunc2(Symbol *sfunc)
{
func_t *f = sfunc.Sfunc;
//printf("writefunc(%s)\n",sfunc.Sident.ptr);
debug debugy && printf("writefunc(%s)\n",sfunc.Sident.ptr);
version (SCPP)
{
if (CPP)
{
// If constructor or destructor, make sure it has been fixed.
if (f.Fflags & (Fctor | Fdtor))
assert(errcnt || f.Fflags & Ffixed);
// If this function is the 'trigger' to output the vtbl[], do so
if (f.Fflags3 & Fvtblgen && !eecontext.EEcompile)
{
Classsym *stag = cast(Classsym *) sfunc.Sscope;
{
SC scvtbl;
scvtbl = cast(SC) ((config.flags2 & CFG2comdat) ? SCcomdat : SCglobal);
n2_genvtbl(stag,scvtbl,1);
n2_genvbtbl(stag,scvtbl,1);
static if (SYMDEB_CODEVIEW)
{
if (config.fulltypes == CV4)
cv4_struct(stag,2);
}
}
}
}
}
/* Signify that function has been output */
/* (before inline_do() to prevent infinite recursion!) */
f.Fflags &= ~Fpending;
f.Fflags |= Foutput;
version (SCPP)
{
if (errcnt)
return;
}
if (eecontext.EEcompile && eecontext.EEfunc != sfunc)
return;
/* Copy local symbol table onto main one, making sure */
/* that the symbol numbers are adjusted accordingly */
//printf("f.Flocsym.top = %d\n",f.Flocsym.top);
бцел nsymbols = f.Flocsym.top;
if (nsymbols > globsym.symmax)
{ /* Reallocate globsym.tab[] */
globsym.symmax = nsymbols;
globsym.tab = symtab_realloc(globsym.tab, globsym.symmax);
}
debug debugy && printf("appending symbols to symtab...\n");
assert(globsym.top == 0);
memcpy(&globsym.tab[0],&f.Flocsym.tab[0],nsymbols * (Symbol *).sizeof);
globsym.top = nsymbols;
assert(startblock == null);
if (f.Fflags & Finline) // if keep function around
{ // Generate копируй of function
block **pb = &startblock;
for (block *bf = f.Fstartblock; bf; bf = bf.Bnext)
{
block *b = block_calloc();
*pb = b;
pb = &b.Bnext;
*b = *bf;
assert(b.numSucc() == 0);
assert(!b.Bpred);
b.Belem = el_copytree(b.Belem);
}
}
else
{ startblock = sfunc.Sfunc.Fstartblock;
sfunc.Sfunc.Fstartblock = null;
}
assert(startblock);
/* Do any in-line expansion of function calls inside sfunc */
version (SCPP)
{
inline_do(sfunc);
}
version (SCPP)
{
/* If function is _STIxxxx, add in the auto destructors */
if (cpp_stidtors && memcmp("__SI".ptr,sfunc.Sident.ptr,4) == 0)
{
assert(startblock.Bnext == null);
list_t el = cpp_stidtors;
do
{
startblock.Belem = el_combine(startblock.Belem,list_elem(el));
el = list_next(el);
} while (el);
list_free(&cpp_stidtors,FPNULL);
}
}
assert(funcsym_p == null);
funcsym_p = sfunc;
tym_t tyf = tybasic(sfunc.ty());
version (SCPP)
{
out_extdef(sfunc);
}
// TX86 computes параметр offsets in stackoffsets()
//printf("globsym.top = %d\n", globsym.top);
version (SCPP)
{
FuncParamRegs fpr = FuncParamRegs_create(tyf);
}
for (SYMIDX si = 0; si < globsym.top; si++)
{ Symbol *s = globsym.tab[si];
symbol_debug(s);
//printf("symbol %d '%s'\n",si,s.Sident.ptr);
type_size(s.Stype); // do any forward template instantiations
s.Ssymnum = si; // Ssymnum trashed by cpp_inlineexpand
s.Sflags &= ~(SFLunambig | GTregcand);
switch (s.Sclass)
{
case SCbprel:
s.Sfl = FLbprel;
goto L3;
case SCauto:
case SCregister:
s.Sfl = FLauto;
goto L3;
version (SCPP)
{
case SCfastpar:
case SCregpar:
case SCparameter:
if (si == 0 && FuncParamRegs_alloc(fpr, s.Stype, s.Stype.Tty, &s.Spreg, &s.Spreg2))
{
assert(s.Spreg == ((tyf == TYmfunc) ? CX : AX));
assert(s.Spreg2 == NOREG);
assert(si == 0);
s.Sclass = SCfastpar;
s.Sfl = FLfast;
goto L3;
}
assert(s.Sclass != SCfastpar);
}
else
{
case SCfastpar:
s.Sfl = FLfast;
goto L3;
case SCregpar:
case SCparameter:
case SCshadowreg:
}
s.Sfl = FLpara;
if (tyf == TYifunc)
{ s.Sflags |= SFLlivexit;
break;
}
L3:
if (!(s.ty() & (mTYvolatile | mTYshared)))
s.Sflags |= GTregcand | SFLunambig; // assume register candidate */
break;
case SCpseudo:
s.Sfl = FLpseudo;
break;
case SCstatic:
break; // already taken care of by datadef()
case SCstack:
s.Sfl = FLstack;
break;
default:
symbol_print(s);
assert(0);
}
}
бул addressOfParam = нет; // see if any parameters get their address taken
бул anyasm = нет;
numblks = 0;
for (block *b = startblock; b; b = b.Bnext)
{
numblks++; // redo count
memset(&b._BLU,0,block.sizeof - block._BLU.offsetof);
if (b.Belem)
{ outelem(b.Belem, addressOfParam);
version (SCPP)
{
if (!el_returns(b.Belem) && !(config.flags3 & CFG3eh))
{ b.BC = BCexit;
list_free(&b.Bsucc,FPNULL);
}
}
version (Dinrus)
{
if (b.Belem.Eoper == OPhalt)
{ b.BC = BCexit;
list_free(&b.Bsucc,FPNULL);
}
}
}
if (b.BC == BCasm)
anyasm = да;
if (sfunc.Sflags & SFLexit && (b.BC == BCret || b.BC == BCretexp))
{ b.BC = BCexit;
list_free(&b.Bsucc,FPNULL);
}
assert(b != b.Bnext);
}
PARSER = 0;
if (eecontext.EEelem)
{ бцел marksi = globsym.top;
eecontext.EEin++;
outelem(eecontext.EEelem, addressOfParam);
eecontext.EEelem = doptelem(eecontext.EEelem,да);
eecontext.EEin--;
eecontext_convs(marksi);
}
maxblks = 3 * numblks; // allow for increase in # of blocks
// If we took the address of one параметр, assume we took the
// address of all non-register parameters.
if (addressOfParam | anyasm) // if took address of a параметр
{
for (SYMIDX si = 0; si < globsym.top; si++)
if (anyasm || globsym.tab[si].Sclass == SCparameter)
globsym.tab[si].Sflags &= ~(SFLunambig | GTregcand);
}
block_pred(); // compute predecessors to blocks
block_compbcount(); // eliminate unreachable blocks
if (go.mfoptim)
{ OPTIMIZER = 1;
optfunc(); /* optimize function */
OPTIMIZER = 0;
}
else
{
//printf("blockopt()\n");
blockopt(0); /* optimize */
}
version (SCPP)
{
if (CPP)
{
version (DEBUG_XSYMGEN)
{
/* the internal dataview function is allowed to lie about its return значение */
const noret = compile_state != kDataView;
}
else
const noret = да;
// Look for any blocks that return nothing.
// Do it after optimization to eliminate any spurious
// messages like the implicit return on { while(1) { ... } }
if (tybasic(funcsym_p.Stype.Tnext.Tty) != TYvoid &&
!(funcsym_p.Sfunc.Fflags & (Fctor | Fdtor | Finvariant))
&& noret
)
{
сим err = 0;
for (block *b = startblock; b; b = b.Bnext)
{ if (b.BC == BCasm) // no errors if any asm blocks
err |= 2;
else if (b.BC == BCret)
err |= 1;
}
if (err == 1)
func_noreturnvalue();
}
}
}
assert(funcsym_p == sfunc);
const цел CSEGSAVE_DEFAULT = -10000; // some unlikely number
цел csegsave = CSEGSAVE_DEFAULT;
if (eecontext.EEcompile != 1)
{
if (symbol_iscomdat2(sfunc))
{
csegsave = cseg;
objmod.comdat(sfunc);
cseg = sfunc.Sseg;
}
else
if (config.flags & CFGsegs) // if user set switch for this
{
version (SCPP)
{
objmod.codeseg(cpp_mangle(funcsym_p),1);
}
else static if (TARGET_WINDOS)
{
objmod.codeseg(cast(сим*)cpp_mangle(funcsym_p),1);
}
else
{
objmod.codeseg(funcsym_p.Sident.ptr, 1);
}
// generate new code segment
}
cod3_align(cseg); // align start of function
version (HTOD) { } else
{
objmod.func_start(sfunc);
}
searchfixlist(sfunc); // backpatch any refs to this function
}
//printf("codgen()\n");
version (SCPP)
{
if (!errcnt)
codgen(sfunc); // generate code
}
else
{
codgen(sfunc); // generate code
}
//printf("after codgen for %s Coffset %x\n",sfunc.Sident.ptr,Offset(cseg));
blocklist_free(&startblock);
version (SCPP)
{
PARSER = 1;
}
version (HTOD) { } else
{
objmod.func_term(sfunc);
}
if (eecontext.EEcompile == 1)
goto Ldone;
if (sfunc.Sclass == SCglobal)
{
if ((config.objfmt == OBJ_OMF || config.objfmt == OBJ_MSCOFF) && !(config.flags4 & CFG4allcomdat))
{
assert(sfunc.Sseg == cseg);
objmod.pubdef(sfunc.Sseg,sfunc,sfunc.Soffset); // make a public definition
}
version (SCPP)
{
version (Win32)
{
// Determine which startup code to reference
if (!CPP || !isclassmember(sfunc)) // if not member function
{ сим*[6] startup =
[ "__acrtused","__acrtused_winc","__acrtused_dll",
"__acrtused_con","__wacrtused","__wacrtused_con",
];
цел i;
ткст0 ид = sfunc.Sident.ptr;
switch (ид[0])
{
case 'D': if (strcmp(ид,"DllMain"))
break;
if (config.exe == EX_WIN32)
{ i = 2;
goto L2;
}
break;
case 'm': if (strcmp(ид,"main"))
break;
if (config.exe == EX_WIN32)
i = 3;
else if (config.wflags & WFwindows)
i = 1;
else
i = 0;
goto L2;
case 'w': if (strcmp(ид,"wmain") == 0)
{
if (config.exe == EX_WIN32)
{ i = 5;
goto L2;
}
break;
}
goto case;
case 'W': if (stricmp(ид,"WinMain") == 0)
{
i = 0;
goto L2;
}
if (stricmp(ид,"wWinMain") == 0)
{
if (config.exe == EX_WIN32)
{ i = 4;
goto L2;
}
}
break;
case 'L':
case 'l': if (stricmp(ид,"LibMain"))
break;
if (config.exe != EX_WIN32 && config.wflags & WFwindows)
{ i = 2;
goto L2;
}
break;
L2: objmod.external_def(startup[i]); // pull in startup code
break;
default:
break;
}
}
}
}
}
if (config.wflags & WFexpdef &&
sfunc.Sclass != SCstatic &&
sfunc.Sclass != SCsinline &&
!(sfunc.Sclass == SCinline && !(config.flags2 & CFG2comdat)) &&
sfunc.ty() & mTYexport)
objmod.export_symbol(sfunc,cast(бцел)Para.смещение); // export function definition
if (config.fulltypes && config.fulltypes != CV8)
cv_func(sfunc); // debug info for function
version (Dinrus)
{
/* This is to make uplevel references to SCfastpar variables
* from nested functions work.
*/
for (SYMIDX si = 0; si < globsym.top; si++)
{
Symbol *s = globsym.tab[si];
switch (s.Sclass)
{ case SCfastpar:
s.Sclass = SCauto;
break;
default:
break;
}
}
/* After codgen() and writing debug info for the locals,
* readjust the offsets of all stack variables so they
* are relative to the frame pointer.
* Necessary for nested function access to lexically enclosing frames.
*/
cod3_adjSymOffsets();
}
if (symbol_iscomdat2(sfunc)) // if generated a COMDAT
{
assert(csegsave != CSEGSAVE_DEFAULT);
objmod.setcodeseg(csegsave); // сбрось to real code seg
if (config.objfmt == OBJ_MACH)
assert(cseg == CODE);
}
/* Check if function is a constructor or destructor, by */
/* seeing if the function имя starts with _STI or _STD */
{
version (LittleEndian)
{
short *p = cast(short *) sfunc.Sident.ptr;
if (p[0] == (('S' << 8) | '_') && (p[1] == (('I' << 8) | 'T') || p[1] == (('D' << 8) | 'T')))
objmod.setModuleCtorDtor(sfunc, sfunc.Sident.ptr[3] == 'I');
}
else
{
сим *p = sfunc.Sident.ptr;
if (p[0] == '_' && p[1] == 'S' && p[2] == 'T' &&
(p[3] == 'I' || p[3] == 'D'))
objmod.setModuleCtorDtor(sfunc, sfunc.Sident.ptr[3] == 'I');
}
}
Ldone:
funcsym_p = null;
version (SCPP)
{
// Free any added symbols
freesymtab(globsym.tab,nsymbols,globsym.top);
}
globsym.top = 0;
//printf("done with writefunc()\n");
//dfo.dtor(); // save allocation for следщ time
}
/*************************
* Align segment смещение.
* Input:
* seg segment to be aligned
* datasize size in bytes of объект to be aligned
*/
проц alignOffset(цел seg,targ_т_мера datasize)
{
targ_т_мера alignbytes = _align(datasize,Offset(seg)) - Offset(seg);
//printf("seg %d datasize = x%x, Offset(seg) = x%x, alignbytes = x%x\n",
//seg,datasize,Offset(seg),alignbytes);
if (alignbytes)
objmod.lidata(seg,Offset(seg),alignbytes);
}
/***************************************
* Write данные into читай-only данные segment.
* Return symbol for it.
*/
const ROMAX = 32;
struct Readonly
{
Symbol *sym;
т_мера length;
ббайт[ROMAX] p;
}
const RMAX = 16;
private
{
Readonly[RMAX] readonly;
т_мера readonly_length;
т_мера readonly_i;
}
проц out_reset()
{
readonly_length = 0;
readonly_i = 0;
}
Symbol *out_readonly_sym(tym_t ty, проц *p, цел len)
{
version (HTOD)
{
return null;
}
else
{
static if (0)
{
printf("out_readonly_sym(ty = x%x)\n", ty);
for (цел i = 0; i < len; i++)
printf(" [%d] = %02x\n", i, (cast(ббайт*)p)[i]);
}
// Look for previous symbol we can reuse
for (цел i = 0; i < readonly_length; i++)
{
Readonly *r = &readonly[i];
if (r.length == len && memcmp(p, r.p.ptr, len) == 0)
return r.sym;
}
Symbol *s;
version (Dinrus)
{
бул cdata = config.objfmt == OBJ_ELF ||
config.objfmt == OBJ_OMF ||
config.objfmt == OBJ_MSCOFF;
}
else
{
бул cdata = config.objfmt == OBJ_ELF;
}
if (cdata)
{
/* MACHOBJ can't go here, because the const данные segment goes into
* the _TEXT segment, and one cannot have a fixup from _TEXT to _TEXT.
*/
s = objmod.sym_cdata(ty, cast(сим *)p, len);
}
else
{
бцел sz = tysize(ty);
alignOffset(DATA, sz);
s = symboldata(Offset(DATA),ty | mTYconst);
s.Sseg = DATA;
objmod.write_bytes(SegData[DATA], len, p);
//printf("s.Sseg = %d:x%x\n", s.Sseg, s.Soffset);
}
if (len <= ROMAX)
{ Readonly *r;
if (readonly_length < RMAX)
{
r = &readonly[readonly_length];
readonly_length++;
}
else
{ r = &readonly[readonly_i];
readonly_i++;
if (readonly_i >= RMAX)
readonly_i = 0;
}
r.length = len;
r.sym = s;
memcpy(r.p.ptr, p, len);
}
return s;
}
}
/*************************************
* Output Symbol as a readonly comdat.
* Параметры:
* s = comdat symbol
* p = pointer to the данные to пиши
* len = length of that данные
* nzeros = number of trailing zeros to приставь
*/
проц out_readonly_comdat(Symbol *s, ук p, бцел len, бцел nzeros)
{
objmod.readonly_comdat(s); // создай comdat segment
objmod.write_bytes(SegData[s.Sseg], len, cast(проц *)p);
objmod.lidata(s.Sseg, len, nzeros);
}
проц Srcpos_print(ref Srcpos srcpos, ткст0 func)
{
printf("%s(", func);
version (Dinrus)
{
printf("Sfilename = %s", srcpos.Sfilename ? srcpos.Sfilename : "null".ptr);
}
else
{
const sf = srcpos.Sfilptr ? *srcpos.Sfilptr : null;
printf("Sfilptr = %p (имяф = %s)", sf, sf ? sf.SFname : "null".ptr);
}
printf(", Slinnum = %u", srcpos.Slinnum);
printf(")\n");
}
}
|
D
|
/*
TEST_OUTPUT:
---
fail_compilation/fail17502.d(13): Error: function `fail17502.Foo.foo` `void` functions have no result
fail_compilation/fail17502.d(13): Error: undefined identifier `res`
fail_compilation/fail17502.d(17): Error: function `fail17502.Foo.bar` `void` functions have no result
fail_compilation/fail17502.d(17): Error: undefined identifier `res`
---
*/
class Foo
{
void foo()
out (res) { assert(res > 5); }
body {}
auto bar()
out (res) { assert (res > 5); }
body { return; }
}
|
D
|
/Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/debug/Bits.build/Bytes+Base64.swift.o : /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Base64.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Convenience.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Data+BytesConvertible.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/String+BytesConvertible.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+BytesConvertible.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/BytesConvertible.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+PatternMatching.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+Shifting.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Random.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Base64Encoder.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/HexEncoder.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Aliases.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/ByteSequence+Conversions.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+UTF8Numbers.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+ControlCharacters.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Operators.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Alphabet.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Percent.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Hex.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/debug/CHTTP.build/module.modulemap
/Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/debug/Bits.build/Bytes+Base64~partial.swiftmodule : /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Base64.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Convenience.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Data+BytesConvertible.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/String+BytesConvertible.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+BytesConvertible.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/BytesConvertible.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+PatternMatching.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+Shifting.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Random.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Base64Encoder.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/HexEncoder.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Aliases.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/ByteSequence+Conversions.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+UTF8Numbers.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+ControlCharacters.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Operators.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Alphabet.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Percent.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Hex.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/debug/CHTTP.build/module.modulemap
/Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/debug/Bits.build/Bytes+Base64~partial.swiftdoc : /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Base64.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Convenience.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Data+BytesConvertible.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/String+BytesConvertible.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+BytesConvertible.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/BytesConvertible.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+PatternMatching.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+Shifting.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Random.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Base64Encoder.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/HexEncoder.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Aliases.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/ByteSequence+Conversions.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+UTF8Numbers.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+ControlCharacters.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Operators.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Alphabet.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Percent.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Hex.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/debug/CHTTP.build/module.modulemap
|
D
|
/*******************************************************************************
The scenegraph's sprite class.
Authors: ArcLib team, see AUTHORS file
Maintainer: Christian Kamm (kamm incasoftware de)
License: zlib/libpng license: $(LICENSE)
Copyright: ArcLib team
Description:
The scenegraph's sprite class. An alternative to Arc's other
sprite class.
Examples:
---------------------
None provided
---------------------
*******************************************************************************/
module arc.scenegraph.sprite;
import
arc.scenegraph.node,
arc.scenegraph.transform,
arc.types;
/// Sprite class is a composite group node
class Sprite : CompositeGroupNode
{
/// initialize
this(Node initialState)
{
state_ = initialState;
transform = new Transform;
transform.addChild(initialState);
super(transform, transform);
}
/// initialize with transform
this(Transform atransform, Node initialState)
{
transform = atransform;
state_ = initialState;
super(atransform, atransform);
atransform.addChild(initialState);
}
/// return state
Node state()
{
return state_;
}
/// give a new state
void state(Node newState)
{
transform.removeChild(state_);
// state_ = null;
transform.addChild(newState);
state_ = newState;
}
Transform transform;
Node state_;
}
|
D
|
module requests.http;
private:
import std.algorithm;
import std.array;
import std.ascii;
import std.conv;
import std.datetime;
import std.exception;
import std.format;
import std.stdio;
import std.range;
import std.string;
import std.traits;
import std.typecons;
import std.experimental.logger;
import core.thread;
import requests.streams;
import requests.uri;
import requests.utils;
import requests.base;
import requests.connmanager;
import requests.rangeadapter;
static immutable ushort[] redirectCodes = [301, 302, 303, 307, 308];
enum HTTP11 = 101;
enum HTTP10 = 100;
static immutable string[string] proxies;
shared static this() {
import std.process;
import std.string;
foreach(p; ["http", "https", "all"])
{
auto v = environment.get(p ~ "_proxy", environment.get(p.toUpper() ~ "_PROXY"));
if ( v !is null && v.length > 0 )
{
debug(requests) tracef("will use %s for %s as proxy", v, p);
proxies[p] = v;
}
}
}
public class MaxRedirectsException: Exception {
this(string message, string file = __FILE__, size_t line = __LINE__, Throwable next = null) @safe pure nothrow {
super(message, file, line, next);
}
}
///
///
///
//public auto queryParams(T...)(T params) pure nothrow @safe
//{
// static assert (T.length % 2 == 0, "wrong args count");
//
// QueryParam[] output;
// output.reserve = T.length / 2;
//
// void queryParamsHelper(T...)(T params, ref QueryParam[] output)
// {
// static if (T.length > 0)
// {
// output ~= QueryParam(params[0].to!string, params[1].to!string);
// queryParamsHelper(params[2..$], output);
// }
// }
//
// queryParamsHelper(params, output);
// return output;
//}
///
/// Response - result of request execution.
///
/// Response.code - response HTTP code.
/// Response.status_line - received HTTP status line.
/// Response.responseHeaders - received headers.
/// Response.responseBody - container for received body
/// Response.history - for redirected responses contain all history
///
public class HTTPResponse : Response {
private {
string _status_line;
HTTPResponse[] _history; // redirects history
mixin(Setter!string("status_line"));
int _version;
}
~this() {
_responseHeaders = null;
_history.length = 0;
}
mixin(Getter("status_line"));
@property final string[string] responseHeaders() @safe @nogc nothrow {
return _responseHeaders;
}
@property final HTTPResponse[] history() @safe @nogc nothrow {
return _history;
}
private int parse_version(in string v) pure const nothrow @safe {
// try to parse HTTP/1.x to version
try if ( v.length > 5 ) {
return (v[5..$].split(".").map!"to!int(a)".array[0..2].reduce!((a,b) => a*100 + b));
} catch (Exception e) {
}
return 0;
}
unittest {
auto r = new HTTPResponse();
assert(r.parse_version("HTTP/1.1") == 101);
assert(r.parse_version("HTTP/1.0") == 100);
assert(r.parse_version("HTTP/0.9") == 9);
assert(r.parse_version("HTTP/xxx") == 0);
}
}
///
/// Request.
/// Configurable parameters:
/// $(B method) - string, method to use (GET, POST, ...)
/// $(B headers) - string[string], add any additional headers you'd like to send.
/// $(B authenticator) - class Auth, class to send auth headers.
/// $(B keepAlive) - bool, set true for keepAlive requests. default true.
/// $(B maxRedirects) - uint, maximum number of redirects. default 10.
/// $(B maxHeadersLength) - size_t, maximum length of server response headers. default = 32KB.
/// $(B maxContentLength) - size_t, maximun content length. delault - 0 = unlimited.
/// $(B bufferSize) - size_t, send and receive buffer size. default = 16KB.
/// $(B verbosity) - uint, level of verbosity(0 - nothing, 1 - headers, 2 - headers and body progress). default = 0.
/// $(B proxy) - string, set proxy url if needed. default - null.
/// $(B cookie) - Tuple Cookie, Read/Write cookie You can get cookie setted by server, or set cookies before doing request.
/// $(B timeout) - Duration, Set timeout value for connect/receive/send.
///
public struct HTTPRequest {
private {
string _method = "GET";
URI _uri;
string[string] _headers;
string[] _filteredHeaders;
Auth _authenticator;
bool _keepAlive = true;
uint _maxRedirects = 10;
size_t _maxHeadersLength = 32 * 1024; // 32 KB
size_t _maxContentLength; // 0 - Unlimited
string _proxy;
uint _verbosity = 0; // 0 - no output, 1 - headers, 2 - headers+body info
Duration _timeout = 30.seconds;
size_t _bufferSize = 16*1024; // 16k
bool _useStreaming; // return iterator instead of completed request
HTTPResponse[] _history; // redirects history
DataPipe!ubyte _bodyDecoder;
DecodeChunked _unChunker;
long _contentLength;
long _contentReceived;
SSLOptions _sslOptions;
string _bind;
_UH _userHeaders;
RefCounted!ConnManager _cm;
RefCounted!Cookies _cookie;
string[URI] _permanent_redirects; // cache 301 redirects for GET requests
MultipartForm _multipartForm;
NetStreamFactory _socketFactory;
QueryParam[] _params;
string _contentType;
InputRangeAdapter _postData;
}
package HTTPResponse _response;
mixin(Getter_Setter!string ("method"));
mixin(Getter_Setter!bool ("keepAlive"));
mixin(Getter_Setter!size_t ("maxContentLength"));
mixin(Getter_Setter!size_t ("maxHeadersLength"));
mixin(Getter_Setter!size_t ("bufferSize"));
mixin(Getter_Setter!uint ("maxRedirects"));
mixin(Getter_Setter!uint ("verbosity"));
mixin(Getter ("proxy"));
mixin(Getter_Setter!Duration ("timeout"));
mixin(Setter!Auth ("authenticator"));
mixin(Getter_Setter!bool ("useStreaming"));
mixin(Getter ("contentLength"));
mixin(Getter ("contentReceived"));
mixin(Getter_Setter!SSLOptions ("sslOptions"));
mixin(Getter_Setter!string ("bind"));
mixin(Setter!NetStreamFactory ("socketFactory"));
@property void sslSetVerifyPeer(bool v) pure @safe nothrow @nogc {
_sslOptions.setVerifyPeer(v);
}
@property void sslSetKeyFile(string p, SSLOptions.filetype t = SSLOptions.filetype.pem) pure @safe nothrow @nogc {
_sslOptions.setKeyFile(p, t);
}
@property void sslSetCertFile(string p, SSLOptions.filetype t = SSLOptions.filetype.pem) pure @safe nothrow @nogc {
_sslOptions.setCertFile(p, t);
}
@property void sslSetCaCert(string path) pure @safe nothrow @nogc {
_sslOptions.setCaCert(path);
}
//@property final void cookie(Cookie[] s) pure @safe @nogc nothrow {
// _cookie = s;
//}
@property final void proxy(string v) {
if ( v != _proxy ) {
_cm.clear();
}
_proxy = v;
}
//@property final Cookie[] cookie() pure @safe @nogc nothrow {
// return _cookie;
//}
this(string uri) {
_uri = URI(uri);
_cm = ConnManager(10);
}
~this() {
_headers = null;
_authenticator = null;
_history = null;
_bodyDecoder = null;
_unChunker = null;
//if ( _cm ) {
// _cm.clear();
//}
}
string toString() const {
return "HTTPRequest(%s, %s)".format(_method, _uri.uri());
}
string format(string fmt) const {
import std.array;
import std.stdio;
auto a = appender!string();
auto f = FormatSpec!char(fmt);
while (f.writeUpToNextSpec(a)) {
switch(f.spec) {
case 'h':
// Remote hostname.
a.put(_uri.host);
break;
case 'm':
// method.
a.put(_method);
break;
case 'p':
// Remote port.
a.put("%d".format(_uri.port));
break;
case 'P':
// Path
a.put(_uri.path);
break;
case 'q':
// query parameters supplied with url.
a.put(_uri.query);
break;
case 'U':
a.put(_uri.uri());
break;
default:
throw new FormatException("Unknown Request format spec " ~ f.spec);
}
}
return a.data();
}
string select_proxy(string scheme) {
if ( _proxy is null && proxies.length == 0 ) {
debug(requests) tracef("proxy=null");
return null;
}
if ( _proxy ) {
debug(requests) tracef("proxy=%s", _proxy);
return _proxy;
}
auto p = scheme in proxies;
if ( p !is null && *p != "") {
debug(requests) tracef("proxy=%s", *p);
return *p;
}
p = "all" in proxies;
if ( p !is null && *p != "") {
debug(requests) tracef("proxy=%s", *p);
return *p;
}
debug(requests) tracef("proxy=null");
return null;
}
void clearHeaders() {
_headers = null;
}
@property void uri(in URI newURI) {
//handleURLChange(_uri, newURI);
_uri = newURI;
}
/// Add headers to request
/// Params:
/// headers = headers to send.
void addHeaders(in string[string] headers) {
foreach(pair; headers.byKeyValue) {
string _h = pair.key;
switch(toLower(_h)) {
case "host":
_userHeaders.Host = true;
break;
case "user-agent":
_userHeaders.UserAgent = true;
break;
case "content-length":
_userHeaders.ContentLength = true;
break;
case "content-type":
_userHeaders.ContentType = true;
break;
case "connection":
_userHeaders.Connection = true;
break;
case "cookie":
_userHeaders.Cookie = true;
break;
default:
break;
}
_headers[pair.key] = pair.value;
}
}
private void safeSetHeader(ref string[string] headers, bool userAdded, string h, string v) pure @safe {
if ( !userAdded ) {
headers[h] = v;
}
}
/// Remove headers from request
/// Params:
/// headers = headers to remove.
void removeHeaders(in string[] headers) pure {
_filteredHeaders ~= headers;
}
///
/// compose headers to send
///
private string[string] requestHeaders() {
string[string] generatedHeaders;
if ( _authenticator ) {
_authenticator.
authHeaders(_uri.host).
byKeyValue.
each!(pair => generatedHeaders[pair.key] = pair.value);
}
_headers.byKey.each!(h => generatedHeaders[h] = _headers[h]);
safeSetHeader(generatedHeaders, _userHeaders.AcceptEncoding, "Accept-Encoding", "gzip,deflate");
safeSetHeader(generatedHeaders, _userHeaders.UserAgent, "User-Agent", "dlang-requests");
safeSetHeader(generatedHeaders, _userHeaders.Connection, "Connection", _keepAlive?"Keep-Alive":"Close");
if ( !_userHeaders.Host )
{
generatedHeaders["Host"] = _uri.host;
if ( _uri.scheme !in standard_ports || _uri.port != standard_ports[_uri.scheme] ) {
generatedHeaders["Host"] ~= ":%d".format(_uri.port);
}
}
if ( _cookie._array.length && !_userHeaders.Cookie ) {
auto cs = _cookie._array.
filter!(c => _uri.path.pathMatches(c.path) && _uri.host.domainMatches(c.domain)).
map!(c => "%s=%s".format(c.attr, c.value)).
joiner(";");
if ( ! cs.empty )
{
generatedHeaders["Cookie"] = to!string(cs);
}
}
_filteredHeaders.each!(h => generatedHeaders.remove(h));
return generatedHeaders;
}
///
/// Build request string.
/// Handle proxy and query parameters.
///
private @property string requestString(QueryParam[] params = null) {
auto query = _uri.query.dup;
if ( params ) {
query ~= "&" ~ params2query(params);
if ( query[0] != '?' ) {
query = "?" ~ query;
}
}
string actual_proxy = select_proxy(_uri.scheme);
if ( actual_proxy && _uri.scheme != "https" ) {
return "%s %s%s HTTP/1.1\r\n".format(_method, _uri.uri(No.params), query);
}
return "%s %s%s HTTP/1.1\r\n".format(_method, _uri.path, query);
}
///
/// encode parameters and build query part of the url
///
private static string params2query(in QueryParam[] params) pure @safe {
return params.
map!(a => "%s=%s".format(a.key.urlEncoded, a.value.urlEncoded)).
join("&");
}
//
package unittest {
assert(params2query(queryParams("a","b", "c", " d "))=="a=b&c=%20d%20");
}
///
/// Analyze received headers, take appropriate actions:
/// check content length, attach unchunk and uncompress
///
private void analyzeHeaders(in string[string] headers) {
_contentLength = -1;
_unChunker = null;
auto contentLength = "content-length" in headers;
if ( contentLength ) {
try {
string l = *contentLength;
_contentLength = parse!long(l);
// TODO: maybe add a strict mode that checks if l was parsed completely
if ( _maxContentLength && _contentLength > _maxContentLength) {
throw new RequestException("ContentLength > maxContentLength (%d>%d)".
format(_contentLength, _maxContentLength));
}
} catch (ConvException e) {
throw new RequestException("Can't convert Content-Length from %s".format(*contentLength));
}
}
auto transferEncoding = "transfer-encoding" in headers;
if ( transferEncoding ) {
debug(requests) tracef("transferEncoding: %s", *transferEncoding);
if ( (*transferEncoding).toLower == "chunked") {
_unChunker = new DecodeChunked();
_bodyDecoder.insert(_unChunker);
}
}
auto contentEncoding = "content-encoding" in headers;
if ( contentEncoding ) switch (*contentEncoding) {
default:
throw new RequestException("Unknown content-encoding " ~ *contentEncoding);
case "gzip":
case "deflate":
_bodyDecoder.insert(new Decompressor!ubyte);
}
}
///
/// Called when we know that all headers already received in buffer.
/// This routine does not interpret headers content (see analyzeHeaders).
/// 1. Split headers on lines
/// 2. store status line, store response code
/// 3. unfold headers if needed
/// 4. store headers
///
private void parseResponseHeaders(in ubyte[] input, string lineSep) {
string lastHeader;
auto buffer = cast(string)input;
foreach(line; buffer.split(lineSep).map!(l => l.stripRight)) {
if ( ! _response.status_line.length ) {
debug (requests) tracef("statusLine: %s", line);
_response.status_line = line;
if ( _verbosity >= 1 ) {
writefln("< %s", line);
}
auto parsed = line.split(" ");
if ( parsed.length >= 2 ) {
_response.code = parsed[1].to!ushort;
_response._version = _response.parse_version(parsed[0]);
}
continue;
}
if ( line[0] == ' ' || line[0] == '\t' ) {
// unfolding https://tools.ietf.org/html/rfc822#section-3.1
if ( auto stored = lastHeader in _response._responseHeaders) {
*stored ~= line;
}
continue;
}
auto parsed = line.findSplit(":");
auto header = parsed[0].toLower;
auto value = parsed[2].strip;
if ( _verbosity >= 1 ) {
writefln("< %s: %s", header, value);
}
lastHeader = header;
debug (requests) tracef("Header %s = %s", header, value);
if ( header != "set-cookie" ) {
auto stored = _response.responseHeaders.get(header, null);
if ( stored ) {
value = stored ~ "," ~ value;
}
_response._responseHeaders[header] = value;
continue;
}
_cookie._array ~= processCookie(value);
}
}
///
/// Process Set-Cookie header from server response
///
private Cookie[] processCookie(string value ) pure {
// cookie processing
//
// as we can't join several set-cookie lines in single line
// < Set-Cookie: idx=7f2800f63c112a65ef5082957bcca24b; expires=Mon, 29-May-2017 00:31:25 GMT; path=/; domain=example.com
// < Set-Cookie: idx=7f2800f63c112a65ef5082957bcca24b; expires=Mon, 29-May-2017 00:31:25 GMT; path=/; domain=example.com, cs=ip764-RgKqc-HvSkxRxdQQAKW8LA; path=/; domain=.example.com; HttpOnly
//
Cookie[] res;
string[string] kv;
auto fields = value.split(";").map!strip;
while(!fields.empty) {
auto s = fields.front.findSplit("=");
fields.popFront;
if ( s[1] != "=" ) {
continue;
}
auto k = s[0];
auto v = s[2];
switch(k.toLower()) {
case "domain":
k = "domain";
break;
case "path":
k = "path";
break;
case "expires":
continue;
case "max-age":
continue;
default:
break;
}
kv[k] = v;
}
if ( "domain" !in kv ) {
kv["domain"] = _uri.host;
}
if ( "path" !in kv ) {
kv["path"] = _uri.path;
}
auto domain = kv["domain"]; kv.remove("domain");
auto path = kv["path"]; kv.remove("path");
foreach(pair; kv.byKeyValue) {
auto _attr = pair.key;
auto _value = pair.value;
auto cookie = Cookie(path, domain, _attr, _value);
res ~= cookie;
}
return res;
}
private bool willFollowRedirect() {
if ( !canFind(redirectCodes, _response.code) ) {
return false;
}
if ( !_maxRedirects ) {
return false;
}
if ( "location" !in _response.responseHeaders ) {
return false;
}
return true;
}
private URI uriFromLocation(const ref URI uri, in string location) {
URI newURI = uri;
try {
newURI = URI(location);
} catch (UriException e) {
debug(requests) trace("Can't parse Location:, try relative uri");
newURI.path = location;
newURI.uri = newURI.recalc_uri;
}
return newURI;
}
///
/// if we have new uri, then we need to check if we have to reopen existent connection
///
private void checkURL(string url, string file=__FILE__, size_t line=__LINE__) {
if (url is null && _uri.uri == "" ) {
throw new RequestException("No url configured", file, line);
}
if ( url !is null ) {
URI newURI = URI(url);
//handleURLChange(_uri, newURI);
_uri = newURI;
}
}
///
/// Setup connection. Handle proxy and https case
///
/// Place new connection in ConnManager cache
///
private NetworkStream setupConnection()
do {
debug(requests) tracef("Set up new connection");
NetworkStream stream;
// on exit
// place created connection to conn. manager
// close connection purged from manager (if any)
//
scope(exit) {
if ( stream )
{
if ( auto purged_connection = _cm.put(_uri.scheme, _uri.host, _uri.port, stream) )
{
debug(requests) tracef("closing purged connection %s", purged_connection);
purged_connection.close();
}
}
}
if ( _socketFactory )
{
debug(requests) tracef("use socketFactory");
stream = _socketFactory(_uri.scheme, _uri.host, _uri.port);
}
if ( stream ) // socket factory created connection
{
return stream;
}
URI uri; // this URI will be used temporarry if we need proxy
string actual_proxy = select_proxy(_uri.scheme);
final switch (_uri.scheme) {
case"http":
if ( actual_proxy ) {
uri.uri_parse(actual_proxy);
uri.idn_encode();
} else {
// use original uri
uri = _uri;
}
stream = new TCPStream();
stream.bind(_bind);
stream.connect(uri.host, uri.port, _timeout);
break ;
case"https":
if ( actual_proxy ) {
uri.uri_parse(actual_proxy);
uri.idn_encode();
stream = new TCPStream();
stream.bind(_bind);
stream.connect(uri.host, uri.port, _timeout);
if ( verbosity>=1 ) {
writeln("> CONNECT %s:%d HTTP/1.1".format(_uri.host, _uri.port));
}
stream.send("CONNECT %s:%d HTTP/1.1\r\n".format(_uri.host, _uri.port));
if (uri.username)
{
debug(requests) tracef("Add Proxy-Authorization header");
auto auth = new BasicAuthentication(uri.username, uri.password);
auto header = auth.authHeaders("");
stream.send("Proxy-Authorization: %s\r\n".format(header["Authorization"]));
}
stream.send("\r\n");
while ( stream.isConnected ) {
ubyte[1024] b;
auto read = stream.receive(b);
if ( verbosity>=1) {
writefln("< %s", cast(string)b[0..read]);
}
debug(requests) tracef("read: %d", read);
if ( b[0..read].canFind("\r\n\r\n") || b[0..read].canFind("\n\n") ) {
debug(requests) tracef("proxy connection ready");
// convert connection to ssl
stream = new SSLStream(stream, _sslOptions, _uri.host);
break ;
} else {
debug(requests) tracef("still wait for proxy connection");
}
}
} else {
uri = _uri;
stream = new SSLStream(_sslOptions);
stream.bind(_bind);
stream.connect(uri.host, uri.port, _timeout);
debug(requests) tracef("ssl connection to origin server ready");
}
break ;
}
return stream;
}
///
/// Request sent, now receive response.
/// Find headers, split on headers and body, continue to receive body
///
private void receiveResponse(NetworkStream _stream) {
try {
_stream.readTimeout = timeout;
} catch (Exception e) {
debug(requests) tracef("Failed to set read timeout for stream: %s", e.msg);
return;
}
// Commented this out as at exit we can have alreade closed socket
// scope(exit) {
// if ( _stream && _stream.isOpen ) {
// _stream.readTimeout = 0.seconds;
// }
// }
_bodyDecoder = new DataPipe!ubyte();
scope(exit) {
if ( !_useStreaming ) {
_bodyDecoder = null;
_unChunker = null;
}
}
auto buffer = Buffer!ubyte();
Buffer!ubyte partialBody;
ptrdiff_t read;
string lineSep = null, headersEnd = null;
bool headersHaveBeenReceived;
while( !headersHaveBeenReceived ) {
auto b = new ubyte[_bufferSize];
read = _stream.receive(b);
debug(requests) tracef("read: %d", read);
if ( read == 0 ) {
break;
}
auto data = b[0..read];
buffer.putNoCopy(data);
if ( verbosity>=3 ) {
writeln(data.dump.join("\n"));
}
if ( buffer.length > maxHeadersLength ) {
throw new RequestException("Headers length > maxHeadersLength (%d > %d)".format(buffer.length, maxHeadersLength));
}
// Proper HTTP uses "\r\n" as a line separator, but broken servers sometimes use "\n".
// Servers that use "\r\n" might have "\n" inside a header.
// For any half-sane server, the first '\n' should be at the end of the status line, so this can be used to detect the line separator.
// In any case, all the interesting points in the header for now are at '\n' characters, so scan the newly read data for them.
foreach (idx; buffer.length-read..buffer.length)
{
if ( buffer[idx] == '\n' )
{
if ( lineSep is null )
{
// First '\n'. Detect line/header endings.
// HTTP header sections end with a double line separator
lineSep = "\n";
headersEnd = "\n\n";
if ( idx > 0 && buffer[idx-1] == '\r' )
{
lineSep = "\r\n";
headersEnd = "\r\n\r\n";
}
}
else
{
// Potential header ending.
if ( buffer.data[0..idx+1].endsWith(headersEnd) )
{
auto ResponseHeaders = buffer.data[0..idx+1-headersEnd.length];
partialBody = buffer[idx+1..$];
_contentReceived += partialBody.length;
parseResponseHeaders(ResponseHeaders, lineSep);
headersHaveBeenReceived = true;
break;
}
}
}
}
}
analyzeHeaders(_response._responseHeaders);
_bodyDecoder.putNoCopy(partialBody.data);
auto v = _bodyDecoder.get();
_response._responseBody.putNoCopy(v);
// https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.4
if ( (_method == "HEAD") || responseMustNotIncludeBody(_response.code) || (_contentLength < 0 && _unChunker is null) )
{
debug(requests) tracef("response without body");
return;
}
_response._contentLength = _contentLength;
_response._contentReceived = _contentReceived;
if ( _verbosity >= 2 ) writefln("< %d bytes of body received", partialBody.length);
while( true ) {
if ( _contentLength >= 0 && _contentReceived >= _contentLength ) {
debug(requests) trace("Body received.");
break;
}
if ( _unChunker && _unChunker.done ) {
break;
}
if ( _useStreaming && _response._responseBody.length && !redirectCodes.canFind(_response.code) ) {
debug(requests) trace("streaming requested");
// save _stream in closure
auto __stream = _stream;
auto __bodyDecoder = _bodyDecoder;
auto __unChunker = _unChunker;
auto __contentReceived = _contentReceived;
auto __contentLength = _contentLength;
auto __bufferSize = _bufferSize;
auto __response = _response;
auto __verbosity = _verbosity;
// set up response
_response._contentLength = _contentLength;
_response.receiveAsRange.activated = true;
_response.receiveAsRange.data = _response._responseBody.data;
_response.receiveAsRange.read = delegate ubyte[] () {
while(true) {
// check if we received everything we need
if ( ( __unChunker && __unChunker.done )
|| !__stream.isConnected()
|| (__contentLength > 0 && __contentReceived >= __contentLength) )
{
debug(requests) trace("streaming_in receive completed");
__bodyDecoder.flush();
return __bodyDecoder.get();
}
// have to continue
auto b = new ubyte[__bufferSize];
try {
read = __stream.receive(b);
}
catch (Exception e) {
throw new RequestException("streaming_in error reading from socket", __FILE__, __LINE__, e);
}
debug(requests) tracef("streaming_in received %d bytes", read);
if ( read == 0 ) {
debug(requests) tracef("streaming_in: server closed connection");
__bodyDecoder.flush();
return __bodyDecoder.get();
}
if ( __verbosity>=3 ) {
writeln(b[0..read].dump.join("\n"));
}
__response._contentReceived += read;
__contentReceived += read;
__bodyDecoder.putNoCopy(b[0..read]);
auto res = __bodyDecoder.getNoCopy();
if ( res.length == 0 ) {
// there were nothing to produce (beginning of the chunk or no decompressed data)
continue;
}
if (res.length == 1) {
return res[0];
}
//
// I'd like to "return _bodyDecoder.getNoCopy().join;" but it is slower
//
auto total = res.map!(b=>b.length).sum;
// create buffer for joined bytes
ubyte[] joined = new ubyte[total];
size_t p;
// memcopy
foreach(ref _; res) {
joined[p .. p + _.length] = _;
p += _.length;
}
return joined;
}
assert(0);
};
// we prepared for streaming
return;
}
auto b = new ubyte[_bufferSize];
read = _stream.receive(b);
if ( read == 0 ) {
debug(requests) trace("read done");
break;
}
if ( _verbosity >= 2 ) {
writefln("< %d bytes of body received", read);
}
if ( verbosity>=3 ) {
writeln(b[0..read].dump.join("\n"));
}
debug(requests) tracef("read: %d", read);
_contentReceived += read;
if ( _maxContentLength && _contentReceived > _maxContentLength ) {
throw new RequestException("ContentLength > maxContentLength (%d>%d)".
format(_contentLength, _maxContentLength));
}
_bodyDecoder.putNoCopy(b[0..read]); // send buffer to all decoders
_bodyDecoder.getNoCopy. // fetch result and place to body
each!(b => _response._responseBody.putNoCopy(b));
debug(requests) tracef("receivedTotal: %d, contentLength: %d, bodyLength: %d", _contentReceived, _contentLength, _response._responseBody.length);
}
_bodyDecoder.flush();
_response._responseBody.putNoCopy(_bodyDecoder.get());
_response._contentReceived = _contentReceived;
}
///
/// Check that we received anything.
/// Server can close previous connection (keepalive or not)
///
private bool serverPrematurelyClosedConnection() pure @safe {
immutable server_closed_connection = _response._responseHeaders.length == 0 && _response._status_line.length == 0;
// debug(requests) tracef("server closed connection = %s (headers.length=%s, status_line.length=%s)",
// server_closed_connection, _response._responseHeaders.length, _response._status_line.length);
return server_closed_connection;
}
private bool isIdempotent(in string method) pure @safe nothrow {
return ["GET", "HEAD"].canFind(method);
}
///
/// If we do not want keepalive request,
/// or server signalled to close connection,
/// then close it
///
void close_connection_if_not_keepalive(NetworkStream _stream) {
auto connection = "connection" in _response._responseHeaders;
if ( !_keepAlive ) {
_stream.close();
} else switch(_response._version) {
case HTTP11:
// HTTP/1.1 defines the "close" connection option for the sender to signal that the connection
// will be closed after completion of the response. For example,
// Connection: close
// in either the request or the response header fields indicates that the connection
// SHOULD NOT be considered `persistent' (section 8.1) after the current request/response is complete.
// HTTP/1.1 applications that do not support persistent connections MUST include the "close" connection
// option in every message.
if ( connection && (*connection).toLower.split(",").canFind("close") ) {
_stream.close();
}
break;
default:
// for anything else close connection if there is no keep-alive in Connection
if ( connection && !(*connection).toLower.split(",").canFind("keep-alive") ) {
_stream.close();
}
break;
}
}
///
/// Send multipart for request.
/// You would like to use this method for sending large portions of mixed data or uploading files to forms.
/// Content of the posted form consist of sources. Each source have at least name and value (can be string-like object or opened file, see more docs for MultipartForm struct)
/// Params:
/// url = url
/// sources = array of sources.
deprecated("Use Request() instead of HTTPRequest(); will be removed 2019-07")
HTTPResponse exec(string method="POST")(string url, MultipartForm sources) {
import std.uuid;
import std.file;
checkURL(url);
//if ( _cm is null ) {
// _cm = new ConnManager();
//}
NetworkStream _stream;
_method = method;
_response = new HTTPResponse;
_response.uri = _uri;
_response.finalURI = _uri;
bool restartedRequest = false;
connect:
_contentReceived = 0;
_response._startedAt = Clock.currTime;
assert(_stream is null);
_stream = _cm.get(_uri.scheme, _uri.host, _uri.port);
if ( _stream is null ) {
debug(requests) trace("create new connection");
_stream = setupConnection();
} else {
debug(requests) trace("reuse old connection");
}
assert(_stream !is null);
if ( !_stream.isConnected ) {
debug(requests) trace("disconnected stream on enter");
if ( !restartedRequest ) {
debug(requests) trace("disconnected stream on enter: retry");
assert(_cm.get(_uri.scheme, _uri.host, _uri.port) == _stream);
_cm.del(_uri.scheme, _uri.host, _uri.port);
_stream.close();
_stream = null;
restartedRequest = true;
goto connect;
}
debug(requests) trace("disconnected stream on enter: return response");
//_stream = null;
return _response;
}
_response._connectedAt = Clock.currTime;
Appender!string req;
req.put(requestString());
string boundary = randomUUID().toString;
string[] partHeaders;
size_t contentLength;
foreach(ref part; sources._sources) {
string h = "--" ~ boundary ~ "\r\n";
string disposition = `form-data; name="%s"`.format(part.name);
string optionals = part.
parameters.byKeyValue().
filter!(p => p.key!="Content-Type").
map! (p => "%s=%s".format(p.key, p.value)).
join("; ");
h ~= `Content-Disposition: ` ~ [disposition, optionals].join("; ") ~ "\r\n";
auto contentType = "Content-Type" in part.parameters;
if ( contentType ) {
h ~= "Content-Type: " ~ *contentType ~ "\r\n";
}
h ~= "\r\n";
partHeaders ~= h;
contentLength += h.length + part.input.getSize() + "\r\n".length;
}
contentLength += "--".length + boundary.length + "--\r\n".length;
auto h = requestHeaders();
safeSetHeader(h, _userHeaders.ContentType, "Content-Type", "multipart/form-data; boundary=" ~ boundary);
safeSetHeader(h, _userHeaders.ContentLength, "Content-Length", to!string(contentLength));
h.byKeyValue.
map!(kv => kv.key ~ ": " ~ kv.value ~ "\r\n").
each!(h => req.put(h));
req.put("\r\n");
debug(requests) trace(req.data);
if ( _verbosity >= 1 ) req.data.splitLines.each!(a => writeln("> " ~ a));
try {
_stream.send(req.data());
foreach(ref source; sources._sources) {
debug(requests) tracef("sending part headers <%s>", partHeaders.front);
_stream.send(partHeaders.front);
partHeaders.popFront;
while (true) {
auto chunk = source.input.read();
if ( chunk.length <= 0 ) {
break;
}
_stream.send(chunk);
}
_stream.send("\r\n");
}
_stream.send("--" ~ boundary ~ "--\r\n");
_response._requestSentAt = Clock.currTime;
receiveResponse(_stream);
_response._finishedAt = Clock.currTime;
}
catch (NetworkException e) {
errorf("Error sending request: ", e.msg);
_stream.close();
return _response;
}
if ( serverPrematurelyClosedConnection()
&& !restartedRequest
&& isIdempotent(_method)
) {
///
/// We didn't receive any data (keepalive connectioin closed?)
/// and we can restart this request.
/// Go ahead.
///
debug(requests) tracef("Server closed keepalive connection");
assert(_cm.get(_uri.scheme, _uri.host, _uri.port) == _stream);
_cm.del(_uri.scheme, _uri.host, _uri.port);
_stream.close();
_stream = null;
restartedRequest = true;
goto connect;
}
if ( _useStreaming ) {
if ( _response._receiveAsRange.activated ) {
debug(requests) trace("streaming_in activated");
return _response;
} else {
// this can happen if whole response body received together with headers
_response._receiveAsRange.data = _response.responseBody.data;
}
}
close_connection_if_not_keepalive(_stream);
if ( _verbosity >= 1 ) {
writeln(">> Connect time: ", _response._connectedAt - _response._startedAt);
writeln(">> Request send time: ", _response._requestSentAt - _response._connectedAt);
writeln(">> Response recv time: ", _response._finishedAt - _response._requestSentAt);
}
if ( willFollowRedirect ) {
if ( _history.length >= _maxRedirects ) {
_stream = null;
throw new MaxRedirectsException("%d redirects reached maxRedirects %d.".format(_history.length, _maxRedirects));
}
// "location" in response already checked in canFollowRedirect
immutable new_location = *("location" in _response.responseHeaders);
immutable current_uri = _uri, next_uri = uriFromLocation(_uri, new_location);
// save current response for history
_history ~= _response;
// prepare new response (for redirected request)
_response = new HTTPResponse;
_response.uri = current_uri;
_response.finalURI = next_uri;
_stream = null;
// set new uri
this._uri = next_uri;
debug(requests) tracef("Redirected to %s", next_uri);
if ( _method != "GET" && _response.code != 307 && _response.code != 308 ) {
// 307 and 308 do not change method
return this.get();
}
if ( restartedRequest ) {
debug(requests) trace("Rare event: clearing 'restartedRequest' on redirect");
restartedRequest = false;
}
goto connect;
}
_response._history = _history;
return _response;
}
// we use this if we send from ubyte[][] and user provided Content-Length
private void sendFlattenContent(T)(NetworkStream _stream, T content) {
while ( !content.empty ) {
auto chunk = content.front;
_stream.send(chunk);
content.popFront;
}
debug(requests) tracef("sent");
}
// we use this if we send from ubyte[][] as chunked content
private void sendChunkedContent(T)(NetworkStream _stream, T content) {
while ( !content.empty ) {
auto chunk = content.front;
auto chunkHeader = "%x\r\n".format(chunk.length);
debug(requests) tracef("sending %s%s", chunkHeader, chunk);
_stream.send(chunkHeader);
_stream.send(chunk);
_stream.send("\r\n");
content.popFront;
}
debug(requests) tracef("sent");
_stream.send("0\r\n\r\n");
}
///
/// POST/PUT/... data from some string(with Content-Length), or from range of strings/bytes (use Transfer-Encoding: chunked).
/// When rank 1 (flat array) used as content it must have length. In that case "content" will be sent directly to network, and Content-Length headers will be added.
/// If you are goung to send some range and do not know length at the moment when you start to send request, then you can send chunks of chars or ubyte.
/// Try not to send too short chunks as this will put additional load on client and server. Chunks of length 2048 or 4096 are ok.
///
/// Parameters:
/// url = url
/// content = string or input range
/// contentType = content type
/// Returns:
/// Response
/// Examples:
/// ---------------------------------------------------------------------------------------------------------
/// rs = rq.exec!"POST"("http://httpbin.org/post", "привiт, свiт!", "application/octet-stream");
///
/// auto s = lineSplitter("one,\ntwo,\nthree.");
/// rs = rq.exec!"POST"("http://httpbin.org/post", s, "application/octet-stream");
///
/// auto s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
/// rs = rq.exec!"POST"("http://httpbin.org/post", s.representation.chunks(10), "application/octet-stream");
///
/// auto f = File("tests/test.txt", "rb");
/// rs = rq.exec!"POST"("http://httpbin.org/post", f.byChunk(3), "application/octet-stream");
/// --------------------------------------------------------------------------------------------------------
deprecated("Use Request() instead of HTTPRequest(); will be removed 2019-07")
HTTPResponse exec(string method="POST", R)(string url, R content, string contentType="application/octet-stream")
if ( (rank!R == 1)
|| (rank!R == 2 && isSomeChar!(Unqual!(typeof(content.front.front))))
|| (rank!R == 2 && (is(Unqual!(typeof(content.front.front)) == ubyte)))
)
do {
debug(requests) tracef("started url=%s, this._uri=%s", url, _uri);
checkURL(url);
//if ( _cm is null ) {
// _cm = new ConnManager();
//}
NetworkStream _stream;
_method = method;
_response = new HTTPResponse;
_history.length = 0;
_response.uri = _uri;
_response.finalURI = _uri;
bool restartedRequest = false;
bool send_flat;
connect:
_contentReceived = 0;
_response._startedAt = Clock.currTime;
assert(_stream is null);
_stream = _cm.get(_uri.scheme, _uri.host, _uri.port);
if ( _stream is null ) {
debug(requests) trace("create new connection");
_stream = setupConnection();
} else {
debug(requests) trace("reuse old connection");
}
assert(_stream !is null);
if ( !_stream.isConnected ) {
debug(requests) trace("disconnected stream on enter");
if ( !restartedRequest ) {
debug(requests) trace("disconnected stream on enter: retry");
assert(_cm.get(_uri.scheme, _uri.host, _uri.port) == _stream);
_cm.del(_uri.scheme, _uri.host, _uri.port);
_stream.close();
_stream = null;
restartedRequest = true;
goto connect;
}
debug(requests) trace("disconnected stream on enter: return response");
//_stream = null;
return _response;
}
_response._connectedAt = Clock.currTime;
Appender!string req;
req.put(requestString());
auto h = requestHeaders;
if ( contentType ) {
safeSetHeader(h, _userHeaders.ContentType, "Content-Type", contentType);
}
static if ( rank!R == 1 ) {
safeSetHeader(h, _userHeaders.ContentLength, "Content-Length", to!string(content.length));
} else {
if ( _userHeaders.ContentLength ) {
debug(requests) tracef("User provided content-length for chunked content");
send_flat = true;
} else {
h["Transfer-Encoding"] = "chunked";
send_flat = false;
}
}
h.byKeyValue.
map!(kv => kv.key ~ ": " ~ kv.value ~ "\r\n").
each!(h => req.put(h));
req.put("\r\n");
debug(requests) trace(req.data);
if ( _verbosity >= 1 ) {
req.data.splitLines.each!(a => writeln("> " ~ a));
}
try {
// send headers
_stream.send(req.data());
// send body
static if ( rank!R == 1) {
_stream.send(content);
} else {
if ( send_flat ) {
sendFlattenContent(_stream, content);
} else {
sendChunkedContent(_stream, content);
}
}
_response._requestSentAt = Clock.currTime;
debug(requests) trace("starting receive response");
receiveResponse(_stream);
debug(requests) trace("finished receive response");
_response._finishedAt = Clock.currTime;
} catch (NetworkException e) {
_stream.close();
throw new RequestException("Network error during data exchange");
}
if ( serverPrematurelyClosedConnection()
&& !restartedRequest
&& isIdempotent(_method))
{
///
/// We didn't receive any data (keepalive connectioin closed?)
/// and we can restart this request.
/// Go ahead.
///
debug(requests) tracef("Server closed keepalive connection");
assert(_cm.get(_uri.scheme, _uri.host, _uri.port) == _stream);
_cm.del(_uri.scheme, _uri.host, _uri.port);
_stream.close();
_stream = null;
restartedRequest = true;
goto connect;
}
if ( _useStreaming ) {
if ( _response._receiveAsRange.activated ) {
debug(requests) trace("streaming_in activated");
return _response;
} else {
// this can happen if whole response body received together with headers
_response._receiveAsRange.data = _response.responseBody.data;
}
}
close_connection_if_not_keepalive(_stream);
if ( _verbosity >= 1 ) {
writeln(">> Connect time: ", _response._connectedAt - _response._startedAt);
writeln(">> Request send time: ", _response._requestSentAt - _response._connectedAt);
writeln(">> Response recv time: ", _response._finishedAt - _response._requestSentAt);
}
if ( willFollowRedirect ) {
if ( _history.length >= _maxRedirects ) {
_stream = null;
throw new MaxRedirectsException("%d redirects reached maxRedirects %d.".format(_history.length, _maxRedirects));
}
// "location" in response already checked in canFollowRedirect
immutable new_location = *("location" in _response.responseHeaders);
immutable current_uri = _uri, next_uri = uriFromLocation(_uri, new_location);
// save current response for history
_history ~= _response;
// prepare new response (for redirected request)
_response = new HTTPResponse;
_response.uri = current_uri;
_response.finalURI = next_uri;
_stream = null;
// set new uri
this._uri = next_uri;
debug(requests) tracef("Redirected to %s", next_uri);
if ( _method != "GET" && _response.code != 307 && _response.code != 308 ) {
// 307 and 308 do not change method
return this.get();
}
if ( restartedRequest ) {
debug(requests) trace("Rare event: clearing 'restartedRequest' on redirect");
restartedRequest = false;
}
goto connect;
}
_response._history = _history;
return _response;
}
///
/// Send request with parameters.
/// If used for POST or PUT requests then application/x-www-form-urlencoded used.
/// Request parameters will be encoded into request string or placed in request body for POST/PUT
/// requests.
/// Parameters:
/// url = url
/// params = request parameters
/// Returns:
/// Response
/// Examples:
/// ---------------------------------------------------------------------------------
/// rs = Request().exec!"GET"("http://httpbin.org/get", ["c":"d", "a":"b"]);
/// ---------------------------------------------------------------------------------
///
deprecated("Use Request() instead of HTTPRequest; will be removed 2019-07")
HTTPResponse exec(string method="GET")(string url = null, QueryParam[] params = null)
do {
debug(requests) tracef("started url=%s, this._uri=%s", url, _uri);
checkURL(url);
//if ( _cm is null ) {
// _cm = new ConnManager();
//}
NetworkStream _stream;
_method = method;
_response = new HTTPResponse;
_history.length = 0;
_response.uri = _uri;
_response.finalURI = _uri;
bool restartedRequest = false; // True if this is restarted keepAlive request
connect:
if ( _method == "GET" && _uri in _permanent_redirects ) {
debug(requests) trace("use parmanent redirects cache");
_uri = uriFromLocation(_uri, _permanent_redirects[_uri]);
_response._finalURI = _uri;
}
_contentReceived = 0;
_response._startedAt = Clock.currTime;
assert(_stream is null);
_stream = _cm.get(_uri.scheme, _uri.host, _uri.port);
if ( _stream is null ) {
debug(requests) trace("create new connection");
_stream = setupConnection();
} else {
debug(requests) trace("reuse old connection");
}
assert(_stream !is null);
if ( !_stream.isConnected ) {
debug(requests) trace("disconnected stream on enter");
if ( !restartedRequest ) {
debug(requests) trace("disconnected stream on enter: retry");
assert(_cm.get(_uri.scheme, _uri.host, _uri.port) == _stream);
_cm.del(_uri.scheme, _uri.host, _uri.port);
_stream.close();
_stream = null;
restartedRequest = true;
goto connect;
}
debug(requests) trace("disconnected stream on enter: return response");
//_stream = null;
return _response;
}
_response._connectedAt = Clock.currTime;
auto h = requestHeaders();
Appender!string req;
string encoded;
switch (_method) {
case "POST","PUT","PATCH":
encoded = params2query(params);
safeSetHeader(h, _userHeaders.ContentType, "Content-Type", "application/x-www-form-urlencoded");
if ( encoded.length > 0) {
safeSetHeader(h, _userHeaders.ContentLength, "Content-Length", to!string(encoded.length));
}
req.put(requestString());
break;
default:
req.put(requestString(params));
}
h.byKeyValue.
map!(kv => kv.key ~ ": " ~ kv.value ~ "\r\n").
each!(h => req.put(h));
req.put("\r\n");
if ( encoded ) {
req.put(encoded);
}
debug(requests) trace(req.data);
if ( _verbosity >= 1 ) {
req.data.splitLines.each!(a => writeln("> " ~ a));
}
//
// Now send request and receive response
//
try {
_stream.send(req.data());
_response._requestSentAt = Clock.currTime;
debug(requests) trace("starting receive response");
receiveResponse(_stream);
debug(requests) trace("done receive response");
_response._finishedAt = Clock.currTime;
}
catch (NetworkException e) {
// On SEND this can means:
// we started to send request to the server, but it closed connection because of keepalive timeout.
// We have to restart request if possible.
// On RECEIVE - if we received something - then this exception is real and unexpected error.
// If we didn't receive anything - we can restart request again as it can be
debug(requests) tracef("Exception on receive response: %s", e.msg);
if ( _response._responseHeaders.length != 0 )
{
_stream.close();
throw new RequestException("Unexpected network error");
}
}
if ( serverPrematurelyClosedConnection()
&& !restartedRequest
&& isIdempotent(_method)
) {
///
/// We didn't receive any data (keepalive connectioin closed?)
/// and we can restart this request.
/// Go ahead.
///
debug(requests) tracef("Server closed keepalive connection");
assert(_cm.get(_uri.scheme, _uri.host, _uri.port) == _stream);
_cm.del(_uri.scheme, _uri.host, _uri.port);
_stream.close();
_stream = null;
restartedRequest = true;
goto connect;
}
if ( _useStreaming ) {
if ( _response._receiveAsRange.activated ) {
debug(requests) trace("streaming_in activated");
return _response;
} else {
// this can happen if whole response body received together with headers
_response._receiveAsRange.data = _response.responseBody.data;
}
}
close_connection_if_not_keepalive(_stream);
if ( _verbosity >= 1 ) {
writeln(">> Connect time: ", _response._connectedAt - _response._startedAt);
writeln(">> Request send time: ", _response._requestSentAt - _response._connectedAt);
writeln(">> Response recv time: ", _response._finishedAt - _response._requestSentAt);
}
if ( willFollowRedirect ) {
debug(requests) trace("going to follow redirect");
if ( _history.length >= _maxRedirects ) {
_stream = null;
throw new MaxRedirectsException("%d redirects reached maxRedirects %d.".format(_history.length, _maxRedirects));
}
// "location" in response already checked in canFollowRedirect
immutable new_location = *("location" in _response.responseHeaders);
immutable current_uri = _uri, next_uri = uriFromLocation(_uri, new_location);
if ( _method == "GET" && _response.code == 301 ) {
_permanent_redirects[_uri] = new_location;
}
// save current response for history
_history ~= _response;
// prepare new response (for redirected request)
_response = new HTTPResponse;
_response.uri = current_uri;
_response.finalURI = next_uri;
_stream = null;
// set new uri
_uri = next_uri;
debug(requests) tracef("Redirected to %s", next_uri);
if ( _method != "GET" && _response.code != 307 && _response.code != 308 ) {
// 307 and 308 do not change method
return this.get();
}
if ( restartedRequest ) {
debug(requests) trace("Rare event: clearing 'restartedRequest' on redirect");
restartedRequest = false;
}
goto connect;
}
_response._history = _history;
return _response;
}
/// WRAPPERS
///
/// send file(s) using POST and multipart form.
/// This wrapper will be deprecated, use post with MultipartForm - it is more general and clear.
/// Parameters:
/// url = url
/// files = array of PostFile structures
/// Returns:
/// Response
/// Each PostFile structure contain path to file, and optional field name and content type.
/// If no field name provided, then basename of the file will be used.
/// application/octet-stream is default when no content type provided.
/// Example:
/// ---------------------------------------------------------------
/// PostFile[] files = [
/// {fileName:"tests/abc.txt", fieldName:"abc", contentType:"application/octet-stream"},
/// {fileName:"tests/test.txt"}
/// ];
/// rs = rq.exec!"POST"("http://httpbin.org/post", files);
/// ---------------------------------------------------------------
///
deprecated("Use Request() instead of HTTPRequest(); will be removed 2019-07")
HTTPResponse exec(string method="POST")(string url, PostFile[] files) if (method=="POST") {
MultipartForm multipart;
File[] toClose;
foreach(ref f; files) {
File file = File(f.fileName, "rb");
toClose ~= file;
string fileName = f.fileName ? f.fileName : f.fieldName;
string contentType = f.contentType ? f.contentType : "application/octetstream";
multipart.add(f.fieldName, new FormDataFile(file), ["filename":fileName, "Content-Type": contentType]);
}
auto res = exec!"POST"(url, multipart);
toClose.each!"a.close";
return res;
}
///
/// exec request with parameters when you can use dictionary (when you have no duplicates in parameter names)
/// Consider switch to exec(url, QueryParams) as it more generic and clear.
/// Parameters:
/// url = url
/// params = dictionary with field names as keys and field values as values.
/// Returns:
/// Response
deprecated("Use Request() instead of HTTPRequest(); will be removed 2019-07")
HTTPResponse exec(string method="GET")(string url, string[string] params) {
return exec!method(url, params.byKeyValue.map!(p => QueryParam(p.key, p.value)).array);
}
///
/// GET request. Simple wrapper over exec!"GET"
/// Params:
/// args = request parameters. see exec docs.
///
deprecated("Use Request() instead of HTTPRequest; will be removed 2019-07")
HTTPResponse get(A...)(A args) {
return exec!"GET"(args);
}
///
/// POST request. Simple wrapper over exec!"POST"
/// Params:
/// uri = endpoint uri
/// args = request parameters. see exec docs.
///
deprecated("Use Request() instead of HTTPRequest; will be removed 2019-07")
HTTPResponse post(A...)(string uri, A args) {
return exec!"POST"(uri, args);
}
import requests.request;
// we use this if we send from ubyte[][] and user provided Content-Length
private void sendFlattenContent(NetworkStream _stream) {
while ( !_postData.empty ) {
auto chunk = _postData.front;
_stream.send(chunk);
_postData.popFront;
}
debug(requests) tracef("sent");
}
// we use this if we send from ubyte[][] as chunked content
private void sendChunkedContent(NetworkStream _stream) {
while ( !_postData.empty ) {
auto chunk = _postData.front;
auto chunkHeader = "%x\r\n".format(chunk.length);
debug(requests) tracef("sending %s%s", chunkHeader, cast(string)chunk);
_stream.send(chunkHeader);
_stream.send(chunk);
_stream.send("\r\n");
debug(requests) tracef("chunk sent");
_postData.popFront;
}
debug(requests) tracef("sent");
_stream.send("0\r\n\r\n");
}
HTTPResponse exec_from_range(InputRangeAdapter postData)
do {
_postData = postData;
debug(requests) tracef("exec from range");
NetworkStream _stream;
_response = new HTTPResponse;
_history.length = 0;
_response.uri = _uri;
_response.finalURI = _uri;
bool restartedRequest = false;
bool send_flat;
connect:
_contentReceived = 0;
_response._startedAt = Clock.currTime;
assert(_stream is null);
_stream = _cm.get(_uri.scheme, _uri.host, _uri.port);
if ( _stream is null ) {
debug(requests) trace("create new connection");
_stream = setupConnection();
} else {
debug(requests) trace("reuse old connection");
}
assert(_stream !is null);
if ( !_stream.isConnected ) {
debug(requests) trace("disconnected stream on enter");
if ( !restartedRequest ) {
debug(requests) trace("disconnected stream on enter: retry");
assert(_cm.get(_uri.scheme, _uri.host, _uri.port) == _stream);
_cm.del(_uri.scheme, _uri.host, _uri.port);
_stream.close();
_stream = null;
restartedRequest = true;
goto connect;
}
debug(requests) trace("disconnected stream on enter: return response");
//_stream = null;
return _response;
}
_response._connectedAt = Clock.currTime;
Appender!string req;
req.put(requestString());
auto h = requestHeaders;
if ( _contentType ) {
safeSetHeader(h, _userHeaders.ContentType, "Content-Type", _contentType);
}
if ( _postData.length >= 0 )
{
// we know t
safeSetHeader(h, _userHeaders.ContentLength, "Content-Length", to!string(_postData.length));
}
if ( _userHeaders.ContentLength || "Content-Length" in h )
{
debug(requests) tracef("User provided content-length for chunked content");
send_flat = true;
}
else
{
h["Transfer-Encoding"] = "chunked";
send_flat = false;
}
h.byKeyValue.
map!(kv => kv.key ~ ": " ~ kv.value ~ "\r\n").
each!(h => req.put(h));
req.put("\r\n");
debug(requests) tracef("send <%s>", req.data);
if ( _verbosity >= 1 ) {
req.data.splitLines.each!(a => writeln("> " ~ a));
}
try {
// send headers
_stream.send(req.data());
// send body
if ( send_flat ) {
sendFlattenContent(_stream);
} else {
sendChunkedContent(_stream);
}
_response._requestSentAt = Clock.currTime;
debug(requests) trace("starting receive response");
receiveResponse(_stream);
debug(requests) trace("finished receive response");
_response._finishedAt = Clock.currTime;
}
catch (NetworkException e)
{
_stream.close();
throw new RequestException("Network error during data exchange");
}
if ( serverPrematurelyClosedConnection()
&& !restartedRequest
&& isIdempotent(_method)
) {
///
/// We didn't receive any data (keepalive connectioin closed?)
/// and we can restart this request.
/// Go ahead.
///
debug(requests) tracef("Server closed keepalive connection");
assert(_cm.get(_uri.scheme, _uri.host, _uri.port) == _stream);
_cm.del(_uri.scheme, _uri.host, _uri.port);
_stream.close();
_stream = null;
restartedRequest = true;
goto connect;
}
if ( _useStreaming ) {
if ( _response._receiveAsRange.activated ) {
debug(requests) trace("streaming_in activated");
return _response;
} else {
// this can happen if whole response body received together with headers
_response._receiveAsRange.data = _response.responseBody.data;
}
}
close_connection_if_not_keepalive(_stream);
if ( _verbosity >= 1 ) {
writeln(">> Connect time: ", _response._connectedAt - _response._startedAt);
writeln(">> Request send time: ", _response._requestSentAt - _response._connectedAt);
writeln(">> Response recv time: ", _response._finishedAt - _response._requestSentAt);
}
if ( willFollowRedirect ) {
if ( _history.length >= _maxRedirects ) {
_stream = null;
throw new MaxRedirectsException("%d redirects reached maxRedirects %d.".format(_history.length, _maxRedirects));
}
// "location" in response already checked in canFollowRedirect
immutable new_location = *("location" in _response.responseHeaders);
immutable current_uri = _uri, next_uri = uriFromLocation(_uri, new_location);
immutable get_or_head = _method == "GET" || _method == "HEAD";
immutable code = _response.code;
// save current response for history
_history ~= _response;
if ( code == 301 )
{
// permanent redirect and change method
_permanent_redirects[_uri] = new_location;
if ( !get_or_head )
{
_method = "GET";
}
}
if ( (code == 302 || code == 303) && !get_or_head)
{
// only change method
_method = "GET";
}
if ( code == 307 )
{
// no change method, no permanent
}
if ( code == 308 )
{
// permanent redirection and do not change method
_permanent_redirects[_uri] = new_location;
}
// prepare new response (for redirected request)
_response = new HTTPResponse;
_response.uri = current_uri;
_response.finalURI = next_uri;
_stream = null;
// set new uri
this._uri = next_uri;
debug(requests) tracef("Redirected to %s", next_uri);
if ( restartedRequest ) {
debug(requests) trace("Rare event: clearing 'restartedRequest' on redirect");
restartedRequest = false;
}
if ( _method == "GET")
{
return exec_from_parameters();
}
goto connect;
}
_response._history = _history;
return _response;
}
HTTPResponse exec_from_multipart_form(MultipartForm form) {
import std.uuid;
import std.file;
_multipartForm = form;
debug(requests) tracef("exec from multipart form");
NetworkStream _stream;
_response = new HTTPResponse;
_response.uri = _uri;
_response.finalURI = _uri;
bool restartedRequest = false;
connect:
_contentReceived = 0;
_response._startedAt = Clock.currTime;
assert(_stream is null);
_stream = _cm.get(_uri.scheme, _uri.host, _uri.port);
if ( _stream is null ) {
debug(requests) trace("create new connection");
_stream = setupConnection();
} else {
debug(requests) trace("reuse old connection");
}
assert(_stream !is null);
if ( !_stream.isConnected ) {
debug(requests) trace("disconnected stream on enter");
if ( !restartedRequest ) {
debug(requests) trace("disconnected stream on enter: retry");
assert(_cm.get(_uri.scheme, _uri.host, _uri.port) == _stream);
_cm.del(_uri.scheme, _uri.host, _uri.port);
_stream.close();
_stream = null;
restartedRequest = true;
goto connect;
}
debug(requests) trace("disconnected stream on enter: return response");
//_stream = null;
return _response;
}
_response._connectedAt = Clock.currTime;
Appender!string req;
req.put(requestString());
string boundary = randomUUID().toString;
string[] partHeaders;
size_t contentLength;
foreach(ref part; _multipartForm._sources) {
string h = "--" ~ boundary ~ "\r\n";
string disposition = `form-data; name="%s"`.format(part.name);
string optionals = part.
parameters.byKeyValue().
filter!(p => p.key!="Content-Type").
map! (p => "%s=%s".format(p.key, p.value)).
join("; ");
h ~= `Content-Disposition: ` ~ [disposition, optionals].join("; ") ~ "\r\n";
auto contentType = "Content-Type" in part.parameters;
if ( contentType ) {
h ~= "Content-Type: " ~ *contentType ~ "\r\n";
}
h ~= "\r\n";
partHeaders ~= h;
contentLength += h.length + part.input.getSize() + "\r\n".length;
}
contentLength += "--".length + boundary.length + "--\r\n".length;
auto h = requestHeaders();
safeSetHeader(h, _userHeaders.ContentType, "Content-Type", "multipart/form-data; boundary=" ~ boundary);
safeSetHeader(h, _userHeaders.ContentLength, "Content-Length", to!string(contentLength));
h.byKeyValue.
map!(kv => kv.key ~ ": " ~ kv.value ~ "\r\n").
each!(h => req.put(h));
req.put("\r\n");
debug(requests) trace(req.data);
if ( _verbosity >= 1 ) req.data.splitLines.each!(a => writeln("> " ~ a));
try {
_stream.send(req.data());
foreach(ref source; _multipartForm._sources) {
debug(requests) tracef("sending part headers <%s>", partHeaders.front);
_stream.send(partHeaders.front);
partHeaders.popFront;
while (true) {
auto chunk = source.input.read();
if ( chunk.length <= 0 ) {
break;
}
_stream.send(chunk);
}
_stream.send("\r\n");
}
_stream.send("--" ~ boundary ~ "--\r\n");
_response._requestSentAt = Clock.currTime;
receiveResponse(_stream);
_response._finishedAt = Clock.currTime;
}
catch (NetworkException e) {
errorf("Error sending request: ", e.msg);
_stream.close();
return _response;
}
if ( serverPrematurelyClosedConnection()
&& !restartedRequest
&& isIdempotent(_method)
) {
///
/// We didn't receive any data (keepalive connectioin closed?)
/// and we can restart this request.
/// Go ahead.
///
debug(requests) tracef("Server closed keepalive connection");
assert(_cm.get(_uri.scheme, _uri.host, _uri.port) == _stream);
_cm.del(_uri.scheme, _uri.host, _uri.port);
_stream.close();
_stream = null;
restartedRequest = true;
goto connect;
}
if ( _useStreaming ) {
if ( _response._receiveAsRange.activated ) {
debug(requests) trace("streaming_in activated");
return _response;
} else {
// this can happen if whole response body received together with headers
_response._receiveAsRange.data = _response.responseBody.data;
}
}
close_connection_if_not_keepalive(_stream);
if ( _verbosity >= 1 ) {
writeln(">> Connect time: ", _response._connectedAt - _response._startedAt);
writeln(">> Request send time: ", _response._requestSentAt - _response._connectedAt);
writeln(">> Response recv time: ", _response._finishedAt - _response._requestSentAt);
}
if ( willFollowRedirect ) {
if ( _history.length >= _maxRedirects ) {
_stream = null;
throw new MaxRedirectsException("%d redirects reached maxRedirects %d.".format(_history.length, _maxRedirects));
}
// "location" in response already checked in canFollowRedirect
immutable new_location = *("location" in _response.responseHeaders);
immutable current_uri = _uri;
immutable next_uri = uriFromLocation(_uri, new_location);
immutable get_or_head = _method == "GET" || _method == "HEAD";
immutable code = _response.code;
// save current response for history
_history ~= _response;
if ( code == 301 )
{
// permanent redirect and change method
_permanent_redirects[_uri] = new_location;
if ( !get_or_head )
{
_method = "GET";
}
}
if ( (code == 302 || code == 303) && !get_or_head)
{
// only change method
_method = "GET";
}
if ( code == 307 )
{
// no change method, no permanent
}
if ( code == 308 )
{
// permanent redirection and do not change method
_permanent_redirects[_uri] = new_location;
}
// prepare new response (for redirected request)
_response = new HTTPResponse;
_response.uri = current_uri;
_response.finalURI = next_uri;
_stream = null;
// set new uri
this._uri = next_uri;
debug(requests) tracef("Redirected to %s", next_uri);
if ( restartedRequest ) {
debug(requests) trace("Rare event: clearing 'restartedRequest' on redirect");
restartedRequest = false;
}
if ( _method == "GET")
{
return exec_from_parameters();
}
goto connect;
}
_response._history = _history;
return _response;
}
HTTPResponse exec_from_parameters() {
debug(requests) tracef("exec from parameters request");
assert(_uri != URI.init);
NetworkStream _stream;
_response = new HTTPResponse;
_history.length = 0;
_response.uri = _uri;
_response.finalURI = _uri;
bool restartedRequest = false; // True if this is restarted keepAlive request
connect:
if ( _method == "GET" && _uri in _permanent_redirects ) {
debug(requests) trace("use parmanent redirects cache");
_uri = uriFromLocation(_uri, _permanent_redirects[_uri]);
_response._finalURI = _uri;
}
_contentReceived = 0;
_response._startedAt = Clock.currTime;
assert(_stream is null);
_stream = _cm.get(_uri.scheme, _uri.host, _uri.port);
if ( _stream is null ) {
debug(requests) trace("create new connection");
_stream = setupConnection();
} else {
debug(requests) trace("reuse old connection");
}
assert(_stream !is null);
if ( !_stream.isConnected ) {
debug(requests) trace("disconnected stream on enter");
if ( !restartedRequest ) {
debug(requests) trace("disconnected stream on enter: retry");
assert(_cm.get(_uri.scheme, _uri.host, _uri.port) == _stream);
_cm.del(_uri.scheme, _uri.host, _uri.port);
_stream.close();
_stream = null;
restartedRequest = true;
goto connect;
}
debug(requests) trace("disconnected stream on enter: return response");
//_stream = null;
return _response;
}
_response._connectedAt = Clock.currTime;
auto h = requestHeaders();
Appender!string req;
string encoded;
switch (_method) {
case "POST","PUT","PATCH":
encoded = params2query(_params);
safeSetHeader(h, _userHeaders.ContentType, "Content-Type", "application/x-www-form-urlencoded");
safeSetHeader(h, _userHeaders.ContentLength, "Content-Length", to!string(encoded.length));
req.put(requestString());
break;
default:
req.put(requestString(_params));
}
h.byKeyValue.
map!(kv => kv.key ~ ": " ~ kv.value ~ "\r\n").
each!(h => req.put(h));
req.put("\r\n");
if ( encoded ) {
req.put(encoded);
}
debug(requests) trace(req.data);
if ( _verbosity >= 1 ) {
req.data.splitLines.each!(a => writeln("> " ~ a));
}
//
// Now send request and receive response
//
try {
_stream.send(req.data());
_response._requestSentAt = Clock.currTime;
debug(requests) trace("starting receive response");
receiveResponse(_stream);
debug(requests) tracef("done receive response");
_response._finishedAt = Clock.currTime;
}
catch (NetworkException e) {
// On SEND this can means:
// we started to send request to the server, but it closed connection because of keepalive timeout.
// We have to restart request if possible.
// On RECEIVE - if we received something - then this exception is real and unexpected error.
// If we didn't receive anything - we can restart request again as it can be
debug(requests) tracef("Exception on receive response: %s", e.msg);
if ( _response._responseHeaders.length != 0 )
{
_stream.close();
throw new RequestException("Unexpected network error");
}
}
if ( serverPrematurelyClosedConnection()
&& !restartedRequest
&& isIdempotent(_method)
) {
///
/// We didn't receive any data (keepalive connectioin closed?)
/// and we can restart this request.
/// Go ahead.
///
debug(requests) tracef("Server closed keepalive connection");
assert(_cm.get(_uri.scheme, _uri.host, _uri.port) == _stream);
_cm.del(_uri.scheme, _uri.host, _uri.port);
_stream.close();
_stream = null;
restartedRequest = true;
goto connect;
}
if ( _useStreaming ) {
if ( _response._receiveAsRange.activated ) {
debug(requests) trace("streaming_in activated");
return _response;
} else {
// this can happen if whole response body received together with headers
_response._receiveAsRange.data = _response.responseBody.data;
}
}
close_connection_if_not_keepalive(_stream);
if ( _verbosity >= 1 ) {
writeln(">> Connect time: ", _response._connectedAt - _response._startedAt);
writeln(">> Request send time: ", _response._requestSentAt - _response._connectedAt);
writeln(">> Response recv time: ", _response._finishedAt - _response._requestSentAt);
}
if ( willFollowRedirect ) {
debug(requests) trace("going to follow redirect");
if ( _history.length >= _maxRedirects ) {
_stream = null;
throw new MaxRedirectsException("%d redirects reached maxRedirects %d.".format(_history.length, _maxRedirects));
}
// "location" in response already checked in canFollowRedirect
immutable new_location = *("location" in _response.responseHeaders);
immutable current_uri = _uri;
immutable next_uri = uriFromLocation(_uri, new_location);
immutable get_or_head = _method == "GET" || _method == "HEAD";
immutable code = _response.code;
// save current response for history
_history ~= _response;
if ( code == 301 )
{
// permanent redirect and change method
_permanent_redirects[_uri] = new_location;
if ( !get_or_head )
{
_method = "GET";
}
}
if ( (code == 302 || code == 303) && !get_or_head)
{
// only change method
_method = "GET";
}
if ( code == 307 )
{
// no change method, no permanent
}
if ( code == 308 )
{
// permanent redirection and do not change method
_permanent_redirects[_uri] = new_location;
}
// prepare new response (for redirected request)
_response = new HTTPResponse;
_response.uri = current_uri;
_response.finalURI = next_uri;
_stream = null;
// set new uri
_uri = next_uri;
debug(requests) tracef("Redirected to %s", next_uri);
//if ( _method != "GET" && _response.code != 307 && _response.code != 308 ) {
// // 307 and 308 do not change method
// return exec_from_parameters(r);
//}
if ( restartedRequest ) {
debug(requests) trace("Rare event: clearing 'restartedRequest' on redirect");
restartedRequest = false;
}
goto connect;
}
_response._history = _history;
return _response;
}
HTTPResponse execute(Request r)
{
_method = r.method;
_uri = r.uri;
_useStreaming = r.useStreaming;
_permanent_redirects = r.permanent_redirects;
_maxRedirects = r.maxRedirects;
_authenticator = r.authenticator;
_maxHeadersLength = r.maxHeadersLength;
_maxContentLength = r.maxContentLength;
_verbosity = r.verbosity;
_keepAlive = r.keepAlive;
_bufferSize = r.bufferSize;
_proxy = r.proxy;
_timeout = r.timeout;
_contentType = r.contentType;
_socketFactory = r.socketFactory;
_sslOptions = r.sslOptions;
_bind = r.bind;
_headers = r.headers;
_userHeaders = r.userHeaders;
_params = r.params;
// this assignments increments refCounts, so we can't use const Request
// but Request is anyway struct and called by-value
_cm = r.cm;
_cookie = r.cookie;
debug(requests) trace("serving %s".format(r));
if ( !r.postData.empty)
{
return exec_from_range(r.postData);
}
if ( r.hasMultipartForm )
{
return exec_from_multipart_form(r.multipartForm);
}
auto rs = exec_from_parameters();
return rs;
}
}
version(vibeD) {
import std.json;
package string httpTestServer() {
return "http://httpbin.org/";
}
package string fromJsonArrayToStr(JSONValue v) {
return v.str;
}
}
else {
import std.json;
package string httpTestServer() {
return "http://127.0.0.1:8081/";
}
package string fromJsonArrayToStr(JSONValue v) {
return cast(string)(v.array.map!"cast(ubyte)a.integer".array);
}
}
|
D
|
//
//----------------------------------------------------------------------
// Copyright 2007-2011 Mentor Graphics Corporation
// Copyright 2007-2010 Cadence Design Systems, Inc.
// Copyright 2010 Synopsys, Inc.
// Copyright 2014 Coverify Systems Technology
// All Rights Reserved Worldwide
//
// Licensed under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in
// writing, software distributed under the License is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied. See
// the License for the specific language governing
// permissions and limitations under the License.
//----------------------------------------------------------------------
// typedef class uvm_test_done_objection;
// typedef class uvm_sequencer_base;
// typedef class uvm_domain;
// typedef class uvm_task_phase;
//------------------------------------------------------------------------------
//
// Class: uvm_phase
//
//------------------------------------------------------------------------------
//
// This base class defines everything about a phase: behavior, state, and context.
//
// To define behavior, it is extended by UVM or the user to create singleton
// objects which capture the definition of what the phase does and how it does it.
// These are then cloned to produce multiple nodes which are hooked up in a graph
// structure to provide context: which phases follow which, and to hold the state
// of the phase throughout its lifetime.
// UVM provides default extensions of this class for the standard runtime phases.
// VIP Providers can likewise extend this class to define the phase functor for a
// particular component context as required.
//
// *Phase Definition*
//
// Singleton instances of those extensions are provided as package variables.
// These instances define the attributes of the phase (not what state it is in)
// They are then cloned into schedule nodes which point back to one of these
// implementations, and calls it's virtual task or function methods on each
// participating component.
// It is the base class for phase functors, for both predefined and
// user-defined phases. Per-component overrides can use a customized imp.
//
// To create custom phases, do not extend uvm_phase directly: see the
// three predefined extended classes below which encapsulate behavior for
// different phase types: task, bottom-up function and top-down function.
//
// Extend the appropriate one of these to create a uvm_YOURNAME_phase class
// (or YOURPREFIX_NAME_phase class) for each phase, containing the default
// implementation of the new phase, which must be a uvm_component-compatible
// delegate, and which may be a null implementation. Instantiate a singleton
// instance of that class for your code to use when a phase handle is required.
// If your custom phase depends on methods that are not in uvm_component, but
// are within an extended class, then extend the base YOURPREFIX_NAME_phase
// class with parameterized component class context as required, to create a
// specialized functor which calls your extended component class methods.
// This scheme ensures compile-safety for your extended component classes while
// providing homogeneous base types for APIs and underlying data structures.
//
// *Phase Context*
//
// A schedule is a coherent group of one or mode phase/state nodes linked
// together by a graph structure, allowing arbitrary linear/parallel
// relationships to be specified, and executed by stepping through them in
// the graph order.
// Each schedule node points to a phase and holds the execution state of that
// phase, and has optional links to other nodes for synchronization.
//
// The main operations are: construct, add phases, and instantiate
// hierarchically within another schedule.
//
// Structure is a DAG (Directed Acyclic Graph). Each instance is a node
// connected to others to form the graph. Hierarchy is overlaid with m_parent.
// Each node in the graph has zero or more successors, and zero or more
// predecessors. No nodes are completely isolated from others. Exactly
// one node has zero predecessors. This is the root node. Also the graph
// is acyclic, meaning for all nodes in the graph, by following the forward
// arrows you will never end up back where you started but you will eventually
// reach a node that has no successors.
//
// *Phase State*
//
// A given phase may appear multiple times in the complete phase graph, due
// to the multiple independent domain feature, and the ability for different
// VIP to customize their own phase schedules perhaps reusing existing phases.
// Each node instance in the graph maintains its own state of execution.
//
// *Phase Handle*
//
// Handles of this type uvm_phase are used frequently in the API, both by
// the user, to access phasing-specific API, and also as a parameter to some
// APIs. In many cases, the singleton package-global phase handles can be
// used (eg. connect_ph, run_ph) in APIs. For those APIs that need to look
// up that phase in the graph, this is done automatically.
module uvm.base.uvm_phase;
import uvm.base.uvm_object;
import uvm.base.uvm_objection;
import uvm.base.uvm_object_globals;
import uvm.base.uvm_globals;
import uvm.base.uvm_component;
import uvm.base.uvm_domain;
import uvm.base.uvm_root;
import uvm.base.uvm_task_phase;
import uvm.meta.misc;
import uvm.meta.mcd;
import esdl.base.core: FifoObj, waitDelta, wait,
Fork, abortForks, getSimTime, sleep;
import esdl.data.sync;
import uvm.base.uvm_cmdline_processor;
import std.string: format;
import std.conv: to;
final class uvm_once_phase
{
@uvm_immutable_sync private SyncAssoc!(uvm_phase, bool) _m_executing_phases;
// private static mailbox #(uvm_phase) m_phase_hopper = new();
@uvm_immutable_sync private FifoObj!uvm_phase _m_phase_hopper;
@uvm_protected_sync private bool _m_phase_trace;
@uvm_private_sync private bool _m_use_ovm_run_semantic;
this() {
synchronized(this) {
_m_phase_hopper = new FifoObj!uvm_phase;
_m_executing_phases = new SyncAssoc!(uvm_phase, bool);
}
}
}
class uvm_phase: uvm_object
{
mixin(uvm_once_sync!uvm_once_phase);
mixin(uvm_sync!uvm_phase);
// not required in vlang
//`uvm_object_utils(uvm_phase)
//--------------------
// Group: Construction
//--------------------
// Function: new
//
// Create a new phase node, with a name and a note of its type
// name - name of this phase
// type - task, topdown func or bottomup func
//
public this(string name="uvm_phase",
uvm_phase_type phase_type=UVM_PHASE_SCHEDULE,
uvm_phase parent=null) {
synchronized(this) {
super(name);
_m_state = new WithEvent!uvm_phase_state();
_m_jump_fwd = new WithEvent!bool();
_m_jump_bkwd = new WithEvent!bool();
_m_predecessors = new SyncAssoc!(uvm_phase, bool);
_m_successors = new SyncAssoc!(uvm_phase, bool);
_m_phase_type = phase_type;
if(name == "run") {
_phase_done = uvm_test_done_objection.get();
}
else {
_phase_done = new uvm_objection(name ~ "_objection");
}
_m_state = UVM_PHASE_DORMANT;
_m_run_count = 0;
_m_parent = parent;
uvm_cmdline_processor clp = uvm_cmdline_processor.get_inst();
string val;
debug(UVM_PHASE_TRACE) {
m_phase_trace = true; // once variable
}
else {
if(clp.get_arg_value("+UVM_PHASE_TRACE", val)) {
m_phase_trace = true; // once variable
}
else {
m_phase_trace = false;
}
}
if(clp.get_arg_value("+UVM_USE_OVM_RUN_SEMANTIC", val)) {
m_use_ovm_run_semantic = true; // once variable
}
else {
m_use_ovm_run_semantic = false;
}
if(parent is null && (phase_type is UVM_PHASE_SCHEDULE ||
phase_type is UVM_PHASE_DOMAIN )) {
//_m_parent = this;
_m_end_node = new uvm_phase(name ~ "_end", UVM_PHASE_TERMINAL, this);
this.m_successors[_m_end_node] = true;
_m_end_node.m_predecessors[this] = true;
}
}
}
// Function: get_phase_type
//
// Returns the phase type as defined by <uvm_phase_type>
//
final public uvm_phase_type get_phase_type() {
synchronized(this) {
return _m_phase_type;
}
}
//-------------
// Group: State
//-------------
// Function: get_state
//
// Accessor to return current state of this phase
//
final public uvm_phase_state get_state() {
synchronized(this) {
return _m_state;
}
}
// Function: get_run_count
//
// Accessor to return the integer number of times this phase has executed
//
final public int get_run_count() {
synchronized(this)
return _m_run_count;
}
// Function: find_by_name
//
// Locate a phase node with the specified ~name~ and return its handle.
// With ~stay_in_scope~ set, searches only within this phase's schedule or
// domain.
//
final public uvm_phase find_by_name(string name, bool stay_in_scope = true) {
// TBD full search
//$display({"\nFIND node named '", name,"' within ", get_name()," (scope ", m_phase_type.name(),")", (stay_in_scope) ? " staying within scope" : ""});
if(get_name() == name) {
return this;
}
uvm_phase retval = m_find_predecessor_by_name(name, stay_in_scope, this);
if(retval is null) {
retval = m_find_successor_by_name(name, stay_in_scope, this);
}
return retval;
}
// Function: find
//
// Locate the phase node with the specified ~phase~ IMP and return its handle.
// With ~stay_in_scope~ set, searches only within this phase's schedule or
// domain.
//
public uvm_phase find(uvm_phase phase, bool stay_in_scope = true) {
// TBD full search
//$display({"\nFIND node '", phase.get_name(),"' within ", get_name()," (scope ", m_phase_type.name(),")", (stay_in_scope) ? " staying within scope" : ""});
if(phase is _m_imp || phase is this) {
return phase;
}
uvm_phase retval = m_find_predecessor(phase, stay_in_scope, this);
if(retval is null) {
retval = m_find_successor(phase, stay_in_scope, this);
}
return retval;
}
// This function is named "is" in SV version, but since "is" is a
// keyword in dlang, we name this function "is_same" here.
// Function: is_same
//
// returns true if the containing uvm_phase refers to the same phase
// as the phase argument, false otherwise
//
final public bool is_same(uvm_phase phase) {
synchronized(this) {
return (_m_imp is phase || this is phase);
}
}
// Function: is_before
//
// Returns 1 if the containing uvm_phase refers to a phase that is earlier
// than the phase argument, 0 otherwise
//
final public bool is_before(uvm_phase phase) {
synchronized(this) {
//$display("this=%s is before phase=%s?", get_name(), phase.get_name());
// TODO: add support for 'stay_in_scope=1' functionality
return (!is_same(phase) && m_find_successor(phase, false, this) !is null);
}
}
// Function: is_after
//
// returns 1 if the containing uvm_phase refers to a phase that is later
// than the phase argument, 0 otherwise
//
final public bool is_after(uvm_phase phase) {
synchronized(this) {
//$display("this=%s is after phase=%s?", get_name(), phase.get_name());
// TODO: add support for 'stay_in_scope=1' functionality
return (!is_same(phase) && m_find_predecessor(phase, false, this) !is null);
}
}
//-----------------
// Group: Callbacks
//-----------------
// Function: exec_func
//
// Implements the functor/delegate functionality for a function phase type
// comp - the component to execute the functionality upon
// phase - the phase schedule that originated this phase call
//
public void exec_func(uvm_component comp, uvm_phase phase) { }
// Function: exec_task
//
// Implements the functor/delegate functionality for a task phase type
// comp - the component to execute the functionality upon
// phase - the phase schedule that originated this phase call
//
// task
public void exec_task(uvm_component comp, uvm_phase phase) { }
//----------------
// Group: Schedule
//----------------
// Function: add
//
// Build up a schedule structure inserting phase by phase, specifying linkage
//
// Phases can be added anywhere, in series or parallel with existing nodes
//
// phase - handle of singleton derived imp containing actual functor.
// by default the new phase is appended to the schedule
// with_phase - specify to add the new phase in parallel with this one
// after_phase - specify to add the new phase as successor to this one
// before_phase - specify to add the new phase as predecessor to this one
//
final public void add(uvm_phase phase,
uvm_phase with_phase = null,
uvm_phase after_phase = null,
uvm_phase before_phase = null) {
uvm_phase new_node, begin_node, end_node;
if(phase is null) {
uvm_fatal("PH/NULL", "add: phase argument is null");
}
if(with_phase !is null && with_phase.get_phase_type() is UVM_PHASE_IMP) {
string nm = with_phase.get_name();
with_phase = find(with_phase);
if(with_phase is null) {
uvm_fatal("PH_BAD_ADD",
"cannot find with_phase '" ~ nm ~ "' within node '" ~
get_name() ~ "'");
}
}
if(before_phase !is null &&
before_phase.get_phase_type() is UVM_PHASE_IMP) {
string nm = before_phase.get_name();
before_phase = find(before_phase);
if(before_phase is null) {
uvm_fatal("PH_BAD_ADD",
"cannot find before_phase '" ~ nm ~ "' within node '" ~
get_name() ~ "'");
}
}
if(after_phase !is null &&
after_phase.get_phase_type() is UVM_PHASE_IMP) {
string nm = after_phase.get_name();
after_phase = find(after_phase);
if(after_phase is null) {
uvm_fatal("PH_BAD_ADD",
"cannot find after_phase '" ~ nm ~ "' within node '" ~
get_name() ~ "'");
}
}
if(with_phase !is null && (after_phase !is null ||
before_phase !is null)) {
uvm_fatal("PH_BAD_ADD",
"cannot specify both 'with' and 'before/after' "
"phase relationships");
}
if(before_phase is this || after_phase is m_end_node ||
with_phase is m_end_node) {
uvm_fatal("PH_BAD_ADD",
"cannot add before { node, after end node, or "
"with end nodes");
}
// If we are inserting a new "leaf node"
if(phase.get_phase_type() is UVM_PHASE_IMP) {
new_node = new uvm_phase(phase.get_name(), UVM_PHASE_NODE, this);
new_node.m_imp = phase;
begin_node = new_node;
end_node = new_node;
}
// We are inserting an existing schedule
else {
begin_node = phase;
end_node = phase.m_end_node;
phase.m_parent = this;
}
// If 'with_phase' is us, then insert node in parallel
/*
if(with_phase is this) {
after_phase = this;
before_phase = m_end_node;
}
*/
// If no before/after/with specified, insert at end of this schedule
if(with_phase is null && after_phase is null && before_phase is null) {
before_phase = m_end_node;
}
if(m_phase_trace) {
uvm_phase_type typ = phase.get_phase_type();
uvm_info("PH/TRC/ADD_PH",
get_name() ~ " (" ~ m_phase_type.to!string ~
") ADD_PHASE: phase=" ~ phase.get_full_name() ~ " (" ~
typ.to!string ~ ", inst_id=" ~
format("%0d", phase.get_inst_id()) ~ ")" ~
" with_phase=" ~ ((with_phase is null) ? "null" :
with_phase.get_name()) ~
" after_phase=" ~ ((after_phase is null) ? "null" :
after_phase.get_name()) ~
" before_phase=" ~ ((before_phase is null) ? "null" :
before_phase.get_name()) ~
" new_node=" ~ ((new_node is null) ? "null" :
(new_node.get_name() ~ " inst_id=",
format("%0d", new_node.get_inst_id()))) ~
" begin_node=" ~ ((begin_node is null) ? "null" :
begin_node.get_name()) ~
" end_node=" ~ ((end_node is null) ? "null" :
end_node.get_name()), UVM_DEBUG);
}
// INSERT IN PARALLEL WITH 'WITH' PHASE
if(with_phase !is null) {
begin_node.m_predecessors = with_phase.m_predecessors.dup;
end_node.m_successors = with_phase.m_successors.dup;
foreach(pred, unused; with_phase.m_predecessors) {
pred.m_successors[begin_node] = true;
}
foreach(succ, unused; with_phase.m_successors) {
succ.m_predecessors[end_node] = true;
}
}
// INSERT BEFORE PHASE
else if(before_phase !is null && after_phase is null) {
begin_node.m_predecessors = before_phase.m_predecessors.dup;
end_node.m_successors[before_phase] = true;
foreach(pred, unused; before_phase.m_predecessors) {
pred.m_successors.remove(before_phase);
pred.m_successors[begin_node] = true;
}
before_phase.m_predecessors.clear();
before_phase.m_predecessors[end_node] = true;
}
// INSERT AFTER PHASE
else if(before_phase is null && after_phase !is null) {
end_node.m_successors = after_phase.m_successors.dup;
begin_node.m_predecessors[after_phase] = true;
foreach(succ, unused; after_phase.m_successors) {
succ.m_predecessors.remove(after_phase);
succ.m_predecessors[end_node] = true;
}
after_phase.m_successors.remove();
after_phase.m_successors[begin_node] = true;
}
// IN BETWEEN 'BEFORE' and 'AFTER' PHASES
else if(before_phase !is null && after_phase !is null) {
if(!after_phase.is_before(before_phase)) {
uvm_fatal("PH_ADD_PHASE", "Phase '" ~ before_phase.get_name() ~
"' is not before phase '" ~ after_phase.get_name() ~ "'");
}
// before and after? add 1 pred and 1 succ
begin_node.m_predecessors[after_phase] = true;
end_node.m_successors[before_phase] = true;
after_phase.m_successors[begin_node] = true;
before_phase.m_predecessors[end_node] = true;
if(before_phase in after_phase.m_successors) {
after_phase.m_successors.remove(before_phase);
before_phase.m_successors.remove(after_phase);
}
}
}
// Function: get_parent
//
// Returns the parent schedule node, if any, for hierarchical graph traversal
//
final public uvm_phase get_parent() {
synchronized(this) {
return _m_parent;
}
}
// Function: get_full_name
//
// Returns the full path from the enclosing domain down to this node.
// The singleton IMP phases have no hierarchy.
//
override public string get_full_name() {
synchronized(this) {
// string dom; -- redundant in SV implementation
if(m_phase_type is UVM_PHASE_IMP) {
return get_name();
}
string retval = get_domain_name();
string sch = get_schedule_name();
if(sch != "") {
retval ~= "." ~ sch;
}
if(m_phase_type !is UVM_PHASE_DOMAIN &&
m_phase_type !is UVM_PHASE_SCHEDULE) {
retval ~= "." ~ get_name();
}
return retval;
}
}
// Function: get_schedule
//
// Returns the topmost parent schedule node, if any, for hierarchical graph traversal
//
final public uvm_phase get_schedule(bool hier = false) {
uvm_phase sched = this;
if(hier) {
while(sched.m_parent !is null &&
(sched.m_parent.get_phase_type() is UVM_PHASE_SCHEDULE)) {
sched = sched.m_parent;
}
}
if(sched.m_phase_type is UVM_PHASE_SCHEDULE) {
return sched;
}
if(sched.m_phase_type is UVM_PHASE_NODE) {
auto parent = m_parent;
if(parent !is null && parent.m_phase_type !is UVM_PHASE_DOMAIN) {
return parent;
}
}
return null;
}
// Function: get_schedule_name
//
// Returns the schedule name associated with this phase node
//
final public string get_schedule_name(bool hier = 0) {
uvm_phase sched = get_schedule(hier);
if(sched is null) {
return "";
}
string s = sched.get_name();
while(sched.m_parent !is null && sched.m_parent !is sched &&
(sched.m_parent.get_phase_type() is UVM_PHASE_SCHEDULE)) {
sched = sched.m_parent;
s = sched.get_name() ~ (s.length > 0 ? "." : "") ~ s;
}
return s;
}
// Function: get_domain
//
// Returns the enclosing domain
//
final public uvm_domain get_domain() {
uvm_phase phase = this;
while(phase !is null && phase.m_phase_type !is UVM_PHASE_DOMAIN) {
phase = phase.m_parent;
}
if(phase is null) { // no parent domain
return null;
}
auto retval = cast(uvm_domain) phase;
if(retval is null) {
uvm_fatal("PH/INTERNAL", "get_domain: m_phase_type is DOMAIN but "
"$cast to uvm_domain fails");
}
return retval;
}
// Function: get_imp
//
// Returns the phase implementation for this this node.
// Returns null if this phase type is not a UVM_PHASE_LEAF_NODE.
//
final public uvm_phase get_imp() {
synchronized(this) {
return _m_imp;
}
}
// Function: get_domain_name
//
// Returns the domain name associated with this phase node
//
final public string get_domain_name() {
uvm_domain domain = get_domain();
if(domain is null) {
return "unknown";
}
return domain.get_name();
}
//-----------------------
// Group: Synchronization
//-----------------------
// Function: get_objection
//
// Return the <uvm_objection> that gates the termination of the phase.
//
final public uvm_objection get_objection() {
synchronized(this) {
return _phase_done;
}
}
// Function: raise_objection
//
// Raise an objection to ending this phase
// Provides components with greater control over the phase flow for
// processes which are not implicit objectors to the phase.
//
//| while(1) {
//| some_phase.raise_objection(this);
//| ...
//| some_phase.drop_objection(this);
//| }
//| ...
//
final public void raise_objection(uvm_object obj,
string description="",
int count=1) {
phase_done.raise_objection(obj, description, count);
}
// Function: drop_objection
//
// Drop an objection to ending this phase
//
// The drop is expected to be matched with an earlier raise.
//
final public void drop_objection(uvm_object obj,
string description="",
int count=1) {
phase_done.drop_objection(obj, description, count);
}
// Functions: sync and unsync
//
// Add soft sync relationships between nodes
//
// Summary of usage:
//| my_phase.sync(.target(domain)
//| [,.phase(phase)[,.with_phase(phase)]]);
//| my_phase.unsync(.target(domain)
//| [,.phase(phase)[,.with_phase(phase)]]);
//
// Components in different schedule domains can be phased independently or in sync
// with each other. An API is provided to specify synchronization rules between any
// two domains. Synchronization can be done at any of three levels:
//
// - the domain's whole phase schedule can be synchronized
// - a phase can be specified, to sync that phase with a matching counterpart
// - or a more detailed arbitrary synchronization between any two phases
//
// Each kind of synchronization causes the same underlying data structures to
// be managed. Like other APIs, we use the parameter dot-notation to set
// optional parameters.
//
// When a domain is synced with another domain, all of the matching phases in
// the two domains get a 'with' relationship between them. Likewise, if a domain
// is unsynched, all of the matching phases that have a 'with' relationship have
// the dependency removed. It is possible to sync two domains and then just
// remove a single phase from the dependency relationship by unsyncing just
// the one phase.
// Function: sync
//
// Synchronize two domains, fully or partially
//
// target - handle of target domain to synchronize this one to
// phase - optional single phase in this domain to synchronize,
// otherwise sync all
// with_phase - optional different target-domain phase to synchronize with,
// otherwise use ~phase~ in the target domain
//
final public void sync(uvm_domain target,
uvm_phase phase = null,
uvm_phase with_phase = null) {
if(!this.is_domain()) {
uvm_fatal("PH_BADSYNC","sync() called from a non-domain phase "
"schedule node");
}
else if(target is null) {
uvm_fatal("PH_BADSYNC","sync() called with a null target domain");
}
else if(!target.is_domain()) {
uvm_fatal("PH_BADSYNC","sync() called with a non-domain phase "
"schedule node as target");
}
else if(phase is null && with_phase !is null) {
uvm_fatal("PH_BADSYNC","sync() called with null phase and non-null "
"with phase");
}
else if(phase is null) {
// whole domain sync - traverse this domain schedule from begin to end node and sync each node
int[uvm_phase] visited;
Queue!uvm_phase queue;
queue.pushBack(this);
visited[this] = true;
while(queue.length !is 0) {
uvm_phase node;
node = queue.front();
queue.removeFront();
if(node.m_imp !is null) {
sync(target, node.m_imp);
}
foreach(succ, unused; node.m_successors) {
if(succ !in visited) {
queue.pushBack(succ);
visited[succ] = true;
}
}
}
}
else {
// single phase sync
// this is a 2-way ('with') sync and we check first in case it
// is already there
if(with_phase is null) with_phase = phase;
uvm_phase from_node = find(phase);
uvm_phase to_node = target.find(with_phase);
if(from_node is null || to_node is null) return;
// m_sync is a Queue of uvm_phase
from_node.add_sync(to_node);
to_node.add_sync(from_node);
}
}
// Function: unsync
//
// Remove synchronization between two domains, fully or partially
//
// target - handle of target domain to remove synchronization from
// phase - optional single phase in this domain to un-synchronize,
// otherwise unsync all
// with_phase - optional different target-domain phase to un-synchronize with,
// otherwise use ~phase~ in the target domain
//
final public void unsync(uvm_domain target,
uvm_phase phase = null,
uvm_phase with_phase = null) {
if(!this.is_domain()) {
uvm_fatal("PH_BADSYNC","unsync() called from a non-domain phase "
"schedule node");
}
else if(target is null) {
uvm_fatal("PH_BADSYNC","unsync() called with a null target domain");
}
else if(!target.is_domain()) {
uvm_fatal("PH_BADSYNC","unsync() called with a non-domain phase "
"schedule node as target");
}
else if(phase is null && with_phase !is null) {
uvm_fatal("PH_BADSYNC","unsync() called with null phase and non-null "
"with phase");
}
else if(phase is null) {
// whole domain unsync - traverse this domain schedule from begin to end node and unsync each node
int[uvm_phase] visited;
Queue!uvm_phase queue;
queue.pushBack(this);
visited[this] = true;
while(queue.length !is 0) {
uvm_phase node;
node = queue.front();
queue.removeFront();
if(node.m_imp !is null) unsync(target, node.m_imp);
foreach(succ, unused; node.m_successors) {
if(succ !in visited) {
queue.pushBack(succ);
visited[succ] = true;
}
}
}
}
else {
// single phase unsync
// this is a 2-way ('with') sync and we check first in case it is already there
uvm_phase from_node = target.find(phase);
uvm_phase to_node = target.find(phase);
// m_sync is a Queue of uvm_phase
from_node.rem_sync(to_node);
to_node.rem_sync(from_node);
}
}
// Function: wait_for_state
//
// Wait until this phase compares with the given ~state~ and ~op~ operand.
// For <UVM_EQ> and <UVM_NE> operands, several <uvm_phase_states> can be
// supplied by ORing their enum constants, in which case the caller will
// wait until the phase state is any of (UVM_EQ) or none of (UVM_NE) the
// provided states.
//
// To wait for the phase to be at the started state or after
//
//| wait_for_state(UVM_PHASE_STARTED, UVM_GTE);
//
// To wait for the phase to be either started or executing
//
//| wait_for_state(UVM_PHASE_STARTED | UVM_PHASE_EXECUTING, UVM_EQ);
//
// task
final public void wait_for_state(uvm_phase_state state,
uvm_wait_op op = UVM_EQ) {
final switch(op) {
// wait((state & m_state) !is 0);
case UVM_EQ: while((m_state.get & state) is 0)
m_state.getEvent.wait();
break;
// wait((state & m_state) is 0);
case UVM_NE: while((m_state.get & state) !is 0)
m_state.getEvent.wait();
break;
// wait(m_state < state);
case UVM_LT: while(m_state.get >= state)
m_state.getEvent.wait();
break;
// wait(m_state <= state);
case UVM_LTE: while(m_state.get > state)
m_state.getEvent.wait();
break;
// wait(m_state > state);
case UVM_GT: while(m_state.get <= state)
m_state.getEvent.wait();
break;
// wait(m_state >= state);
case UVM_GTE: while(m_state.get < state)
m_state.getEvent.wait();
break;
}
}
//---------------
// Group: Jumping
//---------------
// Force phases to jump forward or backward in a schedule
//
// A phasing domain can execute a jump from its current phase to any other.
// A jump passes phasing control in the current domain from the current phase
// to a target phase. There are two kinds of jump scope:
//
// - local jump to another phase within the current schedule, back- or forwards
// - global jump of all domains together, either to a point in the master
// schedule outwith the current schedule, or by calling jump_all()
//
// A jump preserves the existing soft synchronization, so the domain that is
// ahead of schedule relative to another synchronized domain, as a result of
// a jump in either domain, will await the domain that is behind schedule.
//
// *Note*: A jump out of the local schedule causes other schedules that have
// the jump node in their schedule to jump as well. In some cases, it is
// desirable to jump to a local phase in the schedule but to have all
// schedules that share that phase to jump as well. In that situation, the
// jump_all static function should be used. This function causes all schedules
// that share a phase to jump to that phase.
// Function: jump
//
// Jump to a specified ~phase~. If the destination ~phase~ is within the current
// phase schedule, a simple local jump takes place. If the jump-to ~phase~ is
// outside of the current schedule then the jump affects other schedules which
// share the phase.
//
// jump
// ----
//
// Note that this function does not directly alter flow of control.
// That is, the new phase is not initiated in this function.
// Rather, flags are set which execute_phase() uses to determine
// that a jump has been requested and performs the jump.
public void jump(uvm_phase phase) {
// TBD refactor
if((m_state.get < UVM_PHASE_STARTED) ||
(m_state.get > UVM_PHASE_READY_TO_END) )
{
uvm_error("JMPPHIDL", "Attempting to jump from phase \"" ~
get_name() ~ "\" which is not currently active "
"(current state is " ~ _m_state.to!string ~ "). The "
"jump will not happen until the phase becomes active.");
}
// A jump can be either forward or backwards in the phase graph.
// If the specified phase (name) is found in the set of predecessors
// then we are jumping backwards. If, on the other hand, the phase is in the set
// of successors then we are jumping forwards. If neither, then we
// have an error.
//
// If the phase is non-existant and thus we don't know where to jump
// we have a situation where the only thing to do is to uvm_report_fatal
// and terminate_phase. By calling this function the intent was to
// jump to some other phase. So, continuing in the current phase doesn't
// make any sense. And we don't have a valid phase to jump to. So we're done.
uvm_phase d = m_find_predecessor(phase, false);
if(d is null) {
d = m_find_successor(phase, false);
if(d is null) {
uvm_fatal("PH_BADJUMP",
format("phase %s is neither a predecessor or "
"successor of phase %s or is non-existant, "
"so we cannot jump to it. Phase control "
"flow is now undefined so the simulation "
"must terminate", phase.get_name(), get_name()));
}
else {
m_jump_fwd = true;
uvm_info("PH_JUMPF", format("jumping forward to phase %s",
phase.get_name()), UVM_DEBUG);
}
}
else {
m_jump_bkwd = true;
uvm_info("PH_JUMPB", format("jumping backward to phase %s",
phase.get_name()), UVM_DEBUG);
}
m_jump_phase = d;
// m_terminate_phase(); // JAR - not needed
}
// Function: jump_all
//
// Make all schedules jump to a specified ~phase~, even if the jump target is local.
// The jump happens to all phase schedules that contain the jump-to ~phase~,
// i.e. a global jump.
//
final public void jump_all(uvm_phase phase) {
uvm_warning("NOTIMPL","uvm_phase.jump_all is not implemented and "
"has been replaced by uvm_domain.jump_all");
}
// Function: get_jump_target
//
// Return handle to the target phase of the current jump, or null if no jump
// is in progress. Valid for use during the phase_ended() callback
//
final public uvm_phase get_jump_target() {
synchronized(this) {
return _m_jump_phase;
}
}
@uvm_public_sync
uint _max_ready_to_end_iter = 20;
//--------------------------
// Internal - Implementation
//--------------------------
// Implementation - Construction
//------------------------------
// m_phase_type is set in the constructor and is not changed after that
@uvm_immutable_sync
protected uvm_phase_type _m_phase_type;
@uvm_protected_sync
protected uvm_phase _m_parent; // our 'schedule' node [or points 'up' one level]
@uvm_public_sync
public uvm_phase _m_imp; // phase imp to call when we execute this node
// Implementation - State
//-----------------------
@uvm_immutable_sync
private WithEvent!uvm_phase_state _m_state;
private int _m_run_count; // num times this phase has executed
@uvm_private_sync
private Process _m_phase_proc;
@uvm_public_sync
private int _m_num_procs_not_yet_returned;
final public void inc_m_num_procs_not_yet_returned() {
synchronized(this) {
++_m_num_procs_not_yet_returned;
}
}
final public void dec_m_num_procs_not_yet_returned() {
synchronized(this) {
--_m_num_procs_not_yet_returned;
}
}
final public uvm_phase m_find_predecessor(uvm_phase phase,
bool stay_in_scope = true,
uvm_phase orig_phase = null) {
//$display(" FIND PRED node '", phase.get_name(),"' (id=", $sformatf("%0d", phase.get_inst_id()),") - checking against ", get_name()," (", m_phase_type.name()," id=", $sformatf("%0d", get_inst_id()),(_m_imp is null)?"":{"/", $sformatf("%0d", _m_imp.get_inst_id())},")");
if(phase is null) {
return null ;
}
if(phase is m_imp || phase is this) {
return this;
}
foreach(pred, unused; m_predecessors) {
uvm_phase orig = (orig_phase is null) ? this : orig_phase;
if(!stay_in_scope ||
(pred.get_schedule() is orig.get_schedule()) ||
(pred.get_domain() is orig.get_domain())) {
uvm_phase found = pred.m_find_predecessor(phase, stay_in_scope, orig);
if(found !is null) {
return found;
}
}
}
return null;
}
// m_find_successor
// ----------------
final public uvm_phase m_find_successor(uvm_phase phase,
bool stay_in_scope = true,
uvm_phase orig_phase = null) {
//$display(" FIND SUCC node '", phase.get_name(),"' (id=", $sformatf("%0d", phase.get_inst_id()),") - checking against ", get_name()," (", m_phase_type.name()," id=", $sformatf("%0d", get_inst_id()),(_m_imp is null)?"":{"/", $sformatf("%0d", _m_imp.get_inst_id())},")");
if(phase is null) {
return null ;
}
if(phase is m_imp || phase is this) {
return this;
}
foreach(succ, unused; m_successors) {
uvm_phase orig = (orig_phase is null) ? this : orig_phase;
if(!stay_in_scope ||
(succ.get_schedule() is orig.get_schedule()) ||
(succ.get_domain() is orig.get_domain())) {
uvm_phase found = succ.m_find_successor(phase, stay_in_scope, orig);
if(found !is null) {
return found;
}
}
}
return null;
}
// m_find_predecessor_by_name
// --------------------------
final public uvm_phase m_find_predecessor_by_name(string name,
bool stay_in_scope = true,
uvm_phase orig_phase = null) {
//$display(" FIND PRED node '", name,"' - checking against ", get_name()," (", m_phase_type.name()," id=", $sformatf("%0d", get_inst_id()),(_m_imp is null)?"":{"/", $sformatf("%0d", _m_imp.get_inst_id())},")");
if(get_name() == name) {
return this;
}
foreach(pred, predecessor; m_predecessors) {
uvm_phase orig = (orig_phase is null) ? this : orig_phase;
if(!stay_in_scope ||
(pred.get_schedule() is orig.get_schedule()) ||
(pred.get_domain() is orig.get_domain())) {
uvm_phase found =
pred.m_find_predecessor_by_name(name, stay_in_scope, orig);
if(found !is null) {
return found;
}
}
}
return null;
}
// m_find_successor_by_name
// ------------------------
final public uvm_phase m_find_successor_by_name(string name,
bool stay_in_scope = true,
uvm_phase orig_phase = null) {
//$display(" FIND SUCC node '", name,"' - checking against ", get_name()," (", m_phase_type.name()," id=", $sformatf("%0d", get_inst_id()),(_m_imp is null)?"":{"/", $sformatf("%0d", _m_imp.get_inst_id())},")");
if(get_name() == name) {
return this;
}
foreach(succ, successor; m_successors) {
uvm_phase orig = (orig_phase is null) ? this : orig_phase;
if(!stay_in_scope ||
(succ.get_schedule() is orig.get_schedule()) ||
(succ.get_domain() is orig.get_domain())) {
uvm_phase found =
succ.m_find_successor_by_name(name, stay_in_scope, orig);
if(found !is null) {
return found;
}
}
}
return null;
}
// m_print_successors
// ------------------
final public void m_print_successors() {
static string spaces = " ";
static int level;
if(m_phase_type is UVM_PHASE_DOMAIN) {
level = 0;
}
vdisplay(spaces[0..level*2+1], get_name(), " (", m_phase_type.to!string,
") id=%0d", get_inst_id());
++level;
foreach(succ, unused; m_successors) {
succ.m_print_successors();
}
--level;
}
// Implementation - Callbacks
//---------------------------
// Provide the required component traversal behavior. Called by execute()
// function -- not task
public void traverse(uvm_component comp,
uvm_phase phase,
uvm_phase_state state) {
}
// Provide the required per-component execution flow. Called by traverse()
// function -- not task
public void execute(uvm_component comp,
uvm_phase phase) {
}
// Implementation - Schedule
//--------------------------
@uvm_immutable_sync
private SyncAssoc!(uvm_phase, bool) _m_predecessors;
@uvm_immutable_sync
private SyncAssoc!(uvm_phase, bool) _m_successors;
@uvm_protected_sync
private uvm_phase _m_end_node;
final public uvm_phase get_begin_node() {
synchronized(this) {
if(_m_imp !is null) return this;
else return null;
}
}
final public uvm_phase get_end_node() {
synchronized(this) {
return _m_end_node;
}
}
// Implementation - Synchronization
//---------------------------------
@uvm_private_sync
private Queue!uvm_phase _m_sync; // schedule instance to which we are synced
private void rem_sync(uvm_phase phase) {
synchronized(this) {
import std.algorithm: countUntil;
auto c = countUntil(_m_sync[], phase);
if(c !is -1) _m_sync.remove(c);
}
}
private void add_sync(uvm_phase phase) {
synchronized(this) {
import std.algorithm: canFind;
if(!canFind(_m_sync[], phase)) _m_sync.pushBack(phase);
}
}
@uvm_immutable_sync
uvm_objection _phase_done; // phase done objection
@uvm_private_sync
private uint _m_ready_to_end_count;
final public uint get_ready_to_end_count() {
synchronized(this) {
return _m_ready_to_end_count;
}
}
final public void
get_predecessors_for_successors(out bool[uvm_phase] pred_of_succ) {
// This synchronization guard results in deadlock
// synchronized(this) {
bool done;
bool[uvm_phase] successors;
// get all successors
// This is basically the dup operation
foreach(succ, unused; m_successors) {
successors[succ] = true;
}
// replace TERMINAL or SCHEDULE nodes with their successors
do {
done = true;
foreach(succ; successors.keys) {
if(succ.get_phase_type() !is UVM_PHASE_NODE) {
successors.remove(succ);
foreach(next_succ, unused; succ.m_successors) {
successors[next_succ] = true;
}
done = false;
}
}
} while(!done);
// get all predecessors to these successors
foreach(succ, unused; successors) {
foreach(pred, unused; succ.m_predecessors) {
pred_of_succ[pred] = true;
}
}
// replace any terminal nodes with their predecessors, recursively.
// we are only interested in "real" phase nodes
do {
done = true;
foreach(pred; pred_of_succ.keys) {
if(pred.get_phase_type() !is UVM_PHASE_NODE) {
pred_of_succ.remove(pred);
foreach(next_pred, unused; pred.m_predecessors) {
pred_of_succ[next_pred] = true;
}
done = false;
}
}
} while(!done);
// remove ourselves from the list
pred_of_succ.remove(this);
// }
}
// m_wait_for_pred
// ---------------
// task
final public void m_wait_for_pred() {
if(!(m_jump_fwd.get || m_jump_bkwd.get)) {
bool[uvm_phase] pred_of_succ;
get_predecessors_for_successors(pred_of_succ);
// wait for predecessors to successors (real phase nodes, not terminals)
// mostly debug msgs
foreach (sibling, unused; pred_of_succ) {
if (m_phase_trace) {
string s = format("Waiting for phase '%s' (%0d) to be "
"READY_TO_END. Current state is %s",
sibling.get_name(), sibling.get_inst_id(),
sibling.m_state());
UVM_PH_TRACE("PH/TRC/WAIT_PRED_OF_SUCC", s, this, UVM_HIGH);
}
sibling.wait_for_state(UVM_PHASE_READY_TO_END, UVM_GTE);
if (m_phase_trace) {
string s = format("Phase '%s' (%0d) is now READY_TO_END. "
"Releasing phase",
sibling.get_name(),sibling.get_inst_id());
UVM_PH_TRACE("PH/TRC/WAIT_PRED_OF_SUCC",s,this,UVM_HIGH);
}
}
if(m_phase_trace) {
if(pred_of_succ.length !is 0) {
string s = "( ";
foreach(pred, unused; pred_of_succ) {
s ~= pred.get_full_name() ~ " ";
}
s ~= s ~ ")";
UVM_PH_TRACE("PH/TRC/WAIT_PRED_OF_SUCC",
"*** All pred to succ " ~ s ~
" in READY_TO_END state, so ending phase ***",
this, UVM_HIGH);
}
else {
UVM_PH_TRACE("PH/TRC/WAIT_PRED_OF_SUCC",
"*** No pred to succ other than myself, "
"so ending phase ***", this, UVM_HIGH);
}
}
}
wait(0); // #0; // LET ANY WAITERS WAKE UP
}
// Implementation - Jumping
//-------------------------
@uvm_immutable_sync
private WithEvent!bool _m_jump_bkwd;
@uvm_immutable_sync
private WithEvent!bool _m_jump_fwd;
@uvm_private_sync
private uvm_phase _m_jump_phase;
// clear
// -----
// for internal graph maintenance after a forward jump
final public void clear(uvm_phase_state state = UVM_PHASE_DORMANT) {
synchronized(this) {
_m_state = state;
_m_phase_proc = null;
}
phase_done.clear(this);
}
// clear_successors
// ----------------
// for internal graph maintenance after a forward jump
// - called only by execute_phase()
// - depth-first traversal of the DAG, calliing clear() on each node
// - do not clear the end phase or beyond
final public void clear_successors(uvm_phase_state state = UVM_PHASE_DORMANT,
uvm_phase end_state = null) {
if(this is end_state) return;
clear(state);
foreach(succ, unused; m_successors) {
succ.clear_successors(state, end_state);
}
}
// Implementation - Overall Control
//---------------------------------
// m_run_phases
// ------------
// This task contains the top-level process that owns all the phase
// processes. By hosting the phase processes here we avoid problems
// associated with phase processes related as parents/children
// task
static public void m_run_phases() {
uvm_root top = uvm_root.get();
// initiate by starting first phase in common domain
uvm_phase ph = uvm_domain.get_common_domain();
m_phase_hopper.nbWrite(ph);
for(;;) {
uvm_phase phase;
m_phase_hopper.read(phase);
fork({phase.execute_phase();});
wait(0); // #0; // let the process start running
}
}
// execute_phase
// -------------
// task
void execute_phase() {
uvm_task_phase task_phase;
uvm_root top = uvm_root.get();
// If we got here by jumping forward, we must wait for
// all its predecessor nodes to be marked DONE.
// (the next conditional speeds this up)
// Also, this helps us fast-forward through terminal (end) nodes
foreach(pred, unused; m_predecessors) {
while(pred.m_state.get !is UVM_PHASE_DONE) {
pred.m_state.getEvent.wait();
}
}
// If DONE (by, say, a forward jump), return immed
if(m_state is UVM_PHASE_DONE) {
return;
}
//---------
// SYNCING:
//---------
// Wait for phases with which we have a sync()
// relationship to be ready. Sync can be 2-way -
// this additional state avoids deadlock.
if(m_sync.length != 0) {
m_state = UVM_PHASE_SYNCING;
foreach(sync; m_sync[]) {
while(sync.m_state.get < UVM_PHASE_SYNCING) {
sync.m_state.getEvent.wait();
}
}
}
synchronized(this) {
_m_run_count++;
if(_m_phase_trace) {
UVM_PH_TRACE("PH/TRC/STRT","Starting phase", this, UVM_LOW);
}
}
// If we're a schedule or domain, then "fake" execution
if(m_phase_type !is UVM_PHASE_NODE) {
m_state = UVM_PHASE_STARTED;
wait(0); // #0;
m_state = UVM_PHASE_EXECUTING;
wait(0); // #0;
}
else { // PHASE NODE
//---------
// STARTED:
//---------
m_state = UVM_PHASE_STARTED;
m_imp.traverse(top, this, UVM_PHASE_STARTED);
m_ready_to_end_count = 0 ; // reset the ready_to_end count when phase starts
// #0; // LET ANY WAITERS WAKE UP
wait(0);
task_phase = cast(uvm_task_phase) m_imp;
//if(_m_imp.get_phase_type() !is UVM_PHASE_TASK) {
if(task_phase is null) {
//-----------
// EXECUTING: (function phases)
//-----------
m_state = UVM_PHASE_EXECUTING;
wait(0);
m_imp.traverse(top, this, UVM_PHASE_EXECUTING);
}
else {
m_executing_phases[this] = true;
m_phase_proc = fork({
//-----------
// EXECUTING: (task phases)
//-----------
m_state = UVM_PHASE_EXECUTING;
task_phase.traverse(top, this, UVM_PHASE_EXECUTING);
// wait(0) -- SV version
sleep();
});
uvm_wait_for_nba_region(); //Give sequences, etc. a chance to object
// Now wait for one of three criterion for end-of-phase.
// Fork guard = join({
Fork endPhase = fork({ // JUMP
while((m_jump_fwd.get || m_jump_bkwd.get) is false) {
wait(m_jump_fwd.getEvent | m_jump_bkwd.getEvent);
}
UVM_PH_TRACE("PH/TRC/EXE/JUMP","PHASE EXIT ON JUMP REQUEST",
this, UVM_DEBUG);
},
{ // WAIT_FOR_ALL_DROPPED
bool do_ready_to_end ; // bit used for ready_to_end iterations
// OVM semantic: don't end until objection raised or stop request
if(phase_done.get_objection_total(top) ||
m_use_ovm_run_semantic && m_imp.get_name() == "run") {
if (!phase_done.m_top_all_dropped) {
phase_done.wait_for(UVM_ALL_DROPPED, top);
}
UVM_PH_TRACE("PH/TRC/EXE/ALLDROP","PHASE EXIT ALL_DROPPED",
this, UVM_DEBUG);
}
else {
if (m_phase_trace) {
UVM_PH_TRACE("PH/TRC/SKIP","No objections raised, "
"skipping phase", this, UVM_LOW);
}
}
wait_for_self_and_siblings_to_drop();
do_ready_to_end = true;
//--------------
// READY_TO_END:
//--------------
while(do_ready_to_end) {
uvm_wait_for_nba_region(); // Let all siblings see no objections before traverse might raise another
UVM_PH_TRACE("PH_READY_TO_END","PHASE READY TO END",
this, UVM_DEBUG);
synchronized(this) {
++_m_ready_to_end_count;
if(_m_phase_trace)
UVM_PH_TRACE("PH_READY_TO_END_CB","CALLING READY_TO_END CB",
this, UVM_HIGH);
_m_state = UVM_PHASE_READY_TO_END;
}
if(m_imp !is null) {
m_imp.traverse(top, this, UVM_PHASE_READY_TO_END);
}
uvm_wait_for_nba_region(); // Give traverse targets a chance to object
wait_for_self_and_siblings_to_drop();
synchronized(this) {
//when we don't wait in task above, we drop out of while loop
do_ready_to_end = (_m_state is UVM_PHASE_EXECUTING) &&
(_m_ready_to_end_count < _max_ready_to_end_iter) ;
}
}
},
{ // TIMEOUT
if(this.get_name() == "run") {
while(top.m_phase_timeout.get == SimTime(0)) {
wait(top.m_phase_timeout.getEvent);
}
if(m_phase_trace) {
UVM_PH_TRACE("PH/TRC/TO_WAIT",
format("STARTING PHASE TIMEOUT WATCHDOG"
" (timeout == %t)", top.m_phase_timeout),
this, UVM_HIGH);
}
wait(top.m_phase_timeout.get);
if(getSimTime() == uvm_default_timeout()) {
if(m_phase_trace) {
UVM_PH_TRACE("PH/TRC/TIMEOUT", "PHASE TIMEOUT WATCHDOG "
"EXPIRED", this, UVM_LOW);
}
foreach(p, unused; m_executing_phases) {
if(p.phase_done.get_objection_total() > 0) {
if(m_phase_trace)
UVM_PH_TRACE("PH/TRC/TIMEOUT/OBJCTN",
format("Phase '%s' has outstanding "
"objections:\n%s",
p.get_full_name(),
p.phase_done.convert2string()),
this, UVM_LOW);
}
}
uvm_fatal("PH_TIMEOUT",
format("Default timeout of %0t hit, indicating "
"a probable testbench issue",
uvm_default_timeout()));
}
else {
if(m_phase_trace) {
UVM_PH_TRACE("PH/TRC/TIMEOUT", "PHASE TIMEOUT WATCHDOG "
"EXPIRED", this, UVM_LOW);
}
foreach(p, unused; m_executing_phases) {
if(p.phase_done.get_objection_total() > 0) {
if(m_phase_trace)
UVM_PH_TRACE("PH/TRC/TIMEOUT/OBJCTN",
format("Phase '%s' has outstanding "
"objections:\n%s",
p.get_full_name(),
p.phase_done.convert2string()),
this, UVM_LOW);
}
}
uvm_fatal("PH_TIMEOUT",
format("Explicit timeout of %0t hit, indicating "
"a probable testbench issue",
top.m_phase_timeout));
}
if(_m_phase_trace)
UVM_PH_TRACE("PH/TRC/EXE/3","PHASE EXIT TIMEOUT",
this, UVM_DEBUG);
}
else {
sleep();
}
});
endPhase.joinAny();
endPhase.abortRec();
// });
}
}
m_executing_phases.remove(this);
//---------
// JUMPING:
//---------
// If jump_to() was called then we need to kill all the successor
// phases which may still be running and then initiate the new
// phase. The return is necessary so we don't start new successor
// phases. If we are doing a forward jump then we want to set the
// state of this phase's successors to UVM_PHASE_DONE. This
// will let us pretend that all the phases between here and there
// were executed and completed. Thus any dependencies will be
// satisfied preventing deadlocks.
// GSA TBD insert new jump support
if(get_phase_type is UVM_PHASE_NODE) {
if(m_jump_fwd.get || m_jump_bkwd.get) {
uvm_info("PH_JUMP",
format("phase %s (schedule %s, domain %s) is "
"jumping to phase %s", get_name(),
get_schedule_name(), get_domain_name(),
m_jump_phase.get_name()),
UVM_MEDIUM);
wait(0); // #0; // LET ANY WAITERS ON READY_TO_END TO WAKE UP
// execute 'phase_ended' callbacks
synchronized(this) {
if(_m_phase_trace) {
UVM_PH_TRACE("PH_END","JUMPING OUT OF PHASE", this, UVM_HIGH);
}
_m_state = UVM_PHASE_ENDED;
}
if(m_imp !is null) {
m_imp.traverse(top, this, UVM_PHASE_ENDED);
}
wait(0); // LET ANY WAITERS WAKE UP
synchronized(this) {
_m_state = UVM_PHASE_JUMPING;
if(_m_phase_proc !is null) {
_m_phase_proc.abort();
_m_phase_proc = null;
}
}
wait(0); // LET ANY WAITERS WAKE UP
phase_done.clear();
if(m_jump_fwd.get) {
clear_successors(UVM_PHASE_DONE, m_jump_phase);
}
m_jump_phase.clear_successors();
synchronized(this) {
_m_jump_fwd = false;
_m_jump_bkwd = false;
_m_phase_hopper.nbWrite(_m_jump_phase);
_m_jump_phase = null;
return;
}
}
// WAIT FOR PREDECESSORS: // WAIT FOR PREDECESSORS:
// function phases only
if(task_phase is null) {
m_wait_for_pred();
}
//-------
// ENDED:
//-------
// execute 'phase_ended' callbacks
synchronized(this) {
if(_m_phase_trace) {
UVM_PH_TRACE("PH_END","ENDING PHASE", this, UVM_HIGH);
}
_m_state = UVM_PHASE_ENDED;
}
if(m_imp !is null) {
m_imp.traverse(top, this, UVM_PHASE_ENDED);
}
wait(0); // LET ANY WAITERS WAKE UP
//---------
// CLEANUP:
//---------
// kill this phase's threads
synchronized(this) {
_m_state = UVM_PHASE_CLEANUP;
if(_m_phase_proc !is null) {
_m_phase_proc.abort();
_m_phase_proc = null;
}
}
wait(0); // LET ANY WAITERS WAKE UP
phase_done.clear();
}
//------
// DONE:
//------
synchronized(this) {
if(_m_phase_trace)
UVM_PH_TRACE("PH/TRC/DONE","Completed phase", this, UVM_LOW);
_m_state = UVM_PHASE_DONE;
_m_phase_proc = null;
}
wait(0); // LET ANY WAITERS WAKE UP
//-----------
// SCHEDULED:
//-----------
// If more successors, schedule them to run now
if(m_successors.length is 0) {
top.m_phase_all_done = true;
}
else {
// execute all the successors
foreach(succ, unused; m_successors) {
if(succ.m_state < UVM_PHASE_SCHEDULED) {
succ.m_state = UVM_PHASE_SCHEDULED;
wait(0); // LET ANY WAITERS WAKE UP
synchronized(this) {
m_phase_hopper.nbWrite(succ);
if(_m_phase_trace)
UVM_PH_TRACE("PH/TRC/SCHEDULED", "Scheduled from phase " ~
get_full_name(), succ, UVM_LOW);
}
}
}
}
}
// terminate_phase
// ---------------
void m_terminate_phase() {
synchronized(this) {
_phase_done.clear(this);
}
}
// print_termination_state
// -----------------------
private void m_print_termination_state() {
synchronized(this) {
uvm_info("PH_TERMSTATE",
format("phase %s outstanding objections = %0d", get_name(),
_phase_done.get_objection_total(uvm_root.get())),
UVM_DEBUG);
}
}
// task
final public void wait_for_self_and_siblings_to_drop() {
bool need_to_check_all = true;
uvm_root top = uvm_root.get();
bool[uvm_phase] siblings;
get_predecessors_for_successors(siblings);
foreach(s; m_sync[]) {
siblings[s] = true;
}
while(need_to_check_all) {
need_to_check_all = false ; //if all are dropped, we won't need to do this again
// wait for own objections to drop
if(phase_done.get_objection_total(top) !is 0) {
m_state = UVM_PHASE_EXECUTING;
phase_done.wait_for(UVM_ALL_DROPPED, top);
need_to_check_all = true;
}
// now wait for siblings to drop
foreach(sib, unused; siblings) {
sib.wait_for_state(UVM_PHASE_EXECUTING, UVM_GTE); // sibling must be at least executing
if(sib.phase_done.get_objection_total(top) !is 0) {
m_state = UVM_PHASE_EXECUTING ;
sib.phase_done.wait_for(UVM_ALL_DROPPED, top); // sibling must drop any objection
need_to_check_all = true;
}
}
}
}
// kill
// ----
final public void kill() {
synchronized(this) {
uvm_info("PH_KILL", "killing phase '" ~ get_name() ~ "'", UVM_DEBUG);
if(_m_phase_proc !is null) {
_m_phase_proc.abort();
_m_phase_proc = null;
}
}
}
// kill_successors
// ---------------
// Using a depth-first traversal, kill all the successor phases of the
// current phase.
final public void kill_successors() {
foreach(succ, unused; m_successors)
succ.kill_successors();
kill();
}
// TBD add more useful debug
//---------------------------------
override public string convert2string() {
synchronized(this) {
//return $sformatf("PHASE %s = %p", get_name(), this);
string s = format("phase: %s parent=%s pred=%s succ=%s", get_name(),
(_m_parent is null) ? "null" : get_schedule_name(),
m_aa2string(m_predecessors),
m_aa2string(m_successors));
return s;
}
}
final private string m_aa2string(SyncAssoc!(uvm_phase, bool) aa) { // TBD tidy
int i;
string s = "'{ ";
foreach(ph, unused; aa) {
uvm_phase n = ph;
s ~= (n is null) ? "null" : n.get_name() ~
(i is aa.length-1) ? "" : " ~ ";
++i;
}
s ~= " }";
return s;
}
final public bool is_domain() {
synchronized(this) {
return(m_phase_type is UVM_PHASE_DOMAIN);
}
}
// public void m_get_transitive_children(ref Queue!uvm_phase phases) {
// synchronized(this) {
// foreach(succ, unused; _m_successors)
// {
// phases.pushBack(succ);
// succ.m_get_transitive_children(phases);
// }
// }
// }
// public void m_get_transitive_children(ref uvm_phase[] phases) {
// synchronized(this) {
// foreach(succ, unused; _m_successors)
// {
// phases ~= succ;
// succ.m_get_transitive_children(phases);
// }
// }
// }
final public uvm_phase[] m_get_transitive_children() {
uvm_phase[] phases;
foreach(succ, unused; m_successors)
{
phases ~= succ;
phases ~= succ.m_get_transitive_children();
}
return phases;
}
}
//------------------------------------------------------------------------------
// IMPLEMENTATION
//------------------------------------------------------------------------------
public void UVM_PH_TRACE(string file=__FILE__,
size_t line=__LINE__)(string ID, string MSG,
uvm_phase PH,
uvm_verbosity VERB) {
uvm_info!(file, line)(ID, format("Phase '%0s' (id=%0d) ",
PH.get_full_name(), PH.get_inst_id()) ~
MSG, VERB);
}
|
D
|
/home/runner/work/econ/econ/server/target/x86_64-unknown-linux-gnu/release/deps/fnv-8b357450e4eeaa12.rmeta: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/fnv-1.0.7/lib.rs
/home/runner/work/econ/econ/server/target/x86_64-unknown-linux-gnu/release/deps/libfnv-8b357450e4eeaa12.rlib: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/fnv-1.0.7/lib.rs
/home/runner/work/econ/econ/server/target/x86_64-unknown-linux-gnu/release/deps/fnv-8b357450e4eeaa12.d: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/fnv-1.0.7/lib.rs
/home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/fnv-1.0.7/lib.rs:
|
D
|
module derelict.portmidi.portmidi;
private {
import derelict.util.loader;
import derelict.util.system;
static if(Derelict_OS_Windows)
enum libNames = "libPortMidi.dll";
else static if(Derelict_OS_Mac)
enum libNames = "libportmidi.dylib, /usr/local/lib/libportmidi.dylib";
else static if(Derelict_OS_Posix)
enum libNames = "libportmidi.so, /usr/local/lib/libportmidi.so";
else
static assert(0, "Need to implement libportmidi libNames for this operating system.");
}
enum int PM_DEFAULT_SYSEX_BUFFER_SIZE = 1024;
enum int HDRLENGTH = 50;
enum uint PM_HOST_ERROR_MSG_LEN = 256;
enum int pmNoDevice = -1;
enum {
PM_FILT_ACTIVE = (1 << 0x0E),
PM_FILT_SYSEX = (1 << 0x00),
PM_FILT_CLOCK = (1 << 0x08),
PM_FILT_PLAY = ((1 << 0x0A) | (1 << 0x0C) | (1 << 0x0B)),
PM_FILT_TICK = (1 << 0x09),
PM_FILT_FD = (1 << 0x0D),
PM_FILT_UNDEFINED = PM_FILT_FD,
PM_FILT_RESET = (1 << 0X0F),
PM_FILT_REALTIME = PM_FILT_ACTIVE | PM_FILT_SYSEX | PM_FILT_CLOCK |
PM_FILT_PLAY | PM_FILT_UNDEFINED | PM_FILT_RESET | PM_FILT_TICK,
PM_FILT_NOTE = ((1 << 0x19) | (1 << 0x18)),
PM_FILT_CHANNEL_AFTERTOUCH = (1 << 0x1D),
PM_FILT_POLY_AFTERTOUCH = (1 << 0x1A),
PM_FILT_AFTERTOUCH = PM_FILT_CHANNEL_AFTERTOUCH | PM_FILT_POLY_AFTERTOUCH,
PM_FILT_PROGRAM = (1 << 0x1C),
PM_FILT_CONTROL = (1 << 0x1B),
PM_FILT_PITCHBEND = (1 << 0x1E),
PM_FILT_MTC = (1 << 0x01),
PM_FILT_SONG_POSITION = (1 << 0x02),
PM_FILT_SONG_SELECT = (1 << 0x03),
PM_FILT_TUNE = (1 << 0x06),
PM_FILT_SYSTEMCOMMON = (PM_FILT_MTC | PM_FILT_SONG_POSITION | PM_FILT_SONG_SELECT | PM_FILT_TUNE)
}
alias PmError = int;
enum : PmError {
pmNoError = 0,
pmHostError = -10000,
pmInvalidDeviceId,
pmInsufficientMemory,
pmBufferTooSmall,
pmBufferOverflow,
pmBadPtr,
pmBadData,
pmInternalError,
pmBufferMaxSize
}
alias PortMidiStream = void;
alias PmStream = PortMidiStream;
alias PmDeviceID = int;
alias PmTimestamp = long;
alias PmMessage = long;
//From pmutil.h
alias PmQueue = void;
extern(C) nothrow alias PmTimeProcPtr = PmTimestamp* function(void* time_info);
struct PmDeviceInfo {
int structVersion;
const char* interf;
const char* name;
int input;
int output;
int opened;
}
struct PmEvent
{
PmMessage message;
PmTimestamp timestamp;
}
//Replicates behavior of the following line in portmidi.h:
//#define PmBefore(t1,t2) ((t1-t2) < 0)
bool PmBefore(T)(T t1, T t2) {
return t1 - t2 < 0;
}
//Replicates the behavior of the following line in portmidi.h:
//#define Pm_Channel(channel) (1<<(channel))
int Pm_Channel(int channel) {
return 1 << channel;
}
//Replicates the Pm_Message* macros in portmidi.h
PmMessage Pm_Message(long status, long data1, long data2) {
return ((data2 << 16) & 0xff0000) | ((data1 << 8) & 0xff00) | (status & 0xff);
}
long Pm_MessageStatus(PmMessage msg) {
return msg & 0xff;
}
long Pm_MessageData1(PmMessage msg) {
return (msg >> 8) & 0xff;
}
long Pm_MessageData2(PmMessage msg) {
return (msg >> 16) & 0xff;
}
extern(C) @nogc nothrow {
alias da_Pm_Initialize = PmError function();
alias da_Pm_Terminate = PmError function();
alias da_Pm_HasHostError = int function(PortMidiStream* stream);
alias da_Pm_GetErrorText = const(char)* function(PmError errnum);
alias da_Pm_GetHostErrorText = const(char)* function(char* msg, uint len);
alias da_Pm_CountDevices = int function();
alias da_Pm_GetDefaultInputDeviceID = PmDeviceID function();
alias da_Pm_GetDefaultOutputDeviceID = PmDeviceID function();
alias da_Pm_GetDeviceInfo = const(PmDeviceInfo)* function(PmDeviceID id);
alias da_Pm_OpenInput = PmError function( PortMidiStream** stream,
PmDeviceID inputDevice,
void* inputDriverInfo,
long bufferSize,
PmTimeProcPtr time_proc,
void* time_info);
alias da_Pm_OpenOutput = PmError function( PortMidiStream** stream,
PmDeviceID outputDevice,
void* outputDriverInfo,
long bufferSize,
PmTimeProcPtr time_proc,
void* time_info,
long latency);
alias da_Pm_SetFilter = PmError function(PortMidiStream* stream, long filters);
alias da_Pm_SetChannelMask = PmError function(PortMidiStream* stream, int mask);
alias da_Pm_Abort = PmError function(PortMidiStream* stream);
alias da_Pm_Close = PmError function(PortMidiStream* stream);
alias da_Pm_Read = int function(PortMidiStream* stream, PmEvent* buffer, long length);
alias da_Pm_Poll = PmError function(PortMidiStream* stream);
alias da_Pm_Write = PmError function(PortMidiStream* stream, PmEvent* buffer, long length);
alias da_Pm_WriteShort = PmError function(PortMidiStream* stream, PmTimestamp when, long msg);
alias da_Pm_WriteSysEx = PmError function(PortMidiStream* stream, PmTimestamp when, ubyte* msg);
//From pmutil.h
alias da_Pm_QueueCreate = PmQueue* function(long num_msgs, int bytes_per_msg);
alias da_Pm_QueueDestroy = PmError function(PmQueue* queue);
alias da_Pm_Dequeue = PmError function(PmQueue* queue, void* msg);
alias da_Pm_Enqueue = PmError function(PmQueue* queue, void* msg);
alias da_Pm_QueueFull = int function(PmQueue* queue);
alias da_Pm_QueueEmpty = int function(PmQueue* queue);
alias da_Pm_QueuePeek = void* function(PmQueue* queue);
alias da_Pm_SetOverflow = PmError function(PmQueue* queue);
}
__gshared {
da_Pm_Initialize Pm_Initialize;
da_Pm_Terminate Pm_Terminate;
da_Pm_HasHostError Pm_HasHostError;
da_Pm_GetErrorText Pm_GetErrorText;
da_Pm_GetHostErrorText Pm_GetHostErrorText;
da_Pm_CountDevices Pm_CountDevices;
da_Pm_GetDefaultInputDeviceID Pm_GetDefaultInputDeviceID;
da_Pm_GetDefaultOutputDeviceID Pm_GetDefaultOutputDeviceID;
da_Pm_GetDeviceInfo Pm_GetDeviceInfo;
da_Pm_OpenInput Pm_OpenInput;
da_Pm_OpenOutput Pm_OpenOutput;
da_Pm_SetFilter Pm_SetFilter;
da_Pm_SetChannelMask Pm_SetChannelMask;
da_Pm_Abort Pm_Abort;
da_Pm_Close Pm_Close;
da_Pm_Read Pm_Read;
da_Pm_Poll Pm_Poll;
da_Pm_Write Pm_Write;
da_Pm_WriteShort Pm_WriteShort;
da_Pm_WriteSysEx Pm_WriteSysEx;
//From pmutil.h
da_Pm_QueueCreate Pm_QueueCreate;
da_Pm_QueueDestroy Pm_QueueDestroy;
da_Pm_Dequeue Pm_Dequeue;
da_Pm_Enqueue Pm_Enqueue;
da_Pm_QueueFull Pm_QueueFull;
da_Pm_QueueEmpty Pm_QueueEmpty;
da_Pm_QueuePeek Pm_QueuePeek;
da_Pm_SetOverflow Pm_SetOverflow;
}
class DerelictPortMidiLoader : SharedLibLoader {
public this() {
super(libNames);
}
protected override void loadSymbols() {
bindFunc(cast(void**)&Pm_Initialize, "Pm_Initialize");
bindFunc(cast(void**)&Pm_Terminate, "Pm_Terminate");
bindFunc(cast(void**)&Pm_HasHostError, "Pm_HasHostError");
bindFunc(cast(void**)&Pm_GetErrorText, "Pm_GetErrorText");
bindFunc(cast(void**)&Pm_GetHostErrorText, "Pm_GetHostErrorText");
bindFunc(cast(void**)&Pm_CountDevices, "Pm_CountDevices");
bindFunc(cast(void**)&Pm_GetDefaultInputDeviceID, "Pm_GetDefaultInputDeviceID");
bindFunc(cast(void**)&Pm_GetDefaultOutputDeviceID, "Pm_GetDefaultOutputDeviceID");
bindFunc(cast(void**)&Pm_GetDeviceInfo, "Pm_GetDeviceInfo");
bindFunc(cast(void**)&Pm_OpenInput, "Pm_OpenInput");
bindFunc(cast(void**)&Pm_OpenOutput, "Pm_OpenOutput");
bindFunc(cast(void**)&Pm_SetFilter, "Pm_SetFilter");
bindFunc(cast(void**)&Pm_SetChannelMask, "Pm_SetChannelMask");
bindFunc(cast(void**)&Pm_Abort, "Pm_Abort");
bindFunc(cast(void**)&Pm_Close, "Pm_Close");
bindFunc(cast(void**)&Pm_Read, "Pm_Read");
bindFunc(cast(void**)&Pm_Poll, "Pm_Poll");
bindFunc(cast(void**)&Pm_Write, "Pm_Write");
bindFunc(cast(void**)&Pm_WriteShort, "Pm_WriteShort");
bindFunc(cast(void**)&Pm_WriteSysEx, "Pm_WriteSysEx");
//From pmutil.h
bindFunc(cast(void**)&Pm_QueueCreate, "Pm_QueueCreate");
bindFunc(cast(void**)&Pm_QueueDestroy, "Pm_QueueDestroy");
bindFunc(cast(void**)&Pm_Dequeue, "Pm_Dequeue");
bindFunc(cast(void**)&Pm_Enqueue, "Pm_Enqueue");
bindFunc(cast(void**)&Pm_QueueFull, "Pm_QueueFull");
bindFunc(cast(void**)&Pm_QueueEmpty, "Pm_QueueEmpty");
bindFunc(cast(void**)&Pm_QueuePeek, "Pm_QueuePeek");
bindFunc(cast(void**)&Pm_SetOverflow, "Pm_SetOverflow");
}
}
__gshared DerelictPortMidiLoader DerelictPortMidi;
shared static this() {
DerelictPortMidi = new DerelictPortMidiLoader;
}
|
D
|
/++
Unit test plugin.
See_Also:
[kameloso.plugins.common.core],
[kameloso.plugins.common.misc]
Copyright: [JR](https://github.com/zorael)
License: [Boost Software License 1.0](https://www.boost.org/users/license.html)
Authors:
[JR](https://github.com/zorael)
+/
module kameloso.plugins.unittest_;
version(unittest):
private:
import kameloso.plugins;
import kameloso.plugins.common.core;
import kameloso.plugins.common.awareness;
import kameloso.plugins.common.mixins;
import dialect.defs;
import std.typecons : Flag, No, Yes;
mixin UserAwareness!(ChannelPolicy.any, Yes.debug_);
mixin ChannelAwareness!(ChannelPolicy.any, Yes.debug_);
mixin PluginRegistration!(UnittestPlugin, 100.priority);
version(TwitchSupport)
{
mixin TwitchAwareness!(ChannelPolicy.any, Yes.debug_);
}
// UnittestSettings
/++
Unit test plugin settings.
+/
@Settings struct UnittestSettings
{
/++
Enabler.
+/
@Enabler bool enabled = false;
}
// onCommand
/++
Event handler command test.
+/
@(IRCEventHandler()
.onEvent(IRCEvent.Type.CHAN)
.onEvent(IRCEvent.Type.QUERY)
.permissionsRequired(Permissions.anyone)
.channelPolicy(ChannelPolicy.any)
.addCommand(
IRCEventHandler.Command()
.word("unittest")
.policy(PrefixPolicy.direct)
.description("Test command description")
.addSyntax("$command test command syntax")
)
)
void onCommand(UnittestPlugin plugin, const ref IRCEvent event)
{
with (plugin)
{
void onSuccess(IRCUser user)
{
chan(event.channel, "success:" ~ user.account);
}
void onFailure()
{
chan(event.channel, "failure");
}
mixin WHOISFiberDelegate!(onSuccess, onFailure, Yes.alwaysLookup);
enqueueAndWHOIS(event.sender.nickname);
}
}
// onRegex
/++
Event handler regex test.
+/
@(IRCEventHandler()
.onEvent(IRCEvent.Type.CHAN)
.onEvent(IRCEvent.Type.QUERY)
.permissionsRequired(Permissions.anyone)
.channelPolicy(ChannelPolicy.any)
.addRegex(
IRCEventHandler.Regex()
.expression("unit[tT]est.*")
.description("Test regex description")
)
)
void onRegex(UnittestPlugin _, const ref IRCEvent _2)
{
// ...
}
public:
// UnittestPlugin
/++
Unit test plugin.
+/
final class UnittestPlugin : IRCPlugin
{
/++
Unit test plugin settings.
+/
UnittestSettings unittestSettings;
@Resource resFileWithoutSubdir = "unittest.delme";
@Resource("unittest") resFileWithSubdir = "unittest.delme";
@Configuration confFileWithoutSubdir = "unittest.delme";
@Configuration("unittest") confFileWithSubdir = "unittest.delme";
mixin MessagingProxy;
mixin IRCPluginImpl!(Yes.debug_);
}
///
unittest
{
import std.conv : to;
import std.path : buildNormalizedPath;
IRCPluginState state;
state.settings.configDirectory = "conf";
state.settings.resourceDirectory = "res";
auto plugin = new UnittestPlugin(state);
assert((plugin.name == "unittest_"), plugin.name);
assert(!plugin.isEnabled);
plugin.unittestSettings.enabled = true;
assert(plugin.isEnabled);
assert((plugin.Introspection.allEventHandlerUDAsInModule.length > 2),
plugin.Introspection.allEventHandlerUDAsInModule.length.to!string);
assert((plugin.Introspection.allEventHandlerFunctionsInModule.length > 2),
plugin.Introspection.allEventHandlerFunctionsInModule.length.to!string);
immutable resPathWithout = buildNormalizedPath(
plugin.state.settings.resourceDirectory,
"unittest.delme");
immutable resPathWith = buildNormalizedPath(
plugin.state.settings.resourceDirectory,
"unittest",
"unittest.delme");
assert((plugin.resFileWithoutSubdir == resPathWithout), plugin.resFileWithoutSubdir);
assert((plugin.resFileWithSubdir == resPathWith), plugin.resFileWithSubdir);
immutable confPathWithout = buildNormalizedPath(
plugin.state.settings.configDirectory,
"unittest.delme");
immutable confPathWith = buildNormalizedPath(
plugin.state.settings.configDirectory,
"unittest",
"unittest.delme");
assert((plugin.confFileWithoutSubdir == confPathWithout), plugin.confFileWithoutSubdir);
assert((plugin.confFileWithSubdir == confPathWith), plugin.confFileWithSubdir);
}
|
D
|
module gl.all;
public
{
/*import derelict.opengl.gl;
import derelict.opengl.glu;
import derelict.opengl.glext;
*/
import gl.error;
import gl.state;
import gl.buffer;
import gl.vbo;
import gl.texture;
import gl.texture1d;
import gl.texture2d;
import gl.texture3d;
import gl.renderbuffer;
import gl.fbo;
import gl.shaders;
import gl.bench;
}
|
D
|
/Users/ohs80340/rustWork/rust_tate/target/rls/debug/build/generic-array-6b117988e4811108/build_script_build-6b117988e4811108: /Users/ohs80340/.cargo/registry/src/github.com-1ecc6299db9ec823/generic-array-0.14.4/build.rs
/Users/ohs80340/rustWork/rust_tate/target/rls/debug/build/generic-array-6b117988e4811108/build_script_build-6b117988e4811108.d: /Users/ohs80340/.cargo/registry/src/github.com-1ecc6299db9ec823/generic-array-0.14.4/build.rs
/Users/ohs80340/.cargo/registry/src/github.com-1ecc6299db9ec823/generic-array-0.14.4/build.rs:
|
D
|
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE
329.5 49.5 11.6000004 23.6000004 100 120 -23 150.5 8586 19.7000008 21.3999996 0.2 extrusives
322.399994 60.7000008 8.19999981 35.2999992 90 110 -33.7999992 150.899994 85 13.3999996 13.3999996 0.2 intrusives, dolerite
328 45 10 30.8999996 100 120 -22.5 149.300003 8407 18 19 0.2 extrusives,intrusives
338 55.9000015 6.5 42 90 110 -35.2999992 150.5 766 11.6999998 12.3000002 0.2 intrusives, porphyry
335.600006 61 4 0 80 120 -31.1000004 152.5 7562 6.9000001 6.9000001 0.1 sediments, sandstones, siltstones
328.799988 50.7000008 8.19999981 0 80 120 -31.5 152.5 7560 15.3999996 15.3999996 0.1 extrusives, basalts
342.299988 68.5999985 5.9000001 131.600006 99 146 -30.9652004 142.628098 9341 8.19999981 9.89999962 0.085106383 sediments, sandstones
140.800003 47.5999985 11.1000004 33.9000015 100 146 -9.30000019 125.599998 1210 10.1999998 15 0.0869565217 sediments
269 40 0 0 50 300 -32.5999985 151.5 1868 0 0 0.016 extrusives, andesites
102 19.8999996 21.7000008 18.7999992 65 245 -32 116 1944 28.1000004 28.1000004 0.0222222222 intrusives
341 49 6.4000001 142 90 105 -33.4000015 115.599998 1932 10 10 0.0666666667 extrusives, basalts
331 23 4.80000019 81 100 160 -34 151 1594 9.30000019 9.39999962 0.0666666667 intrusives
|
D
|
/**
DMD compiler support.
Copyright: © 2013-2013 rejectedsoftware e.K.
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module dub.compilers.dmd;
import dub.compilers.compiler;
import dub.compilers.utils;
import dub.internal.utils;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.inet.path;
import dub.recipe.packagerecipe : ToolchainRequirements;
import std.algorithm;
import std.array;
import std.conv;
import std.exception;
import std.file;
import std.process;
import std.typecons;
// Determines whether the specified process is running under WOW64 or an Intel64 of x64 processor.
version (Windows)
private Nullable!bool isWow64() {
// See also: https://docs.microsoft.com/de-de/windows/desktop/api/sysinfoapi/nf-sysinfoapi-getnativesysteminfo
import core.sys.windows.windows : GetNativeSystemInfo, SYSTEM_INFO, PROCESSOR_ARCHITECTURE_AMD64;
static Nullable!bool result;
// A process's architecture won't change over while the process is in memory
// Return the cached result
if (!result.isNull)
return result;
SYSTEM_INFO systemInfo;
GetNativeSystemInfo(&systemInfo);
result = systemInfo.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64;
return result;
}
class DMDCompiler : Compiler {
private static immutable s_options = [
tuple(BuildOption.debugMode, ["-debug"]),
tuple(BuildOption.releaseMode, ["-release"]),
tuple(BuildOption.coverage, ["-cov"]),
tuple(BuildOption.debugInfo, ["-g"]),
tuple(BuildOption.debugInfoC, ["-g"]),
tuple(BuildOption.alwaysStackFrame, ["-gs"]),
tuple(BuildOption.stackStomping, ["-gx"]),
tuple(BuildOption.inline, ["-inline"]),
tuple(BuildOption.noBoundsCheck, ["-noboundscheck"]),
tuple(BuildOption.optimize, ["-O"]),
tuple(BuildOption.profile, ["-profile"]),
tuple(BuildOption.unittests, ["-unittest"]),
tuple(BuildOption.verbose, ["-v"]),
tuple(BuildOption.ignoreUnknownPragmas, ["-ignore"]),
tuple(BuildOption.syntaxOnly, ["-o-"]),
tuple(BuildOption.warnings, ["-wi"]),
tuple(BuildOption.warningsAsErrors, ["-w"]),
tuple(BuildOption.ignoreDeprecations, ["-d"]),
tuple(BuildOption.deprecationWarnings, ["-dw"]),
tuple(BuildOption.deprecationErrors, ["-de"]),
tuple(BuildOption.property, ["-property"]),
tuple(BuildOption.profileGC, ["-profile=gc"]),
tuple(BuildOption.betterC, ["-betterC"]),
tuple(BuildOption._docs, ["-Dddocs"]),
tuple(BuildOption._ddox, ["-Xfdocs.json", "-Df__dummy.html"]),
];
@property string name() const { return "dmd"; }
enum dmdVersionRe = `^version\s+v?(\d+\.\d+\.\d+[A-Za-z0-9.+-]*)`;
unittest {
import std.regex : matchFirst, regex;
auto probe = `
binary dmd
version v2.082.0
config /etc/dmd.conf
`;
auto re = regex(dmdVersionRe, "m");
auto c = matchFirst(probe, re);
assert(c && c.length > 1 && c[1] == "2.082.0");
}
unittest {
import std.regex : matchFirst, regex;
auto probe = `
binary dmd
version v2.084.0-beta.1
config /etc/dmd.conf
`;
auto re = regex(dmdVersionRe, "m");
auto c = matchFirst(probe, re);
assert(c && c.length > 1 && c[1] == "2.084.0-beta.1");
}
string determineVersion(string compiler_binary, string verboseOutput)
{
import std.regex : matchFirst, regex;
auto ver = matchFirst(verboseOutput, regex(dmdVersionRe, "m"));
return ver && ver.length > 1 ? ver[1] : null;
}
BuildPlatform determinePlatform(ref BuildSettings settings, string compiler_binary, string arch_override)
{
string[] arch_flags;
switch (arch_override) {
default: throw new Exception("Unsupported architecture: "~arch_override);
case "":
// Don't use Optlink by default on Windows
version (Windows) {
const is64bit = isWow64();
if (!is64bit.isNull)
arch_flags = [is64bit.get ? "-m64" : "-m32mscoff"];
}
break;
case "x86": arch_flags = ["-m32"]; break;
case "x86_64": arch_flags = ["-m64"]; break;
case "x86_mscoff": arch_flags = ["-m32mscoff"]; break;
}
settings.addDFlags(arch_flags);
return probePlatform(
compiler_binary,
arch_flags ~ ["-quiet", "-c", "-o-", "-v"],
arch_override
);
}
void prepareBuildSettings(ref BuildSettings settings, in ref BuildPlatform platform, BuildSetting fields = BuildSetting.all) const
{
enforceBuildRequirements(settings);
if (!(fields & BuildSetting.options)) {
foreach (t; s_options)
if (settings.options & t[0])
settings.addDFlags(t[1]);
}
if (!(fields & BuildSetting.versions)) {
settings.addDFlags(settings.versions.map!(s => "-version="~s)().array());
settings.versions = null;
}
if (!(fields & BuildSetting.debugVersions)) {
settings.addDFlags(settings.debugVersions.map!(s => "-debug="~s)().array());
settings.debugVersions = null;
}
if (!(fields & BuildSetting.importPaths)) {
settings.addDFlags(settings.importPaths.map!(s => "-I"~s)().array());
settings.importPaths = null;
}
if (!(fields & BuildSetting.stringImportPaths)) {
settings.addDFlags(settings.stringImportPaths.map!(s => "-J"~s)().array());
settings.stringImportPaths = null;
}
if (!(fields & BuildSetting.libs)) {
resolveLibs(settings, platform);
if (platform.platform.canFind("windows"))
settings.addSourceFiles(settings.libs.map!(l => l~".lib")().array());
else
settings.addLFlags(settings.libs.map!(l => "-l"~l)().array());
}
if (!(fields & BuildSetting.sourceFiles)) {
settings.addDFlags(settings.sourceFiles);
settings.sourceFiles = null;
}
if (!(fields & BuildSetting.lflags)) {
settings.addDFlags(lflagsToDFlags(settings.lflags));
settings.lflags = null;
}
if (platform.platform.canFind("posix") && (settings.options & BuildOption.pic))
settings.addDFlags("-fPIC");
assert(fields & BuildSetting.dflags);
assert(fields & BuildSetting.copyFiles);
}
void extractBuildOptions(ref BuildSettings settings) const
{
Appender!(string[]) newflags;
next_flag: foreach (f; settings.dflags) {
foreach (t; s_options)
if (t[1].canFind(f)) {
settings.options |= t[0];
continue next_flag;
}
if (f.startsWith("-version=")) settings.addVersions(f[9 .. $]);
else if (f.startsWith("-debug=")) settings.addDebugVersions(f[7 .. $]);
else newflags ~= f;
}
settings.dflags = newflags.data;
}
string getTargetFileName(in BuildSettings settings, in BuildPlatform platform)
const {
import std.conv: text;
assert(settings.targetName.length > 0, "No target name set.");
final switch (settings.targetType) {
case TargetType.autodetect:
assert(false,
text("Configurations must have a concrete target type, ", settings.targetName,
" has ", settings.targetType));
case TargetType.none: return null;
case TargetType.sourceLibrary: return null;
case TargetType.executable:
if (platform.platform.canFind("windows"))
return settings.targetName ~ ".exe";
else return settings.targetName.idup;
case TargetType.library:
case TargetType.staticLibrary:
if (platform.platform.canFind("windows"))
return settings.targetName ~ ".lib";
else return "lib" ~ settings.targetName ~ ".a";
case TargetType.dynamicLibrary:
if (platform.platform.canFind("windows"))
return settings.targetName ~ ".dll";
else if (platform.platform.canFind("darwin"))
return "lib" ~ settings.targetName ~ ".dylib";
else return "lib" ~ settings.targetName ~ ".so";
case TargetType.object:
if (platform.platform.canFind("windows"))
return settings.targetName ~ ".obj";
else return settings.targetName ~ ".o";
}
}
void setTarget(ref BuildSettings settings, in BuildPlatform platform, string tpath = null) const
{
final switch (settings.targetType) {
case TargetType.autodetect: assert(false, "Invalid target type: autodetect");
case TargetType.none: assert(false, "Invalid target type: none");
case TargetType.sourceLibrary: assert(false, "Invalid target type: sourceLibrary");
case TargetType.executable: break;
case TargetType.library:
case TargetType.staticLibrary:
settings.addDFlags("-lib");
break;
case TargetType.dynamicLibrary:
if (platform.compiler != "dmd" || platform.platform.canFind("windows") || platform.platform.canFind("osx"))
settings.addDFlags("-shared");
else
settings.prependDFlags("-shared", "-defaultlib=libphobos2.so");
break;
case TargetType.object:
settings.addDFlags("-c");
break;
}
if (tpath is null)
tpath = (NativePath(settings.targetPath) ~ getTargetFileName(settings, platform)).toNativeString();
settings.addDFlags("-of"~tpath);
}
void invoke(in BuildSettings settings, in BuildPlatform platform, void delegate(int, string) output_callback)
{
auto res_file = getTempFile("dub-build", ".rsp");
const(string)[] args = settings.dflags;
if (platform.frontendVersion >= 2066) args ~= "-vcolumns";
std.file.write(res_file.toNativeString(), escapeArgs(args).join("\n"));
logDiagnostic("%s %s", platform.compilerBinary, escapeArgs(args).join(" "));
invokeTool([platform.compilerBinary, "@"~res_file.toNativeString()], output_callback);
}
void invokeLinker(in BuildSettings settings, in BuildPlatform platform, string[] objects, void delegate(int, string) output_callback)
{
import std.string;
auto tpath = NativePath(settings.targetPath) ~ getTargetFileName(settings, platform);
auto args = ["-of"~tpath.toNativeString()];
args ~= objects;
args ~= settings.sourceFiles;
if (platform.platform.canFind("linux"))
args ~= "-L--no-as-needed"; // avoids linker errors due to libraries being specified in the wrong order by DMD
args ~= lflagsToDFlags(settings.lflags);
args ~= settings.dflags.filter!(f => isLinkerDFlag(f)).array;
auto res_file = getTempFile("dub-build", ".lnk");
std.file.write(res_file.toNativeString(), escapeArgs(args).join("\n"));
logDiagnostic("%s %s", platform.compilerBinary, escapeArgs(args).join(" "));
invokeTool([platform.compilerBinary, "@"~res_file.toNativeString()], output_callback);
}
string[] lflagsToDFlags(in string[] lflags) const
{
return map!(f => "-L"~f)(lflags.filter!(f => f != "")()).array();
}
private auto escapeArgs(in string[] args)
{
return args.map!(s => s.canFind(' ') ? "\""~s~"\"" : s);
}
private static bool isLinkerDFlag(string arg)
{
switch (arg) {
default:
if (arg.startsWith("-defaultlib=")) return true;
return false;
case "-g", "-gc", "-m32", "-m64", "-shared", "-lib", "-m32mscoff":
return true;
}
}
}
|
D
|
/**
* TypeInfo support code.
*
* Copyright: Copyright Digital Mars 2004 - 2009.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Walter Bright
*/
/* Copyright Digital Mars 2004 - 2009.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module rt.typeinfo.ti_Areal;
private import rt.typeinfo.ti_real;
private import rt.util.hash;
// real[]
class TypeInfo_Ae : TypeInfo_Array
{
override equals_t opEquals(Object o) { return TypeInfo.opEquals(o); }
@trusted:
const:
pure:
nothrow:
override string toString() const pure nothrow @safe { return "real[]"; }
override hash_t getHash(in void* p)
{
real[] s = *cast(real[]*)p;
return hashOf(s.ptr, s.length * real.sizeof);
}
override equals_t equals(in void* p1, in void* p2)
{
real[] s1 = *cast(real[]*)p1;
real[] s2 = *cast(real[]*)p2;
size_t len = s1.length;
if (len != s2.length)
return false;
for (size_t u = 0; u < len; u++)
{
if (!TypeInfo_e._equals(s1[u], s2[u]))
return false;
}
return true;
}
override int compare(in void* p1, in void* p2)
{
real[] s1 = *cast(real[]*)p1;
real[] s2 = *cast(real[]*)p2;
size_t len = s1.length;
if (s2.length < len)
len = s2.length;
for (size_t u = 0; u < len; u++)
{
int c = TypeInfo_e._compare(s1[u], s2[u]);
if (c)
return c;
}
if (s1.length < s2.length)
return -1;
else if (s1.length > s2.length)
return 1;
return 0;
}
override @property const(TypeInfo) next() nothrow pure
{
return typeid(real);
}
}
// ireal[]
class TypeInfo_Aj : TypeInfo_Ae
{
@trusted:
const:
pure:
nothrow:
override string toString() const pure nothrow @safe { return "ireal[]"; }
override @property const(TypeInfo) next() nothrow pure
{
return typeid(ireal);
}
}
|
D
|
/**
Copyright: Copyright (c) 2013-2014 Andrey Penechko.
License: a$(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Andrey Penechko.
*/
module emulator.dcpu.devices.genericclock;
import std.stdio;
import anchovy.graphics.bitmap;
import emulator.dcpu.devices.idevice;
import emulator.dcpu.emulator;
import emulator.dcpu.dcpu;
import emulator.utils.undoproxy;
@trusted nothrow:
/++
+ Generic Clock (compatible) v1.0
+ See 'docs/generic clock.txt' for specification.
+/
private struct ClockRegisters
{
ulong initialCycles;
ushort ticks;
ushort divider;
ulong tickPeriod;
ushort interruptMessage;
}
class GenericClock(Cpu) : IDevice!Cpu
{
protected:
Cpu* _dcpu;
Emulator!Cpu _emulator;
UndoableStruct!(ClockRegisters, ushort) regs;
public:
/// Saves dcpu reference internally for future use.
override void attachEmulator(Emulator!Cpu emulator)
{
_emulator = emulator;
_dcpu = &emulator.dcpu;
regs.ticks = 0;
regs.divider = 0;
regs.tickPeriod = 0;
regs.interruptMessage = 0;
}
/// Handles hardware interrupt and returns a number of cycles.
override uint handleInterrupt()
{
ushort aRegister = _emulator.dcpu.regs.a;
ushort bRegister = _emulator.dcpu.regs.b;
switch(aRegister)
{
case 0:
if (regs.divider != 0)
{
_dcpu.updateQueue.removeQueries(this);
}
regs.divider = bRegister;
if (regs.divider != 0)
{
regs.tickPeriod = cast(ulong)(_dcpu.clockSpeed / (60.0 / regs.divider));
_dcpu.updateQueue.addQuery(this, regs.tickPeriod);
}
regs.ticks = 0;
regs.initialCycles = _dcpu.regs.cycles;
return 0;
case 1:
_dcpu.regs.b = regs.ticks;
return 0;
case 2:
regs.interruptMessage = bRegister;
return 0;
default:
break;
}
return 0;
}
/// Called every application frame.
/// Can be used to update screens.
override void updateFrame()
{
}
override void handleUpdateQuery(ref ulong delay)
{
ulong diff = _dcpu.regs.cycles - regs.initialCycles;
ulong totalTicks = diff / regs.tickPeriod;
if (totalTicks > regs.ticks)
{
foreach(i; 0..totalTicks - regs.ticks)
{
regs.inc!"ticks";
if (regs.interruptMessage > 0)
{
triggerInterrupt(_emulator.dcpu, regs.interruptMessage);
}
}
}
delay = regs.tickPeriod;
}
/// Returns: 32 bit word identifying the hardware id.
override uint hardwareId() @property
{
return 0x12d0b402;
}
/// Returns: 16 bit word identifying the hardware version.
override ushort hardwareVersion() @property
{
return 1;
}
/// Returns: 32 bit word identifying the manufacturer
override uint manufacturer() @property
{
return 0;
}
override void commitFrame(ulong frameNumber)
{
regs.commitFrame(frameNumber);
}
override void discardFrame()
{
regs.discardFrame();
}
override void undoFrames(ulong numFrames)
{
regs.undoFrames(numFrames);
}
override void discardUndoStack()
{
regs.discardUndoStack();
}
override size_t undoStackSize() @property
{
return regs.undoStackSize;
}
}
|
D
|
/// Copyright: Copyright (c) 2017-2019 Andrey Penechko.
/// License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
/// Authors: Andrey Penechko.
module vox.fe.ast.expr.slice;
import vox.all;
@(AstType.expr_slice)
struct SliceExprNode {
mixin ExpressionNodeData!(AstType.expr_slice);
AstIndex array;
AstIndex fromIndex;
AstIndex toIndex;
}
void print_expr_slice(SliceExprNode* node, ref AstPrintState state)
{
state.print("SLICE");
print_ast(node.array, state);
print_ast(node.fromIndex, state);
print_ast(node.toIndex, state);
}
void post_clone_expr_slice(SliceExprNode* node, ref CloneState state)
{
state.fixAstIndex(node.array);
state.fixAstIndex(node.fromIndex);
state.fixAstIndex(node.toIndex);
}
void name_register_nested_expr_slice(SliceExprNode* node, ref NameRegisterState state) {
node.state = AstNodeState.name_register_nested;
require_name_register(node.array, state);
require_name_register(node.fromIndex, state);
require_name_register(node.toIndex, state);
node.state = AstNodeState.name_register_nested_done;
}
void name_resolve_expr_slice(SliceExprNode* node, ref NameResolveState state)
{
CompilationContext* c = state.context;
node.state = AstNodeState.name_resolve;
require_name_resolve(node.array, state);
require_name_resolve(node.fromIndex, state);
require_name_resolve(node.toIndex, state);
node.state = AstNodeState.name_resolve_done;
}
void type_check_expr_slice(SliceExprNode* node, ref TypeCheckState state)
{
CompilationContext* c = state.context;
node.state = AstNodeState.type_check;
node.array.flags(c) |= AstFlags.isLvalue;
require_type_check(node.array, state);
require_type_check(node.fromIndex, state);
autoconvTo(node.fromIndex, CommonAstNodes.type_i64, c);
require_type_check(node.toIndex, state);
autoconvTo(node.toIndex, CommonAstNodes.type_i64, c);
switch (node.array.get_expr_type(c).astType(c)) with(AstType)
{
case type_ptr, type_static_array:
AstIndex elemType = node.array.get_expr_type(c).get_type(c).getElementType(c);
node.type = c.appendAst!SliceTypeNode(node.loc, CommonAstNodes.type_type, elemType);
break;
case type_slice:
node.type = node.array.get_expr_type(c);
break;
default: c.internal_error("Cannot slice value of type `%s`", node.array.get_expr_type(c).printer(c));
}
node.state = AstNodeState.type_check_done;
}
ExprValue ir_gen_expr_slice(ref IrGenState gen, IrIndex curBlock, ref IrLabel nextStmt, SliceExprNode* node)
{
CompilationContext* c = gen.context;
ExpressionNode* arrayExpr = node.array.get_expr(c);
IrLabel afterFrom = IrLabel(curBlock);
ExprValue fromIndexLvalue = ir_gen_expr(gen, node.fromIndex, curBlock, afterFrom);
curBlock = afterFrom.blockIndex;
IrIndex fromIndexRvalue = fromIndexLvalue.rvalue(gen, node.loc, curBlock);
IrLabel afterTo = IrLabel(curBlock);
ExprValue toIndexLvalue = ir_gen_expr(gen, node.toIndex, curBlock, afterTo);
curBlock = afterTo.blockIndex;
IrIndex toIndexRvalue = toIndexLvalue.rvalue(gen, node.loc, curBlock);
IrLabel afterArray = IrLabel(curBlock);
ExprValue arrayLvalue = ir_gen_expr(gen, node.array, curBlock, afterArray);
curBlock = afterArray.blockIndex;
IrIndex aggregateIndex = c.constants.addZeroConstant(makeIrType(IrBasicType.i32));
IrIndex slicePtrIndex = c.constants.add(makeIrType(IrBasicType.i32), 1);
AstType astType = arrayExpr.type.get_type(c).astType;
IrIndex ptr; // pointer to first element
IrIndex length; // slice length
if (fromIndexRvalue.isSimpleConstant && c.constants.get(fromIndexRvalue).i64 == 0)
{
// special case for array[0..to];
ptr = arrayLvalue.irValue;
switch (astType) with(AstType)
{
case type_ptr:
// read pointer variable for T*
ptr = arrayLvalue.rvalue(gen, node.loc, curBlock);
break;
case type_static_array:
// need to convert [n x T]* into T* for static arrays
IrIndex ZERO = c.constants.addZeroConstant(makeIrType(IrBasicType.i32));
ptr = buildGEP(gen, node.loc, curBlock, ptr, ZERO, ZERO);
break;
case type_slice:
ExprValue ptrLvalue = arrayLvalue.member(gen, node.loc, curBlock, slicePtrIndex);
ptr = ptrLvalue.rvalue(gen, node.loc, curBlock);
break;
default: assert(false);
}
length = toIndexRvalue;
}
else
{
switch (astType) with(AstType)
{
case type_ptr:
ptr = buildGEP(gen, node.loc, curBlock, arrayLvalue.irValue, fromIndexRvalue);
break;
case type_static_array:
IrIndex ZERO = c.constants.addZeroConstant(makeIrType(IrBasicType.i32));
ptr = buildGEP(gen, node.loc, curBlock, arrayLvalue.irValue, ZERO, fromIndexRvalue);
break;
case type_slice:
ExprValue ptrLvalue = arrayLvalue.member(gen, node.loc, curBlock, slicePtrIndex);
ptr = ptrLvalue.rvalue(gen, node.loc, curBlock);
ptr = buildGEP(gen, node.loc, curBlock, ptr, fromIndexRvalue);
break;
default: assert(false);
}
ExtraInstrArgs extra1 = {
type : makeIrType(IrBasicType.i64),
argSize : IrArgSize.size64
};
length = gen.builder.emitInstr!(IrOpcode.sub)(curBlock, extra1, toIndexRvalue, fromIndexRvalue).result;
}
//writefln("len %s, ptr %s", length, ptr);
// combine into slice {u64, T*}
IrIndex resType = node.type.gen_ir_type(c);
ExtraInstrArgs extra = { type : resType };
InstrWithResult res = gen.builder.emitInstr!(IrOpcode.create_aggregate)(curBlock, extra, length, ptr);
gen.builder.addJumpToLabel(curBlock, nextStmt);
return ExprValue(res.result);
}
|
D
|
module gui.iroot;
/* Implement this one of these to be registrable with gui.root.
* GUI Elements have this, but the editor has it too. The root makes it handle
* its diagog boxes' focus correctly.
*/
interface IDrawable {
void reqDraw(); // notify that it can't cut shortcuts in draw()
void draw();
}
interface IRoot : IDrawable {
void calc(); // logic update when it has focus
void work(); // logic update always, when it has focus or no focus
}
|
D
|
module kiss.socket.SocketBase;
import KissRpc.Logs;
import std.socket;
import std.conv;
interface SocketBase
{
bool isOpen();
bool peek();
void close();
bool connect(string host , ushort port);
bool listen(string ipaddr, ushort port ,int back_log, bool breuse);
size_t read(byte[] buf);
size_t write(byte[] buf);
void flush();
int handle();
bool isAlive();
void setKeepAlive(int time, int interval);
Socket accept();
Address remoteAddress();
Address localAddress();
void setOption(T)(SocketOptionLevel level, SocketOption option, T value);
T getOption(T)(SocketOptionLevel level, SocketOption option);
string errorString();
void setSocket(Socket socket);
}
class KissTcpSocket : SocketBase
{
public:
bool isOpen()
{
return _socket.handle != socket_t.init && this.peek();
}
bool peek()
{
byte[] s;
return _socket.receive(s, SocketFlags.PEEK) == s.length;
}
bool connect(string host, ushort port)
{
string strPort = to!string(port);
AddressInfo[] arr = getAddressInfo(host , strPort , AddressInfoFlags.CANONNAME);
if(arr.length == 0)
{
logError(host ~ ":" ~ strPort);
return false;
}
_socket = new Socket(arr[0].family , arr[0].type , arr[0].protocol);
_socket.blocking(false);
_socket.connect(arr[0].address);
return true;
}
bool listen(string ipaddr, ushort port, int back_log = 2048, bool breuse = true)
{
string strPort = to!string(port);
AddressInfo[] arr = getAddressInfo(ipaddr , strPort , AddressInfoFlags.PASSIVE);
if(arr.length == 0)
{
logError("getAddressInfo" ~ ipaddr ~ ":" ~ strPort);
return false;
}
_socket = new Socket(arr[0].family , arr[0].type , arr[0].protocol);
uint use = 1;
if(breuse)
{
_socket.setOption(SocketOptionLevel.SOCKET , SocketOption.REUSEADDR , use);
version(linux)
{
//SO_REUSEPORT
_socket.setOption(SocketOptionLevel.SOCKET, cast(SocketOption) 15, use);
}
}
_socket.bind(arr[0].address);
_socket.blocking(false);
_socket.listen(back_log);
return true;
}
void close()
{
_socket.close();
}
size_t read(byte[] buf)
{
return _socket.receive(buf);
}
size_t write(byte[] buf)
{
return _socket.send(buf);
}
void flush()
{
this.setOption(SocketOptionLevel.SOCKET, SocketOption.KEEPALIVE, 1);
this.setOption(SocketOptionLevel.TCP, SocketOption.TCP_NODELAY, 1);
}
int handle()
{
return _socket.handle;
}
bool isAlive()
{
return _socket.isAlive;
}
void setKeepAlive(int time, int interval)
{
_socket.setKeepAlive(time, interval);
}
Socket accept()
{
return _socket.accept;
}
Address remoteAddress()
{
return _socket.remoteAddress;
}
Address localAddress()
{
return _socket.localAddress;
}
void setOption(T)(SocketOptionLevel level, SocketOption option, T value)
{
_socket.setOption(level, option, value);
}
T getOption(T)(SocketOptionLevel level, SocketOption option)
{
T value;
return _socket.getOption(level, option, value);
}
string errorString()
{
return _socket.getErrorText();
}
void setSocket(Socket socket)
{
_socket = socket;
}
private:
Socket _socket;
}
|
D
|
// Copyright Ferdinand Majerech 2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
///Records which parts of a frame took how much time.
module util.frameprofiler;
import std.algorithm;
import std.conv;
import std.stdio;
import time.time;
/**
* Pause recording of profiling data.
*
* Frames after this call won't be recorded - but their IDs (frame numbers) will
* still be incremented.
*
* This can only be called outside of a frame.
*/
void frameProfilerPause()
{
if(state_ == FrameProfilerState.Stopped){return;}
assert(currentZoneLevel_ == 0, "Can't pause frame profiler while recording a frame");
// Already stopped, or, not even profiling - don't bother pausing.
if(state_ == FrameProfilerState.Stopped ||
state_ == FrameProfilerState.Uninitialized)
{
return;
}
state_ = FrameProfilerState.Paused;
}
/**
* Resume recording of profiling data.
*
* This can only be called outside of a frame.
*/
void frameProfilerResume()
{
if(state_ == FrameProfilerState.Stopped){return;}
assert(currentZoneLevel_ == 0, "Can't resume frame profiler while recording a frame");
// Already stopped, or, not even profiling - don't bother resuming.
if(state_ == FrameProfilerState.Stopped ||
state_ == FrameProfilerState.Uninitialized)
{
return;
}
state_ = FrameProfilerState.Recording;
}
/**
* Single frame during a game run. Records time at construction and destruction.
* Keeps track of all zones within a frame, and frame number.
*/
struct Frame
{
/**
* Construct a frame, recording its start time, ID, etc.
*
* If frameProfilerInit has not been called, this is a noop.
*
* Params: frameInfo = String with information (e.g. name) about the frame.
* This is useful when parsing profile dumps later.
*/
this(string frameInfo)
{
++frameID_;
// Frame skipping.
if(state_ == FrameProfilerState.Recording ||
state_ == FrameProfilerState.SkippedFrame)
{
state_ = (frameID_ % (1 + frameSkip_) != 0) ? FrameProfilerState.SkippedFrame
: FrameProfilerState.Recording;
}
if(unableToRecord()) {return;}
assert(currentZoneLevel_ == 0, "Starting a frame when we're already in a frame'");
++currentZoneLevel_;
// Initialize frame in storage.
with(frames_[recordedFrameCount_])
{
start = getTime();
zoneOffset = recordedZoneCount_;
frameID = frameID_;
const charCount = min(frameInfo.length, info.length);
info[0 .. charCount] = frameInfo[0 .. charCount];
infoBytes = cast(ubyte)charCount;
}
}
/// Destroy/exit the frame, recording time when it ends.
~this()
{
if(unableToRecord()) {return;}
assert(currentZoneLevel_ == 1, "Ending a frame before exiting all zones");
frames_[recordedFrameCount_].end = getTime();
--currentZoneLevel_;
++recordedFrameCount_;
}
}
/**
* Zone in profiled code. Records high precision time at construction
* and destruction. Zones can also be nested.
*
* A zone must be fully contained within either a frame or a parent zone.
* I.e. it must be destroyed before its parent is destroyed.
*/
struct Zone
{
private:
/// Index of the stored zone in the zones_ array.
///
/// That is where recorded data is stored.
///
/// If set to uint.max, the zone is ignored (e.g. outside of a frame).
uint zoneIndex_;
public:
/**
* Construct a zone, recording its start time.
*
* If frameProfilerInit has not been called this is a noop.
*
* Params: zoneInfo = String with information (e.g. name) about the zone.
* This is useful when parsing profile dumps later.
*/
this(string zoneInfo)
{
if(unableToRecord()) {return;}
if(currentZoneLevel_ < 1)
{
writeln("Zone " ~ zoneInfo ~ " outside of a frame; ignoring");
zoneIndex_ = uint.max;
return;
}
++currentZoneLevel_;
zoneIndex_ = recordedZoneCount_;
assert(currentZoneLevel_ < zoneStack_.length, "Too deep zone nesting");
zoneStack_[currentZoneLevel_] = zoneIndex_;
// Initialize zone in storage.
with(zones_[zoneIndex_])
{
start = getTime();
// zoneStack_[1] is uint.max - topmost zones in a frame
// don't have a parent
parent = zoneStack_[currentZoneLevel_ - 1];
const charCount = min(zoneInfo.length, info.length);
info[0 .. charCount] = zoneInfo[0 .. charCount];
infoBytes = cast(ubyte)charCount;
}
++recordedZoneCount_;
++frames_[recordedFrameCount_].zoneCount;
}
/// Destroy a zone, recording its end time and exiting it.
~this()
{
if(unableToRecord() || zoneIndex_ == uint.max) {return;}
zones_[zoneIndex_].end = getTime();
assert(zones_[zoneIndex_].parent == zoneStack_[currentZoneLevel_ - 1],
"A child zone (" ~ zones_[zoneIndex_].info ~
") appears not to be entirely contained in its parent zone");
--currentZoneLevel_;
}
}
/**
* Initialize/enable frame profiler, provifing memory to store profile data.
*
* If this is not called, any Zones/Frames and other frame profiler calls
* are noops, except for frameProfilerDump(), which must not be called.
*
* Params: storage = Memory for the profiler to use to accumulate profile
* data. This must NOT be deallocated for as long as any
* FrameProfiler functions/classes are being used.
* When FrameProfiler runs out of this space, it stops
* recording profile data.
* frameSkip = Number of frames to skip between each recorded frame.
* For example, frameSkip 1 will result in every second
* frame being recorded. Can be used to limit profiler
* overhead and memory usage.
*/
void frameProfilerInit(ubyte[] storage, const uint frameSkip = 0)
{
assert(state_ == FrameProfilerState.Uninitialized,
"Frame profiler is already initialized");
state_ = FrameProfilerState.Recording;
// Frames take ~5% of storage, zones ~95%.
// We use a bit less and align thanks to integer division.
const size_t frameCap = (storage.length / 20 * 1) / FrameStorage.sizeof;
const size_t zoneCap = (storage.length / 20 * 19) / ZoneStorage.sizeof;
const size_t frameBytes = frameCap * FrameStorage.sizeof;
const size_t zoneBytes = zoneCap * ZoneStorage.sizeof;
frames_ = cast(FrameStorage[])(storage[0 .. frameBytes]);
zones_ = cast(ZoneStorage[])(storage[frameBytes .. frameBytes + zoneBytes]);
frameSkip_ = frameSkip;
}
/**
* Dump recorded profile data.
*
* This will dump in a human-readable YAML based format.
*
* Can only be called if frameProfilerInit was called before.
*
* Params: dumpLine = This is called once for every output line. The passed
* string will NOT end with a newline - the function will
* have to add it itself, if needed.
*
* Example:
* --------------------
* // Dump into stdout
* frameProfilerDump(void(string str){writeln(str);});
* --------------------
*/
void frameProfilerDump(void delegate(string) dumpLine)
{
assert(state_ != FrameProfilerState.Uninitialized,
"Frame profiler is not initialized");
dumpLine("frames:");
char [4 * zoneStack_.length + 256] spaceStorage;
spaceStorage[] = ' ';
string spaces = cast(string)spaceStorage[0 .. $];
foreach(ref frame; frames_[0 .. recordedFrameCount_])
{
dumpLine(spaces[0 .. 2] ~ "- id: " ~ to!string(frame.frameID));
dumpLine(spaces[0 .. 4] ~ "start: " ~ to!string(frame.start));
dumpLine(spaces[0 .. 4] ~ "end: " ~ to!string(frame.end));
dumpLine(spaces[0 .. 4] ~ "duration: " ~
to!string((frame.end - frame.start) * 1000.0) ~ "ms");
dumpLine(spaces[0 .. 4] ~ "frame: " ~
cast(string)(frame.info[0 .. frame.infoBytes]));
//dumpLine(spaces[0 .. 2] ~ "zones:");
if(frame.zoneCount == 0)
{
continue;
}
// Zones of this frame.
const zones = zones_[frame.zoneOffset .. frame.zoneOffset + frame.zoneCount];
// This is _extremely_ inefficient.
// If profile dumping is too slow, use a better algorithm.
void dumpZones(const size_t parent, const size_t indent)
{
bool found = false;
// Find all zones with specified parent.
// If any zones at all are found, we start the "zones: " sequence.
// Then we dump the found zones, and recursively look for their children.
foreach(z, ref zone; zones)
{
if(zone.parent != parent) {continue;}
if(!found)
{
found = true;
dumpLine(spaces[0 .. indent] ~ "zones:");
}
dumpLine(spaces[0 .. indent + 2] ~ "- zone: " ~
cast(string)zone.info[0 .. zone.infoBytes]);
dumpLine(spaces[0 .. indent + 4] ~ "start: " ~ to!string(zone.start));
dumpLine(spaces[0 .. indent + 4] ~ "end: " ~ to!string(zone.end));
dumpLine(spaces[0 .. indent + 4] ~ "duration: " ~
to!string((zone.end - zone.start) * 1000.0) ~ "ms");
dumpZones(frame.zoneOffset + z, indent + 4);
}
}
dumpZones(uint.max, 4);
}
}
/// End frame profiler execution, returning it to state before frameProfilerInit().
///
/// The user is responsible for deleting any storage it passed
/// to the frame profiler.
void frameProfilerEnd()
{
frameSkip_ = 0;
currentZoneLevel_ = 0;
state_ = FrameProfilerState.Uninitialized;
zoneStack_[] = uint.max;
frameID_ = 0;
recordedFrameCount_ = 0;
recordedZoneCount_ = 0;
frames_ = null;
zones_ = null;
}
private:
//64 bytes
struct ZoneStorage
{
double start;
double end;
uint parent;
char[43] info;
ubyte infoBytes;
static assert(ZoneStorage.sizeof == 64, "Unexpected size of ZoneStorage");
}
//64 bytes
struct FrameStorage
{
double start;
double end;
//first zone in zones array
uint zoneOffset;
//number of zones in frame
uint zoneCount;
//First frame is 0, second 1, etc...
//This might not be consecutive if frame skipping is enabled.
uint frameID;
char[35] info;
ubyte infoBytes;
static assert(FrameStorage.sizeof == 64, "Unexpected size of FrameStorage");
}
// How many frames are skipped between each recorded frame?
//
// If 0, each frame is recorded. If 1, every second frame is recorded, etc.
uint frameSkip_ = 0;
// Nesting level of the current zone.
//
// When not in a frame, this is 0. When in a frame, but not yet in any zone, it
// is 1. In the first zone it is 2, etc. .
uint currentZoneLevel_ = 0;
// Stack of all zones we currently are in.
//
// uint.max means that there is no zone on this level;
// for instance; level 0 is nothing and level 1 is the frame.
//
// This is used to keep track of parents of the current zone.
// With that, we can verify that zones are correctly nested.
uint[256] zoneStack_ = uint.max;
// ID (number) of the current frame.
//
// 1 for the first frame, 2 for the second, etc. .
// This is correct even if frames are skipped,
uint frameID_ = 0;
// Possible states the frame profiler might be in.
enum FrameProfilerState
{
// frameProfilerInit() has not yet been caled.
//
// Any frame profiler calls are noops at this point.
Uninitialized,
// Recording profile data.
//
// We're in this state after a call to frameProfilerInit()
// and any subsequent calls to frameProfilerResume().
Recording,
// In a skipped frame while recording profile data.
//
// We're in this state when frameSkip_ is nonzero and we're skipping the
// current frame.
SkippedFrame,
// Paused recording.
//
// We're in this state after frameProfilerPause() is called
// (unless we were Uninitialized/Stopped before the call - then
// frameProfilerPause() has no effect).
Paused,
// Recording stopped permanently.
//
// We're in this state after we run out of memory provided by the
// frameProfilerInit() call.
Stopped
}
// Current state of the frame profiler.
FrameProfilerState state_ = FrameProfilerState.Uninitialized;
// Number of frames recorded so far.
uint recordedFrameCount_ = 0;
// Number of zones recorded so far.
uint recordedZoneCount_ = 0;
// Storage for recorded frames. Provided by the user in frameProfilerInit().
FrameStorage[] frames_ = null;
// Storage for recorded zones. Provided by the user in frameProfilerInit().
ZoneStorage[] zones_ = null;
// Are we unable to record at the moment?
//
// We are only able to record when we're in the Recording state and have enough
// space to store new frames/zones.
bool unableToRecord()
{
// Not initialized, paused, stopped or skipping a frame - either way, not recording.
if(state_ != FrameProfilerState.Recording) {return true;}
// Ran out of space.
if(recordedFrameCount_ >= frames_.length || recordedZoneCount_ >= zones_.length)
{
state_ = FrameProfilerState.Stopped;
return true;
}
assert(frames_ !is null && zones_ !is null,
"Frame profiler is running but frames_ and/or zones_ are not initialized");
return false;
}
|
D
|
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
module vtkNonLinearCell;
static import vtkd_im;
static import core.stdc.config;
static import std.conv;
static import std.string;
static import std.conv;
static import std.string;
static import vtkObjectBase;
static import vtkCell;
class vtkNonLinearCell : vtkCell.vtkCell {
private void* swigCPtr;
public this(void* cObject, bool ownCObject) {
super(vtkd_im.vtkNonLinearCell_Upcast(cObject), ownCObject);
swigCPtr = cObject;
}
public static void* swigGetCPtr(vtkNonLinearCell obj) {
return (obj is null) ? null : obj.swigCPtr;
}
mixin vtkd_im.SwigOperatorDefinitions;
public override void dispose() {
synchronized(this) {
if (swigCPtr !is null) {
if (swigCMemOwn) {
swigCMemOwn = false;
throw new object.Exception("C++ destructor does not have public access");
}
swigCPtr = null;
super.dispose();
}
}
}
public static int IsTypeOf(string type) {
auto ret = vtkd_im.vtkNonLinearCell_IsTypeOf((type ? std.string.toStringz(type) : null));
return ret;
}
public static vtkNonLinearCell SafeDownCast(vtkObjectBase.vtkObjectBase o) {
void* cPtr = vtkd_im.vtkNonLinearCell_SafeDownCast(vtkObjectBase.vtkObjectBase.swigGetCPtr(o));
vtkNonLinearCell ret = (cPtr is null) ? null : new vtkNonLinearCell(cPtr, false);
return ret;
}
public vtkNonLinearCell NewInstance() const {
void* cPtr = vtkd_im.vtkNonLinearCell_NewInstance(cast(void*)swigCPtr);
vtkNonLinearCell ret = (cPtr is null) ? null : new vtkNonLinearCell(cPtr, false);
return ret;
}
alias vtkCell.vtkCell.NewInstance NewInstance;
}
|
D
|
module android.java.android.telephony.NetworkScan_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import0 = android.java.java.lang.Class_d_interface;
final class NetworkScan : IJavaObject {
static immutable string[] _d_canCastTo = [
];
@Import void stopScan();
@Import import0.Class getClass();
@Import int hashCode();
@Import bool equals(IJavaObject);
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import void notify();
@Import void notifyAll();
@Import void wait(long);
@Import void wait(long, int);
@Import void wait();
mixin IJavaObjectImplementation!(false);
public static immutable string _javaParameterString = "Landroid/telephony/NetworkScan;";
}
|
D
|
/**
Module implements FAST<sup>[1]</sup> corner detector algorithm - Features from accelerated segment test (FAST) algorithm
discovered and developed by Edward Rosten and Tom Drummond.
This package offers D class interface to machine generated C code, adopted
to D, which is located originally on $(LINK3 https://github.com/edrosten/fast-C-src, Edward Rosten's github).
Copyright: Copyright (c) 2006, 2008 Edward Rosten, Relja Ljubobratovic 2016
Authors: Edward Rosten, Relja Ljubobratovic
License: $(LINK3 http://www.boost.org/LICENSE_1_0.txt, Boost Software License - Version 1.0).
1. Edward Rosten, Tom Drummond (2005). "Fusing points and lines for high performance tracking", IEEE International Conference on Computer Vision 2: 1508–1511.
*/
module dcv.features.corner.fast;
import mir.ndslice;
import dcv.core.image : BitDepth;
import dcv.features.utils : Feature;
import dcv.features.corner.fast.base : xy;
import dcv.features.corner.fast.fast_9;
import dcv.features.corner.fast.fast_10;
import dcv.features.corner.fast.fast_11;
import dcv.features.corner.fast.fast_12;
import dcv.features.corner.fast.nonmax;
public import dcv.features.detector;
/**
FAST corner detector utility.
*/
class FASTDetector : Detector
{
public
{
/// Should the non-maximum suppression be performed with the detection.
static immutable PERFORM_NON_MAX_SUPRESSION = 0x0100;
/// Should the features be sorted by score at the output.
static immutable SORT_OUT_FEATURES_BY_SCORE = 0x0200;
}
/// Pixel neighborhood type, described in the paper.
public enum Type
{
FAST_9,
FAST_10,
FAST_11,
FAST_12,
}
private
{
uint _threshold;
Type _type;
int _flags;
}
/**
Default constructor.
Params:
threshold = Threshold on pixel intensity difference between central and border pixels.
type = Pixel neighborhood type.
flags = Flag value where <i>PERFORM_NON_MAX_SUPRESSION</i> and/or <i>SORT_OUT_FEATURES_BY_SCORE</i> flags can be passed.
*/
@safe pure nothrow this(uint threshold = 100, Type type = Type.FAST_9, int flags = 0)
{
assert(threshold > 0);
this._threshold = threshold;
this._type = type;
this._flags = flags;
}
/// Threshold for corner detection.
auto threshold() const @property @safe pure nothrow @nogc
{
return _threshold;
}
/// Threshold value setter.
auto threshold(uint value) @property @safe pure nothrow @nogc
{
assert(value > 0);
_threshold = value;
}
/// Type of the detector.
auto type() const @property @safe pure nothrow @nogc
{
return _type;
}
/// ditto
auto type(Type type) @property @safe pure nothrow @nogc
{
_type = type;
}
/// Algorithm flags.
auto flags() const @property @safe pure nothrow @nogc
{
return _flags;
}
/**
Detect features for given image.
Params:
image = Input image where corners are to be found. Only 8-bit mono image is supported as this time.
count = How many corners are to be found.
Returns:
Array of found feature points.
*/
override Feature[] detect(in Image image, size_t count = 0) const
{
import core.stdc.stdlib : free;
import std.exception : enforce;
import std.algorithm : min;
enforce(image.depth == BitDepth.BD_8, "Invalid bit depth - FAST is supported so " ~ "far only for 8-bit images");
enforce(image.channels == 1, "Invalid image format - has to be mono");
Feature[] features; // output features
int featureCount = 0; // feature count - internal use
int* featureScore = null; // feature score intenal use
xy* xyFeatures = null; // xy (feature coordinate) array - internal use
scope (exit)
{
free(featureScore);
free(xyFeatures);
}
xy* function(const ubyte*, int, int, int, int, int*) detectFunc;
int* function(const ubyte* i, int stride, xy* corners, int num_corners, int b) scoreFunc;
final switch (_type)
{
case Type.FAST_9:
detectFunc = &fast9_detect;
scoreFunc = &fast9_score;
break;
case Type.FAST_10:
detectFunc = &fast10_detect;
scoreFunc = &fast10_score;
break;
case Type.FAST_11:
detectFunc = &fast11_detect;
scoreFunc = &fast11_score;
break;
case Type.FAST_12:
detectFunc = &fast12_detect;
scoreFunc = &fast12_score;
}
xyFeatures = detectFunc(cast(const ubyte*)image.data.ptr, cast(int)image.width,
cast(int)image.height, cast(int)image.rowStride, cast(int)threshold, &featureCount);
if (flags & FASTDetector.PERFORM_NON_MAX_SUPRESSION)
{
int nonMaxFeatureCount = 0;
xy* xySuppressed = null;
featureScore = scoreFunc(cast(ubyte*)image.data.ptr, cast(int)image.rowStride,
xyFeatures, featureCount, cast(int)threshold);
xySuppressed = nonmax_suppression(xyFeatures, featureScore, featureCount, &nonMaxFeatureCount);
// free the score before the suppresion
free(featureScore);
featureScore = null;
// assign new feature count after the suppression
featureCount = nonMaxFeatureCount;
// free previous features and assign new ones.
free(xyFeatures);
xyFeatures = xySuppressed;
}
featureScore = scoreFunc(cast(ubyte*)image.data.ptr, cast(int)image.rowStride, xyFeatures,
featureCount, cast(int)threshold);
features.reserve(featureCount);
foreach (i; 0 .. featureCount)
{
Feature f;
f.x = xyFeatures[i].x;
f.y = xyFeatures[i].y;
f.width = 16.;
f.height = 16.;
f.octave = 0;
f.score = featureScore[i];
features ~= f;
}
// TODO: sort raw results. (before creating Feature objects)
if (flags & FASTDetector.SORT_OUT_FEATURES_BY_SCORE)
{
import std.algorithm : sort;
features.sort!((a, b) => a.score > b.score);
}
// TODO: if not sorted, taking first N features does not make any sense.
if (count && count < featureCount)
{
import std.range : take;
import std.array : array;
features = features.take(count).array;
}
return features;
}
}
version (unittest)
{
import std.algorithm : map;
import std.array : array;
import std.algorithm.sorting : isSorted;
import dcv.core.image;
// lena image resized to 128x128 in grayscale
immutable lena_128x128 = [155, 154, 156, 148, 149, 146, 147, 147, 146, 152, 158, 165, 165, 160,
139, 115, 87, 82, 91, 95, 99, 96, 97, 99, 99, 95, 100, 106, 108, 113, 118, 115, 119, 120,
127, 122, 116, 122, 122, 124, 124, 123, 124, 122, 123, 123, 125, 121, 126, 126, 124, 126,
122, 121, 119, 120, 121, 124, 122, 121, 123, 125, 122, 121, 129, 119, 121, 121, 120, 124,
117, 124, 121, 120, 116, 117, 115, 112, 103, 93, 105, 125, 136, 144, 155, 148, 145, 142,
146, 146, 147, 144, 145, 145, 144, 145, 147, 147, 152, 147, 158, 204, 212, 216, 205, 130,
93, 99, 109, 113, 108, 109, 117, 110, 111, 112, 111, 116, 114, 108, 117, 116, 115, 113,
109, 113, 162, 119, 155, 154, 156, 148, 149, 146, 147, 147, 146, 152, 158, 165, 164, 160,
139, 115, 87, 81, 91, 95, 99, 96, 97, 99, 99, 95, 100, 106, 108, 113, 118, 115, 119, 120,
127, 122, 116, 122, 122, 124, 124, 124, 124, 122, 123, 123, 125, 121, 126, 126, 124, 126,
122, 121, 119, 120, 121, 124, 122, 121, 123, 125, 122, 121, 129, 119, 121, 121, 120, 124,
117, 123, 121, 120, 116, 117, 114, 112, 103, 93, 105, 125, 136, 144, 155, 148, 145, 142,
146, 145, 147, 144, 145, 145, 144, 145, 147, 147, 151, 147, 158, 204, 212, 216, 205, 130,
92, 99, 109, 113, 108, 109, 117, 110, 111, 112, 111, 116, 114, 108, 116, 116, 115, 113,
109, 113, 162, 117, 147, 151, 155, 151, 147, 149, 149, 143, 146, 153, 163, 164, 165, 156,
138, 111, 85, 79, 87, 93, 97, 91, 92, 95, 95, 96, 102, 102, 109, 110, 116, 115, 115, 116,
120, 120, 118, 120, 119, 123, 122, 123, 123, 120, 121, 121, 118, 118, 121, 122, 121, 124,
114, 123, 118, 117, 125, 123, 118, 122, 122, 120, 120, 124, 124, 120, 115, 119, 119, 119,
118, 118, 120, 117, 118, 117, 113, 112, 103, 101, 97, 110, 130, 140, 148, 150, 147, 143,
149, 146, 147, 150, 149, 144, 145, 147, 148, 146, 147, 147, 143, 185, 209, 214, 216, 185,
98, 98, 104, 111, 111, 111, 110, 114, 111, 114, 109, 112, 114, 112, 115, 118, 116, 116,
116, 98, 41, 40, 149, 149, 152, 147, 148, 149, 144, 145, 148, 155, 162, 161, 159, 158,
132, 111, 87, 77, 80, 91, 92, 97, 97, 89, 90, 89, 103, 103, 109, 111, 116, 113, 118, 117,
118, 122, 124, 117, 121, 121, 117, 125, 121, 122, 121, 122, 121, 121, 124, 118, 117, 119,
124, 124, 119, 118, 122, 121, 118, 122, 126, 123, 121, 119, 118, 122, 124, 119, 117, 120,
118, 121, 114, 118, 117, 117, 115, 112, 102, 102, 96, 100, 123, 136, 144, 152, 151, 147,
150, 151, 152, 150, 147, 148, 148, 146, 145, 144, 147, 147, 140, 150, 200, 213, 216, 212,
149, 95, 100, 106, 111, 112, 113, 111, 109, 111, 112, 109, 112, 112, 115, 116, 118, 128,
100, 43, 36, 42, 148, 150, 147, 149, 144, 148, 145, 143, 154, 163, 159, 159, 160, 149,
133, 115, 85, 78, 82, 92, 98, 95, 92, 93, 93, 89, 100, 104, 108, 115, 116, 115, 118, 119,
116, 120, 121, 124, 123, 117, 123, 121, 121, 125, 127, 124, 120, 120, 120, 125, 120, 121,
123, 119, 121, 118, 119, 123, 120, 120, 125, 128, 123, 121, 122, 121, 120, 116, 121, 116,
112, 118, 121, 118, 117, 117, 114, 112, 108, 113, 100, 92, 110, 134, 143, 146, 158, 151,
153, 155, 153, 154, 150, 152, 147, 144, 146, 141, 140, 143, 142, 141, 178, 207, 215, 217,
198, 110, 94, 102, 105, 110, 110, 110, 113, 111, 113, 112, 119, 120, 118, 122, 125, 86, 41,
38, 40, 45, 148, 147, 150, 150, 150, 145, 145, 151, 155, 158, 160, 155, 153, 148, 135,
119, 89, 78, 85, 92, 97, 96, 92, 92, 97, 92, 101, 104, 108, 109, 113, 114, 116, 119, 119,
119, 118, 118, 120, 120, 119, 121, 121, 121, 124, 121, 119, 121, 117, 123, 121, 116, 118,
118, 120, 125, 121, 120, 117, 121, 121, 124, 126, 121, 118, 117, 119, 115, 118, 119, 115,
116, 117, 120, 116, 116, 112, 113, 111, 105, 96, 91, 107, 129, 138, 148, 156, 154, 151,
157, 158, 153, 148, 150, 155, 149, 148, 145, 144, 146, 142, 142, 139, 196, 213, 217, 214,
169, 97, 100, 100, 109, 111, 114, 114, 115, 112, 121, 116, 121, 124, 126, 88, 41, 57, 38,
41, 43, 147, 143, 151, 150, 152, 149, 146, 154, 159, 162, 156, 157, 151, 150, 138, 114,
86, 76, 84, 90, 95, 94, 96, 92, 91, 95, 97, 99, 109, 112, 112, 120, 118, 111, 118, 119,
116, 121, 116, 118, 117, 119, 117, 123, 119, 120, 120, 122, 120, 117, 118, 118, 115, 119,
116, 117, 116, 117, 117, 117, 121, 121, 126, 121, 118, 122, 121, 118, 120, 118, 117, 115,
119, 117, 115, 118, 111, 111, 109, 100, 98, 97, 109, 124, 140, 150, 154, 156, 159, 148,
152, 151, 153, 147, 150, 146, 147, 143, 143, 143, 142, 141, 137, 166, 205, 215, 218, 205,
125, 97, 103, 114, 113, 110, 111, 110, 112, 119, 120, 127, 124, 82, 58, 37, 31, 36, 43,
46, 150, 153, 148, 151, 150, 151, 150, 158, 162, 159, 151, 151, 152, 150, 136, 111, 82,
74, 87, 91, 90, 96, 97, 96, 93, 94, 98, 106, 109, 110, 112, 115, 117, 117, 119, 117, 116,
117, 119, 117, 119, 121, 120, 117, 116, 116, 118, 122, 127, 122, 114, 116, 113, 110, 114,
119, 113, 113, 115, 117, 118, 117, 122, 124, 122, 124, 120, 115, 117, 118, 116, 116, 115,
117, 116, 116, 112, 114, 112, 106, 100, 97, 109, 124, 136, 146, 151, 155, 151, 150, 149,
146, 150, 149, 147, 148, 147, 146, 149, 143, 143, 142, 139, 135, 194, 214, 217, 219, 186,
92, 99, 106, 111, 113, 111, 111, 113, 120, 124, 126, 78, 30, 39, 37, 39, 38, 45, 68, 148,
151, 150, 150, 152, 150, 160, 162, 162, 160, 151, 150, 153, 153, 142, 117, 86, 78, 86, 90,
93, 98, 98, 90, 93, 93, 96, 103, 107, 110, 114, 114, 116, 119, 119, 120, 114, 114, 120,
120, 120, 120, 117, 118, 117, 126, 116, 122, 124, 123, 117, 114, 109, 112, 113, 115, 113,
116, 116, 114, 114, 119, 119, 115, 123, 120, 115, 117, 119, 115, 118, 116, 114, 115, 115,
120, 117, 110, 110, 99, 99, 96, 106, 120, 134, 142, 149, 152, 154, 151, 149, 152, 153,
145, 149, 149, 147, 147, 148, 148, 147, 144, 142, 131, 147, 196, 212, 219, 217, 164, 101,
103, 109, 108, 113, 114, 113, 121, 123, 96, 37, 33, 37, 35, 43, 41, 42, 49, 151, 149, 151,
154, 158, 158, 159, 160, 158, 154, 147, 151, 152, 151, 135, 116, 83, 77, 89, 90, 93, 92,
92, 92, 92, 95, 98, 103, 109, 111, 109, 116, 109, 116, 115, 122, 117, 114, 111, 114, 119,
120, 118, 118, 116, 121, 119, 116, 118, 116, 114, 115, 113, 111, 116, 121, 115, 111, 111,
112, 110, 119, 119, 121, 122, 117, 118, 117, 117, 116, 117, 113, 115, 117, 116, 116, 112,
113, 107, 105, 104, 96, 107, 121, 129, 139, 146, 144, 153, 149, 150, 152, 148, 145, 148,
152, 148, 145, 147, 146, 144, 141, 141, 136, 134, 185, 212, 219, 221, 201, 106, 92, 105,
106, 113, 117, 123, 123, 80, 33, 32, 43, 47, 44, 46, 38, 46, 35, 156, 156, 152, 153, 157,
163, 157, 153, 156, 153, 151, 153, 153, 149, 135, 109, 82, 72, 80, 95, 92, 91, 92, 91, 90,
93, 96, 104, 109, 108, 111, 112, 117, 111, 114, 116, 115, 114, 113, 117, 117, 119, 115,
120, 119, 120, 120, 116, 119, 116, 116, 116, 114, 111, 113, 106, 111, 111, 109, 109, 110,
118, 117, 120, 120, 118, 116, 114, 118, 118, 113, 118, 116, 118, 113, 117, 112, 109, 105,
108, 105, 98, 102, 118, 129, 138, 140, 145, 151, 152, 145, 147, 145, 146, 146, 144, 148,
148, 145, 144, 144, 140, 138, 135, 132, 146, 205, 217, 221, 218, 172, 90, 98, 101, 107,
112, 121, 83, 36, 36, 41, 41, 45, 42, 41, 38, 36, 40, 154, 154, 152, 155, 165, 157, 147,
147, 146, 150, 154, 150, 155, 152, 138, 111, 84, 75, 83, 90, 92, 93, 90, 93, 91, 91, 98,
103, 106, 110, 111, 116, 116, 113, 114, 114, 114, 118, 116, 120, 118, 113, 117, 117, 118,
116, 116, 116, 123, 115, 113, 117, 115, 111, 109, 121, 126, 121, 114, 107, 109, 115, 109,
119, 114, 115, 118, 117, 118, 119, 116, 116, 116, 117, 115, 116, 113, 113, 110, 104, 102,
96, 102, 118, 129, 135, 140, 143, 143, 147, 149, 145, 147, 144, 145, 148, 146, 147, 144,
142, 138, 134, 133, 135, 134, 133, 182, 211, 221, 222, 206, 112, 95, 101, 105, 118, 85,
37, 37, 39, 42, 51, 50, 48, 44, 33, 39, 38, 155, 154, 150, 162, 165, 150, 140, 137, 138,
154, 154, 152, 157, 152, 138, 117, 83, 73, 84, 88, 93, 94, 91, 93, 92, 94, 101, 101, 106,
112, 113, 116, 116, 114, 116, 115, 114, 119, 118, 113, 117, 120, 117, 117, 120, 117, 119,
115, 117, 129, 129, 133, 136, 141, 159, 157, 167, 168, 172, 175, 182, 164, 121, 107, 108,
115, 113, 114, 122, 118, 121, 115, 114, 117, 118, 114, 114, 108, 109, 102, 103, 97, 101,
113, 126, 134, 137, 136, 140, 146, 146, 146, 144, 144, 145, 146, 148, 142, 143, 139, 135,
135, 134, 134, 134, 131, 139, 200, 216, 220, 220, 183, 98, 106, 115, 86, 31, 33, 35, 41,
51, 51, 50, 44, 32, 35, 39, 42, 152, 150, 151, 163, 157, 144, 131, 133, 137, 154, 157,
154, 158, 154, 136, 113, 81, 72, 83, 91, 93, 92, 90, 91, 95, 96, 95, 104, 107, 113, 108,
112, 117, 114, 112, 115, 118, 117, 114, 119, 120, 122, 117, 116, 117, 114, 115, 126, 138,
138, 134, 141, 141, 162, 162, 165, 177, 174, 176, 169, 180, 178, 186, 186, 152, 106, 105,
109, 115, 115, 117, 115, 118, 119, 113, 114, 107, 110, 110, 101, 102, 97, 100, 118, 131,
143, 134, 137, 141, 144, 146, 145, 141, 142, 143, 143, 144, 142, 138, 136, 131, 134, 131,
133, 134, 131, 133, 167, 209, 219, 225, 215, 146, 109, 90, 36, 32, 34, 39, 41, 45, 43, 40,
42, 38, 42, 34, 35, 152, 151, 160, 163, 149, 133, 115, 117, 140, 154, 158, 155, 159, 153,
137, 115, 78, 69, 77, 86, 89, 91, 91, 92, 93, 95, 97, 106, 108, 109, 113, 116, 117, 115,
115, 121, 117, 117, 119, 121, 118, 113, 117, 120, 127, 122, 118, 142, 142, 135, 138, 139,
134, 148, 156, 161, 166, 171, 179, 169, 168, 180, 182, 184, 195, 190, 136, 104, 105, 114,
119, 113, 113, 116, 111, 110, 111, 104, 104, 100, 97, 97, 99, 116, 130, 135, 138, 136,
139, 139, 141, 143, 145, 139, 140, 138, 140, 137, 134, 136, 132, 128, 129, 132, 133, 131,
132, 129, 193, 218, 222, 226, 207, 95, 33, 35, 36, 39, 46, 43, 41, 43, 36, 47, 39, 33, 38,
36, 153, 163, 164, 154, 142, 114, 96, 117, 142, 155, 157, 156, 154, 152, 138, 115, 77, 70,
82, 84, 91, 89, 89, 88, 92, 97, 98, 101, 106, 107, 110, 110, 108, 113, 111, 113, 113, 114,
119, 113, 108, 172, 150, 134, 119, 115, 116, 126, 124, 124, 141, 131, 141, 143, 148, 156,
169, 154, 174, 178, 177, 180, 187, 185, 194, 189, 196, 178, 102, 103, 106, 112, 113, 114,
108, 110, 106, 104, 106, 100, 96, 89, 100, 115, 130, 136, 138, 134, 136, 138, 139, 144,
144, 140, 133, 134, 135, 137, 138, 135, 133, 132, 128, 132, 131, 133, 133, 129, 146, 205,
219, 227, 223, 57, 31, 34, 39, 39, 46, 43, 46, 36, 40, 47, 37, 45, 36, 45, 158, 168, 161,
148, 130, 92, 79, 118, 145, 158, 160, 157, 157, 157, 140, 112, 77, 66, 71, 82, 85, 83, 88,
89, 93, 93, 95, 95, 107, 105, 109, 110, 113, 114, 113, 118, 115, 114, 113, 131, 96, 115,
116, 108, 114, 114, 115, 123, 122, 127, 132, 129, 141, 135, 148, 144, 157, 173, 165, 184,
184, 176, 185, 187, 180, 190, 190, 194, 193, 127, 97, 100, 107, 107, 109, 107, 104, 105,
103, 100, 97, 91, 99, 117, 127, 139, 137, 137, 136, 136, 134, 136, 141, 142, 133, 132,
132, 134, 137, 133, 135, 132, 128, 131, 133, 134, 136, 132, 130, 180, 220, 226, 174, 28,
28, 35, 40, 48, 41, 46, 32, 35, 45, 42, 34, 35, 46, 36, 162, 164, 154, 140, 114, 68, 78,
120, 141, 156, 160, 157, 156, 151, 133, 111, 74, 62, 75, 82, 84, 89, 88, 88, 93, 90, 94,
100, 102, 102, 107, 109, 111, 108, 113, 110, 114, 115, 116, 148, 96, 108, 115, 109, 120,
112, 119, 124, 119, 118, 128, 120, 131, 134, 148, 158, 163, 168, 175, 172, 181, 183, 181,
191, 182, 192, 191, 196, 190, 196, 176, 92, 97, 96, 102, 104, 102, 105, 100, 96, 95, 92,
98, 116, 133, 142, 143, 139, 136, 136, 136, 131, 132, 141, 136, 134, 132, 135, 137, 133,
133, 134, 131, 132, 135, 136, 136, 137, 140, 140, 208, 178, 35, 36, 34, 35, 43, 40, 46,
39, 40, 43, 37, 35, 37, 53, 29, 22, 164, 162, 150, 125, 87, 65, 87, 119, 143, 159, 163,
158, 154, 152, 134, 109, 69, 62, 75, 82, 90, 87, 89, 85, 88, 87, 94, 99, 102, 108, 106,
108, 111, 107, 111, 113, 114, 109, 139, 102, 108, 103, 98, 108, 116, 119, 119, 118, 129,
131, 124, 124, 129, 134, 138, 153, 164, 162, 163, 182, 176, 189, 183, 190, 190, 189, 194,
191, 192, 196, 197, 189, 84, 87, 90, 96, 98, 98, 95, 98, 95, 91, 95, 115, 134, 143, 144,
141, 138, 133, 124, 124, 120, 132, 141, 135, 133, 134, 138, 133, 133, 132, 134, 135, 135,
138, 137, 141, 139, 146, 132, 39, 37, 32, 40, 41, 43, 43, 41, 33, 52, 38, 38, 45, 60, 41,
23, 103, 162, 152, 139, 107, 72, 66, 87, 120, 142, 157, 158, 158, 154, 151, 138, 111, 70,
64, 74, 86, 92, 86, 87, 89, 90, 91, 94, 99, 101, 107, 105, 106, 107, 109, 111, 109, 117,
109, 117, 105, 96, 98, 108, 110, 116, 119, 113, 121, 116, 123, 131, 130, 127, 126, 138,
142, 154, 173, 167, 179, 181, 182, 188, 184, 189, 190, 193, 187, 192, 177, 196, 213, 219,
207, 77, 87, 97, 100, 93, 94, 95, 91, 98, 119, 134, 143, 147, 146, 143, 132, 117, 105,
107, 123, 136, 138, 136, 136, 139, 133, 133, 134, 135, 135, 135, 134, 137, 141, 146, 139,
43, 36, 36, 32, 44, 44, 47, 38, 37, 45, 44, 39, 40, 53, 48, 27, 77, 160, 152, 142, 123, 82,
73, 74, 88, 122, 142, 155, 160, 160, 157, 151, 135, 107, 76, 60, 74, 83, 85, 87, 91, 87,
93, 91, 96, 100, 99, 106, 102, 109, 111, 114, 115, 108, 116, 129, 102, 96, 97, 101, 115,
105, 114, 113, 117, 123, 118, 125, 126, 136, 126, 139, 133, 141, 144, 171, 173, 181, 180,
176, 191, 182, 192, 183, 179, 186, 209, 207, 211, 212, 215, 226, 182, 70, 88, 93, 92, 92,
90, 87, 98, 119, 134, 145, 146, 144, 144, 136, 116, 88, 82, 106, 127, 142, 138, 134, 137,
134, 132, 133, 138, 137, 134, 136, 139, 141, 143, 66, 42, 38, 39, 39, 49, 46, 42, 35, 48,
48, 41, 35, 48, 77, 42, 67, 139, 163, 145, 132, 98, 68, 76, 76, 87, 117, 143, 157, 161,
159, 158, 147, 132, 103, 76, 65, 76, 85, 86, 88, 90, 97, 89, 88, 90, 101, 105, 104, 105,
105, 109, 108, 114, 115, 119, 101, 99, 98, 103, 108, 108, 112, 112, 113, 110, 116, 119,
127, 127, 135, 133, 136, 128, 133, 145, 167, 173, 178, 182, 189, 187, 173, 168, 193, 209,
208, 206, 207, 206, 204, 209, 219, 223, 110, 75, 85, 91, 88, 88, 87, 97, 115, 130, 144,
144, 143, 144, 136, 119, 81, 55, 83, 119, 135, 137, 133, 139, 136, 135, 131, 135, 133, 134,
137, 140, 147, 97, 33, 30, 35, 42, 45, 40, 41, 33, 39, 44, 36, 37, 43, 67, 56, 71, 131,
142, 152, 134, 112, 76, 76, 80, 73, 88, 120, 140, 155, 160, 158, 160, 149, 133, 107, 76,
63, 74, 82, 84, 87, 91, 94, 91, 91, 98, 99, 103, 104, 106, 109, 108, 111, 113, 118, 103,
94, 102, 102, 99, 107, 110, 104, 106, 104, 111, 119, 121, 127, 120, 131, 138, 132, 136,
134, 144, 163, 164, 176, 179, 166, 156, 193, 208, 206, 203, 198, 204, 204, 203, 205, 206,
210, 221, 218, 86, 71, 79, 86, 84, 84, 92, 111, 131, 145, 146, 144, 138, 137, 120, 91, 40,
54, 103, 126, 139, 138, 134, 136, 133, 134, 134, 137, 135, 136, 144, 130, 39, 34, 35, 40,
47, 48, 45, 40, 39, 51, 37, 38, 53, 58, 74, 74, 124, 145, 134, 134, 115, 88, 75, 83, 81,
80, 81, 116, 141, 156, 159, 156, 157, 151, 132, 107, 78, 65, 78, 86, 88, 86, 86, 90, 88,
92, 95, 97, 104, 106, 105, 108, 108, 108, 113, 112, 98, 99, 105, 103, 108, 109, 107, 110,
102, 116, 122, 124, 127, 129, 132, 138, 141, 138, 129, 132, 136, 165, 166, 171, 149, 185,
202, 199, 196, 205, 206, 199, 199, 199, 199, 208, 209, 212, 219, 224, 208, 64, 71, 77, 77,
80, 93, 114, 134, 145, 145, 144, 145, 136, 127, 92, 38, 40, 88, 110, 132, 140, 134, 134,
135, 132, 132, 135, 134, 139, 147, 52, 34, 38, 35, 42, 44, 43, 39, 38, 50, 37, 46, 41, 54,
63, 75, 118, 138, 144, 129, 155, 92, 71, 76, 82, 81, 73, 82, 118, 138, 153, 157, 160, 156,
150, 132, 107, 75, 71, 81, 88, 90, 86, 88, 90, 89, 92, 93, 97, 101, 111, 105, 106, 109,
109, 121, 111, 100, 95, 103, 108, 108, 101, 102, 109, 110, 117, 120, 127, 131, 122, 125,
134, 138, 135, 128, 131, 143, 165, 149, 141, 190, 200, 199, 200, 203, 196, 193, 192, 201,
200, 198, 198, 202, 204, 207, 210, 218, 186, 89, 66, 72, 76, 85, 113, 131, 145, 145, 141,
145, 139, 125, 87, 37, 39, 64, 94, 123, 137, 138, 132, 131, 131, 135, 136, 140, 144, 100,
37, 29, 34, 47, 51, 42, 36, 32, 48, 43, 38, 46, 49, 54, 71, 117, 140, 142, 133, 151, 159,
79, 73, 79, 78, 82, 75, 85, 115, 136, 151, 156, 159, 159, 152, 134, 107, 77, 65, 77, 84,
86, 89, 89, 87, 89, 94, 94, 99, 101, 105, 107, 107, 107, 110, 111, 97, 99, 100, 100, 100,
106, 100, 112, 110, 123, 117, 116, 127, 134, 123, 131, 132, 130, 127, 127, 132, 143, 136,
164, 194, 191, 195, 192, 200, 195, 195, 195, 187, 192, 202, 200, 203, 204, 209, 207, 208,
213, 217, 222, 110, 61, 71, 85, 111, 133, 144, 145, 144, 146, 152, 125, 92, 41, 33, 38,
71, 108, 126, 137, 136, 131, 135, 132, 138, 142, 129, 34, 30, 34, 37, 47, 49, 44, 37, 39,
46, 38, 37, 47, 49, 54, 106, 137, 139, 133, 156, 159, 158, 74, 75, 84, 81, 81, 77, 87,
119, 137, 150, 158, 157, 155, 149, 135, 107, 83, 66, 77, 84, 87, 85, 95, 87, 89, 90, 92,
99, 101, 105, 109, 107, 103, 150, 94, 91, 90, 105, 107, 104, 105, 99, 109, 108, 123, 128,
125, 134, 131, 131, 128, 131, 129, 129, 131, 122, 124, 171, 190, 197, 192, 193, 184, 189,
194, 188, 203, 201, 206, 195, 203, 203, 204, 198, 206, 205, 213, 210, 214, 220, 49, 60,
82, 111, 128, 142, 145, 144, 144, 143, 125, 93, 44, 33, 30, 41, 83, 115, 132, 136, 131,
129, 137, 138, 142, 62, 34, 38, 38, 44, 46, 46, 42, 38, 51, 35, 42, 45, 40, 46, 101, 141,
133, 128, 144, 161, 160, 158, 80, 79, 81, 79, 79, 77, 87, 115, 140, 152, 160, 156, 156,
154, 135, 107, 82, 65, 74, 82, 88, 88, 89, 92, 88, 90, 94, 97, 105, 106, 103, 102, 110,
141, 88, 101, 103, 98, 101, 104, 102, 111, 112, 112, 116, 127, 133, 119, 134, 129, 126,
122, 121, 119, 113, 153, 177, 180, 179, 181, 185, 190, 193, 181, 190, 198, 202, 202, 199,
206, 205, 204, 206, 204, 202, 201, 204, 212, 217, 223, 148, 52, 73, 106, 131, 144, 144,
145, 147, 141, 123, 93, 47, 37, 35, 30, 51, 93, 116, 133, 128, 127, 134, 140, 104, 33, 34,
37, 41, 41, 46, 46, 36, 46, 43, 42, 50, 41, 37, 84, 139, 140, 127, 144, 154, 158, 155,
157, 84, 78, 83, 81, 79, 72, 83, 119, 140, 152, 157, 157, 156, 155, 135, 108, 76, 64, 76,
84, 81, 84, 88, 95, 90, 93, 97, 99, 100, 105, 99, 95, 196, 113, 98, 91, 94, 97, 102, 102,
102, 108, 114, 118, 123, 131, 124, 117, 127, 126, 131, 116, 115, 103, 173, 181, 187, 190,
182, 179, 178, 170, 192, 195, 196, 188, 198, 203, 200, 200, 202, 204, 190, 200, 204, 208,
205, 209, 212, 221, 224, 77, 64, 103, 125, 143, 140, 143, 143, 148, 122, 93, 50, 36, 34,
35, 27, 58, 173, 211, 212, 176, 203, 131, 38, 33, 40, 40, 43, 46, 51, 48, 45, 43, 38, 48,
40, 37, 58, 130, 143, 130, 138, 154, 155, 153, 152, 154, 76, 78, 81, 78, 80, 72, 79, 112,
137, 153, 157, 157, 155, 151, 133, 107, 79, 60, 72, 77, 82, 85, 85, 85, 89, 92, 92, 94, 98,
99, 96, 89, 201, 101, 97, 93, 98, 107, 100, 105, 106, 102, 116, 125, 136, 119, 136, 115,
127, 119, 110, 103, 125, 168, 166, 188, 175, 168, 190, 172, 184, 185, 189, 192, 195, 198,
191, 193, 202, 191, 190, 205, 205, 197, 202, 204, 205, 208, 208, 212, 221, 188, 61, 100,
125, 144, 145, 145, 147, 141, 125, 96, 47, 34, 32, 30, 43, 202, 211, 184, 205, 218, 221,
202, 30, 35, 39, 45, 45, 56, 39, 44, 45, 43, 44, 55, 36, 38, 118, 145, 134, 134, 153, 158,
153, 153, 151, 150, 76, 76, 82, 82, 84, 78, 81, 114, 136, 152, 157, 156, 156, 151, 134,
111, 72, 61, 71, 80, 83, 86, 86, 87, 88, 88, 94, 95, 99, 101, 97, 134, 174, 106, 89, 94,
102, 106, 99, 107, 108, 103, 114, 124, 113, 110, 122, 122, 115, 116, 97, 144, 167, 179,
157, 172, 172, 169, 168, 181, 183, 185, 184, 188, 190, 191, 192, 187, 184, 200, 198, 199,
198, 197, 197, 202, 202, 203, 199, 205, 218, 219, 66, 96, 126, 141, 145, 145, 144, 144,
123, 91, 39, 30, 29, 88, 209, 193, 193, 217, 221, 219, 224, 230, 38, 35, 38, 42, 45, 42,
38, 41, 40, 40, 50, 43, 39, 95, 145, 139, 135, 150, 155, 155, 154, 153, 151, 151, 85, 78,
83, 83, 85, 78, 80, 111, 139, 153, 160, 160, 159, 151, 136, 106, 69, 65, 65, 80, 87, 92,
88, 88, 89, 87, 93, 97, 99, 107, 94, 203, 168, 92, 91, 92, 95, 98, 87, 108, 117, 124, 112,
122, 105, 121, 120, 118, 98, 92, 158, 173, 179, 158, 158, 175, 160, 179, 174, 164, 192,
190, 182, 183, 181, 187, 176, 197, 196, 196, 193, 200, 195, 198, 196, 199, 207, 207, 209,
205, 208, 219, 201, 79, 126, 146, 147, 149, 145, 142, 121, 86, 34, 29, 147, 213, 160, 197,
218, 211, 209, 209, 211, 231, 87, 35, 39, 44, 44, 41, 43, 38, 37, 44, 49, 42, 62, 136,
142, 133, 146, 151, 152, 153, 154, 152, 153, 150, 82, 89, 82, 91, 86, 88, 87, 114, 137,
154, 160, 163, 159, 155, 136, 108, 77, 67, 71, 79, 86, 88, 91, 90, 88, 95, 94, 98, 101,
106, 87, 212, 163, 93, 94, 93, 94, 83, 103, 113, 116, 110, 107, 115, 120, 115, 122, 116,
91, 160, 159, 163, 161, 152, 160, 172, 177, 169, 174, 181, 172, 179, 185, 182, 161, 188,
185, 196, 195, 194, 195, 189, 199, 194, 205, 194, 192, 200, 202, 202, 204, 207, 214, 146,
119, 140, 147, 148, 147, 135, 106, 73, 49, 188, 207, 161, 205, 211, 209, 203, 199, 203,
215, 228, 92, 33, 41, 45, 37, 33, 43, 39, 39, 44, 33, 41, 117, 148, 138, 144, 154, 151,
149, 149, 148, 149, 149, 150, 87, 88, 88, 88, 86, 89, 87, 116, 136, 155, 157, 158, 162,
159, 140, 107, 76, 68, 76, 85, 91, 88, 94, 91, 93, 92, 98, 98, 106, 102, 88, 203, 139,
98, 85, 91, 93, 103, 103, 100, 117, 100, 109, 120, 120, 108, 108, 90, 159, 148, 158, 138,
173, 142, 167, 168, 169, 184, 163, 176, 171, 176, 177, 162, 182, 186, 176, 187, 195, 191,
194, 197, 196, 198, 148, 196, 199, 200, 197, 197, 200, 198, 207, 211, 182, 135, 143, 143,
143, 128, 101, 140, 215, 181, 177, 212, 209, 204, 201, 195, 200, 210, 216, 224, 72, 37,
42, 45, 39, 38, 42, 46, 45, 42, 23, 80, 142, 141, 136, 154, 153, 150, 149, 148, 147, 149,
149, 150, 92, 88, 95, 89, 88, 88, 88, 112, 139, 150, 158, 163, 159, 158, 143, 109, 75, 65,
76, 82, 92, 92, 91, 85, 91, 88, 95, 96, 99, 95, 91, 203, 125, 101, 86, 96, 97, 96, 90,
107, 109, 111, 117, 117, 113, 106, 104, 144, 146, 143, 129, 162, 138, 168, 166, 174, 163,
166, 178, 171, 171, 163, 164, 186, 177, 181, 184, 182, 185, 188, 197, 198, 197, 153, 192,
189, 195, 197, 201, 197, 195, 192, 194, 201, 204, 136, 147, 138, 136, 144, 204, 196, 189,
193, 210, 206, 199, 200, 198, 200, 205, 212, 216, 221, 34, 42, 45, 41, 41, 34, 35, 42, 41,
35, 46, 126, 147, 136, 148, 155, 156, 151, 151, 151, 150, 148, 147, 149, 91, 88, 88, 91,
93, 88, 92, 117, 141, 152, 159, 165, 162, 160, 143, 111, 75, 64, 79, 80, 90, 88, 91, 92,
92, 87, 92, 96, 94, 88, 133, 194, 129, 109, 95, 98, 96, 96, 85, 92, 111, 109, 103, 111,
106, 117, 137, 143, 135, 136, 127, 150, 158, 149, 175, 164, 157, 161, 184, 184, 142, 178,
166, 170, 184, 171, 172, 183, 170, 189, 174, 174, 174, 186, 183, 180, 188, 194, 186, 188,
192, 194, 179, 186, 196, 168, 138, 142, 189, 210, 180, 176, 208, 206, 199, 199, 197, 200,
203, 203, 207, 211, 220, 221, 33, 43, 45, 44, 39, 34, 40, 44, 50, 52, 100, 142, 140, 142,
154, 155, 150, 150, 154, 152, 145, 151, 147, 144, 89, 89, 89, 93, 92, 87, 91, 113, 140,
155, 161, 166, 164, 163, 145, 110, 77, 68, 77, 79, 87, 91, 88, 88, 86, 91, 92, 95, 93, 82,
187, 184, 135, 116, 91, 93, 97, 98, 90, 98, 117, 97, 110, 114, 106, 136, 142, 125, 144,
111, 138, 156, 150, 154, 146, 162, 173, 163, 158, 146, 178, 161, 171, 172, 174, 172, 166,
177, 185, 171, 173, 183, 181, 170, 186, 190, 194, 187, 181, 181, 184, 186, 183, 189, 181,
195, 167, 210, 177, 182, 197, 204, 201, 200, 199, 198, 199, 204, 200, 195, 207, 210, 221,
215, 32, 41, 45, 42, 37, 34, 41, 44, 50, 76, 137, 141, 137, 149, 154, 152, 153, 149, 147,
147, 150, 147, 144, 146, 95, 91, 89, 87, 91, 91, 94, 113, 138, 156, 167, 169, 166, 163,
144, 109, 77, 63, 75, 86, 86, 89, 87, 85, 88, 91, 90, 97, 90, 79, 217, 175, 135, 114, 108,
99, 100, 99, 101, 102, 112, 111, 111, 102, 134, 133, 125, 148, 111, 132, 135, 147, 154,
144, 158, 169, 167, 161, 156, 178, 164, 171, 163, 171, 171, 163, 170, 172, 178, 177, 178,
172, 180, 192, 180, 187, 178, 182, 170, 182, 175, 178, 174, 160, 175, 200, 178, 196, 191,
207, 204, 192, 198, 197, 196, 199, 203, 200, 190, 189, 205, 209, 218, 159, 29, 37, 35, 40,
35, 44, 46, 47, 62, 119, 144, 134, 145, 151, 154, 152, 152, 149, 150, 146, 148, 148, 146,
147, 89, 88, 84, 86, 88, 81, 88, 115, 137, 156, 166, 168, 166, 164, 140, 116, 75, 64, 74,
86, 84, 87, 87, 90, 87, 87, 92, 91, 91, 80, 217, 177, 130, 128, 109, 107, 89, 92, 95, 96,
105, 96, 109, 135, 139, 121, 143, 100, 135, 139, 145, 128, 135, 158, 161, 158, 140, 168,
170, 163, 162, 166, 173, 163, 172, 164, 156, 162, 177, 173, 175, 181, 168, 185, 187, 169,
178, 179, 168, 173, 179, 170, 156, 199, 182, 178, 193, 200, 203, 201, 192, 198, 198, 196,
196, 199, 199, 204, 159, 169, 203, 202, 212, 49, 30, 37, 42, 54, 32, 39, 50, 35, 77, 147,
139, 141, 153, 152, 155, 152, 153, 153, 149, 151, 151, 150, 151, 147, 86, 89, 81, 85, 82,
83, 93, 115, 143, 158, 166, 165, 160, 162, 144, 113, 74, 66, 79, 85, 86, 93, 87, 88, 86,
86, 89, 91, 90, 77, 215, 170, 145, 125, 122, 115, 105, 72, 97, 109, 109, 103, 134, 129,
126, 154, 101, 143, 143, 140, 127, 137, 150, 128, 160, 131, 167, 166, 156, 166, 162, 151,
170, 150, 161, 151, 168, 153, 160, 169, 169, 175, 183, 169, 171, 171, 167, 174, 174, 159,
161, 174, 194, 175, 186, 201, 200, 197, 184, 188, 194, 197, 197, 200, 197, 201, 198, 165,
150, 176, 136, 189, 209, 34, 48, 41, 50, 38, 35, 35, 41, 69, 121, 143, 134, 148, 151, 155,
151, 153, 155, 151, 148, 151, 152, 152, 150, 148, 87, 80, 83, 81, 77, 81, 89, 120, 140,
156, 163, 164, 163, 161, 143, 112, 79, 69, 72, 83, 87, 89, 87, 84, 89, 85, 92, 92, 87, 76,
203, 168, 147, 141, 116, 126, 90, 80, 94, 97, 105, 132, 125, 119, 131, 110, 138, 129, 143,
138, 136, 120, 145, 146, 128, 165, 148, 147, 165, 153, 159, 156, 146, 170, 156, 156, 144,
165, 168, 161, 171, 167, 177, 171, 161, 168, 166, 173, 156, 158, 198, 172, 182, 193, 203,
197, 192, 189, 187, 192, 194, 198, 198, 201, 203, 202, 196, 150, 173, 118, 157, 185, 130,
31, 33, 55, 38, 34, 44, 35, 54, 97, 143, 141, 141, 151, 154, 158, 150, 150, 154, 154, 151,
149, 148, 153, 147, 152, 83, 88, 84, 80, 81, 81, 90, 122, 143, 159, 163, 165, 164, 164,
142, 116, 83, 70, 81, 82, 87, 87, 88, 87, 87, 92, 89, 91, 83, 72, 195, 177, 160, 146, 121,
131, 104, 100, 92, 112, 136, 130, 122, 130, 114, 133, 128, 144, 130, 136, 126, 149, 142,
128, 154, 143, 147, 141, 150, 151, 155, 158, 163, 141, 140, 165, 154, 167, 154, 168, 169,
160, 161, 154, 163, 149, 146, 151, 186, 169, 184, 191, 202, 196, 191, 192, 191, 193, 194,
196, 200, 201, 201, 200, 207, 207, 147, 167, 132, 162, 144, 209, 37, 39, 40, 46, 55, 36,
40, 40, 63, 134, 145, 139, 147, 151, 152, 150, 152, 150, 151, 153, 150, 151, 151, 148,
151, 152, 84, 88, 92, 83, 87, 89, 92, 117, 142, 157, 164, 166, 165, 161, 146, 116, 83, 67,
74, 85, 82, 84, 82, 85, 90, 87, 85, 85, 81, 72, 201, 184, 175, 163, 140, 145, 122, 96, 94,
132, 111, 116, 129, 118, 131, 125, 137, 126, 110, 126, 146, 127, 131, 157, 146, 148, 141,
148, 151, 135, 113, 89, 121, 149, 157, 154, 153, 151, 157, 149, 158, 156, 156, 164, 141,
145, 177, 189, 171, 189, 200, 193, 184, 181, 187, 189, 194, 196, 196, 201, 201, 200, 200,
203, 208, 184, 163, 136, 141, 100, 171, 211, 29, 38, 48, 48, 42, 60, 39, 40, 97, 145, 138,
142, 149, 152, 150, 151, 148, 147, 152, 151, 149, 149, 152, 149, 150, 147, 87, 90, 82,
90, 85, 95, 97, 116, 139, 156, 164, 169, 165, 163, 145, 115, 78, 63, 75, 79, 91, 86, 85,
87, 88, 86, 87, 85, 80, 67, 201, 197, 184, 172, 161, 152, 146, 105, 121, 115, 121, 137,
112, 120, 135, 126, 131, 107, 125, 140, 124, 123, 141, 139, 91, 114, 106, 84, 94, 105, 138,
151, 90, 120, 154, 162, 133, 130, 151, 155, 120, 55, 144, 139, 135, 186, 165, 179, 195,
197, 194, 186, 189, 192, 189, 196, 196, 195, 198, 202, 199, 201, 205, 209, 207, 160, 143,
72, 90, 136, 213, 102, 26, 36, 43, 31, 43, 45, 44, 56, 132, 143, 137, 148, 155, 152, 154,
149, 151, 147, 151, 150, 149, 149, 151, 150, 147, 146, 89, 86, 89, 85, 93, 88, 104, 122,
141, 158, 165, 170, 166, 164, 149, 117, 76, 63, 69, 83, 88, 86, 90, 89, 84, 87, 89, 85, 77,
70, 206, 196, 195, 178, 149, 153, 147, 108, 111, 104, 125, 99, 118, 133, 125, 130, 109,
117, 125, 129, 119, 133, 138, 110, 136, 117, 99, 83, 80, 53, 153, 153, 113, 126, 122, 68,
80, 98, 87, 56, 59, 82, 33, 147, 186, 154, 177, 189, 194, 187, 195, 192, 192, 188, 194,
198, 198, 199, 199, 203, 201, 201, 204, 200, 149, 79, 77, 83, 116, 193, 210, 36, 35, 41,
42, 33, 42, 41, 40, 103, 145, 136, 143, 153, 153, 152, 150, 152, 148, 149, 148, 149, 145,
144, 147, 147, 146, 145, 88, 88, 91, 89, 92, 96, 98, 123, 145, 160, 164, 165, 167, 162,
147, 119, 72, 60, 72, 85, 84, 89, 89, 90, 86, 89, 90, 86, 84, 67, 214, 202, 211, 171, 137,
118, 115, 99, 105, 115, 88, 110, 132, 123, 129, 119, 121, 126, 126, 110, 135, 133, 93, 131,
124, 92, 104, 106, 97, 88, 98, 126, 87, 65, 48, 111, 52, 77, 38, 33, 43, 38, 122, 151,
155, 196, 197, 191, 192, 190, 193, 193, 189, 191, 196, 197, 198, 197, 206, 202, 204, 192,
111, 75, 86, 80, 88, 113, 178, 208, 48, 35, 43, 44, 41, 35, 47, 38, 47, 132, 139, 134,
149, 157, 156, 153, 153, 154, 153, 150, 145, 143, 148, 150, 146, 147, 148, 146, 90, 93, 92,
92, 86, 99, 104, 123, 144, 162, 163, 164, 167, 164, 150, 118, 75, 61, 75, 84, 84, 90, 90,
90, 90, 91, 89, 87, 81, 68, 214, 209, 201, 181, 119, 106, 129, 108, 106, 86, 103, 131,
128, 130, 114, 114, 129, 127, 106, 132, 128, 115, 122, 117, 91, 110, 106, 70, 54, 50, 66,
90, 85, 89, 77, 88, 44, 91, 42, 25, 30, 161, 126, 167, 188, 194, 195, 190, 192, 187, 191,
192, 188, 188, 193, 191, 202, 198, 207, 197, 82, 73, 75, 78, 83, 99, 148, 183, 194, 40,
30, 39, 41, 35, 36, 42, 45, 34, 93, 142, 135, 146, 156, 156, 153, 156, 153, 151, 152, 151,
148, 150, 144, 148, 150, 145, 147, 147, 97, 92, 92, 86, 88, 93, 95, 121, 142, 158, 164,
164, 165, 163, 150, 120, 78, 63, 74, 83, 88, 84, 85, 89, 90, 86, 91, 86, 87, 76, 171, 204,
201, 183, 123, 130, 147, 136, 84, 103, 124, 130, 120, 104, 120, 126, 124, 112, 135, 126,
111, 123, 124, 115, 86, 53, 69, 53, 50, 53, 107, 92, 49, 83, 100, 79, 51, 115, 25, 48,
181, 109, 169, 193, 172, 177, 190, 185, 189, 184, 185, 188, 193, 192, 193, 195, 197, 195,
96, 122, 86, 76, 84, 106, 143, 157, 178, 199, 35, 40, 42, 44, 42, 34, 38, 53, 57, 42, 123,
142, 131, 154, 159, 156, 155, 156, 152, 153, 152, 150, 149, 153, 149, 150, 148, 148, 145,
144, 99, 95, 90, 95, 90, 88, 101, 120, 142, 158, 162, 164, 166, 162, 147, 121, 77, 64, 73,
82, 84, 85, 87, 89, 87, 89, 90, 92, 89, 80, 79, 209, 196, 197, 159, 116, 118, 112, 97,
125, 124, 129, 100, 110, 117, 118, 109, 131, 121, 127, 119, 130, 85, 46, 80, 57, 40, 44,
46, 110, 103, 37, 33, 107, 83, 48, 29, 96, 54, 170, 118, 184, 188, 175, 176, 182, 179,
181, 181, 182, 186, 185, 186, 190, 192, 194, 126, 72, 96, 137, 136, 140, 156, 160, 161,
169, 200, 33, 36, 38, 54, 44, 39, 39, 34, 46, 42, 78, 139, 140, 141, 159, 159, 157, 159,
156, 154, 152, 150, 150, 150, 147, 143, 148, 149, 149, 144, 145, 96, 96, 94, 95, 89, 89,
97, 120, 140, 159, 164, 161, 165, 163, 148, 122, 80, 63, 77, 81, 84, 82, 90, 91, 88, 89,
87, 92, 90, 82, 72, 218, 203, 197, 158, 172, 158, 91, 121, 126, 128, 89, 115, 122, 110,
114, 122, 118, 82, 113, 115, 70, 72, 83, 49, 36, 60, 29, 50, 92, 52, 41, 118, 94, 52, 72,
21, 86, 157, 117, 179, 196, 177, 172, 180, 177, 176, 173, 176, 180, 188, 189, 191, 193,
162, 73, 59, 112, 112, 141, 158, 158, 162, 160, 179, 202, 35, 30, 38, 40, 46, 48, 38, 37,
46, 49, 44, 114, 138, 136, 152, 161, 159, 161, 156, 156, 157, 151, 151, 153, 150, 150,
148, 150, 146, 145, 147, 144, 96, 95, 97, 90, 94, 90, 93, 118, 141, 161, 166, 166, 165,
166, 149, 124, 77, 58, 70, 79, 84, 82, 89, 86, 86, 87, 85, 90, 93, 92, 77, 134, 210, 192,
147, 176, 107, 115, 125, 119, 96, 121, 111, 110, 110, 112, 124, 126, 71, 78, 64, 71, 90,
55, 34, 95, 32, 31, 82, 35, 34, 71, 63, 79, 53, 71, 80, 137, 118, 189, 193, 187, 181, 176,
173, 176, 170, 171, 168, 185, 189, 187, 188, 105, 61, 62, 102, 130, 110, 97, 138, 161, 167,
177, 188, 39, 26, 33, 42, 44, 50, 45, 44, 36, 41, 42, 63, 130, 137, 140, 161, 160, 162,
157, 157, 157, 158, 155, 152, 152, 152, 151, 151, 150, 149, 145, 141, 145, 98, 94, 95,
96, 89, 84, 87, 116, 141, 159, 168, 166, 168, 164, 151, 121, 73, 63, 76, 78, 81, 85, 88,
85, 89, 84, 87, 95, 95, 98, 91, 74, 198, 199, 185, 181, 99, 113, 122, 110, 112, 122, 122,
111, 101, 123, 112, 111, 88, 80, 52, 83, 44, 29, 58, 115, 32, 37, 69, 33, 44, 47, 46, 47,
101, 91, 95, 100, 187, 189, 190, 181, 177, 174, 179, 171, 164, 179, 181, 182, 182, 178,
190, 164, 75, 95, 76, 91, 126, 101, 140, 166, 192, 153, 35, 36, 30, 43, 45, 47, 50, 40,
36, 37, 48, 55, 95, 126, 119, 152, 162, 159, 156, 158, 155, 157, 157, 156, 154, 151, 152,
151, 154, 151, 149, 150, 149, 143, 97, 98, 91, 91, 88, 85, 83, 112, 136, 160, 163, 166,
167, 167, 148, 123, 77, 59, 69, 79, 82, 86, 87, 87, 84, 90, 90, 94, 99, 100, 96, 82, 93,
200, 189, 190, 151, 105, 110, 99, 116, 120, 109, 103, 123, 114, 98, 74, 64, 76, 83, 72,
47, 34, 60, 88, 44, 63, 40, 50, 75, 78, 75, 70, 110, 107, 109, 161, 183, 179, 183, 177,
172, 173, 172, 169, 164, 175, 176, 182, 187, 188, 199, 184, 117, 80, 102, 80, 91, 126,
135, 169, 74, 34, 36, 42, 37, 47, 47, 49, 47, 34, 38, 44, 38, 62, 117, 118, 125, 161, 163,
160, 156, 158, 157, 158, 156, 157, 156, 153, 154, 151, 151, 149, 147, 147, 147, 144, 94,
99, 94, 92, 92, 86, 79, 110, 140, 158, 164, 165, 168, 165, 150, 125, 79, 58, 70, 81, 84,
89, 88, 87, 85, 85, 90, 93, 96, 104, 99, 89, 80, 210, 198, 186, 119, 113, 90, 107, 115,
105, 118, 119, 115, 113, 104, 57, 57, 44, 81, 66, 59, 45, 67, 89, 79, 40, 40, 41, 42, 40,
39, 89, 78, 105, 138, 164, 171, 178, 171, 166, 172, 171, 172, 172, 170, 169, 191, 187,
189, 192, 191, 191, 145, 85, 59, 90, 68, 125, 140, 130, 66, 29, 32, 38, 50, 46, 52, 48,
39, 35, 39, 41, 46, 82, 129, 112, 136, 160, 160, 159, 159, 157, 156, 162, 157, 156, 155,
156, 155, 152, 150, 151, 150, 146, 147, 143, 96, 92, 96, 95, 89, 82, 80, 109, 137, 155,
164, 167, 168, 166, 149, 125, 78, 59, 75, 83, 89, 88, 92, 89, 87, 87, 88, 93, 100, 102, 98,
93, 77, 214, 212, 155, 95, 113, 108, 116, 94, 124, 118, 115, 101, 57, 38, 73, 42, 39, 46,
55, 77, 34, 66, 56, 115, 35, 42, 33, 32, 28, 96, 80, 125, 157, 176, 176, 181, 177, 163,
157, 160, 177, 157, 159, 178, 190, 192, 195, 190, 193, 192, 188, 160, 89, 52, 36, 75,
102, 125, 142, 41, 36, 39, 38, 45, 53, 53, 48, 37, 39, 41, 39, 43, 117, 125, 119, 148,
155, 160, 158, 158, 160, 154, 157, 154, 157, 154, 153, 153, 153, 150, 152, 154, 146, 145,
141, 94, 98, 92, 92, 90, 85, 82, 112, 136, 156, 165, 166, 166, 167, 150, 126, 83, 60, 71,
85, 87, 89, 90, 94, 87, 87, 94, 94, 98, 103, 101, 99, 85, 218, 210, 100, 95, 103, 106, 96,
121, 116, 119, 103, 110, 33, 64, 36, 40, 35, 36, 73, 54, 57, 90, 43, 103, 66, 77, 28, 24,
107, 105, 143, 156, 124, 175, 183, 187, 166, 157, 153, 176, 168, 155, 166, 180, 192, 191,
197, 195, 198, 203, 202, 175, 98, 64, 37, 67, 62, 141, 144, 38, 39, 37, 41, 42, 48, 51,
45, 40, 36, 44, 43, 73, 133, 123, 139, 146, 143, 148, 154, 160, 160, 156, 154, 154, 156,
161, 154, 153, 153, 151, 151, 154, 150, 146, 142, 88, 95, 97, 93, 88, 87, 81, 109, 139,
155, 163, 165, 169, 168, 150, 126, 84, 64, 69, 83, 87, 91, 91, 91, 90, 90, 91, 89, 153,
103, 101, 100, 88, 182, 212, 105, 113, 103, 89, 126, 116, 90, 50, 71, 78, 42, 96, 33, 42,
43, 34, 43, 61, 44, 84, 79, 65, 37, 29, 24, 86, 115, 144, 165, 158, 129, 158, 185, 176,
164, 164, 165, 151, 150, 164, 178, 187, 192, 196, 197, 195, 204, 206, 206, 191, 125, 77,
32, 35, 69, 151, 150, 47, 41, 42, 45, 47, 49, 56, 42, 37, 44, 45, 37, 107, 134, 120, 151,
149, 143, 143, 142, 146, 149, 153, 155, 154, 154, 153, 155, 153, 154, 153, 150, 150, 147,
145, 141, 94, 96, 94, 90, 88, 86, 79, 109, 137, 157, 163, 166, 166, 168, 151, 123, 86, 60,
74, 83, 91, 92, 96, 91, 90, 88, 92, 115, 102, 104, 106, 104, 100, 102, 220, 104, 100, 106,
115, 119, 123, 94, 74, 45, 44, 37, 95, 33, 64, 56, 39, 42, 54, 46, 71, 101, 52, 97, 21,
68, 127, 133, 164, 175, 167, 136, 161, 188, 179, 166, 160, 138, 148, 161, 165, 185, 187,
191, 197, 198, 200, 206, 205, 207, 197, 146, 75, 35, 26, 65, 148, 155, 47, 58, 48, 48, 52,
54, 52, 39, 38, 43, 39, 51, 126, 131, 139, 161, 153, 149, 146, 145, 143, 139, 142, 143,
143, 151, 154, 154, 152, 151, 150, 148, 148, 144, 140, 139, 93, 93, 90, 91, 85, 83, 77,
107, 135, 157, 167, 170, 169, 167, 149, 126, 84, 68, 81, 87, 87, 90, 91, 93, 90, 91, 92,
102, 101, 105, 109, 108, 106, 103, 190, 111, 96, 124, 118, 124, 106, 61, 39, 85, 31, 32,
78, 48, 52, 41, 48, 36, 48, 33, 70, 66, 26, 128, 41, 138, 115, 159, 168, 187, 179, 135,
165, 194, 163, 155, 146, 152, 160, 164, 166, 178, 187, 194, 194, 199, 199, 203, 204, 208,
205, 161, 93, 46, 32, 38, 79, 164, 59, 41, 47, 48, 48, 50, 49, 41, 40, 47, 37, 86, 138,
123, 148, 161, 158, 156, 151, 151, 149, 147, 145, 142, 139, 137, 140, 141, 147, 149, 148,
145, 145, 151, 145, 142, 90, 88, 92, 88, 88, 86, 80, 107, 135, 158, 166, 168, 170, 167,
151, 126, 80, 67, 75, 84, 89, 92, 93, 95, 93, 90, 97, 101, 107, 101, 100, 97, 90, 127, 92,
97, 116, 132, 115, 113, 66, 66, 25, 112, 39, 38, 29, 59, 86, 30, 47, 40, 33, 46, 45, 110,
24, 51, 139, 103, 164, 152, 164, 183, 182, 148, 178, 164, 149, 150, 149, 155, 165, 166,
172, 176, 186, 192, 194, 193, 198, 200, 203, 207, 205, 181, 104, 69, 33, 33, 70, 167, 63,
35, 52, 52, 57, 58, 42, 40, 44, 41, 48, 118, 131, 131, 157, 158, 155, 154, 156, 158, 155,
156, 148, 150, 143, 138, 143, 139, 137, 135, 137, 144, 146, 147, 142, 143, 90, 91, 93,
88, 84, 84, 79, 108, 139, 156, 165, 169, 170, 168, 150, 126, 84, 63, 73, 83, 90, 89, 92,
93, 92, 93, 95, 99, 104, 108, 108, 107, 106, 152, 123, 183, 105, 121, 104, 105, 38, 113,
24, 128, 29, 38, 65, 95, 57, 34, 49, 71, 31, 93, 45, 33, 31, 126, 80, 178, 162, 162, 158,
186, 183, 172, 170, 134, 147, 155, 156, 160, 168, 169, 171, 172, 178, 189, 189, 190, 194,
200, 203, 208, 204, 192, 115, 62, 29, 36, 63, 172, 71, 44, 63, 52, 56, 55, 40, 44, 49, 38,
68, 131, 124, 140, 155, 157, 156, 153, 155, 159, 160, 160, 154, 150, 147, 144, 144, 138,
136, 134, 135, 139, 135, 138, 142, 144, 90, 91, 90, 89, 90, 87, 79, 106, 136, 156, 167,
170, 170, 166, 151, 125, 84, 63, 77, 81, 89, 94, 92, 91, 90, 92, 94, 102, 106, 108, 109,
113, 171, 64, 28, 52, 140, 117, 104, 51, 90, 47, 32, 123, 27, 39, 43, 44, 39, 45, 45, 61,
35, 87, 82, 30, 89, 95, 170, 165, 184, 151, 155, 190, 191, 159, 67, 88, 96, 101, 125, 155,
171, 174, 169, 169, 177, 188, 187, 185, 187, 195, 196, 200, 197, 162, 95, 44, 29, 31, 81,
180, 90, 49, 51, 50, 63, 48, 41, 41, 44, 40, 96, 131, 120, 148, 154, 153, 152, 155, 152,
152, 154, 156, 157, 150, 148, 150, 146, 143, 139, 142, 139, 137, 134, 134, 131, 130, 92,
90, 92, 91, 89, 86, 76, 107, 137, 157, 168, 170, 172, 168, 153, 128, 81, 63, 76, 84, 84,
97, 90, 91, 91, 90, 92, 99, 104, 106, 114, 125, 150, 49, 30, 108, 118, 93, 80, 49, 90,
34, 83, 138, 26, 39, 60, 34, 43, 34, 31, 62, 51, 63, 53, 44, 134, 141, 157, 180, 189, 145,
176, 193, 140, 128, 143, 145, 126, 80, 58, 62, 110, 163, 168, 165, 168, 180, 188, 180,
185, 190, 186, 160, 100, 75, 71, 65, 33, 35, 56, 169, 124, 41, 63, 54, 54, 40, 40, 40, 45,
42, 122, 127, 127, 156, 157, 152, 151, 152, 152, 149, 149, 151, 154, 148, 148, 149, 145,
150, 152, 148, 141, 138, 137, 132, 126, 125, 88, 92, 94, 92, 90, 87, 76, 105, 138, 153,
169, 166, 171, 173, 152, 127, 85, 64, 78, 88, 91, 91, 91, 90, 84, 88, 89, 97, 100, 105,
147, 135, 157, 69, 83, 116, 123, 74, 43, 71, 58, 55, 61, 67, 35, 49, 32, 36, 92, 28, 34,
31, 54, 42, 23, 135, 116, 167, 170, 193, 167, 163, 196, 105, 107, 116, 120, 78, 139, 118,
97, 84, 81, 106, 150, 158, 164, 178, 188, 182, 179, 170, 99, 94, 90, 102, 92, 75, 57, 36,
60, 156, 119, 41, 55, 56, 55, 46, 42, 42, 42, 60, 129, 122, 140, 153, 153, 151, 149, 151,
150, 148, 148, 151, 152, 149, 148, 148, 149, 149, 149, 149, 144, 146, 143, 132, 128, 123,
90, 93, 90, 87, 93, 83, 71, 108, 135, 155, 168, 169, 169, 170, 154, 131, 85, 65, 71, 82,
88, 89, 90, 89, 86, 88, 87, 95, 130, 135, 144, 145, 145, 114, 140, 46, 32, 64, 73, 114,
55, 67, 34, 48, 66, 45, 31, 31, 80, 44, 36, 37, 32, 30, 71, 100, 182, 168, 189, 196, 177,
193, 71, 72, 57, 51, 44, 40, 41, 35, 76, 125, 110, 110, 132, 149, 156, 185, 190, 191,
180, 118, 79, 45, 40, 41, 50, 58, 38, 29, 65, 152, 109, 62, 57, 55, 47, 40, 39, 44, 31,
90, 134, 123, 148, 154, 153, 148, 149, 151, 147, 147, 148, 151, 152, 147, 146, 148, 148,
148, 147, 147, 142, 141, 139, 138, 131, 125, 82, 88, 83, 84, 82, 75, 67, 99, 135, 158,
167, 169, 170, 169, 150, 129, 82, 61, 72, 76, 84, 89, 86, 85, 87, 80, 75, 181, 200, 131,
138, 147, 130, 63, 62, 26, 79, 79, 103, 52, 78, 114, 31, 50, 37, 44, 33, 31, 31, 109, 73,
29, 27, 27, 148, 163, 162, 175, 197, 190, 189, 67, 54, 39, 39, 41, 36, 56, 129, 49, 34,
57, 125, 116, 128, 138, 154, 183, 200, 199, 79, 41, 41, 68, 68, 36, 46, 48, 39, 30, 64,
143, 125, 60, 55, 50, 38, 41, 43, 46, 36, 114, 132, 132, 153, 152, 148, 146, 146, 148,
146, 152, 146, 152, 148, 146, 145, 149, 144, 142, 144, 143, 138, 134, 132, 133, 132, 126,
87, 89, 88, 81, 80, 70, 61, 100, 132, 157, 168, 170, 170, 171, 150, 126, 82, 65, 75, 85,
87, 87, 85, 87, 83, 79, 68, 178, 152, 133, 140, 126, 138, 57, 30, 60, 54, 54, 42, 38,
112, 117, 40, 37, 31, 35, 60, 33, 35, 45, 33, 47, 48, 105, 93, 173, 175, 181, 198, 195,
81, 67, 42, 41, 82, 78, 30, 51, 199, 187, 62, 95, 111, 105, 122, 131, 155, 192, 213, 124,
41, 44, 49, 65, 147, 48, 52, 49, 39, 30, 77, 133, 130, 89, 62, 51, 37, 44, 45, 37, 59,
132, 132, 145, 151, 148, 150, 144, 146, 147, 146, 147, 147, 145, 147, 148, 144, 145, 142,
142, 143, 139, 135, 132, 127, 127, 123, 124, 92, 90, 88, 93, 81, 70, 58, 95, 134, 156,
170, 171, 175, 172, 154, 125, 85, 67, 74, 86, 93, 89, 94, 93, 103, 70, 35, 161, 120, 200,
162, 53, 39, 29, 69, 58, 45, 61, 77, 58, 106, 150, 32, 42, 52, 33, 111, 42, 35, 46, 32, 31,
37, 92, 157, 152, 177, 196, 193, 108, 110, 101, 82, 41, 104, 59, 59, 111, 205, 198, 128,
106, 94, 105, 116, 130, 158, 204, 211, 90, 100, 92, 76, 135, 146, 59, 41, 37, 40, 32, 88,
111, 144, 84, 77, 45, 47, 42, 44, 38, 85, 136, 127, 147, 150, 150, 150, 145, 148, 145,
144, 148, 149, 145, 144, 145, 144, 138, 142, 142, 139, 133, 132, 121, 119, 125, 144, 162,
88, 92, 86, 87, 81, 74, 63, 96, 133, 157, 168, 174, 174, 174, 154, 125, 88, 74, 80, 88,
96, 96, 99, 60, 38, 93, 124, 171, 163, 215, 51, 78, 34, 61, 107, 46, 32, 60, 73, 62, 110,
156, 54, 34, 37, 30, 43, 56, 39, 46, 29, 33, 135, 117, 151, 176, 197, 191, 101, 113, 115,
134, 128, 93, 76, 128, 142, 176, 194, 170, 133, 103, 116, 108, 117, 128, 162, 215, 200,
88, 111, 123, 146, 171, 122, 48, 53, 43, 40, 42, 74, 92, 159, 75, 66, 41, 37, 40, 44, 38,
111, 129, 135, 152, 148, 147, 146, 146, 146, 147, 150, 147, 146, 147, 144, 143, 140, 138,
137, 131, 135, 132, 128, 129, 152, 167, 177, 185, 92, 92, 90, 82, 79, 68, 58, 93, 135,
158, 166, 172, 176, 176, 159, 128, 90, 72, 82, 93, 102, 101, 116, 34, 99, 165, 125, 122,
137, 55, 43, 75, 88, 44, 81, 31, 48, 46, 77, 78, 106, 147, 76, 37, 32, 37, 35, 35, 45,
30, 25, 62, 88, 186, 166, 188, 195, 94, 105, 122, 126, 132, 132, 128, 125, 109, 98, 124,
112, 151, 162, 134, 109, 118, 117, 124, 155, 211, 204, 156, 137, 120, 108, 81, 49, 65, 73,
42, 30, 48, 68, 80, 177, 73, 68, 36, 43, 44, 44, 64, 125, 125, 142, 153, 150, 147, 145,
143, 142, 146, 145, 146, 143, 148, 144, 140, 140, 133, 132, 132, 129, 129, 152, 169, 179,
184, 182, 185, 90, 88, 86, 84, 73, 70, 55, 91, 134, 160, 168, 173, 176, 174, 159, 131, 90,
65, 80, 89, 97, 96, 95, 135, 149, 145, 75, 57, 87, 38, 43, 41, 102, 133, 110, 44, 32, 66,
107, 96, 91, 124, 111, 49, 34, 38, 36, 37, 39, 31, 25, 147, 121, 156, 177, 198, 98, 88,
114, 126, 137, 142, 140, 135, 137, 135, 129, 136, 141, 152, 145, 146, 115, 125, 118, 116,
154, 203, 208, 168, 146, 128, 122, 114, 93, 88, 80, 53, 31, 42, 61, 76, 180, 81, 60, 45,
36, 59, 35, 80, 129, 122, 151, 152, 143, 146, 143, 143, 144, 145, 143, 141, 144, 145, 139,
139, 136, 134, 131, 129, 135, 166, 182, 187, 186, 186, 186, 186, 91, 83, 83, 73, 70, 63,
50, 82, 132, 155, 170, 175, 176, 176, 158, 131, 87, 66, 81, 89, 99, 96, 97, 114, 108, 102,
58, 94, 43, 33, 76, 82, 108, 50, 94, 32, 49, 80, 41, 132, 115, 103, 129, 33, 39, 38, 30,
44, 40, 33, 95, 88, 173, 181, 199, 129, 78, 102, 116, 123, 139, 146, 155, 153, 160, 152,
153, 164, 168, 161, 162, 132, 128, 125, 115, 116, 153, 200, 213, 179, 152, 144, 129, 120,
106, 102, 85, 56, 41, 54, 57, 64, 179, 83, 69, 43, 31, 46, 33, 103, 127, 131, 150, 148,
147, 146, 145, 145, 146, 143, 142, 143, 139, 140, 141, 134, 135, 131, 125, 146, 175, 192,
193, 188, 188, 184, 185, 188, 77, 80, 73, 73, 72, 56, 49, 80, 127, 156, 169, 172, 175, 174,
159, 130, 89, 68, 80, 88, 93, 98, 110, 115, 150, 149, 130, 67, 55, 51, 92, 113, 84, 104,
47, 32, 37, 67, 78, 82, 92, 151, 57, 69, 50, 44, 32, 35, 40, 38, 140, 115, 172, 187, 178,
52, 91, 105, 118, 126, 139, 147, 156, 160, 166, 166, 165, 165, 165, 168, 149, 137, 131,
125, 116, 111, 141, 194, 220, 178, 165, 141, 132, 127, 114, 112, 95, 42, 39, 41, 51, 56,
168, 100, 50, 54, 35, 38, 40, 124, 127, 143, 150, 148, 145, 146, 148, 144, 144, 145, 143,
139, 139, 139, 137, 135, 129, 125, 142, 178, 194, 195, 192, 189, 185, 184, 187, 189, 78,
79, 73, 69, 67, 62, 47, 86, 133, 156, 168, 171, 173, 176, 157, 134, 87, 66, 75, 90, 126,
123, 124, 120, 78, 48, 70, 54, 57, 69, 71, 96, 122, 52, 45, 37, 41, 38, 80, 70, 81, 31,
89, 119, 48, 38, 36, 35, 34, 101, 106, 178, 189, 206, 27, 63, 97, 110, 115, 126, 137, 144,
156, 164, 169, 169, 172, 168, 170, 164, 154, 142, 137, 129, 122, 118, 131, 195, 217, 179,
156, 152, 134, 122, 120, 110, 94, 54, 42, 46, 46, 46, 166, 135, 40, 39, 42, 34, 62, 130,
126, 148, 152, 150, 147, 145, 146, 144, 145, 142, 143, 139, 141, 136, 136, 128, 125, 130,
175, 189, 193, 193, 191, 191, 188, 188, 194, 196, 75, 71, 68, 66, 63, 57, 47, 81, 127,
154, 168, 172, 174, 172, 157, 132, 89, 67, 81, 89, 95, 102, 118, 82, 78, 91, 76, 42, 80,
68, 83, 99, 57, 55, 37, 37, 40, 43, 43, 56, 72, 24, 97, 125, 61, 35, 33, 30, 29, 139,
113, 180, 186, 50, 35, 68, 105, 111, 113, 122, 129, 138, 150, 161, 168, 171, 179, 166,
163, 162, 148, 138, 137, 129, 122, 120, 132, 186, 220, 179, 155, 150, 140, 124, 117, 114,
85, 50, 53, 49, 40, 41, 166, 156, 37, 34, 44, 36, 88, 133, 133, 155, 150, 144, 147, 146,
142, 145, 143, 140, 140, 138, 137, 137, 135, 129, 123, 163, 188, 192, 190, 191, 192, 193,
191, 196, 199, 200, 65, 66, 63, 63, 58, 55, 46, 76, 133, 150, 164, 170, 169, 169, 159,
132, 88, 71, 82, 85, 93, 100, 98, 124, 129, 65, 94, 94, 60, 49, 44, 120, 76, 55, 42, 48,
45, 38, 41, 88, 48, 30, 98, 70, 159, 34, 26, 25, 103, 104, 189, 195, 159, 30, 39, 68, 98,
110, 118, 120, 131, 140, 143, 149, 160, 170, 171, 164, 164, 157, 148, 132, 127, 126, 116,
116, 132, 169, 219, 188, 157, 148, 137, 127, 122, 109, 68, 36, 37, 48, 37, 30, 171, 147,
33, 30, 49, 39, 116, 131, 145, 164, 150, 149, 146, 146, 141, 142, 142, 141, 138, 135, 139,
136, 129, 126, 144, 185, 193, 191, 189, 193, 191, 196, 202, 202, 202, 200, 73, 62, 64,
64, 59, 49, 40, 84, 131, 151, 165, 166, 169, 173, 153, 132, 92, 65, 97, 82, 93, 152, 138,
39, 58, 147, 94, 48, 45, 67, 66, 133, 129, 44, 66, 50, 37, 30, 32, 66, 64, 57, 108, 123,
76, 140, 26, 25, 139, 110, 195, 203, 28, 32, 45, 68, 92, 109, 119, 121, 128, 135, 144,
151, 153, 168, 162, 165, 159, 156, 144, 124, 121, 122, 112, 111, 120, 164, 217, 204, 156,
148, 137, 122, 117, 110, 56, 31, 45, 54, 37, 33, 156, 142, 60, 40, 44, 46, 128, 130, 153,
156, 148, 149, 147, 146, 143, 142, 141, 139, 137, 138, 133, 132, 126, 124, 173, 191, 192,
188, 190, 192, 197, 203, 206, 205, 198, 200, 69, 65, 65, 65, 60, 50, 37, 76, 130, 153,
161, 166, 164, 171, 154, 129, 83, 60, 73, 139, 125, 105, 110, 54, 124, 66, 83, 47, 89, 122,
115, 106, 82, 52, 47, 48, 27, 31, 47, 119, 46, 89, 111, 176, 31, 73, 22, 72, 102, 160,
203, 46, 28, 30, 56, 63, 92, 110, 112, 116, 126, 137, 141, 147, 152, 152, 158, 160, 158,
153, 138, 127, 119, 118, 110, 111, 124, 154, 205, 218, 151, 141, 135, 129, 118, 97, 41,
36, 49, 67, 38, 29, 149, 132, 69, 39, 37, 76, 134, 130, 153, 152, 148, 147, 148, 147, 146,
141, 140, 141, 139, 134, 132, 133, 124, 149, 188, 192, 189, 190, 191, 200, 204, 206, 206,
202, 203, 204, 73, 71, 65, 68, 56, 45, 35, 77, 126, 153, 165, 170, 167, 172, 156, 134,
87, 64, 73, 87, 109, 125, 111, 50, 78, 96, 74, 89, 63, 65, 102, 121, 63, 59, 39, 37, 39,
40, 75, 60, 87, 89, 42, 64, 30, 37, 39, 125, 113, 199, 146, 24, 29, 30, 75, 67, 90, 106,
113, 121, 121, 126, 141, 140, 140, 148, 150, 152, 150, 144, 133, 115, 111, 127, 114, 110,
122, 150, 197, 222, 143, 142, 136, 124, 115, 93, 32, 36, 51, 70, 54, 26, 132, 131, 106, 37,
31, 102, 137, 135, 153, 150, 147, 144, 144, 147, 145, 140, 141, 142, 139, 137, 133, 127,
127, 174, 194, 192, 189, 190, 199, 206, 207, 202, 203, 204, 206, 203, 76, 71, 70, 64, 55,
44, 33, 72, 125, 153, 164, 168, 169, 172, 160, 134, 85, 57, 108, 111, 97, 104, 80, 54,
68, 112, 83, 67, 128, 32, 127, 107, 90, 117, 39, 50, 31, 24, 55, 139, 48, 102, 44, 31, 29,
24, 154, 140, 107, 166, 83, 28, 30, 29, 86, 62, 95, 109, 113, 119, 124, 131, 134, 140,
141, 147, 148, 151, 148, 141, 131, 96, 119, 130, 130, 120, 114, 145, 193, 219, 132, 136,
127, 118, 113, 55, 32, 37, 54, 63, 38, 28, 117, 151, 123, 39, 30, 122, 137, 144, 152, 150,
147, 144, 143, 142, 142, 142, 140, 142, 139, 137, 130, 122, 148, 189, 194, 190, 191, 194,
204, 205, 203, 201, 203, 205, 206, 203, 77, 70, 71, 67, 57, 49, 40, 84, 131, 154, 162,
165, 169, 172, 158, 131, 96, 71, 75, 84, 91, 111, 76, 60, 87, 99, 56, 68, 93, 52, 112,
76, 154, 93, 36, 41, 44, 24, 39, 52, 40, 109, 29, 34, 23, 52, 170, 173, 175, 86, 26, 30,
35, 30, 81, 68, 91, 109, 110, 115, 124, 128, 132, 140, 139, 140, 146, 148, 148, 146, 132,
107, 121, 88, 63, 104, 110, 121, 180, 189, 140, 137, 127, 116, 104, 31, 40, 50, 56, 46, 38,
27, 88, 160, 129, 34, 47, 137, 136, 151, 151, 148, 148, 140, 143, 144, 142, 137, 144, 139,
135, 133, 130, 119, 166, 191, 193, 194, 195, 203, 204, 203, 203, 204, 206, 206, 207, 203,
69, 70, 67, 67, 55, 59, 56, 100, 138, 157, 162, 164, 169, 170, 162, 131, 90, 64, 76, 88,
97, 105, 79, 72, 73, 72, 27, 133, 48, 82, 98, 83, 151, 58, 36, 27, 44, 87, 35, 26, 93,
48, 53, 37, 35, 135, 157, 179, 166, 29, 37, 37, 38, 39, 99, 74, 98, 105, 110, 119, 122,
128, 134, 136, 140, 143, 144, 148, 148, 148, 138, 122, 111, 115, 115, 108, 86, 109, 166,
165, 143, 130, 134, 121, 57, 40, 34, 41, 60, 48, 36, 51, 50, 162, 144, 36, 85, 140, 139,
152, 151, 147, 142, 144, 142, 144, 139, 141, 139, 135, 133, 136, 127, 131, 176, 194, 193,
193, 200, 204, 205, 205, 203, 211, 207, 208, 205, 206, 63, 73, 64, 73, 57, 63, 74, 113,
140, 155, 160, 163, 169, 174, 161, 133, 94, 63, 76, 86, 100, 105, 46, 57, 70, 44, 103, 51,
82, 69, 92, 77, 81, 94, 97, 35, 37, 163, 25, 23, 48, 39, 85, 109, 167, 107, 107, 211, 31,
30, 48, 39, 37, 31, 105, 75, 103, 105, 113, 118, 120, 125, 130, 134, 136, 138, 142, 146,
148, 144, 146, 136, 131, 125, 122, 133, 146, 193, 185, 157, 141, 136, 124, 110, 39, 43,
36, 46, 73, 67, 48, 34, 32, 166, 133, 47, 121, 138, 141, 151, 151, 146, 146, 145, 143,
141, 146, 141, 139, 139, 137, 133, 128, 140, 186, 192, 194, 198, 204, 203, 204, 204, 205,
206, 207, 206, 205, 209, 72, 66, 70, 67, 58, 52, 79, 113, 139, 154, 161, 163, 170, 174,
163, 136, 94, 65, 78, 87, 96, 141, 65, 59, 64, 95, 66, 44, 66, 61, 103, 104, 72, 112,
125, 56, 66, 102, 57, 52, 40, 132, 140, 173, 73, 89, 192, 49, 47, 47, 48, 47, 37, 36, 99,
77, 101, 110, 111, 116, 119, 127, 129, 130, 134, 142, 142, 144, 148, 147, 139, 142, 141,
135, 150, 192, 157, 195, 188, 154, 134, 133, 126, 60, 43, 45, 43, 63, 86, 63, 52, 45, 28,
158, 135, 76, 132, 137, 142, 149, 149, 146, 143, 145, 142, 142, 137, 141, 141, 137, 133,
133, 125, 153, 189, 192, 193, 201, 206, 204, 203, 204, 205, 207, 209, 209, 210, 210, 68,
60, 60, 67, 56, 47, 80, 119, 142, 154, 162, 160, 167, 175, 163, 137, 95, 59, 75, 85, 135,
103, 55, 64, 121, 38, 62, 45, 63, 59, 73, 88, 63, 117, 150, 57, 117, 51, 24, 46, 103, 143,
175, 184, 84, 105, 82, 34, 38, 42, 39, 55, 40, 32, 91, 77, 99, 110, 114, 119, 117, 124,
127, 127, 130, 132, 138, 140, 141, 147, 139, 140, 136, 145, 160, 202, 167, 201, 190, 153,
134, 128, 120, 40, 46, 45, 46, 61, 70, 58, 60, 42, 26, 144, 125, 99, 135, 137, 148, 148,
147, 142, 144, 141, 142, 142, 135, 138, 141, 138, 136, 133, 125, 159, 190, 192, 200, 206,
207, 203, 205, 204, 204, 208, 209, 208, 208, 210, 67, 60, 57, 57, 54, 56, 73, 110, 141,
155, 162, 165, 171, 174, 163, 137, 98, 58, 74, 112, 92, 122, 48, 93, 114, 41, 50, 58, 61,
79, 58, 62, 67, 65, 113, 127, 121, 53, 69, 98, 102, 153, 194, 90, 83, 171, 30, 58, 47, 39,
39, 67, 44, 33, 95, 85, 91, 110, 117, 114, 120, 124, 130, 130, 125, 128, 128, 134, 136,
137, 135, 133, 140, 146, 167, 203, 169, 207, 188, 146, 133, 128, 71, 37, 50, 40, 59, 50,
67, 63, 56, 34, 29, 126, 113, 109, 131, 140, 150, 149, 151, 147, 142, 142, 142, 141, 140,
138, 136, 136, 134, 124, 123, 166, 194, 195, 203, 206, 205, 205, 207, 204, 205, 208, 209,
208, 209, 209, 60, 50, 56, 58, 57, 55, 73, 116, 142, 155, 164, 161, 171, 173, 166, 140,
93, 63, 82, 98, 85, 121, 55, 43, 109, 56, 59, 47, 54, 88, 81, 72, 61, 61, 73, 121, 93, 31,
90, 169, 185, 187, 78, 70, 167, 32, 31, 87, 34, 36, 45, 62, 41, 30, 88, 86, 84, 106, 111,
120, 118, 122, 125, 130, 125, 130, 122, 118, 125, 130, 132, 135, 134, 127, 123, 134, 152,
135, 142, 117, 124, 130, 39, 41, 43, 43, 43, 60, 68, 62, 55, 43, 28, 124, 108, 120, 141,
139, 151, 149, 146, 145, 141, 138, 146, 140, 142, 139, 139, 136, 132, 129, 120, 165, 192,
201, 208, 205, 204, 207, 208, 205, 208, 210, 212, 210, 210, 211, 48, 48, 51, 62, 50, 58,
73, 117, 144, 156, 168, 168, 171, 170, 165, 135, 94, 59, 132, 74, 115, 133, 44, 82, 53, 54,
67, 54, 47, 128, 100, 95, 71, 77, 111, 60, 67, 142, 108, 187, 206, 114, 96, 123, 49, 40,
41, 47, 38, 34, 47, 58, 59, 31, 90, 94, 73, 103, 111, 121, 116, 117, 126, 129, 133, 134,
89, 70, 70, 91, 93, 94, 83, 70, 84, 104, 105, 74, 99, 103, 134, 89, 39, 38, 37, 38, 51,
46, 54, 75, 34, 60, 32, 97, 120, 125, 135, 141, 146, 147, 145, 145, 145, 142, 142, 138,
142, 139, 135, 138, 134, 124, 124, 175, 197, 207, 209, 208, 207, 204, 207, 208, 208, 209,
213, 210, 212, 211, 46, 46, 49, 56, 50, 59, 85, 116, 144, 160, 170, 168, 171, 172, 159,
135, 89, 147, 67, 81, 136, 103, 56, 59, 44, 49, 70, 60, 43, 148, 69, 88, 91, 89, 79, 61,
92, 143, 122, 198, 190, 96, 108, 174, 40, 43, 37, 48, 50, 40, 54, 42, 68, 31, 85, 79, 71,
93, 108, 114, 113, 115, 123, 125, 137, 136, 127, 116, 112, 106, 111, 122, 125, 131, 142,
159, 173, 126, 131, 134, 130, 36, 38, 46, 40, 42, 70, 49, 59, 74, 38, 83, 40, 75, 140,
133, 137, 143, 148, 146, 148, 143, 144, 140, 140, 138, 140, 139, 140, 137, 132, 125, 127,
180, 202, 211, 209, 209, 209, 206, 205, 207, 210, 212, 211, 209, 210, 209, 44, 45, 49,
48, 53, 61, 83, 111, 146, 156, 167, 173, 175, 172, 161, 138, 135, 62, 66, 109, 95, 91,
65, 130, 33, 33, 92, 49, 44, 157, 51, 77, 108, 86, 70, 86, 123, 145, 108, 187, 77, 123,
164, 39, 40, 44, 39, 37, 45, 35, 49, 54, 64, 32, 69, 73, 63, 91, 102, 107, 107, 110, 120,
122, 129, 134, 135, 128, 111, 114, 118, 113, 134, 144, 152, 145, 152, 125, 141, 134, 54,
31, 36, 37, 35, 36, 36, 50, 58, 76, 49, 81, 39, 74, 148, 144, 137, 142, 152, 148, 150,
148, 145, 148, 145, 145, 137, 139, 138, 140, 133, 122, 128, 188, 209, 211, 208, 207, 209,
211, 210, 211, 211, 211, 206, 209, 204, 205, 43, 42, 45, 49, 45, 65, 87, 107, 140, 154,
170, 172, 175, 178, 161, 139, 89, 60, 78, 133, 93, 79, 42, 106, 34, 43, 79, 80, 72, 113,
136, 84, 57, 106, 83, 120, 138, 131, 98, 193, 130, 200, 44, 47, 44, 45, 46, 45, 44, 47,
45, 52, 58, 43, 73, 73, 54, 73, 93, 96, 106, 112, 116, 122, 125, 128, 132, 128, 121, 117,
114, 111, 114, 120, 130, 122, 116, 141, 136, 114, 31, 37, 41, 44, 38, 39, 45, 62, 51, 76,
57, 83, 45, 65, 154, 148, 142, 152, 151, 150, 147, 149, 146, 145, 144, 142, 139, 137, 136,
133, 131, 121, 126, 193, 213, 213, 210, 209, 210, 214, 213, 212, 209, 204, 202, 201, 203,
203, 41, 41, 39, 42, 40, 74, 82, 103, 137, 149, 169, 171, 174, 178, 161, 136, 91, 52, 105,
86, 99, 38, 67, 79, 41, 52, 53, 35, 117, 139, 74, 109, 74, 58, 125, 104, 59, 81, 110,
169, 157, 52, 40, 41, 45, 50, 46, 42, 44, 44, 58, 55, 49, 43, 57, 68, 49, 68, 83, 92, 93,
106, 114, 119, 121, 127, 132, 127, 124, 117, 117, 120, 114, 111, 116, 132, 145, 129, 129,
46, 35, 33, 37, 47, 59, 45, 55, 68, 63, 90, 52, 72, 53, 58, 167, 153, 141, 149, 150, 153,
148, 149, 147, 150, 148, 145, 141, 138, 137, 134, 126, 117, 120, 198, 217, 213, 215, 213,
214, 215, 211, 207, 203, 204, 207, 206, 208, 208, 44, 38, 38, 38, 35, 91, 91, 107, 129,
147, 166, 171, 171, 172, 161, 139, 93, 56, 91, 92, 83, 54, 67, 43, 38, 66, 45, 47, 132,
127, 118, 152, 100, 103, 80, 134, 50, 92, 123, 202, 113, 33, 45, 42, 38, 44, 43, 44, 38,
41, 44, 52, 51, 52, 45, 50, 51, 60, 70, 80, 93, 101, 114, 113, 124, 127, 126, 128, 129,
128, 132, 143, 150, 155, 148, 148, 140, 135, 82, 70, 29, 39, 43, 60, 54, 45, 51, 75, 66,
78, 58, 72, 41, 39, 165, 155, 138, 148, 150, 150, 144, 146, 145, 146, 147, 145, 143, 139,
135, 134, 125, 118, 116, 201, 217, 215, 214, 214, 212, 211, 209, 208, 211, 210, 209, 208,
207, 206, 35, 40, 47, 40, 46, 93, 90, 112, 131, 149, 168, 169, 171, 173, 160, 137, 93, 53,
77, 94, 77, 69, 88, 50, 32, 81, 36, 53, 101, 93, 108, 104, 108, 102, 67, 137, 117, 50,
101, 195, 45, 42, 43, 42, 34, 48, 39, 47, 38, 50, 41, 46, 45, 50, 41, 51, 54, 54, 44, 60,
80, 91, 104, 117, 119, 124, 127, 134, 137, 145, 148, 149, 162, 160, 152, 155, 140, 139,
33, 66, 40, 38, 46, 49, 39, 62, 42, 85, 70, 75, 59, 78, 57, 44, 165, 157, 142, 156, 152,
151, 150, 146, 148, 147, 146, 146, 142, 136, 134, 133, 128, 115, 126, 207, 217, 216, 212,
210, 209, 211, 211, 210, 209, 207, 204, 205, 204, 201, 38, 42, 37, 37, 48, 79, 87, 113,
127, 148, 167, 169, 170, 175, 162, 136, 95, 58, 76, 93, 55, 51, 118, 49, 41, 70, 39, 39,
110, 96, 48, 73, 131, 104, 118, 134, 118, 97, 106, 69, 61, 47, 50, 42, 39, 52, 35, 48, 43,
43, 37, 40, 47, 45, 48, 52, 57, 46, 62, 36, 49, 74, 87, 106, 119, 124, 126, 134, 137, 145,
165, 159, 159, 156, 165, 156, 136, 124, 35, 48, 49, 44, 44, 66, 34, 47, 42, 86, 70, 67, 73,
73, 73, 38, 170, 156, 141, 152, 152, 148, 143, 146, 146, 143, 144, 145, 141, 135, 132,
133, 122, 112, 141, 213, 220, 214, 208, 209, 211, 213, 213, 207, 202, 204, 201, 201, 195,
182, 43, 37, 36, 37, 43, 71, 91, 119, 131, 151, 165, 165, 168, 172, 165, 138, 90, 51, 67,
73, 38, 55, 81, 40, 60, 63, 39, 40, 107, 127, 43, 71, 108, 112, 146, 130, 133, 135, 82,
75, 44, 41, 45, 43, 48, 62, 43, 49, 39, 44, 43, 44, 40, 49, 56, 47, 53, 45, 62, 48, 40, 47,
71, 87, 97, 111, 115, 125, 135, 139, 146, 157, 162, 154, 156, 145, 135, 101, 38, 47, 52,
53, 50, 68, 49, 43, 46, 92, 78, 66, 71, 76, 82, 42, 163, 152, 134, 137, 141, 140, 145,
144, 145, 141, 144, 140, 135, 133, 134, 130, 123, 111, 164, 214, 218, 211, 209, 210, 211,
212, 209, 204, 202, 198, 184, 152, 95, 48, 39, 37, 35, 38, 32, 59, 86, 105, 130, 150, 165,
166, 167, 173, 158, 134, 85, 65, 182, 100, 37, 50, 60, 55, 47, 42, 39, 40, 73, 138, 80, 75,
78, 130, 85, 99, 138, 131, 158, 152, 49, 42, 41, 42, 56, 72, 36, 57, 42, 40, 47, 41, 41,
43, 52, 50, 57, 45, 60, 75, 50, 57, 63, 72, 86, 95, 103, 110, 121, 129, 138, 145, 156, 144,
146, 127, 123, 85, 43, 47, 50, 53, 46, 58, 48, 45, 57, 85, 75, 75, 67, 81, 66, 50, 165,
139, 116, 110, 123, 125, 130, 133, 139, 140, 144, 140, 139, 134, 128, 128, 117, 110, 187,
217, 213, 209, 209, 209, 208, 207, 205, 195, 177, 137, 62, 34, 34, 38, 43, 46, 38, 34,
35, 59, 70, 95, 129, 151, 164, 167, 164, 168, 159, 127, 99, 203, 87, 116, 49, 34, 74, 56,
66, 46, 38, 41, 83, 114, 129, 75, 42, 91, 106, 118, 110, 144, 66, 96, 167, 42, 39, 41, 52,
77, 30, 69, 40, 38, 48, 41, 40, 43, 49, 49, 55, 41, 41, 66, 76, 99, 111, 118, 122, 128,
126, 130, 130, 142, 148, 143, 147, 149, 150, 165, 184, 191, 152, 71, 49, 52, 42, 50, 43,
52, 60, 81, 73, 72, 73, 84, 69, 64, 146, 119, 111, 97, 101, 109, 112, 114, 117, 123, 129,
135, 134, 134, 133, 121, 115, 114, 198, 216, 206, 208, 206, 206, 205, 201, 193, 166, 110,
38, 36, 32, 56, 61, 59, 61, 49, 42, 35, 52, 59, 82, 122, 147, 163, 165, 163, 167, 156, 141,
172, 52, 53, 134, 32, 29, 84, 49, 55, 48, 70, 45, 57, 119, 96, 123, 52, 99, 153, 66, 80,
120, 84, 59, 151, 157, 37, 39, 58, 68, 35, 59, 44, 45, 39, 50, 42, 49, 40, 54, 48, 47, 41,
74, 88, 110, 116, 111, 117, 122, 123, 127, 130, 137, 137, 134, 134, 136, 151, 167, 186,
194, 195, 200, 180, 81, 47, 46, 40, 48, 53, 82, 66, 75, 72, 77, 73, 73, 141, 118, 126,
122, 114, 106, 103, 103, 101, 101, 102, 110, 113, 119, 122, 118, 114, 116, 200, 211, 202,
205, 208, 207, 205, 190, 177, 136, 46, 37, 47, 61, 70, 68, 118, 96, 73, 58, 43, 50, 43,
57, 108, 146, 161, 165, 164, 165, 184, 151, 88, 62, 115, 56, 36, 32, 55, 54, 29, 40, 97,
66, 74, 41, 120, 63, 85, 130, 78, 89, 80, 98, 96, 118, 141, 57, 156, 38, 46, 63, 35, 77,
39, 39, 38, 48, 40, 41, 44, 55, 51, 47, 39, 68, 91, 112, 112, 115, 115, 117, 128, 124,
128, 132, 130, 130, 133, 139, 158, 173, 185, 191, 194, 198, 198, 203, 187, 68, 31, 27, 41,
73, 57, 70, 68, 64, 61, 87, 144, 120, 132, 128, 122, 119, 115, 105, 100, 92, 92, 85, 96,
92, 93, 103, 87, 106, 195, 206, 199, 205, 206, 206, 203, 178, 110, 37, 41, 58, 61, 75, 73,
81, 133, 127, 111, 83, 66, 62, 41, 56, 103, 146, 159, 161, 164, 168, 163, 137, 90, 123,
160, 37, 34, 37, 40, 97, 25, 35, 123, 67, 72, 31, 70, 120, 94, 132, 63, 118, 105, 91, 109,
131, 125, 44, 103, 59, 46, 46, 30, 82, 42, 44, 40, 52, 57, 43, 44, 44, 57, 51, 42, 60, 91,
102, 108, 115, 118, 116, 125, 129, 131, 128, 131, 133, 138, 149, 162, 176, 185, 185, 188,
193, 198, 199, 203, 207, 151, 34, 45, 71, 57, 65, 64, 58, 54, 107, 139, 133, 140, 136,
135, 128, 127, 124, 117, 110, 103, 92, 89, 81, 100, 111, 82, 83, 197, 204, 203, 209, 203,
202, 176, 116, 41, 56, 71, 64, 74, 78, 77, 77, 130, 135, 141, 121, 90, 76, 40, 48, 106,
142, 160, 164, 166, 168, 159, 132, 148, 88, 66, 37, 36, 28, 40, 116, 110, 119, 72, 64,
73, 59, 75, 58, 114, 67, 68, 68, 110, 118, 142, 126, 50, 138, 38, 151, 44, 50, 40, 83, 45,
45, 39, 46, 56, 47, 41, 55, 49, 68, 47, 64, 89, 106, 108, 118, 113, 120, 126, 134, 131,
127, 127, 134, 142, 153, 161, 172, 183, 183, 186, 188, 194, 199, 201, 203, 209, 186, 41,
41, 55, 62, 61, 59, 40, 133, 136, 145, 140, 139, 136, 135, 132, 128, 126, 121, 114, 111,
102, 87, 111, 123, 84, 115, 201, 208, 208, 210, 205, 195, 101, 38, 54, 76, 67, 70, 82, 85,
76, 78, 119, 131, 147, 145, 123, 92, 51, 48, 103, 148, 166, 168, 167, 170, 159, 133, 213,
97, 45, 44, 42, 38, 53, 37, 56, 57, 49, 55, 85, 75, 28, 114, 40, 56, 56, 95, 82, 107, 130,
149, 107, 44, 145, 77, 51, 37, 36, 76, 43, 41, 44, 44, 59, 40, 47, 68, 56, 87, 43, 48, 90,
104, 115, 102, 117, 127, 126, 127, 129, 129, 131, 138, 145, 154, 159, 167, 174, 178, 181,
185, 191, 194, 199, 202, 207, 212, 192, 42, 55, 55, 70, 65, 36, 149, 139, 142, 145, 139,
137, 135, 135, 134, 130, 129, 122, 119, 117, 106, 119, 122, 96, 157, 206, 209, 210, 210,
198, 167, 54, 46, 81, 80, 76, 87, 94, 83, 77, 89, 89, 117, 138, 150, 145, 120, 55, 45,
105, 145, 168, 169, 170, 173, 160, 135, 191, 85, 30, 37, 42, 37, 64, 59, 41, 36, 76, 55,
32, 36, 44, 53, 94, 45, 59, 62, 101, 79, 135, 122, 134, 88, 97, 40, 178, 39, 39, 85, 53,
44, 41, 46, 58, 48, 43, 60, 56, 102, 59, 40, 94, 112, 100, 118, 122, 128, 127, 129, 126,
130, 132, 139, 148, 153, 157, 161, 166, 171, 174, 177, 188, 193, 199, 201, 206, 211, 215,
173, 48, 38, 66, 58, 34, 164, 132, 144, 142, 139, 135, 134, 136, 135, 132, 127, 127, 124,
121, 117, 121, 125, 110, 185, 212, 211, 212, 208, 186, 125, 49, 79, 81, 82, 84, 105, 96,
87, 83, 92, 37, 83, 126, 160, 161, 133, 74, 45, 105, 148, 170, 169, 171, 172, 161, 141,
173, 68, 34, 35, 33, 38, 53, 49, 43, 34, 99, 36, 49, 30, 92, 33, 73, 77, 64, 66, 71, 82,
101, 113, 144, 123, 32, 177, 201, 28, 29, 78, 44, 44, 39, 44, 55, 52, 38, 62, 66, 111, 78,
35, 81, 100, 118, 121, 121, 125, 127, 128, 128, 131, 133, 138, 142, 150, 152, 158, 167,
168, 174, 184, 186, 190, 193, 199, 204, 208, 214, 218, 93, 35, 53, 47, 34, 157, 131, 141,
140, 138, 137, 139, 136, 136, 134, 131, 132, 123, 119, 118, 129, 130, 124, 197, 216, 210,
209, 204, 167, 78, 66, 86, 85, 86, 99, 104, 83, 82, 96, 93, 26, 42, 107, 164, 167, 144, 82,
35, 105, 148, 169, 169, 173, 172, 161, 140, 109, 86, 27, 41, 37, 65, 39, 42, 39, 38, 117,
35, 60, 30, 49, 57, 81, 62, 75, 95, 83, 83, 74, 124, 132, 130, 38, 67, 185, 29, 27, 69,
50, 41, 36, 42, 69, 46, 43, 50, 84, 105, 80, 30, 89, 104, 119, 119, 122, 123, 128, 128,
132, 135, 136, 139, 141, 147, 152, 159, 161, 166, 172, 176, 186, 189, 192, 201, 205, 207,
210, 220, 213, 41, 41, 44, 33, 144, 132, 143, 141, 138, 135, 134, 133, 132, 130, 131, 130,
124, 120, 116, 122, 150, 169, 202, 213, 212, 208, 202, 133, 67, 80, 79, 94, 99, 101, 85,
80, 94, 95, 92, 27, 34, 100, 161, 169, 153, 71, 31, 103, 146, 171, 172, 170, 173, 165,
144, 96, 128, 34, 38, 40, 45, 39, 40, 40, 38, 136, 32, 74, 29, 41, 55, 86, 42, 67, 93, 91,
74, 68, 145, 136, 131, 43, 46, 180, 25, 25, 64, 71, 39, 36, 44, 62, 37, 50, 47, 94, 92, 91,
34, 85, 108, 118, 114, 122, 125, 126, 129, 129, 131, 136, 134, 139, 145, 148, 152, 159,
164, 173, 177, 183, 185, 193, 200, 205, 210, 209, 216, 219, 104, 35, 31, 40, 146, 136,
144, 142, 140, 139, 137, 134, 132, 128, 129, 126, 121, 118, 115, 157, 187, 195, 209, 214,
212, 205, 183, 92, 80, 86, 87, 95, 103, 92, 80, 84, 91, 89, 95, 23, 32, 87, 152, 170, 148,
72, 26, 104, 149, 170, 171, 171, 176, 166, 143, 158, 83, 47, 35, 53, 36, 33, 43, 36, 54,
124, 31, 61, 29, 49, 61, 31, 43, 59, 89, 101, 72, 77, 135, 115, 101, 34, 40, 175, 40, 30,
74, 68, 40, 42, 41, 58, 36, 42, 58, 88, 102, 98, 36, 84, 114, 118, 120, 127, 127, 130,
126, 130, 129, 135, 136, 140, 145, 146, 151, 158, 164, 168, 174, 181, 185, 191, 197, 202,
207, 209, 213, 218, 209, 34, 27, 58, 141, 137, 142, 144, 140, 139, 135, 133, 129, 126,
127, 123, 117, 116, 145, 197, 201, 200, 213, 213, 213, 201, 148, 80, 83, 78, 95, 103, 104,
81, 78, 96, 90, 90, 95, 22, 23, 74, 149, 170, 153, 78, 28, 101, 151, 170, 172, 171, 177,
163, 143, 138, 33, 47, 51, 38, 35, 36, 37, 27, 134, 109, 32, 35, 39, 43, 34, 38, 39, 59,
60, 122, 45, 58, 136, 147, 60, 128, 134, 114, 158, 32, 58, 60, 47, 57, 41, 42, 49, 47, 77,
107, 115, 102, 39, 88, 114, 123, 127, 126, 124, 126, 128, 124, 129, 132, 134, 137, 142,
143, 153, 156, 157, 171, 172, 181, 183, 191, 199, 202, 206, 209, 211, 215, 219, 34, 22,
90, 137, 152, 143, 139, 136, 137, 134, 132, 133, 127, 126, 120, 118, 114, 185, 215, 212,
205, 214, 215, 211, 182, 107, 87, 80, 82, 98, 103, 92, 80, 88, 93, 93, 98, 81, 21, 23, 67,
149, 172, 155, 93, 29, 97, 147, 169, 172, 172, 174, 167, 145, 117, 47, 55, 38, 38, 38,
37, 36, 113, 43, 76, 38, 41, 70, 32, 31, 39, 47, 66, 49, 105, 104, 92, 131, 122, 134,
143, 171, 34, 30, 38, 41, 53, 56, 52, 44, 44, 46, 58, 104, 114, 110, 87, 49, 87, 114, 119,
123, 127, 128, 128, 126, 128, 126, 132, 133, 134, 139, 145, 150, 153, 156, 166, 172, 176,
186, 192, 196, 205, 204, 207, 209, 211, 217, 146, 22, 119, 134, 149, 139, 139, 138, 136,
132, 134, 131, 127, 125, 119, 116, 116, 197, 216, 208, 206, 215, 213, 203, 150, 99, 93,
85, 87, 106, 96, 86, 82, 96, 94, 86, 84, 76, 24, 24, 62, 145, 169, 157, 109, 30, 93, 146,
168, 165, 166, 165, 162, 144, 121, 57, 45, 39, 35, 47, 39, 83, 39, 48, 77, 36, 35, 45, 37,
40, 42, 34, 68, 53, 37, 82, 137, 107, 123, 67, 99, 117, 151, 141, 88, 50, 39, 77, 49, 51,
39, 47, 67, 106, 112, 114, 78, 58, 96, 113, 122, 121, 129, 133, 126, 127, 123, 126, 130,
133, 132, 139, 145, 149, 150, 155, 162, 163, 178, 186, 188, 196, 202, 203, 207, 209, 211,
214, 205, 20, 121, 134, 144, 138, 138, 132, 134, 131, 132, 133, 129, 122, 120, 117, 126,
201, 213, 201, 207, 216, 211, 185, 121, 110, 93, 88, 94, 101, 97, 84, 82, 95, 99, 93, 79,
72, 25, 21, 55, 143, 171, 166, 105, 33, 93, 149, 167, 172, 172, 173, 166, 144, 132, 49,
42, 37, 38, 43, 39, 38, 50, 42, 67, 45, 57, 37, 47, 37, 38, 46, 101, 33, 34, 76, 110,
139, 122, 116, 31, 51, 41, 24, 62, 58, 78, 81, 43, 48, 44, 61, 80, 114, 115, 118, 66, 72,
100, 119, 123, 124, 129, 129, 126, 128, 122, 125, 125, 132, 132, 135, 144, 145, 149, 152,
159, 165, 172, 179, 187, 193, 199, 202, 205, 207, 210, 213, 214, 20, 124, 133, 143, 148,
139, 137, 134, 134, 132, 133, 131, 127, 121, 121, 128, 198, 213, 199, 208, 217, 204, 157,
108, 109, 93, 83, 93, 94, 84, 76, 90, 97, 80, 85, 87, 83, 30, 27, 42, 133, 166, 162, 111,
37, 91, 144, 166, 171, 172, 173, 168, 141, 141, 46, 39, 34, 33, 45, 40, 62, 36, 42, 54,
55, 34, 39, 77, 32, 49, 31, 64, 70, 82, 77, 89, 96, 81, 134, 64, 109, 41, 40, 45, 46, 53,
42, 55, 34, 41, 73, 93, 114, 119, 114, 56, 85, 116, 121, 129, 129, 129, 133, 130, 125,
126, 126, 129, 130, 132, 135, 141, 144, 147, 154, 159, 161, 170, 179, 188, 190, 196, 200,
202, 206, 209, 209, 211, 73, 117, 139, 144, 140, 137, 135, 134, 135, 134, 132, 129, 123,
125, 124, 126, 177, 197, 197, 211, 215, 199, 136, 106, 102, 97, 85, 90, 79, 68, 92, 97,
92, 88, 88, 80, 90, 36, 31, 37, 128, 164, 161, 121, 44, 86, 140, 167, 169, 170, 172, 164,
142, 153, 50, 41, 30, 31, 59, 68, 36, 34, 56, 56, 44, 56, 49, 50, 38, 38, 65, 52, 77, 32,
132, 103, 124, 83, 59, 120, 115, 122, 41, 45, 54, 46, 43, 45, 36, 57, 74, 103, 113, 115,
105, 45, 89, 120, 125, 130, 126, 134, 127, 125, 126, 125, 128, 124, 128, 130, 135, 143,
141, 147, 151, 154, 161, 165, 170, 180, 187, 193, 199, 204, 208, 208, 208, 211, 184, 127,
131, 127, 131, 136, 141, 139, 137, 136, 136, 131, 125, 129, 132, 131, 133, 152, 183, 212,
211, 193, 122, 101, 92, 82, 86, 85, 67, 80, 101, 89, 83, 80, 91, 89, 69, 29, 29, 30, 119,
158, 160, 126, 47, 84, 140, 163, 169, 169, 172, 166, 145, 145, 54, 49, 37, 42, 43, 42, 35,
36, 48, 57, 49, 51, 48, 51, 37, 34, 71, 31, 72, 77, 32, 43, 86, 83, 48, 95, 166, 27, 41,
35, 45, 38, 38, 37, 41, 67, 94, 105, 115, 112, 76, 65, 103, 122, 124, 127, 130, 132, 134,
129, 132, 128, 123, 130, 130, 128, 135, 140, 141, 142, 148, 151, 158, 167, 173, 180, 188,
192, 198, 201, 207, 209, 211, 210, 212, 132, 101, 94, 101, 114, 123, 131, 135, 140, 135,
136, 131, 138, 143, 136, 132, 136, 191, 220, 210, 171, 110, 98, 88, 81, 90, 67, 72, 88,
91, 86, 83, 87, 84, 82, 51, 27, 25, 32, 107, 163, 170, 131, 53, 81, 140, 165, 168, 170,
174, 164, 148, 117, 70, 58, 33, 45, 41, 44, 38, 55, 55, 44, 61, 56, 37, 47, 33, 44, 34,
63, 64, 107, 50, 47, 47, 62, 55, 92, 124, 33, 47, 34, 36, 44, 29, 36, 58, 71, 103, 107,
114, 111, 42, 79, 124, 124, 124, 129, 132, 132, 133, 131, 131, 127, 127, 124, 126, 128,
135, 136, 140, 146, 145, 153, 157, 163, 165, 176, 184, 190, 195, 201, 206, 211, 213, 212,
215, 114, 70, 67, 72, 83, 83, 95, 110, 116, 122, 128, 136, 146, 150, 130, 122, 143, 203,
220, 201, 146, 102, 80, 72, 85, 80, 62, 85, 92, 89, 86, 84, 96, 85, 69, 49, 25, 26, 32,
103, 163, 172, 138, 49, 77, 135, 161, 166, 171, 172, 167, 145, 109, 74, 71, 35, 44, 37,
37, 45, 42, 60, 44, 62, 53, 44, 38, 44, 40, 59, 30, 93, 121, 147, 50, 61, 81, 92, 34, 57,
43, 32, 53, 36, 35, 34, 49, 72, 91, 106, 105, 107, 73, 44, 96, 124, 124, 121, 126, 128,
132, 128, 130, 127, 133, 126, 124, 125, 127, 131, 135, 137, 142, 146, 153, 154, 162, 163,
171, 178, 184, 196, 200, 203, 207, 211, 212, 214, 159, 76, 84, 73, 70, 67, 66, 70, 75, 79,
92, 113, 138, 149, 146, 143, 157, 212, 215, 181, 117, 79, 61, 74, 80, 65, 81, 94, 85, 85,
82, 95, 92, 79, 55, 45, 33, 31, 31, 97, 165, 178, 152, 61, 82, 135, 159, 171, 170, 174,
170, 150, 67, 81, 64, 42, 32, 32, 44, 46, 36, 64, 38, 60, 60, 54, 45, 50, 51, 36, 47, 38,
90, 131, 142, 128, 77, 80, 39, 39, 41, 34, 36, 32, 30, 35, 57, 79, 100, 104, 109, 100, 28,
79, 119, 123, 123, 128, 129, 128, 128, 133, 133, 128, 128, 130, 125, 127, 128, 128, 135,
135, 140, 141, 149, 149, 155, 160, 171, 178, 182, 196, 196, 201, 205, 209, 210, 214, 206,
74, 86, 88, 86, 77, 67, 55, 46, 41, 43, 55, 93, 150, 188, 151, 183, 214, 206, 151, 82,
53, 55, 75, 68, 82, 100, 85, 77, 81, 81, 93, 90, 68, 47, 43, 47, 66, 58, 97, 167, 180, 166,
77, 83, 134, 161, 172, 167, 173, 171, 150, 86, 83, 46, 47, 41, 56, 38, 42, 36, 44, 39, 56,
47, 51, 44, 32, 30, 63, 43, 38, 35, 119, 136, 109, 102, 129, 32, 47, 32, 32, 36, 31, 36,
43, 62, 90, 104, 107, 108, 37, 49, 109, 117, 127, 127, 128, 126, 130, 131, 133, 132, 129,
130, 130, 127, 126, 134, 129, 132, 132, 137, 141, 144, 147, 150, 162, 173, 175, 183, 191,
193, 201, 206, 207, 210, 213, 213, 75, 90, 96, 95, 90, 83, 71, 52, 39, 35, 35, 79, 194,
201, 145, 198, 214, 191, 99, 51, 50, 69, 67, 62, 97, 93, 77, 76, 72, 91, 104, 83, 57, 45,
51, 82, 83, 90, 112, 162, 180, 166, 99, 87, 136, 160, 171, 170, 176, 172, 144, 93, 86, 34,
40, 42, 39, 41, 40, 41, 41, 53, 38, 57, 53, 36, 35, 47, 32, 59, 48, 37, 57, 109, 153, 69,
120, 36, 41, 35, 36, 28, 28, 37, 67, 73, 106, 113, 111, 35, 47, 92, 116, 119, 123, 126,
130, 128, 129, 130, 132, 131, 133, 133, 130, 131, 127, 126, 129, 127, 132, 139, 139, 143,
147, 152, 159, 161, 168, 182, 189, 194, 200, 205, 206, 209, 209, 214, 115, 83, 101, 100,
94, 92, 83, 69, 56, 38, 33, 80, 191, 194, 167, 198, 195, 127, 46, 47, 58, 55, 63, 88,
101, 75, 71, 70, 84, 104, 90, 78, 74, 49, 58, 74, 86, 97, 127, 166, 179, 169, 112, 87,
131, 160, 170, 171, 177, 171, 147, 109, 79, 34, 36, 39, 38, 42, 40, 49, 42, 41, 60, 52,
43, 79, 47, 32, 84, 38, 67, 39, 68, 91, 75, 116, 54, 40, 41, 42, 35, 33, 35, 50, 67, 90,
110, 101, 33, 44, 88, 114, 115, 118, 124, 128, 128, 126, 125, 127, 128, 135, 129, 134,
133, 133, 127, 127, 131, 132, 129, 137, 137, 139, 143, 151, 157, 157, 170, 171, 183, 188,
197, 202, 206, 208, 208, 211, 191, 75, 89, 101, 97, 85, 86, 83, 65, 62, 60, 76, 185, 202,
193, 168, 121, 57, 43, 54, 57, 56, 84, 95, 81, 70, 67, 71, 97, 105, 85, 79, 60, 52, 61, 48,
85, 108, 112, 159, 174, 165, 110, 87, 131, 163, 167, 171, 177, 171, 150, 98, 84, 33, 36,
43, 33, 49, 44, 58, 31, 37, 67, 61, 55, 83, 34, 36, 81, 60, 62, 49, 43, 60, 142, 64, 83,
33, 37, 37, 28, 28, 37, 72, 87, 79, 42, 36, 74, 94, 108, 115, 118, 125, 123, 125, 127,
129, 133, 129, 131, 132, 136, 136, 133, 131, 135, 132, 131, 129, 128, 132, 136, 138, 140,
148, 153, 160, 162, 169, 179, 186, 193, 196, 202, 207, 208, 214, 209, 71, 88, 93, 96, 91,
89, 89, 79, 84, 81, 94, 184, 207, 169, 89, 56, 46, 60, 64, 62, 82, 99, 88, 68, 60, 71,
84, 106, 92, 87, 65, 54, 65, 49, 36, 66, 83, 102, 146, 175, 166, 120, 87, 127, 160, 170,
174, 178, 172, 157, 69, 55, 41, 40, 46, 35, 53, 43, 77, 41, 41, 51, 56, 57, 109, 83, 42,
64, 33, 57, 103, 47, 90, 107, 96, 40, 27, 40, 43, 36, 38, 41, 38, 29, 53, 79, 97, 101,
112, 114, 112, 115, 118, 125, 126, 125, 127, 128, 126, 130, 133, 132, 135, 138, 134, 134,
133, 128, 133, 131, 131, 133, 141, 144, 148, 150, 156, 161, 171, 173, 183, 187, 196, 199,
202, 208, 211, 211, 82, 80, 89, 91, 97, 97, 92, 90, 99, 98, 93, 152, 155, 85, 70, 66, 66,
72, 61, 78, 102, 91, 73, 64, 58, 83, 100, 108, 94, 80, 56, 61, 60, 38, 40, 46, 72, 81, 138,
171, 166, 122, 89, 125, 160, 170, 173, 174, 171, 154, 50, 36, 38, 65, 34, 51, 49, 52, 93,
36, 41, 63, 46, 42, 93, 111, 35, 82, 103, 29, 60, 45, 63, 115, 90, 68, 37, 50, 48, 31,
30, 51, 64, 74, 83, 103, 110, 110, 113, 117, 119, 118, 116, 126, 123, 126, 122, 127, 132,
130, 131, 130, 138, 137, 129, 134, 134, 131, 134, 130, 131, 133, 137, 141, 145, 147, 160,
162, 168, 178, 183, 183, 193, 196, 202, 209, 209, 212, 150, 71, 83, 88, 101, 104, 95, 101,
108, 106, 103, 103, 94, 78, 83, 89, 81, 63, 68, 93, 90, 78, 66, 56, 69, 96, 105, 105, 95,
70, 55, 50, 45, 47, 45, 60, 57, 67, 138, 186, 189, 142, 90, 127, 158, 173, 179, 179, 174,
133, 44, 55, 37, 40, 37, 46, 47, 51, 44, 42, 33, 89, 31, 33, 105, 123, 47, 39, 122, 38,
47, 119, 36, 97, 81, 47, 37, 40, 41, 43, 45, 72, 89, 103, 103, 107, 113, 114, 114, 120,
118, 120, 118, 121, 128, 127, 127, 125, 128, 128, 132, 131, 133, 137, 133, 137, 131, 141,
134, 138, 133, 139, 141, 143, 143, 147, 153, 158, 166, 173, 173, 181, 191, 195, 200, 207,
204, 209, 196, 60, 81, 91, 99, 105, 106, 111, 113, 103, 100, 94, 91, 89, 98, 97, 79, 69,
85, 88, 70, 62, 65, 63, 87, 109, 111, 96, 82, 60, 51, 46, 39, 44, 41, 48, 46, 54, 144, 199,
199, 178, 98, 124, 157, 170, 175, 174, 170, 133, 64, 38, 60, 41, 39, 45, 49, 54, 39, 85,
37, 130, 36, 34, 117, 72, 115, 32, 83, 51, 32, 61, 81, 77, 107, 81, 35, 30, 39, 53, 76, 90,
98, 102, 108, 107, 112, 115, 114, 113, 122, 121, 116, 121, 123, 123, 127, 125, 130, 128,
130, 129, 134, 131, 134, 140, 134, 135, 139, 140, 140, 137, 142, 144, 144, 147, 156, 162,
159, 173, 172, 179, 187, 193, 198, 201, 205, 209, 210, 57, 76, 88, 97, 100, 113, 114, 110,
108, 105, 100, 99, 110, 108, 96, 86, 87, 85, 75, 67, 66, 62, 78, 107, 117, 102, 83, 69,
49, 52, 44, 54, 82, 45, 46, 48, 48, 157, 192, 197, 184, 98, 128, 155, 170, 175, 175, 169,
104, 65, 44, 36, 49, 48, 51, 53, 70, 66, 51, 44, 93, 42, 53, 112, 83, 130, 40, 69, 97, 43,
67, 57, 43, 74, 71, 116, 32, 50, 64, 79, 99, 100, 106, 109, 111, 117, 117, 113, 123, 120,
119, 122, 121, 123, 127, 125, 122, 129, 129, 130, 131, 135, 137, 138, 133, 134, 136, 142,
137, 137, 137, 142, 145, 146, 150, 153, 155, 158, 169, 172, 184, 186, 191, 197, 201, 204,
204, 209, 88, 78, 84, 91, 97, 108, 106, 119, 114, 106, 110, 114, 119, 106, 92, 85, 85,
72, 73, 76, 71, 79, 107, 122, 117, 97, 74, 41, 44, 44, 55, 80, 79, 37, 45, 50, 44, 143,
194, 196, 179, 97, 127, 156, 169, 175, 175, 170, 100, 56, 38, 30, 58, 55, 64, 52, 54, 69,
46, 73, 62, 62, 49, 106, 64, 62, 116, 53, 80, 44, 41, 74, 40, 43, 38, 92, 80, 72, 74, 80,
96, 98, 110, 114, 115, 114, 120, 115, 118, 118, 122, 122, 121, 120, 127, 123, 121, 124,
127, 130, 129, 134, 135, 135, 132, 135, 135, 139, 141, 139, 140, 141, 140, 155, 147, 155,
159, 156, 162, 169, 180, 188, 190, 193, 198, 204, 204, 207, 138, 91, 85, 86, 94, 96, 119,
125, 117, 115, 116, 129, 122, 102, 80, 73, 66, 68, 82, 82, 72, 85, 116, 122, 113, 78, 51,
43, 40, 50, 74, 95, 98];
}
@safe pure nothrow unittest
{
FASTDetector detector = new FASTDetector;
assert(detector.threshold == 100);
assert(detector.type == FASTDetector.Type.FAST_9);
assert(detector.flags == 0);
}
@safe pure nothrow unittest
{
FASTDetector detector = new FASTDetector(3, FASTDetector.Type.FAST_10, FASTDetector.PERFORM_NON_MAX_SUPRESSION);
assert(detector.threshold == 3);
assert(detector.type == FASTDetector.Type.FAST_10);
assert(detector.flags == FASTDetector.PERFORM_NON_MAX_SUPRESSION);
}
unittest
{
auto lslice = lena_128x128.map!(v => cast(ubyte)v).array.sliced(128, 128).asImage(ImageFormat.IF_MONO);
uint threshold = 50;
int flags = FASTDetector.PERFORM_NON_MAX_SUPRESSION | FASTDetector.SORT_OUT_FEATURES_BY_SCORE;
size_t cornerCount = 10;
foreach (type; [FASTDetector.Type.FAST_9, FASTDetector.Type.FAST_10, FASTDetector.Type.FAST_11,
FASTDetector.Type.FAST_12])
{
FASTDetector detector = new FASTDetector(threshold, type, flags);
Feature[] features = detector.detect(lslice, cornerCount);
assert(features.length == cornerCount);
assert(features.isSorted!"a.score > b.score");
}
}
unittest
{
auto lslice = lena_128x128.map!(v => cast(ubyte)v).array.sliced(128, 128).asImage(ImageFormat.IF_MONO);
uint threshold = 50;
int flags = 0;
size_t cornerCount = 10;
foreach (type; [FASTDetector.Type.FAST_9, FASTDetector.Type.FAST_10, FASTDetector.Type.FAST_11,
FASTDetector.Type.FAST_12])
{
FASTDetector detector = new FASTDetector(threshold, type, flags);
Feature[] features = detector.detect(lslice, 0);
assert(features.length != cornerCount); // real count should be around 23 with 43 without suppression
assert(!features.isSorted!"a.score > b.score");
}
}
|
D
|
a colloid in a more solid form than a sol
a thin translucent membrane used over stage lights for color effects
become a gel
apply a styling gel to
|
D
|
// Written in the D programming language.
/**
Serialize data to `ubyte` arrays.
* Copyright: Copyright Digital Mars 2000 - 2015.
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: $(HTTP digitalmars.com, Walter Bright)
* Source: $(PHOBOSSRC std/_outbuffer.d)
*
* $(SCRIPT inhibitQuickIndex = 1;)
*/
module std.outbuffer;
import core.stdc.stdarg; // : va_list;
/*********************************************
* OutBuffer provides a way to build up an array of bytes out
* of raw data. It is useful for things like preparing an
* array of bytes to write out to a file.
* OutBuffer's byte order is the format native to the computer.
* To control the byte order (endianness), use a class derived
* from OutBuffer.
* OutBuffer's internal buffer is allocated with the GC. Pointers
* stored into the buffer are scanned by the GC, but you have to
* ensure proper alignment, e.g. by using alignSize((void*).sizeof).
*/
class OutBuffer
{
ubyte[] data;
size_t offset;
invariant()
{
assert(offset <= data.length);
}
pure nothrow @safe
{
/*********************************
* Convert to array of bytes.
*/
ubyte[] toBytes() { return data[0 .. offset]; }
/***********************************
* Preallocate nbytes more to the size of the internal buffer.
*
* This is a
* speed optimization, a good guess at the maximum size of the resulting
* buffer will improve performance by eliminating reallocations and copying.
*/
void reserve(size_t nbytes) @trusted
in
{
assert(offset + nbytes >= offset);
}
out
{
assert(offset + nbytes <= data.length);
}
do
{
if (data.length < offset + nbytes)
{
void[] vdata = data;
vdata.length = (offset + nbytes + 7) * 2; // allocates as void[] to not set BlkAttr.NO_SCAN
data = cast(ubyte[]) vdata;
}
}
/**********************************
* put enables OutBuffer to be used as an OutputRange.
*/
alias put = write;
/*************************************
* Append data to the internal buffer.
*/
void write(const(ubyte)[] bytes)
{
reserve(bytes.length);
data[offset .. offset + bytes.length] = bytes[];
offset += bytes.length;
}
void write(in wchar[] chars) @trusted
{
write(cast(ubyte[]) chars);
}
void write(const(dchar)[] chars) @trusted
{
write(cast(ubyte[]) chars);
}
void write(ubyte b) /// ditto
{
reserve(ubyte.sizeof);
this.data[offset] = b;
offset += ubyte.sizeof;
}
void write(byte b) { write(cast(ubyte) b); } /// ditto
void write(char c) { write(cast(ubyte) c); } /// ditto
void write(dchar c) { write(cast(uint) c); } /// ditto
void write(ushort w) @trusted /// ditto
{
reserve(ushort.sizeof);
*cast(ushort *)&data[offset] = w;
offset += ushort.sizeof;
}
void write(short s) { write(cast(ushort) s); } /// ditto
void write(wchar c) @trusted /// ditto
{
reserve(wchar.sizeof);
*cast(wchar *)&data[offset] = c;
offset += wchar.sizeof;
}
void write(uint w) @trusted /// ditto
{
reserve(uint.sizeof);
*cast(uint *)&data[offset] = w;
offset += uint.sizeof;
}
void write(int i) { write(cast(uint) i); } /// ditto
void write(ulong l) @trusted /// ditto
{
reserve(ulong.sizeof);
*cast(ulong *)&data[offset] = l;
offset += ulong.sizeof;
}
void write(long l) { write(cast(ulong) l); } /// ditto
void write(float f) @trusted /// ditto
{
reserve(float.sizeof);
*cast(float *)&data[offset] = f;
offset += float.sizeof;
}
void write(double f) @trusted /// ditto
{
reserve(double.sizeof);
*cast(double *)&data[offset] = f;
offset += double.sizeof;
}
void write(real f) @trusted /// ditto
{
reserve(real.sizeof);
*cast(real *)&data[offset] = f;
offset += real.sizeof;
}
void write(in char[] s) @trusted /// ditto
{
write(cast(ubyte[]) s);
}
void write(OutBuffer buf) /// ditto
{
write(buf.toBytes());
}
/****************************************
* Append nbytes of 0 to the internal buffer.
*/
void fill0(size_t nbytes)
{
reserve(nbytes);
data[offset .. offset + nbytes] = 0;
offset += nbytes;
}
/**********************************
* 0-fill to align on power of 2 boundary.
*/
void alignSize(size_t alignsize)
in
{
assert(alignsize && (alignsize & (alignsize - 1)) == 0);
}
out
{
assert((offset & (alignsize - 1)) == 0);
}
do
{
auto nbytes = offset & (alignsize - 1);
if (nbytes)
fill0(alignsize - nbytes);
}
/// Clear the data in the buffer
void clear()
{
offset = 0;
}
/****************************************
* Optimize common special case alignSize(2)
*/
void align2()
{
if (offset & 1)
write(cast(byte) 0);
}
/****************************************
* Optimize common special case alignSize(4)
*/
void align4()
{
if (offset & 3)
{ auto nbytes = (4 - offset) & 3;
fill0(nbytes);
}
}
/**************************************
* Convert internal buffer to array of chars.
*/
override string toString() const
{
//printf("OutBuffer.toString()\n");
return cast(string) data[0 .. offset].idup;
}
}
/*****************************************
* Append output of C's vprintf() to internal buffer.
*/
void vprintf(string format, va_list args) @trusted nothrow
{
import core.stdc.stdio : vsnprintf;
import core.stdc.stdlib : alloca;
import std.string : toStringz;
version (unittest)
char[3] buffer = void; // trigger reallocation
else
char[128] buffer = void;
int count;
// Can't use `tempCString()` here as it will result in compilation error:
// "cannot mix core.std.stdlib.alloca() and exception handling".
auto f = toStringz(format);
auto p = buffer.ptr;
auto psize = buffer.length;
for (;;)
{
va_list args2;
va_copy(args2, args);
count = vsnprintf(p, psize, f, args2);
va_end(args2);
if (count == -1)
{
if (psize > psize.max / 2) assert(0); // overflow check
psize *= 2;
}
else if (count >= psize)
{
if (count == count.max) assert(0); // overflow check
psize = count + 1;
}
else
break;
p = cast(char *) alloca(psize); // buffer too small, try again with larger size
}
write(cast(ubyte[]) p[0 .. count]);
}
/*****************************************
* Append output of C's printf() to internal buffer.
*/
void printf(string format, ...) @trusted
{
va_list ap;
va_start(ap, format);
vprintf(format, ap);
va_end(ap);
}
/**
* Formats and writes its arguments in text format to the OutBuffer.
*
* Params:
* fmt = format string as described in $(REF formattedWrite, std,format)
* args = arguments to be formatted
*
* See_Also:
* $(REF _writef, std,stdio);
* $(REF formattedWrite, std,format);
*/
void writef(Char, A...)(in Char[] fmt, A args)
{
import std.format : formattedWrite;
formattedWrite(this, fmt, args);
}
///
@safe unittest
{
OutBuffer b = new OutBuffer();
b.writef("a%sb", 16);
assert(b.toString() == "a16b");
}
/**
* Formats and writes its arguments in text format to the OutBuffer,
* followed by a newline.
*
* Params:
* fmt = format string as described in $(REF formattedWrite, std,format)
* args = arguments to be formatted
*
* See_Also:
* $(REF _writefln, std,stdio);
* $(REF formattedWrite, std,format);
*/
void writefln(Char, A...)(in Char[] fmt, A args)
{
import std.format : formattedWrite;
formattedWrite(this, fmt, args);
put('\n');
}
///
@safe unittest
{
OutBuffer b = new OutBuffer();
b.writefln("a%sb", 16);
assert(b.toString() == "a16b\n");
}
/*****************************************
* At offset index into buffer, create nbytes of space by shifting upwards
* all data past index.
*/
void spread(size_t index, size_t nbytes) pure nothrow @safe
in
{
assert(index <= offset);
}
do
{
reserve(nbytes);
// This is an overlapping copy - should use memmove()
for (size_t i = offset; i > index; )
{
--i;
data[i + nbytes] = data[i];
}
offset += nbytes;
}
}
///
@safe unittest
{
import std.string : cmp;
OutBuffer buf = new OutBuffer();
assert(buf.offset == 0);
buf.write("hello");
buf.write(cast(byte) 0x20);
buf.write("world");
buf.printf(" %d", 62665);
assert(cmp(buf.toString(), "hello world 62665") == 0);
buf.clear();
assert(cmp(buf.toString(), "") == 0);
buf.write("New data");
assert(cmp(buf.toString(),"New data") == 0);
}
@safe unittest
{
import std.range;
static assert(isOutputRange!(OutBuffer, char));
import std.algorithm;
{
OutBuffer buf = new OutBuffer();
"hello".copy(buf);
assert(buf.toBytes() == "hello");
}
{
OutBuffer buf = new OutBuffer();
"hello"w.copy(buf);
assert(buf.toBytes() == "h\x00e\x00l\x00l\x00o\x00");
}
{
OutBuffer buf = new OutBuffer();
"hello"d.copy(buf);
assert(buf.toBytes() == "h\x00\x00\x00e\x00\x00\x00l\x00\x00\x00l\x00\x00\x00o\x00\x00\x00");
}
}
|
D
|
module engine.client;
public import engine.client.client;
|
D
|
func void ZS_Saw()
{
Perception_Set_Normal();
B_ResetAll(self);
AI_SetWalkMode(self,NPC_WALK);
if(Hlp_StrCmp(Npc_GetNearestWP(self),self.wp) == FALSE)
{
AI_GotoWP(self,self.wp);
};
};
func int ZS_Saw_Loop()
{
if(!C_BodyStateContains(self,BS_MOBINTERACT_INTERRUPT) && Wld_IsMobAvailable(self,"BAUMSAEGE"))
{
AI_UseMob(self,"BAUMSAEGE",1);
};
if((Npc_GetStateTime(self) > 15) && C_BodyStateContains(self,BS_MOBINTERACT_INTERRUPT))
{
Npc_SetStateTime(self,0);
};
return LOOP_CONTINUE;
};
func void ZS_Saw_End()
{
AI_UseMob(self,"BAUMSAEGE",-1);
};
|
D
|
/**
* This is a low-level messaging API upon which more structured or restrictive
* APIs may be built. The general idea is that every messageable entity is
* represented by a common handle type (called a Cid in this implementation),
* which allows messages to be sent to in-process threads, on-host processes,
* and foreign-host processes using the same interface. This is an important
* aspect of scalability because it allows the components of a program to be
* spread across available resources with few to no changes to the actual
* implementation.
*
* Right now, only in-process threads are supported and referenced by a more
* specialized handle called a Tid. It is effectively a subclass of Cid, with
* additional features specific to in-process messaging.
*
* Synposis:
*$(D_RUN_CODE
*$(ARGS
* ---
* import std.stdio;
* import std.concurrency;
*
* void spawnedFunc(Tid tid)
* {
* // Receive a message from the owner thread.
* receive(
* (int i) { writeln("Received the number ", i);}
* );
*
* // Send a message back to the owner thread
* // indicating success.
* send(tid, true);
* }
*
* void main()
* {
* // Start spawnedFunc in a new thread.
* auto tid = spawn(&spawnedFunc, thisTid);
*
* // Send the number 42 to this new thread.
* send(tid, 42);
*
* // Receive the result code.
* auto wasSuccessful = receiveOnly!(bool);
* assert(wasSuccessful);
* writeln("Successfully printed number.");
* }
* ---
*), $(ARGS), $(ARGS), $(ARGS))
*
* Copyright: Copyright Sean Kelly 2009 - 2010.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Sean Kelly, Alex Rønne Petersen
* Source: $(PHOBOSSRC std/_concurrency.d)
*/
/* Copyright Sean Kelly 2009 - 2010.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module std.concurrency;
public
{
import std.variant;
}
private
{
import core.thread;
import core.sync.mutex;
import core.sync.condition;
import std.algorithm;
import std.datetime;
import std.exception;
import std.range;
import std.string;
import std.traits;
import std.typecons;
import std.typetuple;
template hasLocalAliasing(T...)
{
static if( !T.length )
enum hasLocalAliasing = false;
else
enum hasLocalAliasing = (std.traits.hasLocalAliasing!(T[0]) && !is(T[0] == Tid)) ||
std.concurrency.hasLocalAliasing!(T[1 .. $]);
}
enum MsgType
{
standard,
priority,
linkDead,
}
struct Message
{
MsgType type;
Variant data;
this(T...)( MsgType t, T vals )
if( T.length < 1 )
{
static assert( false, "messages must contain at least one item" );
}
this(T...)( MsgType t, T vals )
if( T.length == 1 )
{
type = t;
data = vals[0];
}
this(T...)( MsgType t, T vals )
if( T.length > 1 )
{
type = t;
data = Tuple!(T)( vals );
}
@property auto convertsTo(T...)()
{
static if( T.length == 1 )
return is( T[0] == Variant ) ||
data.convertsTo!(T);
else
return data.convertsTo!(Tuple!(T));
}
@property auto get(T...)()
{
static if( T.length == 1 )
{
static if( is( T[0] == Variant ) )
return data;
else
return data.get!(T);
}
else
{
return data.get!(Tuple!(T));
}
}
auto map(Op)( Op op )
{
alias ParameterTypeTuple!(Op) Args;
static if( Args.length == 1 )
{
static if( is( Args[0] == Variant ) )
return op( data );
else
return op( data.get!(Args) );
}
else
{
return op( data.get!(Tuple!(Args)).expand );
}
}
}
void checkops(T...)( T ops )
{
foreach( i, t1; T )
{
static assert( isFunctionPointer!t1 || isDelegate!t1 );
alias ParameterTypeTuple!(t1) a1;
alias ReturnType!(t1) r1;
static if( i < T.length - 1 && is( r1 == void ) )
{
static assert( a1.length != 1 || !is( a1[0] == Variant ),
"function with arguments " ~ a1.stringof ~
" occludes successive function" );
foreach( t2; T[i+1 .. $] )
{
static assert( isFunctionPointer!t2 || isDelegate!t2 );
alias ParameterTypeTuple!(t2) a2;
static assert( !is( a1 == a2 ),
"function with arguments " ~ a1.stringof ~
" occludes successive function" );
}
}
}
}
MessageBox mbox;
bool[Tid] links;
Tid owner;
}
private shared bool firstInitialization = true;
static this()
{
// NOTE: Normally, mbox is initialized by spawn() or thisTid(). This
// doesn't support the simple case of calling only receive() in main
// however. To ensure that this works, initialize the main thread's
// mbox field here only the first time this is run.
if (firstInitialization)
{
mbox = new MessageBox;
firstInitialization = false;
}
}
static ~this()
{
if( mbox !is null )
{
mbox.close();
auto me = thisTid;
foreach( tid; links.keys )
_send( MsgType.linkDead, tid, me );
if( owner != Tid.init )
_send( MsgType.linkDead, owner, me );
}
}
//////////////////////////////////////////////////////////////////////////////
// Exceptions
//////////////////////////////////////////////////////////////////////////////
/**
* Thrown on calls to $(D receiveOnly) if a message other than the type
* the receiving thread expected is sent.
*/
class MessageMismatch : Exception
{
this( string msg = "Unexpected message type" )
{
super( msg );
}
}
/**
* Thrown on calls to $(D receive) if the thread that spawned the receiving
* thread has terminated and no more messages exist.
*/
class OwnerTerminated : Exception
{
this( Tid t, string msg = "Owner terminated" )
{
super( msg );
tid = t;
}
Tid tid;
}
/**
* Thrown if a linked thread has terminated.
*/
class LinkTerminated : Exception
{
this( Tid t, string msg = "Link terminated" )
{
super( msg );
tid = t;
}
Tid tid;
}
/**
* Thrown if a message was sent to a thread via
* $(XREF concurrency, prioritySend) and the receiver does not have a handler
* for a message of this type.
*/
class PriorityMessageException : Exception
{
this( Variant vals )
{
super( "Priority message" );
message = vals;
}
/**
* The message that was sent.
*/
Variant message;
}
/**
* Thrown on mailbox crowding if the mailbox is configured with
* $(D OnCrowding.throwException).
*/
class MailboxFull : Exception
{
this( Tid t, string msg = "Mailbox full" )
{
super( msg );
tid = t;
}
Tid tid;
}
/**
* Thrown when a Tid is missing, e.g. when $(D ownerTid) doesn't
* find an owner thread.
*/
class TidMissingException : Exception
{
this(string msg, string file = __FILE__, size_t line = __LINE__)
{
super(msg, file, line);
}
}
//////////////////////////////////////////////////////////////////////////////
// Thread ID
//////////////////////////////////////////////////////////////////////////////
/**
* An opaque type used to represent a logical local process.
*/
struct Tid
{
private:
this( MessageBox m )
{
mbox = m;
}
MessageBox mbox;
}
/**
* Returns the caller's Tid.
*/
@property Tid thisTid()
{
if( mbox )
return Tid( mbox );
mbox = new MessageBox;
return Tid( mbox );
}
/**
* Return the Tid of the thread which
* spawned the caller's thread.
*
* Throws: A $(D TidMissingException) exception if
* there is no owner thread.
*/
@property Tid ownerTid()
{
enforceEx!TidMissingException(owner.mbox !is null, "Error: Thread has no owner thread.");
return owner;
}
unittest
{
static void fun()
{
string res = receiveOnly!string();
assert(res == "Main calling");
ownerTid.send("Child responding");
}
assertThrown!TidMissingException(ownerTid);
auto child = spawn(&fun);
child.send("Main calling");
string res = receiveOnly!string();
assert(res == "Child responding");
}
//////////////////////////////////////////////////////////////////////////////
// Thread Creation
//////////////////////////////////////////////////////////////////////////////
private template isSpawnable(F, T...)
{
template isParamsImplicitlyConvertible(F1, F2, int i=0)
{
alias ParameterTypeTuple!F1 param1;
alias ParameterTypeTuple!F2 param2;
static if (param1.length != param2.length)
enum isParamsImplicitlyConvertible = false;
else static if (param1.length == i)
enum isParamsImplicitlyConvertible = true;
else static if (isImplicitlyConvertible!(param2[i], param1[i]))
enum isParamsImplicitlyConvertible = isParamsImplicitlyConvertible!(F1, F2, i+1);
else
enum isParamsImplicitlyConvertible = false;
}
enum isSpawnable = isCallable!F
&& is(ReturnType!F == void)
&& isParamsImplicitlyConvertible!(F, void function(T))
&& ( isFunctionPointer!F
|| !hasUnsharedAliasing!F);
}
/**
* Executes the supplied function in a new context represented by $(D Tid). The
* calling context is designated as the owner of the new context. When the
* owner context terminated an $(D OwnerTerminated) message will be sent to the
* new context, causing an $(D OwnerTerminated) exception to be thrown on
* $(D receive()).
*
* Params:
* fn = The function to execute.
* args = Arguments to the function.
*
* Returns:
* A Tid representing the new context.
*
* Notes:
* $(D args) must not have unshared aliasing. In other words, all arguments
* to $(D fn) must either be $(D shared) or $(D immutable) or have no
* pointer indirection. This is necessary for enforcing isolation among
* threads.
*
* Example:
*$(D_RUN_CODE
*$(ARGS
* ---
* import std.stdio, std.concurrency;
*
* void f1(string str)
* {
* writeln(str);
* }
*
* void f2(char[] str)
* {
* writeln(str);
* }
*
* void main()
* {
* auto str = "Hello, world";
*
* // Works: string is immutable.
* auto tid1 = spawn(&f1, str);
*
* // Fails: char[] has mutable aliasing.
* auto tid2 = spawn(&f2, str.dup);
* }
* ---
*), $(ARGS), $(ARGS), $(ARGS))
*/
Tid spawn(F, T...)( F fn, T args )
if ( isSpawnable!(F, T) )
{
static assert( !hasLocalAliasing!(T),
"Aliases to mutable thread-local data not allowed." );
return _spawn( false, fn, args );
}
/**
* Executes the supplied function in a new context represented by Tid. This
* new context is linked to the calling context so that if either it or the
* calling context terminates a LinkTerminated message will be sent to the
* other, causing a LinkTerminated exception to be thrown on receive(). The
* owner relationship from spawn() is preserved as well, so if the link
* between threads is broken, owner termination will still result in an
* OwnerTerminated exception to be thrown on receive().
*
* Params:
* fn = The function to execute.
* args = Arguments to the function.
*
* Returns:
* A Tid representing the new context.
*/
Tid spawnLinked(F, T...)( F fn, T args )
if ( isSpawnable!(F, T) )
{
static assert( !hasLocalAliasing!(T),
"Aliases to mutable thread-local data not allowed." );
return _spawn( true, fn, args );
}
/*
*
*/
private Tid _spawn(F, T...)( bool linked, F fn, T args )
if ( isSpawnable!(F, T) )
{
// TODO: MessageList and &exec should be shared.
auto spawnTid = Tid( new MessageBox );
auto ownerTid = thisTid;
void exec()
{
mbox = spawnTid.mbox;
owner = ownerTid;
fn( args );
}
// TODO: MessageList and &exec should be shared.
auto t = new Thread( &exec ); t.start();
links[spawnTid] = linked;
return spawnTid;
}
unittest
{
void function() fn1;
void function(int) fn2;
static assert( __traits(compiles, spawn(fn1)));
static assert( __traits(compiles, spawn(fn2, 2)));
static assert(!__traits(compiles, spawn(fn1, 1)));
static assert(!__traits(compiles, spawn(fn2)));
void delegate(int) shared dg1;
shared(void delegate(int)) dg2;
shared(void delegate(long) shared) dg3;
shared(void delegate(real, int , long) shared) dg4;
void delegate(int) immutable dg5;
void delegate(int) dg6;
static assert( __traits(compiles, spawn(dg1, 1)));
static assert( __traits(compiles, spawn(dg2, 2)));
static assert( __traits(compiles, spawn(dg3, 3)));
static assert( __traits(compiles, spawn(dg4, 4, 4, 4)));
static assert( __traits(compiles, spawn(dg5, 5)));
static assert(!__traits(compiles, spawn(dg6, 6)));
auto callable1 = new class{ void opCall(int) shared {} };
auto callable2 = cast(shared)new class{ void opCall(int) shared {} };
auto callable3 = new class{ void opCall(int) immutable {} };
auto callable4 = cast(immutable)new class{ void opCall(int) immutable {} };
auto callable5 = new class{ void opCall(int) {} };
auto callable6 = cast(shared)new class{ void opCall(int) immutable {} };
auto callable7 = cast(immutable)new class{ void opCall(int) shared {} };
auto callable8 = cast(shared)new class{ void opCall(int) const shared {} };
auto callable9 = cast(const shared)new class{ void opCall(int) shared {} };
auto callable10 = cast(const shared)new class{ void opCall(int) const shared {} };
auto callable11 = cast(immutable)new class{ void opCall(int) const shared {} };
static assert(!__traits(compiles, spawn(callable1, 1)));
static assert( __traits(compiles, spawn(callable2, 2)));
static assert(!__traits(compiles, spawn(callable3, 3)));
static assert( __traits(compiles, spawn(callable4, 4)));
static assert(!__traits(compiles, spawn(callable5, 5)));
static assert(!__traits(compiles, spawn(callable6, 6)));
static assert(!__traits(compiles, spawn(callable7, 7)));
static assert( __traits(compiles, spawn(callable8, 8)));
static assert(!__traits(compiles, spawn(callable9, 9)));
static assert( __traits(compiles, spawn(callable10, 10)));
static assert( __traits(compiles, spawn(callable11, 11)));
}
//////////////////////////////////////////////////////////////////////////////
// Sending and Receiving Messages
//////////////////////////////////////////////////////////////////////////////
/**
* Sends the supplied value to the context represented by tid. As with
* $(XREF concurrency, spawn), $(D T) must not have unshared aliasing.
*/
void send(T...)( Tid tid, T vals )
{
static assert( !hasLocalAliasing!(T),
"Aliases to mutable thread-local data not allowed." );
_send( tid, vals );
}
/**
* Send a message to $(D tid) but place it at the front of $(D tid)'s message
* queue instead of at the back. This function is typically used for
* out-of-band communication, to signal exceptional conditions, etc.
*/
void prioritySend(T...)( Tid tid, T vals )
{
static assert( !hasLocalAliasing!(T),
"Aliases to mutable thread-local data not allowed." );
_send( MsgType.priority, tid, vals );
}
/*
* ditto
*/
private void _send(T...)( Tid tid, T vals )
{
_send( MsgType.standard, tid, vals );
}
/*
* Implementation of send. This allows parameter checking to be different for
* both Tid.send() and .send().
*/
private void _send(T...)( MsgType type, Tid tid, T vals )
{
auto msg = Message( type, vals );
tid.mbox.put( msg );
}
/**
* Receive a message from another thread, or block if no messages of the
* specified types are available. This function works by pattern matching
* a message against a set of delegates and executing the first match found.
*
* If a delegate that accepts a $(XREF variant, Variant) is included as
* the last argument to $(D receive), it will match any message that was not
* matched by an earlier delegate. If more than one argument is sent,
* the $(D Variant) will contain a $(XREF typecons, Tuple) of all values
* sent.
*
* Example:
*$(D_RUN_CODE
*$(ARGS
* ---
* import std.stdio;
* import std.variant;
* import std.concurrency;
*
* void spawnedFunction()
* {
* receive(
* (int i) { writeln("Received an int."); },
* (float f) { writeln("Received a float."); },
* (Variant v) { writeln("Received some other type."); }
* );
* }
*
* void main()
* {
* auto tid = spawn(&spawnedFunction);
* send(tid, 42);
* }
* ---
*), $(ARGS), $(ARGS), $(ARGS))
*/
void receive(T...)( T ops )
{
checkops( ops );
mbox.get( ops );
}
unittest
{
assert( __traits( compiles,
{
receive( (Variant x) {} );
receive( (int x) {}, (Variant x) {} );
} ) );
assert( !__traits( compiles,
{
receive( (Variant x) {}, (int x) {} );
} ) );
assert( !__traits( compiles,
{
receive( (int x) {}, (int x) {} );
} ) );
}
// Make sure receive() works with free functions as well.
version (unittest)
{
private void receiveFunction(int x) {}
}
unittest
{
assert( __traits( compiles,
{
receive( &receiveFunction );
receive( &receiveFunction, (Variant x) {} );
} ) );
}
private template receiveOnlyRet(T...)
{
static if( T.length == 1 )
alias T[0] receiveOnlyRet;
else
alias Tuple!(T) receiveOnlyRet;
}
/**
* Receives only messages with arguments of types $(D T).
*
* Throws: $(D MessageMismatch) if a message of types other than $(D T)
* is received.
*
* Returns: The received message. If $(D T.length) is greater than one,
* the message will be packed into a $(XREF typecons, Tuple).
*
* Example:
*$(D_RUN_CODE
*$(ARGS
* ---
* import std.concurrency;
* void spawnedFunc()
* {
* auto msg = receiveOnly!(int, string)();
* assert(msg[0] == 42);
* assert(msg[1] == "42");
* }
*
* void main()
* {
* auto tid = spawn(&spawnedFunc);
* send(tid, 42, "42");
* }
* ---
*), $(ARGS), $(ARGS), $(ARGS))
*/
receiveOnlyRet!(T) receiveOnly(T...)()
{
Tuple!(T) ret;
mbox.get( ( T val )
{
static if( T.length )
ret.field = val;
},
( LinkTerminated e )
{
throw e;
},
( OwnerTerminated e )
{
throw e;
},
( Variant val )
{
static if (T.length > 1)
string exp = T.stringof;
else
string exp = T[0].stringof;
throw new MessageMismatch(
format("Unexpected message type: expected '%s', got '%s'",
exp, val.type.toString()));
} );
static if( T.length == 1 )
return ret[0];
else
return ret;
}
unittest
{
static void t1(Tid mainTid)
{
try
{
receiveOnly!string();
mainTid.send("");
}
catch (Throwable th)
{
mainTid.send(th.msg);
}
}
auto tid = spawn(&t1, thisTid);
tid.send(1);
string result = receiveOnly!string();
assert(result == "Unexpected message type: expected 'string', got 'int'");
}
/++
Same as $(D receive) except that rather than wait forever for a message,
it waits until either it receives a message or the given
$(CXREF time, Duration) has passed. It returns $(D true) if it received a
message and $(D false) if it timed out waiting for one.
+/
bool receiveTimeout(T...)( Duration duration, T ops )
{
checkops( ops );
return mbox.get( duration, ops );
}
unittest
{
assert( __traits( compiles,
{
receiveTimeout( dur!"msecs"(0), (Variant x) {} );
receiveTimeout( dur!"msecs"(0), (int x) {}, (Variant x) {} );
} ) );
assert( !__traits( compiles,
{
receiveTimeout( dur!"msecs"(0), (Variant x) {}, (int x) {} );
} ) );
assert( !__traits( compiles,
{
receiveTimeout( dur!"msecs"(0), (int x) {}, (int x) {} );
} ) );
assert( __traits( compiles,
{
receiveTimeout( dur!"msecs"(10), (int x) {}, (Variant x) {} );
} ) );
}
//////////////////////////////////////////////////////////////////////////////
// MessageBox Limits
//////////////////////////////////////////////////////////////////////////////
/**
* These behaviors may be specified when a mailbox is full.
*/
enum OnCrowding
{
block, /// Wait until room is available.
throwException, /// Throw a MailboxFull exception.
ignore /// Abort the send and return.
}
private
{
bool onCrowdingBlock( Tid tid )
{
return true;
}
bool onCrowdingThrow( Tid tid )
{
throw new MailboxFull( tid );
}
bool onCrowdingIgnore( Tid tid )
{
return false;
}
}
/**
* Sets a limit on the maximum number of user messages allowed in the mailbox.
* If this limit is reached, the caller attempting to add a new message will
* execute the behavior specified by doThis. If messages is zero, the mailbox
* is unbounded.
*
* Params:
* tid = The Tid of the thread for which this limit should be set.
* messages = The maximum number of messages or zero if no limit.
* doThis = The behavior executed when a message is sent to a full
* mailbox.
*/
void setMaxMailboxSize( Tid tid, size_t messages, OnCrowding doThis )
{
final switch( doThis )
{
case OnCrowding.block:
return tid.mbox.setMaxMsgs( messages, &onCrowdingBlock );
case OnCrowding.throwException:
return tid.mbox.setMaxMsgs( messages, &onCrowdingThrow );
case OnCrowding.ignore:
return tid.mbox.setMaxMsgs( messages, &onCrowdingIgnore );
}
}
/**
* Sets a limit on the maximum number of user messages allowed in the mailbox.
* If this limit is reached, the caller attempting to add a new message will
* execute onCrowdingDoThis. If messages is zero, the mailbox is unbounded.
*
* Params:
* tid = The Tid of the thread for which this limit should be set.
* messages = The maximum number of messages or zero if no limit.
* onCrowdingDoThis = The routine called when a message is sent to a full
* mailbox.
*/
void setMaxMailboxSize( Tid tid, size_t messages, bool function(Tid) onCrowdingDoThis )
{
tid.mbox.setMaxMsgs( messages, onCrowdingDoThis );
}
//////////////////////////////////////////////////////////////////////////////
// Name Registration
//////////////////////////////////////////////////////////////////////////////
private
{
__gshared Tid[string] tidByName;
__gshared string[][Tid] namesByTid;
__gshared Mutex registryLock;
}
shared static this()
{
registryLock = new Mutex;
}
static ~this()
{
auto me = thisTid;
synchronized( registryLock )
{
if( auto allNames = me in namesByTid )
{
foreach( name; *allNames )
tidByName.remove( name );
namesByTid.remove( me );
}
}
}
/**
* Associates name with tid in a process-local map. When the thread
* represented by tid termiantes, any names associated with it will be
* automatically unregistered.
*
* Params:
* name = The name to associate with tid.
* tid = The tid register by name.
*
* Returns:
* true if the name is available and tid is not known to represent a
* defunct thread.
*/
bool register( string name, Tid tid )
{
synchronized( registryLock )
{
if( name in tidByName )
return false;
if( tid.mbox.isClosed )
return false;
namesByTid[tid] ~= name;
tidByName[name] = tid;
return true;
}
}
/**
* Removes the registered name associated with a tid.
*
* Params:
* name = The name to unregister.
*
* Returns:
* true if the name is registered, false if not.
*/
bool unregister( string name )
{
synchronized( registryLock )
{
if( auto tid = name in tidByName )
{
auto allNames = *tid in namesByTid;
auto pos = countUntil( *allNames, name );
remove!(SwapStrategy.unstable)( *allNames, pos );
tidByName.remove( name );
return true;
}
return false;
}
}
/**
* Gets the Tid associated with name.
*
* Params:
* name = The name to locate within the registry.
*
* Returns:
* The associated Tid or Tid.init if name is not registered.
*/
Tid locate( string name )
{
synchronized( registryLock )
{
if( auto tid = name in tidByName )
return *tid;
return Tid.init;
}
}
//////////////////////////////////////////////////////////////////////////////
// MessageBox Implementation
//////////////////////////////////////////////////////////////////////////////
private
{
/*
* A MessageBox is a message queue for one thread. Other threads may send
* messages to this owner by calling put(), and the owner receives them by
* calling get(). The put() call is therefore effectively shared and the
* get() call is effectively local. setMaxMsgs may be used by any thread
* to limit the size of the message queue.
*/
class MessageBox
{
this()
{
m_lock = new Mutex;
m_putMsg = new Condition( m_lock );
m_notFull = new Condition( m_lock );
m_closed = false;
}
/*
*
*/
final @property bool isClosed() const
{
synchronized( m_lock )
{
return m_closed;
}
}
/*
* Sets a limit on the maximum number of user messages allowed in the
* mailbox. If this limit is reached, the caller attempting to add
* a new message will execute call. If num is zero, there is no limit
* on the message queue.
*
* Params:
* num = The maximum size of the queue or zero if the queue is
* unbounded.
* call = The routine to call when the queue is full.
*/
final void setMaxMsgs( size_t num, bool function(Tid) call )
{
synchronized( m_lock )
{
m_maxMsgs = num;
m_onMaxMsgs = call;
}
}
/*
* If maxMsgs is not set, the message is added to the queue and the
* owner is notified. If the queue is full, the message will still be
* accepted if it is a control message, otherwise onCrowdingDoThis is
* called. If the routine returns true, this call will block until
* the owner has made space available in the queue. If it returns
* false, this call will abort.
*
* Params:
* msg = The message to put in the queue.
*
* Throws:
* An exception if the queue is full and onCrowdingDoThis throws.
*/
final void put( ref Message msg )
{
synchronized( m_lock )
{
// TODO: Generate an error here if m_closed is true, or maybe
// put a message in the caller's queue?
if( !m_closed )
{
while( true )
{
if( isPriorityMsg( msg ) )
{
m_sharedPty.put( msg );
m_putMsg.notify();
return;
}
if( !mboxFull() || isControlMsg( msg ) )
{
m_sharedBox.put( msg );
m_putMsg.notify();
return;
}
if( m_onMaxMsgs !is null && !m_onMaxMsgs( thisTid ) )
{
return;
}
m_putQueue++;
m_notFull.wait();
m_putQueue--;
}
}
}
}
/*
* Matches ops against each message in turn until a match is found.
*
* Params:
* ops = The operations to match. Each may return a bool to indicate
* whether a message with a matching type is truly a match.
*
* Returns:
* true if a message was retrieved and false if not (such as if a
* timeout occurred).
*
* Throws:
* LinkTerminated if a linked thread terminated, or OwnerTerminated
* if the owner thread terminates and no existing messages match the
* supplied ops.
*/
final bool get(T...)( scope T vals )
{
static assert( T.length );
static if( isImplicitlyConvertible!(T[0], Duration) )
{
alias TypeTuple!(T[1 .. $]) Ops;
alias vals[1 .. $] ops;
assert( vals[0] >= dur!"msecs"(0) );
enum timedWait = true;
Duration period = vals[0];
}
else
{
alias TypeTuple!(T) Ops;
alias vals[0 .. $] ops;
enum timedWait = false;
}
bool onStandardMsg( ref Message msg )
{
foreach( i, t; Ops )
{
alias ParameterTypeTuple!(t) Args;
auto op = ops[i];
if( msg.convertsTo!(Args) )
{
static if( is( ReturnType!(t) == bool ) )
{
return msg.map( op );
}
else
{
msg.map( op );
return true;
}
}
}
return false;
}
bool onLinkDeadMsg( ref Message msg )
{
assert( msg.convertsTo!(Tid) );
auto tid = msg.get!(Tid);
if( bool* depends = (tid in links) )
{
links.remove( tid );
// Give the owner relationship precedence.
if( *depends && tid != owner )
{
auto e = new LinkTerminated( tid );
auto m = Message( MsgType.standard, e );
if( onStandardMsg( m ) )
return true;
throw e;
}
}
if( tid == owner )
{
owner = Tid.init;
auto e = new OwnerTerminated( tid );
auto m = Message( MsgType.standard, e );
if( onStandardMsg( m ) )
return true;
throw e;
}
return false;
}
bool onControlMsg( ref Message msg )
{
switch( msg.type )
{
case MsgType.linkDead:
return onLinkDeadMsg( msg );
default:
return false;
}
}
bool scan( ref ListT list )
{
for( auto range = list[]; !range.empty; )
{
// Only the message handler will throw, so if this occurs
// we can be certain that the message was handled.
scope(failure) list.removeAt( range );
if( isControlMsg( range.front ) )
{
if( onControlMsg( range.front ) )
{
// Although the linkDead message is a control message,
// it can be handled by the user. Since the linkDead
// message throws if not handled, if we get here then
// it has been handled and we can return from receive.
// This is a weird special case that will have to be
// handled in a more general way if more are added.
if( !isLinkDeadMsg( range.front ) )
{
list.removeAt( range );
continue;
}
list.removeAt( range );
return true;
}
range.popFront();
continue;
}
else
{
if( onStandardMsg( range.front ) )
{
list.removeAt( range );
return true;
}
range.popFront();
continue;
}
}
return false;
}
bool pty( ref ListT list )
{
if( !list.empty )
{
auto range = list[];
if( onStandardMsg( range.front ) )
{
list.removeAt( range );
return true;
}
if( range.front.convertsTo!(Throwable) )
throw range.front.get!(Throwable);
else if( range.front.convertsTo!(shared(Throwable)) )
throw range.front.get!(shared(Throwable));
else throw new PriorityMessageException( range.front.data );
}
return false;
}
static if( timedWait )
{
auto limit = Clock.currTime( UTC() ) + period;
}
while( true )
{
ListT arrived;
if( pty( m_localPty ) ||
scan( m_localBox ) )
{
return true;
}
synchronized( m_lock )
{
updateMsgCount();
while( m_sharedPty.empty && m_sharedBox.empty )
{
// NOTE: We're notifying all waiters here instead of just
// a few because the onCrowding behavior may have
// changed and we don't want to block sender threads
// unnecessarily if the new behavior is not to block.
// This will admittedly result in spurious wakeups
// in other situations, but what can you do?
if( m_putQueue && !mboxFull() )
m_notFull.notifyAll();
static if( timedWait )
{
if( period.isNegative || !m_putMsg.wait( period ) )
return false;
}
else
{
m_putMsg.wait();
}
}
m_localPty.put( m_sharedPty );
arrived.put( m_sharedBox );
}
if( m_localPty.empty )
{
scope(exit) m_localBox.put( arrived );
if( scan( arrived ) )
return true;
else
{
static if( timedWait )
{
period = limit - Clock.currTime( UTC() );
}
continue;
}
}
m_localBox.put( arrived );
pty( m_localPty );
return true;
}
}
/*
* Called on thread termination. This routine processes any remaining
* control messages, clears out message queues, and sets a flag to
* reject any future messages.
*/
final void close()
{
void onLinkDeadMsg( ref Message msg )
{
assert( msg.convertsTo!(Tid) );
auto tid = msg.get!(Tid);
links.remove( tid );
if( tid == owner )
owner = Tid.init;
}
void sweep( ref ListT list )
{
for( auto range = list[]; !range.empty; range.popFront() )
{
if( range.front.type == MsgType.linkDead )
onLinkDeadMsg( range.front );
}
}
ListT arrived;
sweep( m_localBox );
synchronized( m_lock )
{
arrived.put( m_sharedBox );
m_closed = true;
}
m_localBox.clear();
sweep( arrived );
}
private:
//////////////////////////////////////////////////////////////////////
// Routines involving shared data, m_lock must be held.
//////////////////////////////////////////////////////////////////////
bool mboxFull()
{
return m_maxMsgs &&
m_maxMsgs <= m_localMsgs + m_sharedBox.length;
}
void updateMsgCount()
{
m_localMsgs = m_localBox.length;
}
private:
//////////////////////////////////////////////////////////////////////
// Routines involving local data only, no lock needed.
//////////////////////////////////////////////////////////////////////
pure final bool isControlMsg( ref Message msg )
{
return msg.type != MsgType.standard &&
msg.type != MsgType.priority;
}
pure final bool isPriorityMsg( ref Message msg )
{
return msg.type == MsgType.priority;
}
pure final bool isLinkDeadMsg( ref Message msg )
{
return msg.type == MsgType.linkDead;
}
private:
//////////////////////////////////////////////////////////////////////
// Type declarations.
//////////////////////////////////////////////////////////////////////
alias bool function(Tid) OnMaxFn;
alias List!(Message) ListT;
private:
//////////////////////////////////////////////////////////////////////
// Local data, no lock needed.
//////////////////////////////////////////////////////////////////////
ListT m_localBox;
ListT m_localPty;
private:
//////////////////////////////////////////////////////////////////////
// Shared data, m_lock must be held on access.
//////////////////////////////////////////////////////////////////////
Mutex m_lock;
Condition m_putMsg;
Condition m_notFull;
size_t m_putQueue;
ListT m_sharedBox;
ListT m_sharedPty;
OnMaxFn m_onMaxMsgs;
size_t m_localMsgs;
size_t m_maxMsgs;
bool m_closed;
}
/*
*
*/
struct List(T)
{
struct Range
{
@property bool empty() const
{
return !m_prev.next;
}
@property ref T front()
{
enforce( m_prev.next );
return m_prev.next.val;
}
@property void front( T val )
{
enforce( m_prev.next );
m_prev.next.val = val;
}
void popFront()
{
enforce( m_prev.next );
m_prev = m_prev.next;
}
//T moveFront()
//{
// enforce( m_prev.next );
// return move( m_prev.next.val );
//}
private this( Node* p )
{
m_prev = p;
}
private Node* m_prev;
}
/*
*
*/
void put( T val )
{
put( new Node( val ) );
}
/*
*
*/
void put( ref List!(T) rhs )
{
if( !rhs.empty )
{
put( rhs.m_first );
while( m_last.next !is null )
{
m_last = m_last.next;
m_count++;
}
rhs.m_first = null;
rhs.m_last = null;
rhs.m_count = 0;
}
}
/*
*
*/
Range opSlice()
{
return Range( cast(Node*) &m_first );
}
/*
*
*/
void removeAt( Range r )
{
assert( m_count );
Node* n = r.m_prev;
enforce( n && n.next );
if( m_last is m_first )
m_last = null;
else if( m_last is n.next )
m_last = n;
Node* todelete = n.next;
n.next = n.next.next;
//delete todelete;
m_count--;
}
/*
*
*/
@property size_t length()
{
return m_count;
}
/*
*
*/
void clear()
{
m_first = m_last = null;
m_count = 0;
}
/*
*
*/
@property bool empty()
{
return m_first is null;
}
private:
struct Node
{
Node* next;
T val;
this( T v )
{
val = v;
}
}
/*
*
*/
void put( Node* n )
{
m_count++;
if( !empty )
{
m_last.next = n;
m_last = n;
return;
}
m_first = n;
m_last = n;
}
Node* m_first;
Node* m_last;
size_t m_count;
}
}
version( unittest )
{
import std.stdio;
void testfn( Tid tid )
{
receive( (float val) { assert(0); },
(int val, int val2)
{
assert( val == 42 && val2 == 86 );
} );
receive( (Tuple!(int, int) val)
{
assert( val[0] == 42 &&
val[1] == 86 );
} );
receive( (Variant val) {} );
receive( (string val)
{
if( "the quick brown fox" != val )
return false;
return true;
},
(string val)
{
assert( false );
} );
prioritySend( tid, "done" );
}
void runTest( Tid tid )
{
send( tid, 42, 86 );
send( tid, tuple(42, 86) );
send( tid, "hello", "there" );
send( tid, "the quick brown fox" );
receive( (string val) { assert(val == "done"); } );
}
unittest
{
auto tid = spawn( &testfn, thisTid );
runTest( tid );
// Run the test again with a limited mailbox size.
tid = spawn( &testfn, thisTid );
setMaxMailboxSize( tid, 2, OnCrowding.block );
runTest( tid );
}
}
|
D
|
/home/marcio/blockchain_engineer/near/new-awesome-app/contract/target/rls/debug/deps/itoa-4c3fb7f923aa007d.rmeta: /home/marcio/.cargo/registry/src/github.com-1ecc6299db9ec823/itoa-0.4.6/src/lib.rs
/home/marcio/blockchain_engineer/near/new-awesome-app/contract/target/rls/debug/deps/libitoa-4c3fb7f923aa007d.rlib: /home/marcio/.cargo/registry/src/github.com-1ecc6299db9ec823/itoa-0.4.6/src/lib.rs
/home/marcio/blockchain_engineer/near/new-awesome-app/contract/target/rls/debug/deps/itoa-4c3fb7f923aa007d.d: /home/marcio/.cargo/registry/src/github.com-1ecc6299db9ec823/itoa-0.4.6/src/lib.rs
/home/marcio/.cargo/registry/src/github.com-1ecc6299db9ec823/itoa-0.4.6/src/lib.rs:
|
D
|
// ********************************************************
// EXIT
// ********************************************************
INSTANCE DIA_Addon_Eremit_EXIT (C_INFO)
{
npc = NONE_ADDON_115_Eremit;
nr = 999;
condition = DIA_Addon_Eremit_EXIT_Condition;
information = DIA_Addon_Eremit_EXIT_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
func INT DIA_Addon_Eremit_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Addon_Eremit_EXIT_Info()
{
AI_StopProcessInfos (self);
};
// ********************************************************
// Hallo
// ********************************************************
instance DIA_Addon_Eremit_Hello (C_INFO)
{
npc = NONE_ADDON_115_Eremit;
nr = 1;
condition = DIA_Addon_Eremit_Hello_Condition;
information = DIA_Addon_Eremit_Hello_Info;
important = TRUE;
};
func int DIA_Addon_Eremit_Hello_Condition ()
{
if (Npc_IsInState (self, ZS_Talk))
&& (self.aivar[AIV_TalkedToPlayer] == FALSE)
{
return TRUE;
};
};
func void DIA_Addon_Eremit_Hello_Info ()
{
AI_Output (other, self, "DIA_Addon_Eremit_Add_15_00"); //Co tutaj robisz?
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_00"); //Co ja tutaj robię?! Do diabła! Co TY tutaj robisz?
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_01"); //Osiedliłem się w najbardziej odosobnionej części wyspy, ponieważ potrzebowałem trochę spokoju!
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_02"); //Wojna domowa, nachalni bandyci, hordy orków u progu mego domu...
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_03"); //To nie dla mnie. Już nie. Miałem dość tego całego szaleństwa.
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_04"); //Jest tu trochę orków, ale wcale nie tak dużo.
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_05"); //A innych ludzi – chwała niech będzie Innosowi – ani widu, ani słychu. Aż do dzisiaj!
};
// ********************************************************
// Suche Steintafeln
// ********************************************************
instance DIA_Addon_Eremit_SeekTafeln (C_INFO)
{
npc = NONE_ADDON_115_Eremit;
nr = 2;
condition = DIA_Addon_Eremit_SeekTafeln_Condition;
information = DIA_Addon_Eremit_SeekTafeln_Info;
description = "Szukam kamiennych tabliczek.";
};
func int DIA_Addon_Eremit_SeekTafeln_Condition ()
{
return TRUE;
};
func void DIA_Addon_Eremit_SeekTafeln_Info ()
{
AI_Output (other, self, "DIA_Addon_Eremit_Add_15_02"); //Szukam kamiennych tabliczek. Nie znalazłeś może jakichś?
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_06"); //No cóż, znalazłem... Ale nie oddam ci!
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_07"); //To jedyne, co mam tu do czytania.
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_08"); //Nie rozumiem jeszcze wszystkiego, ale potrafię rozszyfrować większość z nich.
};
// ********************************************************
// Wegen Steintafeln - TEACH
// ********************************************************
var int Eremit_Teach_Once;
// --------------------------------------------------------
instance DIA_Addon_Eremit_Teach (C_INFO)
{
npc = NONE_ADDON_115_Eremit;
nr = 3;
condition = DIA_Addon_Eremit_Teach_Condition;
information = DIA_Addon_Eremit_Teach_Info;
permanent = TRUE;
description = "Jeśli chodzi o te kamienne tablice...";
};
func int DIA_Addon_Eremit_Teach_Condition ()
{
if (Npc_KnowsInfo (other, DIA_Addon_Eremit_SeekTafeln))
&& (Eremit_Teach_Once == FALSE)
&& (PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_3] == FALSE)
{
return TRUE;
};
};
func void DIA_Addon_Eremit_Teach_Info ()
{
AI_Output (other, self, "DIA_Addon_Eremit_Add_15_03"); //Jeśli chodzi o te kamienne tablice...
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_25"); //Mam ci pokazać, jak je odczytywać?
if (MIS_Eremit_Klamotten != LOG_SUCCESS)
{
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_26"); //Ale nie oddam ci moich! Musisz załatwić sobie własne.
};
Info_ClearChoices (DIA_Addon_Eremit_Teach);
Info_AddChoice (DIA_Addon_Eremit_Teach, DIALOG_BACK, DIA_Addon_Eremit_Teach_No);
if (PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_1] == FALSE)
{
Info_AddChoice (DIA_Addon_Eremit_Teach,B_BuildLearnString (NAME_ADDON_LEARNLANGUAGE_1 , B_GetLearnCostTalent (other, NPC_TALENT_FOREIGNLANGUAGE, LANGUAGE_1)),DIA_Addon_Eremit_Teach_Yes);
}
else if (PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_2] == FALSE)
&& (PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_1] == TRUE)
{
Info_AddChoice (DIA_Addon_Eremit_Teach,B_BuildLearnString (NAME_ADDON_LEARNLANGUAGE_2 , B_GetLearnCostTalent (other, NPC_TALENT_FOREIGNLANGUAGE, LANGUAGE_2)),DIA_Addon_Eremit_Teach_Yes);
}
else if (PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_3] == FALSE)
&& (PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_1] == TRUE)
&& (PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_2] == TRUE)
{
Info_AddChoice (DIA_Addon_Eremit_Teach,B_BuildLearnString (NAME_ADDON_LEARNLANGUAGE_3 , B_GetLearnCostTalent (other, NPC_TALENT_FOREIGNLANGUAGE, LANGUAGE_3)),DIA_Addon_Eremit_Teach_Yes);
};
};
// ---------------------------------------------------------------
func void B_Addon_Eremit_TeachLanguage()
{
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_27"); //To naprawdę bardzo proste. 'G' oznacza 'O', 'T' oznacza 'H', a 'I' to 'C'.
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_28"); //Kiedy to opanujesz, reszta przyjdzie z łatwością...
/*
if (PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_2] == TRUE)
{
PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_3] = TRUE;
}
else if (PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_1] == TRUE)
{
PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_2] = TRUE;
}
else
{
PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_1] = TRUE;
};
*/
Eremit_Teach_Once = TRUE;
};
// ---------------------------------------------------------------
func void DIA_Addon_Eremit_Teach_No()
{
Info_ClearChoices (DIA_Addon_Eremit_Teach);
};
func void DIA_Addon_Eremit_Teach_Yes()
{
if (PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_3] == TRUE)
{
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_29"); //Nie sądzę, żebym mógł nauczyć cię czegoś więcej...
Eremit_Teach_Once = TRUE;
}
else if (PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_2] == TRUE)
{
if (B_TeachPlayerTalentForeignLanguage (self, other, LANGUAGE_3))
{
B_Addon_Eremit_TeachLanguage();
};
}
else if (PLAYER_TALENT_FOREIGNLANGUAGE[LANGUAGE_1] == TRUE)
{
if (B_TeachPlayerTalentForeignLanguage (self, other, LANGUAGE_2))
{
B_Addon_Eremit_TeachLanguage();
};
}
else //Keine Language
{
if (B_TeachPlayerTalentForeignLanguage (self, other, LANGUAGE_1))
{
B_Addon_Eremit_TeachLanguage();
};
};
};
// ********************************************************
// Klamotten geben
// ********************************************************
instance DIA_Addon_Eremit_Klamotten (C_INFO)
{
npc = NONE_ADDON_115_Eremit;
nr = 4;
condition = DIA_Addon_Eremit_Klamotten_Condition;
information = DIA_Addon_Eremit_Klamotten_Info;
permanent = TRUE;
description = "Mam dla ciebie jakieś ubranie...";
};
func int DIA_Addon_Eremit_Klamotten_Condition ()
{
if (MIS_Eremit_Klamotten == LOG_RUNNING)
{
return TRUE;
};
};
func void DIA_Addon_Eremit_Klamotten_Info ()
{
AI_Output (other, self, "DIA_Addon_Eremit_Add_15_01"); //Mam dla ciebie jakieś ubranie...
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_19"); //Serio? Dawaj! Zobaczymy, czy pasuje.
Info_ClearChoices (DIA_Addon_Eremit_Klamotten);
Info_AddChoice (DIA_Addon_Eremit_Klamotten, DIALOG_BACK, DIA_Addon_Eremit_Klamotten_BACK);
if (Npc_HasItems (other, ITAR_PIR_L_Addon) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj lekką zbroję piratów", DIA_Addon_Eremit_Klamotten_PIR_L);
};
if (Npc_HasItems (other, ITAR_PIR_M_Addon) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj średnią zbroję piratów", DIA_Addon_Eremit_Klamotten_PIR_M);
};
if (Npc_HasItems (other, ITAR_PIR_H_Addon) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj zbroję kapitana piratów", DIA_Addon_Eremit_Klamotten_PIR_H);
};
//if (Npc_HasItems (other, ITAR_Thorus_Addon) > 0)
//{
// Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Gardistenrüstung geben", DIA_Addon_Eremit_Klamotten_Thorus);
//};
//if (Npc_HasItems (other, ITAR_OreBaron_Addon) > 0)
//{
// Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Erzbaronrüstung geben", DIA_Addon_Eremit_Klamotten_OreBaron);
//};
//if (Npc_HasItems (other, ITAR_Bloodwyn_Addon) > 0)
//{
// Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Bloodwyn's Rüstung geben", DIA_Addon_Eremit_Klamotten_Bloodwyn);
//};
//if (Npc_HasItems (other, ITAR_Raven_Addon) > 0)
//{
// Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Raven's Rüstung geben", DIA_Addon_Eremit_Klamotten_Raven);
//};
if (Npc_HasItems (other, ITAR_RANGER_Addon) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj zbroję Wodnego Kręgu", DIA_Addon_Eremit_Klamotten_Ranger);
};
if (Npc_HasItems (other, ITAR_KDW_L_Addon) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj lekką togę Maga Wody", DIA_Addon_Eremit_Klamotten_KDW_L);
};
if (Npc_HasItems (other, ITAR_KDW_H) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj ciężką szatę Maga Wody", DIA_Addon_Eremit_Klamotten_KDW_H);
};
if (Npc_HasItems (other, ITAR_Governor) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj tunikę gubernatora", DIA_Addon_Eremit_Klamotten_Governor);
};
if (Npc_HasItems (other, ITAR_JUDGE) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj sędziowską togę", DIA_Addon_Eremit_Klamotten_Judge);
};
if (Npc_HasItems (other, ITAR_SMITH) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj fartuch kowalski", DIA_Addon_Eremit_Klamotten_Smith);
};
if (Npc_HasItems (other, ITAR_BARKEEPER) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj fartuch obszarnika", DIA_Addon_Eremit_Klamotten_Barkeeper);
};
if (Npc_HasItems (other, ITAR_VLK_L) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj strój mieszczanina I", DIA_Addon_Eremit_Klamotten_VLK_L);
};
if (Npc_HasItems (other, ITAR_VLK_M) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj strój mieszczanina II", DIA_Addon_Eremit_Klamotten_VLK_M);
};
if (Npc_HasItems (other, ITAR_VLK_H) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj strój mieszczanina III", DIA_Addon_Eremit_Klamotten_VLK_H);
};
if (Npc_HasItems (other, ITAR_VlkBabe_L) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj suknię mieszczanki I", DIA_Addon_Eremit_Klamotten_VlkBabe_L);
};
if (Npc_HasItems (other, ITAR_VlkBabe_M) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj suknię mieszczanki II", DIA_Addon_Eremit_Klamotten_VlkBabe_M);
};
if (Npc_HasItems (other, ITAR_VlkBabe_H) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj suknię mieszczanki III", DIA_Addon_Eremit_Klamotten_VlkBabe_H);
};
/*
if (Npc_HasItems (other, ITAR_MIL_L) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Leichte Milizrüstung geben", DIA_Addon_Eremit_Klamotten_MIL_L);
};
if (Npc_HasItems (other, ITAR_MIL_M) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Mittlere Milizrüstung geben", DIA_Addon_Eremit_Klamotten_MIL_M);
};
if (Npc_HasItems (other, ITAR_PAL_M) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Mittlere Paladinrüstung geben", DIA_Addon_Eremit_Klamotten_PAL_M);
};
if (Npc_HasItems (other, ITAR_PAL_H) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Schwere Paladinrüstung geben", DIA_Addon_Eremit_Klamotten_PAL_H);
};
*/
if (Npc_HasItems (other, ITAR_PAL_SKEL) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj podniszczoną zbroję paladyna", DIA_Addon_Eremit_Klamotten_PAL_SKEL);
};
if (Npc_HasItems (other, ITAR_BAU_L) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj lekki strój farmera", DIA_Addon_Eremit_Klamotten_BAU_L);
};
if (Npc_HasItems (other, ITAR_BAU_M) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj średni strój farmera", DIA_Addon_Eremit_Klamotten_BAU_M);
};
if (Npc_HasItems (other, ITAR_BauBabe_L) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj lekką suknię farmerki", DIA_Addon_Eremit_Klamotten_BauBabe_L);
};
if (Npc_HasItems (other, ITAR_BauBabe_M) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj średnią suknię farmerki", DIA_Addon_Eremit_Klamotten_BauBabe_M);
};
/*
if (Npc_HasItems (other, ITAR_SLD_L) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Leichte Söldnerrüstung geben", DIA_Addon_Eremit_Klamotten_SLD_L);
};
if (Npc_HasItems (other, ITAR_SLD_M) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Mittlere Söldnerrüstung geben", DIA_Addon_Eremit_Klamotten_SLD_M);
};
if (Npc_HasItems (other, ITAR_SLD_H) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Schwere Söldnerrüstung geben", DIA_Addon_Eremit_Klamotten_SLD_H);
};
*/
if (Npc_HasItems (other, ITAR_DJG_Crawler) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj zbroję z pancerzy pełzaczy", DIA_Addon_Eremit_Klamotten_DJG_Crawler);
};
/*
if (Npc_HasItems (other, ITAR_DJG_L) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Leichte Drachenjägerrüstung geben", DIA_Addon_Eremit_Klamotten_DJG_L);
};
if (Npc_HasItems (other, ITAR_DJG_M) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Mittlere Drachenjägerrüstung geben", DIA_Addon_Eremit_Klamotten_DJG_M);
};
if (Npc_HasItems (other, ITAR_DJG_H) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Schwere Drachenjägerrüstung geben", DIA_Addon_Eremit_Klamotten_DJG_H);
};
if (Npc_HasItems (other, ITAR_NOV_L) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Novizenrobe geben", DIA_Addon_Eremit_Klamotten_Nov_L);
};
if (Npc_HasItems (other, ITAR_KDF_L) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Leichte Robe des Feuers geben", DIA_Addon_Eremit_Klamotten_KdF_L);
};
if (Npc_HasItems (other, ITAR_KDF_H) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Schwere Robe des Feuers geben", DIA_Addon_Eremit_Klamotten_KdF_H);
};
*/
if (Npc_HasItems (other, ITAR_Leather_L) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj skórzaną zbroję", DIA_Addon_Eremit_Klamotten_Leather);
};
//if (Npc_HasItems (other, ITAR_BDT_M) > 0)
//{
// Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Mittlere Banditenrüstung geben", DIA_Addon_Eremit_Klamotten_BDT_M);
//};
//if (Npc_HasItems (other, ITAR_BDT_H) > 0)
//{
// Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Schwere Banditenrüstung geben", DIA_Addon_Eremit_Klamotten_BDT_H);
//};
if (Npc_HasItems (other, ITAR_XARDAS) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj szatę mrocznych sztuk", DIA_Addon_Eremit_Klamotten_Xardas);
};
if (Npc_HasItems (other, ITAR_Lester) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj szatę Lestera", DIA_Addon_Eremit_Klamotten_Lester);
};
if (Npc_HasItems (other, ITAR_Diego) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj zbroję Diego", DIA_Addon_Eremit_Klamotten_Diego);
};
if (Npc_HasItems (other, ITAR_CorAngar) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj zbroję Cor Angara", DIA_Addon_Eremit_Klamotten_CorAngar);
};
if (Npc_HasItems (other, ITAR_Prisoner) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj spodnie kopacza", DIA_Addon_Eremit_Klamotten_Prisoner);
};
if (Npc_HasItems (other, ITAR_Dementor) > 0)
{
Info_AddChoice (DIA_Addon_Eremit_Klamotten, "Daj szatę poszukiwacza", DIA_Addon_Eremit_Klamotten_Dementor);
};
};
// -------------------------------------------------------------
func void B_Eremit_Tatsache()
{
AI_EquipBestArmor (self);
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_20"); //Jak ulał!
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_21"); //Hmm, jak mógłbym się odwdzięczyć? Całe złoto oddałem piratowi za transport.
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_22"); //Mogę ci dać parę starych kamiennych tablic.
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_23"); //Masz, weź je. Zawsze mogę znaleźć więcej.
B_GiveInvItems (self,other,ItWr_DexStonePlate3_Addon,1);
B_GiveInvItems (self,other,ItWr_StonePlateCommon_Addon ,1);
MIS_Eremit_Klamotten = LOG_SUCCESS;
B_GivePlayerXP (200);
Info_ClearChoices (DIA_Addon_Eremit_Klamotten);
};
// -------------------------------------------------------------
func void DIA_Addon_Eremit_Klamotten_BACK()
{
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_24"); //Świetnie. Najpierw robisz mi nadzieję, a potem...
Info_ClearChoices (DIA_Addon_Eremit_Klamotten);
};
func void DIA_Addon_Eremit_Klamotten_PIR_L()
{
B_GiveInvItems (other, self, ITAR_PIR_L_Addon, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_PIR_M()
{
B_GiveInvItems (other, self, ITAR_PIR_M_Addon, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_PIR_H()
{
B_GiveInvItems (other, self, ITAR_PIR_H_Addon, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Thorus()
{
B_GiveInvItems (other, self, ITAR_Thorus_Addon, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_OreBaron()
{
B_GiveInvItems (other, self, ITAR_OreBaron_Addon, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Bloodwyn()
{
B_GiveInvItems (other, self, ITAR_Bloodwyn_Addon, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Raven()
{
B_GiveInvItems (other, self, ITAR_Raven_Addon, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Ranger()
{
B_GiveInvItems (other, self, ITAR_RANGER_Addon, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_KDW_L()
{
B_GiveInvItems (other, self, ITAR_KDW_L_Addon, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_KDW_H()
{
B_GiveInvItems (other, self, ITAR_KDW_H, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Governor()
{
B_GiveInvItems (other, self, ITAR_Governor, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Judge()
{
B_GiveInvItems (other, self, ITAR_JUDGE, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Smith()
{
B_GiveInvItems (other, self, ITAR_SMITH, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Barkeeper()
{
B_GiveInvItems (other, self, ITAR_BARKEEPER, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_VLK_L()
{
B_GiveInvItems (other, self, ITAR_VLK_L, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_VLK_M()
{
B_GiveInvItems (other, self, ITAR_VLK_M, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_VLK_H()
{
B_GiveInvItems (other, self, ITAR_VLK_H, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_VlkBabe_L()
{
B_GiveInvItems (other, self, ITAR_VlkBabe_L, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_VlkBabe_M()
{
B_GiveInvItems (other, self, ITAR_VlkBabe_M, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_VlkBabe_H()
{
B_GiveInvItems (other, self, ITAR_VlkBabe_H, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_MIL_L()
{
B_GiveInvItems (other, self, ITAR_MIL_L, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_MIL_M()
{
B_GiveInvItems (other, self, ITAR_MIL_M, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_PAL_M()
{
B_GiveInvItems (other, self, ITAR_PAL_M, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_PAL_H()
{
B_GiveInvItems (other, self, ITAR_PAL_H, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_PAL_SKEL()
{
B_GiveInvItems (other, self, ITAR_PAL_SKEL, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_BAU_L()
{
B_GiveInvItems (other, self, ITAR_BAU_L, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_BAU_M()
{
B_GiveInvItems (other, self, ITAR_BAU_M, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_BauBabe_L()
{
B_GiveInvItems (other, self, ITAR_BauBabe_L, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_BauBabe_M()
{
B_GiveInvItems (other, self, ITAR_BauBabe_M, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_SLD_L()
{
B_GiveInvItems (other, self, ITAR_SLD_L, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_SLD_M()
{
B_GiveInvItems (other, self, ITAR_SLD_M, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_SLD_H()
{
B_GiveInvItems (other, self, ITAR_SLD_H, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_DJG_Crawler()
{
B_GiveInvItems (other, self, ITAR_DJG_Crawler, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_DJG_L()
{
B_GiveInvItems (other, self, ITAR_DJG_L, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_DJG_M()
{
B_GiveInvItems (other, self, ITAR_DJG_M, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_DJG_H()
{
B_GiveInvItems (other, self, ITAR_DJG_H, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Nov_L()
{
B_GiveInvItems (other, self, ITAR_NOV_L, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_KdF_L()
{
B_GiveInvItems (other, self, ITAR_KDF_L, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_KdF_H()
{
B_GiveInvItems (other, self, ITAR_KDF_H, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Leather()
{
B_GiveInvItems (other, self, ITAR_Leather_L, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_BDT_M()
{
B_GiveInvItems (other, self, ITAR_BDT_M, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_BDT_H()
{
B_GiveInvItems (other, self, ITAR_BDT_H, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Xardas()
{
B_GiveInvItems (other, self, ITAR_XARDAS, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Lester()
{
B_GiveInvItems (other, self, ITAR_Lester, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Diego()
{
B_GiveInvItems (other, self, ITAR_Diego, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_CorAngar()
{
B_GiveInvItems (other, self, ITAR_CorAngar, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Prisoner()
{
B_GiveInvItems (other, self, ITAR_Prisoner, 1);
B_Eremit_Tatsache();
};
func void DIA_Addon_Eremit_Klamotten_Dementor()
{
B_GiveInvItems (other, self, ITAR_Dementor, 1);
B_Eremit_Tatsache();
};
// ********************************************************
// PERM
// ********************************************************
instance DIA_Addon_Eremit_PERM (C_INFO)
{
npc = NONE_ADDON_115_Eremit;
nr = 99;
condition = DIA_Addon_Eremit_PERM_Condition;
information = DIA_Addon_Eremit_PERM_Info;
permanent = TRUE;
description = "No i? Jak się żyje jako wyrzutek?";
};
func int DIA_Addon_Eremit_PERM_Condition ()
{
return TRUE;
};
func void DIA_Addon_Eremit_PERM_Info ()
{
AI_Output (other, self, "DIA_Addon_Eremit_Add_15_04"); //No i? Jak się żyje jako wyrzutek?
if (MIS_Eremit_Klamotten == FALSE)
{
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_09"); //Wszystko zrobiłem sam. Moją broń, narzędzia, szałas, po prostu wszystko.
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_10"); //A przybyłem tu, nie mając nic oprócz dobrego humoru.
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_11"); //Jednak czasami...
AI_Output (other, self, "DIA_Addon_Eremit_Doppelt_15_01"); //Tak?
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_12"); //Czasami żałuję, że nie wziąłem żadnych ubrań.
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_13"); //Nie mam pojęcia o tkactwie czy wyprawianiu skór...
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_14"); //A noce w tej części wyspy nie są szczególnie ciepłe.
MIS_Eremit_Klamotten = LOG_RUNNING;
}
else
{
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_15"); //Jakoś sobie radzę.
if (MIS_Eremit_Klamotten == LOG_SUCCESS)
{
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_18"); //Mając te ubrania, przetrwam zimę! A później... zobaczymy...
}
else
{
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_16"); //W każdym razie i tak jest tu lepiej niż w Khorinis!
AI_Output (self, other, "DIA_Addon_Eremit_Add_04_17"); //Nawet mimo braku ubrań.
};
};
};
|
D
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.