private IntState GetIntState(int interactionId, IInteractionable receiver, IInteractionable requester) { IntState state = new IntState(); state.interactionId = interactionId; if (!current.GetConfig().isRecNeedRecursos() && !current.GetConfig().isRecNeedFloat()) { state.receiverId = receiver.GetID(); state.receiver = null; } else { state.receiverId = -1; } state.receiver = GetInteractionableMeta(receiver); state.winnerId = requester.Won() ? requester.GetID() : (receiver.Won() ? receiver.GetID() : -1); state.requester = GetInteractionableMeta(requester); return(state); }