Inheritance: DomainUpkBuilderBase
    public override async Task ReadDomainObject(ByteArrayReader reader, DomainHeader header, DomainExportTableEntry export, bool skipProperties, bool skipParse) {
      ArchetypeObjectReference = reader.ReadInt32();

      ArchetypeObjectNameIndex = header.GetObjectTableEntry(ArchetypeObjectReference)?.NameTableIndex;

      await base.ReadDomainObject(reader, header, export, skipProperties, skipParse);
    }
Exemple #2
0
 internal void ExpandReferences(DomainHeader header)
 {
     TypeReferenceNameIndex      = header.GetObjectTableEntry(TypeReference)?.NameTableIndex;
     ParentReferenceNameIndex    = header.GetObjectTableEntry(ParentReference)?.NameTableIndex;
     OwnerReferenceNameIndex     = header.GetObjectTableEntry(OwnerReference)?.NameTableIndex;
     ArchetypeReferenceNameIndex = header.GetObjectTableEntry(ArchetypeReference)?.NameTableIndex;
 }
    public override void SetPropertyValue(object value) {
      DomainNameTableIndex index = value as DomainNameTableIndex;

      if (index == null) {
        DomainNameTableEntry entry = value as DomainNameTableEntry;

        if (entry != null) {
          index = new DomainNameTableIndex();

          index.SetNameTableIndex(entry);
        }
      }

      if (index != null) {
        NameIndexValue = index;

        return;
      }

      if (value is bool && byteValue.HasValue) byteValue = Convert.ToByte(value);
    }
 public DomainPropertyNameValue() {
   NameIndexValue = new DomainNameTableIndex();
 }
 internal DomainExportTableEntry() {
   NameTableIndex = new DomainNameTableIndex();
 }
 internal void ExpandReferences(DomainHeader header) {
        TypeReferenceNameIndex = header.GetObjectTableEntry(TypeReference)?.NameTableIndex;
      ParentReferenceNameIndex = header.GetObjectTableEntry(ParentReference)?.NameTableIndex;
       OwnerReferenceNameIndex = header.GetObjectTableEntry(OwnerReference)?.NameTableIndex;
   ArchetypeReferenceNameIndex = header.GetObjectTableEntry(ArchetypeReference)?.NameTableIndex;
 }
 public void ExpandReferences(DomainHeader header) {
   OwnerReferenceNameIndex = header.GetObjectTableEntry(OwnerReference)?.NameTableIndex;
 }
 public DomainImportTableEntry() {
   PackageNameIndex = new DomainNameTableIndex();
   TypeNameIndex    = new DomainNameTableIndex();
   NameTableIndex        = new DomainNameTableIndex();
 }
Exemple #9
0
 internal DomainExportTableEntry()
 {
     NameTableIndex = new DomainNameTableIndex();
 }
Exemple #10
0
    public DomainProperty() {
      NameIndex = new DomainNameTableIndex();

      TypeNameIndex = new DomainNameTableIndex();
    }
    public override async Task ReadPropertyValue(ByteArrayReader reader, int size, DomainHeader header) {
      await base.ReadPropertyValue(reader, size, header);

      ObjectIndexName = header.GetObjectTableEntry(IntValue)?.NameTableIndex;
    }
 public DomainPropertyStructValue() {
   StructNameIndex = new DomainNameTableIndex();
 }
 public DomainImportTableEntry()
 {
     PackageNameIndex = new DomainNameTableIndex();
     TypeNameIndex    = new DomainNameTableIndex();
     NameTableIndex   = new DomainNameTableIndex();
 }
 public void ExpandReferences(DomainHeader header)
 {
     OwnerReferenceNameIndex = header.GetObjectTableEntry(OwnerReference)?.NameTableIndex;
 }