Record

Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.

ShotInstancenot creatablecomingData and time

Up and coming

One named record: its content folder, numbered backups, instance files and metadata.

RecordStore gives them through GetRecordsAsync, FindRecordAsync and CreateRecordAsync. BackupAsync copies Content to Backups/000001 and up, and ReplaceAsync backs this record up before taking a newer one's Content.

Properties

NameTypeDefaultDescription
Scopestring
ContentPathHandlerThe record's Content folder, which BackupAsync copies to Backups/000001 and up.
NextVersionnumber

Methods

NameArgumentsReturnsDescription
BackupAsync
yields
()(number?, string?)Copies Content to Backups/000001 and up, and returns the backup's number.
ReplaceAsync
yields
(newer: Record)(boolean, string?)Backs this record up, then takes the newer record's Content.
SetScopeAsync
yields
(scope: string)(boolean, string?)
ReadInstanceAsync
yields
(...: string)(ShotInstance?, string?)Reads an instance from one of the record's rbxm files, its path given in parts.
WriteInstanceAsync
yields
(instance: ShotInstance, ...: string)(boolean, string?)
ReadMetadataAsync
yields
()({ [string]: any }?, string?)
WriteMetadataAsync
yields
(metadata: { [string]: any })(boolean, string?)
From ShotInstance 33