3.9.3
This commit is contained in:
parent
5e32ead325
commit
9e02730e03
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user