genesis-3d_engine/Engine/foundation/io/iointerfaceprotocol.nidl
zhongdaohuan 6e8fbca745 genesis-3d engine version 1.3.
match the genesis editor version 1.3.0.653.
2014-05-05 14:50:33 +08:00

59 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Nebula3>
<Protocol namespace="IO" name="IoInterfaceProtocol">
<!-- dependencies -->
<Dependency header="io/ioprotocoldef.h"/>
<!-- copy file -->
<Message name="CopyFile" fourcc="cofi">
<InArg name="FromURI" type="IO::URI"/>
<InArg name="ToURI" type="IO::URI"/>
<InArg name="Result" type="bool" default="false"/>
</Message>
<!-- io message -->
<Message name="IOMessage" fourcc="iomg">
<InArg name="FileName" type="Util::StringAtom"/>
<InArg name="Result" type="bool" default="false"/>
</Message>
<!-- create directory -->
<Message name="CreateDirectory" fourcc="crdi" derivedFrom="IOMessage">
</Message>
<!-- delete directory -->
<Message name="DeleteDirectory" fourcc="dedi" derivedFrom="IOMessage">
</Message>
<!-- delete file -->
<Message name="DeleteFile" fourcc="defi" derivedFrom="IOMessage">
</Message>
<!-- mount archive -->
<Message name="MountArchive" fourcc="mozi" derivedFrom="IOMessage">
</Message>
<!-- read stream -->
<Message name="ReadStream" fourcc="rest" derivedFrom="IOMessage">
<InArg name="Stream" type="GPtr<IO::Stream>"/>
</Message>
<!-- write stream -->
<Message name="WriteStream" fourcc="wrst" derivedFrom="IOMessage">
<InArg name="Stream" type="GPtr<IO::Stream>"/>
<InArg name="URI" type="IO::URI"/>
</Message>
<!-- use fileservice -->
<Message name="UseFileService" fourcc="ufsm" derivedFrom="IOMessage">
<InArg name="UseFileService" type="bool" default="false"/>
<InArg name="FileServiceDir" type="Util::String"/>
<InArg name="ServerAddress" type="Util::String"/>
<InArg name="CacheDir" type="Util::String"/>
</Message>
</Protocol>
</Nebula3>