示例#1
0
 protected CoalitionTransaction(CoalitionTransactionType inType, string inCharacterName, string inChracterId)
 {
     this.type          = inType;
     this.characterName = inCharacterName;
     this.characterId   = inChracterId;
     time = CommonUtils.SecondsFrom1970();
 }
示例#2
0
        public static CoalitionTransaction MakeTransaction(CoalitionTransactionType inType, string inCharacterName, string inChracterId, string inTargetCharacterName, string inTargetCharacterId)
        {
            switch (inType)
            {
            case CoalitionTransactionType.make_officier:
            case CoalitionTransactionType.member_added:
            case CoalitionTransactionType.member_removed:
                return(new MemberActionCoalitionTransaction(inType, inCharacterName, inChracterId, inTargetCharacterName, inTargetCharacterId));

            default:
                return(null);
            }
        }
示例#3
0
        public static CoalitionTransaction MakeTransaction(CoalitionTransactionType inType, string inCharacterName, string inChracterId, int inCount)
        {
            switch (inType)
            {
            case CoalitionTransactionType.deposit:
            case CoalitionTransactionType.withdraw:
            case CoalitionTransactionType.set_poster:
                return(new CountCoalitionTransaction(inType, inCharacterName, inChracterId, inCount));

            default:
                return(null);
            }
        }
示例#4
0
 public MemberActionCoalitionTransaction(CoalitionTransactionType inType, string inCharacterName, string inCharacterId, string inTargetCharacterName, string inTargetCharacterId)
     : base(inType, inCharacterName, inCharacterId)
 {
     targetCharacterId   = inTargetCharacterId;
     targetCharacterName = inTargetCharacterName;
 }
示例#5
0
 public CountCoalitionTransaction(CoalitionTransactionType inType, string inCharacterName, string inChracterId, int inCount)
     : base(inType, inCharacterName, inChracterId)
 {
     count = inCount;
 }