コード例 #1
0
ファイル: DashboardFile.cs プロジェクト: mousetwentytwo/test
 protected DashboardFile(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
     //if (!HasEntry(EntryType.Setting, (int)SettingId.GamercardZone)) Settings.Set(SettingId.GamercardZone, 0);
     //if (!HasEntry(EntryType.Setting, (int)SettingId.GamercardRegion)) Settings.Set(SettingId.GamercardRegion, 2);
     //if (!HasEntry(EntryType.Setting, (int)SettingId.YearsOnLive)) Settings.Set(SettingId.YearsOnLive, 0);
     //if (!HasEntry(EntryType.Setting, (int)SettingId.GamercardMotto)) Settings.Set(SettingId.GamercardMotto, String.Empty);
     //if (!HasEntry(EntryType.Setting, (int)SettingId.GamercardUserLocation)) Settings.Set(SettingId.GamercardUserLocation, String.Empty);
     //if (!HasEntry(EntryType.Setting, (int)SettingId.GamercardUserName)) Settings.Set(SettingId.GamercardUserName, String.Empty);
     //if (!HasEntry(EntryType.Setting, (int)SettingId.GamercardUserBio)) Settings.Set(SettingId.GamercardUserBio, String.Empty);
     //if (!HasEntry(EntryType.Setting, (int)SettingId.GamercardRep)) Settings.Set(SettingId.GamercardRep, (float)0.0);
 }
コード例 #2
0
ファイル: ModelFactory.cs プロジェクト: mercenaryntx/godspeed
 public static object GetModel(Type type, BinaryContainer binary, int startOffset)
 {
     try
     {
         var offsetTable = GetOffsetTable(type);
         binary.EnsureBinarySize(offsetTable.Size);
         return(ProxyGenerator.CreateClassProxy(type, new object[] { offsetTable.Clone(startOffset), binary, startOffset }, ModelInterceptor));
     }
     catch (TargetInvocationException ex)
     {
         throw new ModelFactoryException(ex.InnerException, "Binary model instantiation failed. See inner exception for details.");
     }
 }
コード例 #3
0
        protected BinaryModelBase(OffsetTable offsetTable, BinaryContainer binary, int startOffset)
        {
            CacheEnabled = true;
            _offsetTable = offsetTable;
            StartOffset  = startOffset;
            BinMap       = new BinMap();

            //HACK
            if (offsetTable == null)
            {
                return;
            }

            Binary = binary ?? new BinaryContainer(offsetTable.Size);

            EnsureNullTerminatedStrings();

            //Temp
            if (binary != null)
            {
                offsetTable.MapOffsets(BinMap, GetType().BaseType);
            }
        }
コード例 #4
0
 public XdbfFreeSpaceEntry(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
 }
コード例 #5
0
 public AvatarAwardEntry(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
 }
コード例 #6
0
ファイル: ProgressCache.cs プロジェクト: mousetwentytwo/test
 public ProgressCache(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
 }
コード例 #7
0
ファイル: FileEntry.cs プロジェクト: mousetwentytwo/test
 public FileEntry(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
     Files = new List<FileEntry>();
     Folders = new List<FileEntry>();
 }
コード例 #8
0
 public ProfileEmbeddedContent(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
 }
コード例 #9
0
ファイル: HashEntry.cs プロジェクト: mousetwentytwo/test
 public HashEntry(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
 }
コード例 #10
0
ファイル: ModelFactory.cs プロジェクト: mercenaryntx/godspeed
 public static T GetModel <T>(BinaryContainer binary, int startOffset = 0) where T : IBinaryModel
 {
     return((T)GetModel(typeof(T), binary, startOffset));
 }
コード例 #11
0
 public PackageSignature(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
 }
コード例 #12
0
ファイル: SyncData.cs プロジェクト: mousetwentytwo/test
 public SyncData(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
 }
コード例 #13
0
 public AchievementEntry(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
 }
コード例 #14
0
 public SvodVolumeDescriptor(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
 }
コード例 #15
0
ファイル: TitleEntry.cs プロジェクト: mousetwentytwo/test
 public TitleEntry(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
     TitleCode = TitleId.ToHex();
 }
コード例 #16
0
 public AvatarItemMediaInfo(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
 }
コード例 #17
0
ファイル: Certificate.cs プロジェクト: mousetwentytwo/test
 public Certificate(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
 }
コード例 #18
0
ファイル: Account.cs プロジェクト: mousetwentytwo/test
        //private byte[] CONFOUNDER = new byte[] { 0x56, 0x65, 0x6C, 0x6F, 0x63, 0x69, 0x74, 0x79 };

        public Account(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
        {
        }
コード例 #19
0
 public CachedUserFlags(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
 }
コード例 #20
0
ファイル: VideoMediaInfo.cs プロジェクト: mousetwentytwo/test
 public VideoMediaInfo(OffsetTable offsetTable, BinaryContainer binary, int startOffset) : base(offsetTable, binary, startOffset)
 {
 }