This commit is contained in:
Dev 2024-07-19 15:56:09 +01:00
parent 5e32ead325
commit 9e02730e03
53 changed files with 261 additions and 313 deletions

View File

@ -1,4 +1,4 @@
# Mod examples for v3.9.2 # Mod examples for v3.9.3
A collection of example mods that perform typical actions in SPT A collection of example mods that perform typical actions in SPT

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer * @param items Items in the offer
* @param barterScheme Cost of item (currency or barter) * @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item * @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1 * @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer * @returns IRagfairOffer
*/ */
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer; protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/** /**
* Create the user object stored inside each flea offer object * Create the user object stored inside each flea offer object
* @param userID user creating the offer * @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number; intId: number;
/** Handbook price */ /** Handbook price */
itemsCost: number; itemsCost: number;
/** Rouble price */ /** Rouble price per item */
requirementsCost: number; requirementsCost: number;
startTime: number; startTime: number;
endTime: number; endTime: number;
sellInOnePiece: boolean; sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number; loyaltyLevel: number;
buyRestrictionMax?: number; buyRestrictionMax?: number;
buyRestrictionCurrent?: number; buyRestrictionCurrent?: number;
locked: boolean; locked?: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
} }
export interface OfferRequirement { export interface OfferRequirement {
_tpl: string; _tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string; nickname?: string;
rating?: number; rating?: number;
memberType: MemberCategory; memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string; avatar?: string;
isRatingGrowing?: boolean; isRatingGrowing?: boolean;
aid?: number; aid?: number;